mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
fix: custom contrast color affected by parents
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
@@ -176,4 +176,10 @@ blockquote ol:last-child {
|
||||
--contrast-color: var(--text-on-dark);
|
||||
color: var(--contrast-color);
|
||||
}
|
||||
|
||||
// This exists to prevent inheriting the contrast color from a parent element.
|
||||
// Like when a badge is inside a tag hero.
|
||||
&--unchanged {
|
||||
--contrast-color: var(--unchanged-color);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user