1
0
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:
protoclown
2022-09-26 09:57:03 +02:00
parent acae7f776b
commit 948dd34c6d

View File

@@ -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;