Skip to content

Commit

Permalink
Fix a typo that causes color issues. zotero/zotero#4151
Browse files Browse the repository at this point in the history
  • Loading branch information
tnajdek committed May 22, 2024
1 parent 646cce0 commit b859def
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
30 changes: 14 additions & 16 deletions src/stylesheets/themes/_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,21 +79,19 @@ $-colors: (
}

@if $platform == 'web' {
:root[data-color-scheme=dark] {
@include -dark-rules();
}

@media (prefers-color-scheme: dark) {
:root:not([data-color-scheme]) {
@include -dark-rules();
}
}
}
:root[data-color-scheme=dark] {
@include -dark-rules();
}

else {
@media (prefers-color-scheme: dark) {
:root {
@include -dark-rules();
}
}
@media (prefers-color-scheme: dark) {
:root:not([data-color-scheme]) {
@include -dark-rules();
}
}
} @else {
@media (prefers-color-scheme: dark) {
:root {
@include -dark-rules();
}
}
}
2 changes: 1 addition & 1 deletion src/stylesheets/themes/_light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ $-colors: (
@include -light-rules();
}
}
} else {
} @else {
@media (prefers-color-scheme: light) {
:root {
@include -light-rules();
Expand Down

0 comments on commit b859def

Please sign in to comment.