1
0
mirror of https://github.com/flarum/core.git synced 2025-08-28 18:40:46 +02:00

refactor: simplify logic with a unique variable

This commit is contained in:
protoclown
2022-09-26 10:00:55 +02:00
parent 948dd34c6d
commit 8a6225034c

View File

@@ -65,22 +65,12 @@
&.colored {
&.tag-light {
&, a {
color: @text-color;
}
& when (@config-dark-mode = true) {
&, a {
color: @body-bg;
}
color: @text-on-light;
}
}
&.tag-dark {
&, a {
color: @body-bg;
}
& when (@config-dark-mode = true) {
&, a {
color: @text-color;
}
color: @text-on-dark;
}
}
}