mirror of
https://github.com/flarum/core.git
synced 2025-08-29 11:00:12 +02:00
refactor: simplify logic with a unique variable
This commit is contained in:
@@ -18,11 +18,7 @@
|
|||||||
&.colored {
|
&.colored {
|
||||||
|
|
||||||
&.tag-dark {
|
&.tag-dark {
|
||||||
--tag-color: @body-bg;
|
--tag-color: @text-on-dark;
|
||||||
|
|
||||||
& when (@config-dark-mode = true) {
|
|
||||||
--tag-color: @text-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.TagLabel-text {
|
.TagLabel-text {
|
||||||
color: var(--tag-color) !important;
|
color: var(--tag-color) !important;
|
||||||
@@ -30,11 +26,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.tag-light {
|
&.tag-light {
|
||||||
--tag-color: @text-color;
|
--tag-color: @text-on-light;
|
||||||
|
|
||||||
& when (@config-dark-mode = true) {
|
|
||||||
--tag-color: @body-bg;
|
|
||||||
}
|
|
||||||
|
|
||||||
.TagLabel-text {
|
.TagLabel-text {
|
||||||
color: var(--tag-color) !important;
|
color: var(--tag-color) !important;
|
||||||
|
Reference in New Issue
Block a user