Skip to content

Commit

Permalink
Fix inconsistencies in auto theme regarding forum vs browser styles
Browse files Browse the repository at this point in the history
Set the 'color-scheme' property for :root to dark/light depending on @config-dark-mode setting.

Fixes #58
  • Loading branch information
dsevillamartin committed Mar 20, 2022
1 parent 1cce7a4 commit 9061023
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions resources/less/forum.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
:root {
& when (@config-dark-mode = true) {
color-scheme: dark;
}

& when (@config-dark-mode = false) {
color-scheme: light;
}
}

.NightMode-autoUnsupported {
@warning-color: #d98a14;

Expand Down

0 comments on commit 9061023

Please sign in to comment.