summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates/base.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-20 15:02:51 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-20 15:02:51 -0700
commit5dd7a15db9656fc28f26dac77e5e9f6dc0d4dbc9 (patch)
treecc35bea00d5aec1b56a6184998d530d3086c25d7 /fatcat_scholar/templates/base.html
parent41aa0edaf826cd6561b4b12d1040d403db51e4ea (diff)
downloadfatcat-scholar-5dd7a15db9656fc28f26dac77e5e9f6dc0d4dbc9.tar.gz
fatcat-scholar-5dd7a15db9656fc28f26dac77e5e9f6dc0d4dbc9.zip
html: several small tweaks and accessibility improvements
Diffstat (limited to 'fatcat_scholar/templates/base.html')
-rw-r--r--fatcat_scholar/templates/base.html35
1 files changed, 32 insertions, 3 deletions
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 @@
</div>
</div>
<div class="ui twelve wide column">
- <form class="" id="search_form" action="{{ lang_prefix }}/search" method="get" role="search" aria-label="papers" itemprop="potentialAction" itemscope itemtype="https://schema.org/SearchAction">
+ <form class="" id="search_form" name="search_form" action="{{ lang_prefix }}/search" method="get" role="search" aria-label="papers" itemprop="potentialAction" itemscope itemtype="https://schema.org/SearchAction">
<meta itemprop="target" content="https://{{ settings.SCHOLAR_DOMAIN }}/fulltext/search?q={q}"/>
<div class="ui form">
<div class="ui action input large fluid">
@@ -235,7 +264,7 @@
</div>
<div class="one wide column computer only"></div>
<div class="thirteen wide twelve wide computer column">
- <h3>Internet Archive</h3>
+ <h4 style="font-size: 1.28571429rem;">Internet Archive</h4>
<p style="color: rgba(255, 255, 255, 0.5);">
{% trans %}We are a US 501(c)(3) non-profit library, building a global archive of Internet sites and other cultural artifacts in digital form.{% endtrans %}