diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-01-19 17:31:44 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-01-19 19:49:39 -0800 |
commit | 09f10227b2ce140c969bed934508d51a6b74204d (patch) | |
tree | 7f6361c83f72fffe055e429111bb6b740ce6b1fc /fatcat_scholar/templates | |
parent | 25512c3557900612bfab2924a4ef1e0c7519c467 (diff) | |
download | fatcat-scholar-09f10227b2ce140c969bed934508d51a6b74204d.tar.gz fatcat-scholar-09f10227b2ce140c969bed934508d51a6b74204d.zip |
html: tweak hover thumbnail CSS
Diffstat (limited to 'fatcat_scholar/templates')
-rw-r--r-- | fatcat_scholar/templates/base.html | 15 | ||||
-rw-r--r-- | fatcat_scholar/templates/search_macros.html | 2 |
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 %} |