Skip to content

Commit

Permalink
Fix CSS rule ordering
Browse files Browse the repository at this point in the history
This should fix the problems with dark mode.
  • Loading branch information
CoffeeCoder1 committed Nov 29, 2024
1 parent 102564f commit dd5cda0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions _sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,35 @@ $dark-text: #d2fff6;
$dark-highlight: #1bff8a;

@mixin theme-colors() {
@media (prefers-color-scheme: dark) {
background-color: $dark-background;
color: $dark-text;
}

& {
background-color: $light-background;
color: $light-text;
}
}

@mixin highlight-color() {
@media (prefers-color-scheme: dark) {
color: $dark-highlight;
background-color: $dark-background;
color: $dark-text;
}
}

@mixin highlight-color() {
& {
color: $light-highlight;
}
}

@mixin link-color() {
@media (prefers-color-scheme: dark) {
color: $dark-highlight;
}
}

@mixin link-color() {
& {
color: $light-highlight;
}

@media (prefers-color-scheme: dark) {
color: $dark-highlight;
}
}

body {
Expand Down

0 comments on commit dd5cda0

Please sign in to comment.