diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-01-25 18:21:19 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-01-25 18:21:22 -0800 |
commit | 818776e0854f5f723a08ab0ddaffe00f8b85a67c (patch) | |
tree | 9a6e0873fbf8d78daa86f3dc569313d21f46be3d /fatcat_scholar/static/scholar.css | |
parent | 02c18478fd0fd0539f2be7930c0a4b4fc9bffb60 (diff) | |
download | fatcat-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/static/scholar.css')
-rw-r--r-- | fatcat_scholar/static/scholar.css | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/fatcat_scholar/static/scholar.css b/fatcat_scholar/static/scholar.css index d7a9818..7c78505 100644 --- a/fatcat_scholar/static/scholar.css +++ b/fatcat_scholar/static/scholar.css @@ -70,8 +70,15 @@ nav.ui.menu { } @media only screen and (max-width: 767px) { - .mobile-hide { display: none !important; } - .ui.items>.item>.image:not(.ui) { width: auto }; + .action-bar { + justify-content: left; + } + .mobile-hide { + display: none !important; + } + .ui.items>.item>.image:not(.ui) { + width: auto + }; } @media only screen and (min-width: 768px) { .mobile-only { display: none !important; } @@ -163,7 +170,6 @@ nav.ui.menu { font-weight: bold; } .search-highlights { - padding-top: 0.5em; padding-bottom: 0.5em } @@ -171,10 +177,10 @@ nav.ui.menu { margin-top: 0.2em; } -.search_filters summary::marker { +.search-filters summary::marker { display: none; } -.search_filters summary::-webkit-details-marker { +.search-filters summary::-webkit-details-marker { display: none; } @@ -203,16 +209,17 @@ a:hover .ui.card { display: inline-block; } -details.access-options summary { +details.title-dropdown summary { text-decoration: none; color: inherit; + margin-left: 0; + margin-bottom: 0.3em; } -details.access-options .menu { - margin: 0.5em; - margin-top: 1.5em; +details.title-dropdown .dropdown-menu { + margin-top: 1.0em; width: auto; } -details.access-options .meta { +details.title-dropdown .meta { width: 100%; white-space: nowrap; overflow: hidden; @@ -225,6 +232,14 @@ details.access-options .meta { padding-right: 0.5em; min-width: 10em; } +@media only screen and (max-width: 767px) { + .ui.stackable.grid > .column.biblio-record { + padding-bottom: 0.5em!important; + } + .ui.stackable.grid > .column.serp-right-col { + padding-top: 0!important; + } +} details.serp-action-menu[open] > summary .ui.basic.button { box-shadow: 0 0 0 1px rgba(0,0,0,.15) inset, 0 1px 4px 0 rgba(34,36,38,.15) inset; @@ -278,6 +293,7 @@ details.serp-action-menu > .citation-menu { .external-identifiers > a { color: green; + margin-right: 0.25em; } .translate-icon { |