aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2023-01-01 21:05:23 +0000
committerGitHub <noreply@github.com>2023-01-01 21:05:23 +0000
commit855488941b39a6e366565d6b3ce9baf9292d0aca (patch)
treeb1267a2daae19d6e0ba83318ba4dfe79d445522a /data
parentMerge pull request #998 from svenstaro/dependabot/cargo/fast_qr-0.7.0 (diff)
parentupdate Cargo.lock (diff)
downloadminiserve-855488941b39a6e366565d6b3ce9baf9292d0aca.tar.gz
miniserve-855488941b39a6e366565d6b3ce9baf9292d0aca.zip
Merge pull request #1004 from connorskees/update-grass
update grass to 0.12.0
Diffstat (limited to 'data')
-rw-r--r--data/style.scss24
1 files changed, 22 insertions, 2 deletions
diff --git a/data/style.scss b/data/style.scss
index c172ae8..10c258d 100644
--- a/data/style.scss
+++ b/data/style.scss
@@ -757,7 +757,27 @@ th span.active span {
--footer_color: #56c9df;
}
+@mixin theme($name) {
+ @if $name == squirrel {
+ @include theme_squirrel();
+ }
+
+ @else if $name == archlinux {
+ @include theme_archlinux();
+ }
+
+ @else if $name == monokai {
+ @include theme_monokai();
+ }
+ @else if $name == zenburn {
+ @include theme_zenburn();
+ }
+
+ @else {
+ @error "Invalid theme: #{$name}";
+ }
+}
// For each of the themes, define a placeholder selector containing
// the themes variables. Then add selectors for body when the theme:
@@ -766,7 +786,7 @@ th span.active span {
// to the placeholder selector list by means of @extend.
@each $theme in $themes {
%theme_#{$theme} {
- @include theme_#{$theme};
+ @include theme($theme);
}
body.theme_#{$theme} {
@@ -785,7 +805,7 @@ th span.active span {
@each $theme in $themes {
@media (prefers-color-scheme: dark) {
%theme_dark_#{$theme} {
- @include theme_#{$theme};
+ @include theme($theme);
}
}