mirror of
https://github.com/outline/outline.git
synced 2026-06-13 03:14:59 +03:00
Let date mentions inherit surrounding font weight
The .mention style fixes font-weight to 500, which prevented a date mention placed inside a heading from rendering bold like the rest of the heading. Date mentions are plain text, so they now inherit the font weight of their context.
This commit is contained in:
@@ -570,6 +570,12 @@ width: 100%;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
/* Date mentions are plain text, so they inherit the surrounding font weight
|
||||
(e.g. bold when placed inside a heading). */
|
||||
&[data-type="date"] {
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
&.mention-user::before {
|
||||
content: "@";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user