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 {
|
||||
|
||||
&.tag-dark {
|
||||
--tag-color: @body-bg;
|
||||
|
||||
& when (@config-dark-mode = true) {
|
||||
--tag-color: @text-color;
|
||||
}
|
||||
--tag-color: @text-on-dark;
|
||||
|
||||
.TagLabel-text {
|
||||
color: var(--tag-color) !important;
|
||||
@@ -30,11 +26,7 @@
|
||||
}
|
||||
|
||||
&.tag-light {
|
||||
--tag-color: @text-color;
|
||||
|
||||
& when (@config-dark-mode = true) {
|
||||
--tag-color: @body-bg;
|
||||
}
|
||||
--tag-color: @text-on-light;
|
||||
|
||||
.TagLabel-text {
|
||||
color: var(--tag-color) !important;
|
||||
|
Reference in New Issue
Block a user