diff --git a/Cargo.lock b/Cargo.lock index c14a969..ec5d2a2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -844,9 +844,9 @@ dependencies = [ [[package]] name = "hermit-abi" -version = "0.1.17" +version = "0.1.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aca5565f760fb5b220e499d72710ed156fdb74e631659e99377d9ebfbd13ae8" +checksum = "322f4de77956e22ed0e5032c359a0f1273f1f7f0d79bfa3b8ffbc730d7fbcc5c" dependencies = [ "libc", ] diff --git a/static/style.css b/static/style.css index df27dd1..915719b 100644 --- a/static/style.css +++ b/static/style.css @@ -117,6 +117,10 @@ a:hover { text-decoration: underline; } +svg { + stroke: var(--text); +} + img[src=""] { display: none; } @@ -280,14 +284,18 @@ select, #search { #restrict_sr { margin-right: 5px; } -input[type="submit"] { +input[type="submit"], button.submit { border: 0; border-radius: 0px 5px 5px 0px; - transition: 0.2s all; } +button.submit { display: flex; } select:hover { background: var(--foreground); } -input[type="submit"]:hover { color: var(--accent); } + +input[type="submit"]:hover, button.submit:hover { + transition: 0.2s all; + color: var(--accent); +} #timeframe { margin: 0 2px; @@ -568,7 +576,6 @@ a.search_subreddit:hover { grid-area: 1 / 1 / 2 / 2; align-self: center; justify-self: center; - stroke: var(--text); max-width: 100%; } diff --git a/templates/post.html b/templates/post.html index 3a98b13..e8cdc63 100644 --- a/templates/post.html +++ b/templates/post.html @@ -87,7 +87,13 @@
+
diff --git a/templates/search.html b/templates/search.html index 45180ec..e6aba58 100644 --- a/templates/search.html +++ b/templates/search.html @@ -17,7 +17,13 @@ {% call utils::options(params.sort, ["relevance", "hot", "top", "new", "comments"], "") %} {% if params.sort != "new" %}{% endif %} + {% endif %} {% if subreddits.len() > 0 %} diff --git a/templates/subreddit.html b/templates/subreddit.html index ee9c9b8..2cf24ad 100644 --- a/templates/subreddit.html +++ b/templates/subreddit.html @@ -24,8 +24,15 @@ {% if sort.0 == "top" || sort.0 == "controversial" %} - {% endif %} + + + {% endif %}
diff --git a/templates/user.html b/templates/user.html index 2a7b0dc..42761f7 100644 --- a/templates/user.html +++ b/templates/user.html @@ -15,7 +15,13 @@ {% call utils::options(sort.0, ["hot", "new", "top"], "") %} {% if sort.0 == "top" %}{% endif %} + {% endif %}
diff --git a/templates/utils.html b/templates/utils.html index 2b6e088..7dcd375 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -23,7 +23,13 @@
{% endif %} - + {%- endmacro %}