aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat_scholar')
-rw-r--r--fatcat_scholar/templates/base.html15
-rw-r--r--fatcat_scholar/templates/search_macros.html2
2 files changed, 16 insertions, 1 deletions
diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html
index ab11f50..56b10c3 100644
--- a/fatcat_scholar/templates/base.html
+++ b/fatcat_scholar/templates/base.html
@@ -53,6 +53,21 @@
box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.3);
}
+ .ui.labeled.icon.button.serp-button .menu.fulltext-thumbnail {
+ left: calc(-100% - 1.6em);
+ margin-top: -2.4em;
+ background-color: black;
+ min-width: 186px;
+ border: 3px solid black;
+ border-bottom: 0;
+ box-shadow: none;
+ }
+
+ .ui.labeled.icon.button.serp-button .menu.fulltext-thumbnail:after {
+ z-index: -1;
+ background-color: black;
+ }
+
.action-bar {
display: flex;
justify-content: center;
diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html
index 1312aed..fab9510 100644
--- a/fatcat_scholar/templates/search_macros.html
+++ b/fatcat_scholar/templates/search_macros.html
@@ -227,7 +227,7 @@
Other
{% endif %}
{% if paper.fulltext and paper.fulltext.thumbnail_url %}
- <div class="menu" style="left: -110%; margin-top: -2.5em;">
+ <div class="menu fulltext-thumbnail">
<img src="{{ paper.fulltext.thumbnail_url }}" alt="fulltext thumbnail" loading="lazy">
</div>
{% endif %}