1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 09:26:34 +02:00

Use css variables for badge (#29)

This commit is contained in:
Sami Mazouz
2021-08-16 10:18:32 +01:00
committed by GitHub
parent ab2a198aa3
commit 3e962c5e0f

View File

@@ -1,10 +1,15 @@
.Badge--sticky { :root {
background: #d13e32; --sticky-bg: #d13e32;
} }
.Badge--sticky {
--badge-bg: var(--sticky-bg);
}
.DiscussionStickiedPost { .DiscussionStickiedPost {
& .EventPost-icon, & .EventPost-icon,
& .EventPost-info, & .EventPost-info,
& .EventPost-info a { & .EventPost-info a {
color: #d13e32; color: var(--sticky-bg);
} }
} }