diff options
author | Lukas Stabe <lukas@stabe.de> | 2020-09-26 03:39:52 +0000 |
---|---|---|
committer | Lukas Stabe <lukas@stabe.de> | 2020-09-26 03:39:52 +0000 |
commit | a4d227d34ad2bbf40ff5d542dcc8821ccb090ac7 (patch) | |
tree | caf6638bd2f26f90c4c93049100135763034afcd /data/style.scss | |
parent | move css out of html into its own route (diff) | |
download | miniserve-a4d227d34ad2bbf40ff5d542dcc8821ccb090ac7.tar.gz miniserve-a4d227d34ad2bbf40ff5d542dcc8821ccb090ac7.zip |
remove default color scheme cli argument
Diffstat (limited to '')
-rw-r--r-- | data/style.scss | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/data/style.scss b/data/style.scss index b2a6882..f7facc2 100644 --- a/data/style.scss +++ b/data/style.scss @@ -1,4 +1,8 @@ -/* theme variables can be found at the bottom */ +/* theme colors can be found at the bottom */ +$themes: squirrel, archlinux, monokai, zenburn; + +$default_theme: squirrel; +$default_theme_dark: archlinux; html { font-smoothing: antialiased; @@ -656,12 +660,11 @@ th span.active a, th span.active span { } /* theme picked by user */ -body.theme_squirrel { @include theme_squirrel; } -body.theme_archlinux { @include theme_archlinux; } -body.theme_zenburn { @include theme_zenburn; } -body.theme_monokai { @include theme_monokai; } +@each $theme in $themes { + body.theme_#{$theme} { @include theme_#{$theme}; } +} /* defaults */ -body { @include theme_squirrel; } -@media (prefers-color-scheme: dark) { body { @include theme_archlinux; } } +body { @include theme_#{$default_theme}; } +@media (prefers-color-scheme: dark) { body { @include theme_#{$default_theme_dark}; } } |