From e111a4ed212a974bfe1700a2e724d65f435b7c1e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 14 Oct 2020 03:30:12 -0700 Subject: accessibility: style tweaks for constract Includes swapping the CSS block to follow the CSS file link, so that file-local styles have precedence. Not sure I like all these changes, for example the link color and blue box colors. Blue "Show XYZ additional hits" message should probably be larger font for readability, not contrast. --- fatcat_scholar/templates/base.html | 31 ++++++++++++++++++----------- fatcat_scholar/templates/search.html | 4 ++-- fatcat_scholar/templates/search_macros.html | 2 +- 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html index 0e61a7e..119160e 100644 --- a/fatcat_scholar/templates/base.html +++ b/fatcat_scholar/templates/base.html @@ -31,8 +31,23 @@ */ #} + + {%- if settings.SCHOLAR_ENV != "prod" -%}[{{ settings.SCHOLAR_ENV|upper }}] {% endif -%} + {%- block title -%}scholar.archive.org{%- endblock %} + + - - {%- if settings.SCHOLAR_ENV != "prod" -%}[{{ settings.SCHOLAR_ENV|upper }}] {% endif -%} - {%- block title -%}scholar.archive.org{%- endblock %} - - diff --git a/fatcat_scholar/templates/search.html b/fatcat_scholar/templates/search.html index d4f3952..49af012 100644 --- a/fatcat_scholar/templates/search.html +++ b/fatcat_scholar/templates/search.html @@ -35,7 +35,7 @@ {% if hits %} {{ "{:,}".format(hits.count_found) }} Hits - in {{ format_query_time(hits.query_time_ms) }} + in {{ format_query_time(hits.query_time_ms) }} {% else %}   {% endif %} @@ -50,7 +50,7 @@ {{ _("Hits") }}
- in {{ format_query_time(hits.query_time_ms) }} + in {{ format_query_time(hits.query_time_ms) }}
{% endif %} diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index 9f92dca..c7c0eb4 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -319,7 +319,7 @@ {% endmacro %} {% macro query_option(options, selected) -%} - +