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 {
background: #d13e32;
:root {
--sticky-bg: #d13e32;
}
.Badge--sticky {
--badge-bg: var(--sticky-bg);
}
.DiscussionStickiedPost {
& .EventPost-icon,
& .EventPost-info,
& .EventPost-info a {
color: #d13e32;
color: var(--sticky-bg);
}
}