diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2023-01-01 21:05:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-01 21:05:23 +0000 |
commit | 855488941b39a6e366565d6b3ce9baf9292d0aca (patch) | |
tree | b1267a2daae19d6e0ba83318ba4dfe79d445522a | |
parent | Merge pull request #998 from svenstaro/dependabot/cargo/fast_qr-0.7.0 (diff) | |
parent | update Cargo.lock (diff) | |
download | miniserve-855488941b39a6e366565d6b3ce9baf9292d0aca.tar.gz miniserve-855488941b39a6e366565d6b3ce9baf9292d0aca.zip |
Merge pull request #1004 from connorskees/update-grass
update grass to 0.12.0
-rw-r--r-- | Cargo.lock | 99 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | data/style.scss | 24 |
3 files changed, 42 insertions, 83 deletions
@@ -382,12 +382,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] -name = "beef" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a8241f3ebb85c056b509d4327ad0358fbbba6ffb340bf388f26350aeda225b1" - -[[package]] name = "bit-set" version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1062,19 +1056,15 @@ dependencies = [ [[package]] name = "grass" -version = "0.11.2" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc5bedc3dbd71dcdd41900e1f58e4d431fa69dd67c04ae1f86ae1a0339edd849" +checksum = "be2722dd6b8a112f5cc3c97b9bd6a7c9051a826c39c69e3bb6ed1a2e262798dd" dependencies = [ - "beef", "codemap", "indexmap", "lasso", - "num-bigint", - "num-rational", - "num-traits", "once_cell", - "phf 0.9.0", + "phf", ] [[package]] @@ -1378,9 +1368,9 @@ checksum = "d4345964bb142484797b161f473a503a434de77149dd8c7427788c6e13379388" [[package]] name = "lasso" -version = "0.5.1" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8647c8a01e5f7878eacb2c323c4c949fdb63773110f0686c7810769874b7e0a" +checksum = "aeb7b21a526375c5ca55f1a6dfd4e1fad9fa4edd750f530252a718a44b2608f0" dependencies = [ "hashbrown 0.11.2", ] @@ -1482,7 +1472,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a2629bb1404f3d34c2e921f21fd34ba00b206124c81f65c50b43b6aaefeb016" dependencies = [ "log", - "phf 0.10.1", + "phf", "phf_codegen", "string_cache", "string_cache_codegen", @@ -1643,17 +1633,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be" [[package]] -name = "num-bigint" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f93ab6289c7b344a8a9f60f88d80aa20032336fe78da341afc91c8a2341fc75f" -dependencies = [ - "autocfg", - "num-integer", - "num-traits", -] - -[[package]] name = "num-integer" version = "0.1.45" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1664,18 +1643,6 @@ dependencies = [ ] [[package]] -name = "num-rational" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0" -dependencies = [ - "autocfg", - "num-bigint", - "num-integer", - "num-traits", -] - -[[package]] name = "num-traits" version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1805,22 +1772,13 @@ dependencies = [ [[package]] name = "phf" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2ac8b67553a7ca9457ce0e526948cad581819238f4a9d1ea74545851fa24f37" -dependencies = [ - "phf_macros", - "phf_shared 0.9.0", - "proc-macro-hack", -] - -[[package]] -name = "phf" version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259" dependencies = [ - "phf_shared 0.10.0", + "phf_macros", + "phf_shared", + "proc-macro-hack", ] [[package]] @@ -1829,18 +1787,8 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fb1c3a8bc4dd4e5cfce29b44ffc14bedd2ee294559a294e2a4d4c9e9a6a13cd" dependencies = [ - "phf_generator 0.10.0", - "phf_shared 0.10.0", -] - -[[package]] -name = "phf_generator" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d43f3220d96e0080cc9ea234978ccd80d904eafb17be31bb0f76daaea6493082" -dependencies = [ - "phf_shared 0.9.0", - "rand", + "phf_generator", + "phf_shared", ] [[package]] @@ -1849,18 +1797,18 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6" dependencies = [ - "phf_shared 0.10.0", + "phf_shared", "rand", ] [[package]] name = "phf_macros" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b706f5936eb50ed880ae3009395b43ed19db5bff2ebd459c95e7bf013a89ab86" +checksum = "58fdf3184dd560f160dd73922bea2d5cd6e8f064bf4b13110abd81b03697b4e0" dependencies = [ - "phf_generator 0.9.1", - "phf_shared 0.9.0", + "phf_generator", + "phf_shared", "proc-macro-hack", "proc-macro2", "quote", @@ -1869,15 +1817,6 @@ dependencies = [ [[package]] name = "phf_shared" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a68318426de33640f02be62b4ae8eb1261be2efbc337b60c54d845bf4484e0d9" -dependencies = [ - "siphasher", -] - -[[package]] -name = "phf_shared" version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" @@ -2404,7 +2343,7 @@ dependencies = [ "new_debug_unreachable", "once_cell", "parking_lot", - "phf_shared 0.10.0", + "phf_shared", "precomputed-hash", "serde", ] @@ -2415,8 +2354,8 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6bb30289b722be4ff74a408c3cc27edeaad656e06cb1fe8fa9231fa59c728988" dependencies = [ - "phf_generator 0.10.0", - "phf_shared 0.10.0", + "phf_generator", + "phf_shared", "proc-macro2", "quote", ] @@ -83,4 +83,4 @@ url = "2" fake-tty = "0.3.1" [build-dependencies] -grass = { version = "0.11", default-features = false } +grass = { version = "0.12", default-features = false } 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); } } |