From 00bbe2124fc04f252a3074058bcb4871d970ae70 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 15 Jan 2021 00:41:47 -0800 Subject: html: improvements to reactive search filters and main serp column --- fatcat_scholar/templates/base.html | 7 +++++++ fatcat_scholar/templates/search.html | 16 +++++++-------- fatcat_scholar/templates/search_macros.html | 31 +++++++++++++++-------------- 3 files changed, 31 insertions(+), 23 deletions(-) (limited to 'fatcat_scholar') diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html index 3b6eb99..7df0502 100644 --- a/fatcat_scholar/templates/base.html +++ b/fatcat_scholar/templates/base.html @@ -41,8 +41,15 @@ @media only screen and (min-width: 768px) { .mobile-only { display: none !important; } } + @media only screen and (max-width: 991px) and (min-width: 768px) { + .ui.container { width: 820px; } + } @media only screen and (max-width: 991px) { .tablet-hide { display: none !important; } + .ui.grid>[class*="fourteen wide"].column.serp-column { + width: 100% !important; + box-shadow: none !important; + } } @media only screen and (min-width: 992px) { .tablet-only { display: none !important; } diff --git a/fatcat_scholar/templates/search.html b/fatcat_scholar/templates/search.html index d91b78a..85c6a89 100644 --- a/fatcat_scholar/templates/search.html +++ b/fatcat_scholar/templates/search.html @@ -33,12 +33,12 @@
{{ _("Filters") }} -

- {{ search_macros.query_option(query.time_options, query.filter_time) }} - {{ search_macros.query_option(query.type_options, query.filter_type) }} - {{ search_macros.query_option(query.availability_options, query.filter_availability) }} - {{ search_macros.query_option(query.sort_options, query.sort_order) }} -

+
+ {{ search_macros.query_option(query.time_options, query.filter_time) }} + {{ search_macros.query_option(query.type_options, query.filter_type) }} + {{ search_macros.query_option(query.availability_options, query.filter_availability) }} + {{ search_macros.query_option(query.sort_options, query.sort_order) }} +
{% if hits %} @@ -58,7 +58,7 @@ {% endif %} -
+
-
+
{% if search_error %}
diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index cf20133..229d481 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -344,21 +344,22 @@ {% endmacro %} {% macro query_option(options, selected) -%} - -