From 82d51429c1c3f6c8b63e0deff4bc968c0f515543 Mon Sep 17 00:00:00 2001 From: syeopite Date: Tue, 13 Apr 2021 00:23:17 -0700 Subject: [PATCH] Improve styling for search filters --- assets/css/search.css | 25 ++- .../views/components/channel-information.ecr | 2 +- src/invidious/views/search.ecr | 182 +++++++++--------- 3 files changed, 116 insertions(+), 93 deletions(-) diff --git a/assets/css/search.css b/assets/css/search.css index 52880077..48d505b8 100644 --- a/assets/css/search.css +++ b/assets/css/search.css @@ -1,12 +1,7 @@ #filters { - display: inline; margin-top: 15px; } -#filters > div { - display: inline-block; -} - #filters > summary { display: block; margin-bottom: 15px; @@ -22,6 +17,20 @@ font-size: 1.5em; } +#filters .pure-menu-item { + margin-top: 10px; +} + +#filters hr { + width: 80%; + margin: 10px 0 15px 0 !important +} + +.filter-catagory { + display: inline-block; + margin-bottom: 20px; +} + .remove-filter { margin-left: 6px; vertical-align: middle; @@ -30,3 +39,9 @@ .dark-theme .remove-filter { color: #CAC5BE } + +@media (prefers-color-scheme: dark) { + .no-theme .remove-filter { + color: #CAC5BE + } +} diff --git a/src/invidious/views/components/channel-information.ecr b/src/invidious/views/components/channel-information.ecr index 6e636922..b6ed41e7 100644 --- a/src/invidious/views/components/channel-information.ecr +++ b/src/invidious/views/components/channel-information.ecr @@ -119,7 +119,7 @@
-
-
+
<%= translate(locale, "sort") %>
<% ["relevance", "rating", "date", "views"].each do |sort| %>