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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user