From 5dd7a15db9656fc28f26dac77e5e9f6dc0d4dbc9 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 20 Oct 2020 15:02:51 -0700 Subject: html: several small tweaks and accessibility improvements --- fatcat_scholar/templates/base.html | 35 +++++++++++++++++++-- fatcat_scholar/templates/search.html | 15 +++++++-- fatcat_scholar/templates/search_macros.html | 48 +++++++++++++++-------------- 3 files changed, 69 insertions(+), 29 deletions(-) (limited to 'fatcat_scholar/templates') diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html index 0bc92f2..fdd7099 100644 --- a/fatcat_scholar/templates/base.html +++ b/fatcat_scholar/templates/base.html @@ -53,6 +53,10 @@ color: #28629c!important; border-color: #28629c!important; } + .ui.basic.orange.label { + color: #c54e00!important; + border-color: #c54e00!important; + } .ui.card .meta, .ui.cards>.card .meta { color: rgba(0,0,0,0.55); } @@ -88,6 +92,31 @@ } } + .ui.serp.card { + margin-bottom: 0.2em; + border-radius: 0; + } + .ui.serp.card img { + max-width: 100%; + } + .hit-count { + font-weight: bold; + line-height: 1.28571429em; + } + + {# fix RTL dividers #} + {% if locale in ['ar'] %} + .ui.divided.grid:not([class*="vertically divided"])>.column:not(.row), .ui.divided.grid:not([class*="vertically divided"])>.row>.column { + box-shadow: 1px 0 0 0 rgba(34,36,38,.15); + } + nav.ui.divided.grid.column { + box-shadow: 0; + } + .ui.inverted.divided.grid:not([class*="vertically divided"])>.column:not(.row), .ui.inverted.divided.grid:not([class*="vertically divided"])>.row>.column { + box-shadow: 1px 0 0 0 rgba(255,255,255,.1); + } + {% endif %} + {# for fulltext search result highlighting #} .search_highlights em { {# yellow #} @@ -115,7 +144,7 @@ border-radius: 0; } - .ui.card a:hover { + a:hover .ui.card { opacity: 0.75; } @@ -197,7 +226,7 @@
-