aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-01-25 18:21:19 -0800
committerBryan Newbold <bnewbold@archive.org>2021-01-25 18:21:22 -0800
commit818776e0854f5f723a08ab0ddaffe00f8b85a67c (patch)
tree9a6e0873fbf8d78daa86f3dc569313d21f46be3d /fatcat_scholar/templates
parent02c18478fd0fd0539f2be7930c0a4b4fc9bffb60 (diff)
downloadfatcat-scholar-818776e0854f5f723a08ab0ddaffe00f8b85a67c.tar.gz
fatcat-scholar-818776e0854f5f723a08ab0ddaffe00f8b85a67c.zip
html: several UI fixes and tweaks
- title and highlight box misalignment - circle buttons ("action bar") alignment to left on mobile - vertical alignment of action bar and access buttons on mobile - smaller whitespace when no highlight/abstract
Diffstat (limited to 'fatcat_scholar/templates')
-rw-r--r--fatcat_scholar/templates/base.html2
-rw-r--r--fatcat_scholar/templates/search.html2
-rw-r--r--fatcat_scholar/templates/search_macros.html21
3 files changed, 11 insertions, 14 deletions
diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html
index 85ddd25..af73d10 100644
--- a/fatcat_scholar/templates/base.html
+++ b/fatcat_scholar/templates/base.html
@@ -52,7 +52,7 @@
<img class="mobile-hide" src="/static/ia-wordmark.svg" style="margin-left: 10px; width: 180px;" alt="Internet Archive">
</a>
<span style="margin-top: 0.5em;">
- <a class="ui grey label" style="background-color: #fbbd08a6;" href="{{ lang_prefix }}/help#bugs"><i>alpha</i></a>
+ <a class="ui grey label" href="{{ lang_prefix }}/help#bugs"><i>alpha</i></a>
</span>
<div class="right menu">
diff --git a/fatcat_scholar/templates/search.html b/fatcat_scholar/templates/search.html
index a4a5ba4..2f2149e 100644
--- a/fatcat_scholar/templates/search.html
+++ b/fatcat_scholar/templates/search.html
@@ -31,7 +31,7 @@
<div class="tablet-only" style="margin-top: 1.0em;">
- <details class="search_filters">
+ <details class="search-filters">
<summary style="float: right;"><i class="filter icon"></i>{{ _("Filters") }}</summary>
<div style="display: flex; align-items: flex-start; column-gap: 2em; row-gap: 2em; flex-wrap: wrap; padding-bottom:1.5em;">
{{ search_macros.query_option(query.time_options, query.filter_time) }}
diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html
index 0f43142..0e6b3f0 100644
--- a/fatcat_scholar/templates/search_macros.html
+++ b/fatcat_scholar/templates/search_macros.html
@@ -31,25 +31,25 @@
{# NOTE: should be able to call with paper.biblio or any paper.release[] #}
<span class="external-identifiers">
{% if biblio.doi %}
- <a target="_blank" rel="external noopener noreferrer" href="https://doi.org/{{ biblio.doi }}">doi:{{ biblio.doi }}</a> &nbsp;
+ <a target="_blank" rel="external noopener noreferrer" href="https://doi.org/{{ biblio.doi }}">doi:{{ biblio.doi }}</a>
{% endif %}
{% if biblio.pmid %}
- <a target="_blank" rel="external noopener" href="https://www.ncbi.nlm.nih.gov/pubmed/{{ biblio.pmid }}">pmid:{{ biblio.pmid }}</a> &nbsp;
+ <a target="_blank" rel="external noopener" href="https://www.ncbi.nlm.nih.gov/pubmed/{{ biblio.pmid }}">pmid:{{ biblio.pmid }}</a>
{% endif %}
{% if biblio.pmcid %}
- <a target="_blank" rel="external noopener" href="https://pubmed.ncbi.nlm.nih.gov/{{ biblio.pmcid }}/">pmcid:{{ biblio.pmcid }}</a> &nbsp;
+ <a target="_blank" rel="external noopener" href="https://pubmed.ncbi.nlm.nih.gov/{{ biblio.pmcid }}/">pmcid:{{ biblio.pmcid }}</a>
{% endif %}
{% if biblio.arxiv_id %}
- <a target="_blank" rel="external noopener" href="https://arxiv.org/abs/{{ biblio.arxiv_id }}">arXiv:{{ biblio.arxiv_id }}</a> &nbsp;
+ <a target="_blank" rel="external noopener" href="https://arxiv.org/abs/{{ biblio.arxiv_id }}">arXiv:{{ biblio.arxiv_id }}</a>
{% endif %}
{% if biblio.dblp_id %}
- <a target="_blank" rel="external noopener" href="https://dblp.org/rec/{{ biblio.dblp_id }}.html">dblp:{{ biblio.dblp_id }}</a> &nbsp;
+ <a target="_blank" rel="external noopener" href="https://dblp.org/rec/{{ biblio.dblp_id }}.html">dblp:{{ biblio.dblp_id }}</a>
{% endif %}
{% if biblio.doaj_id %}
- <a target="_blank" rel="external noopener" href="https://doaj.org/article/{{ biblio.doaj_id }}">doaj:{{ biblio.doaj_id }}</a> &nbsp;
+ <a target="_blank" rel="external noopener" href="https://doaj.org/article/{{ biblio.doaj_id }}">doaj:{{ biblio.doaj_id }}</a>
{% endif %}
{% if biblio.release_ident or biblio.ident %}
- <a target="_blank" rel="external noopener" href="https://fatcat.wiki/release/{{ biblio.release_ident or biblio.ident }}">fatcat:{{ biblio.release_ident or biblio.ident }}</a> &nbsp;
+ <a target="_blank" rel="external noopener" href="https://fatcat.wiki/release/{{ biblio.release_ident or biblio.ident }}">fatcat:{{ biblio.release_ident or biblio.ident }}</a>
{% endif %}
</span>
{% endmacro %}
@@ -173,7 +173,7 @@
<div class="ui stackable doubling grid">
<div class="thirteen wide column biblio-record">
-<details class="access-options" {% if expand %}open{% endif %}>
+<details class="title-dropdown" {% if expand %}open{% endif %}>
<summary>
{# ### TITLE ROW #}
<h3 class="biblio-title">
@@ -230,7 +230,7 @@
{{ journal_row(paper.biblio, paper) }}
</summary>
-<div class="menu">
+<div class="dropdown-menu">
{# ### FULLTEXT ACCESS OPTIONS #}
<h4 class="ui horizontal divider header">
{% trans %}Preserved Fulltext{% endtrans %}
@@ -302,7 +302,6 @@
<div class="ui fitted divider"></div>
{% for release in paper.releases if release.ident == paper.fulltext.release_ident %}
{{ journal_row(release, paper) }}
- <br>
{{ external_identifiers(release) }}
{% endfor %}
<div class="ui fitted divider"></div>
@@ -379,8 +378,6 @@
{{ paper.abstracts[0].body }}
{% endif %}
</div>
- {% else %}
- <br>
{% endif %}
{# ### IDENTIFIERS #}