aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates/base.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-01-19 17:03:26 -0800
committerBryan Newbold <bnewbold@archive.org>2021-01-19 19:49:39 -0800
commit25512c3557900612bfab2924a4ef1e0c7519c467 (patch)
tree20c94ac11b73424a571f8a16760b1d3a4d921ee8 /fatcat_scholar/templates/base.html
parent556212846e5f25c6b14e69fc08ba5916ba869ece (diff)
downloadfatcat-scholar-25512c3557900612bfab2924a4ef1e0c7519c467.tar.gz
fatcat-scholar-25512c3557900612bfab2924a4ef1e0c7519c467.zip
html: replace citation modal with a click-behavior window
Diffstat (limited to 'fatcat_scholar/templates/base.html')
-rw-r--r--fatcat_scholar/templates/base.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html
index 3d19004..ab11f50 100644
--- a/fatcat_scholar/templates/base.html
+++ b/fatcat_scholar/templates/base.html
@@ -247,6 +247,42 @@
overflow: auto;
}
+ 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;
+ background: #f8f8f8!important;
+ }
+ details.serp-action-menu > summary {
+ list-style: none;
+ }
+ details.serp-action-menu > summary::-webkit-details-marker {
+ display: none;
+ }
+ details.serp-action-menu > .citation-menu {
+ min-width: 50em;
+ height: auto;
+ position: absolute;
+ display: block;
+ background: #fff;
+ box-shadow: 0 2px 3px 0 rgba(34,36,38,.15);
+ border: 1px solid rgba(34,36,38,.15);
+ z-index: 11;
+ min-width: 30em;
+ border-radius: .28571429rem;
+ right: 50%;
+ margin-top: -2em;
+ margin-right: 1.5em;
+ padding: 1em;
+ }
+ @media only screen and (max-width: 767px) {
+ details.serp-action-menu > .citation-menu {
+ overflow-x: scroll;
+ width: calc(100vw - 3em);
+ height: auto;
+ min-width: 0;
+ left: 0.5em;
+ margin-top: 0em;
+ }
+ }
</style>
<link rel="icon"
type="image/x-icon"