summaryrefslogtreecommitdiff
path: root/assets/css
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-08-29 23:07:51 +0800
committerEltrac <hi@guhub.cn>2025-08-29 23:07:51 +0800
commit9fb87cc00feb020d3b8ad2a7a72e357f5c236c48 (patch)
treef86ded53a13e6bd98e7b8821500f312746ded31b /assets/css
parent3143a811a8f2d8821a0d034cc1cf561954e7a8d3 (diff)
fix: footnote popover gets blocked in small screen
Removed media query and keep popover style consistent across all kinds of devices. It turns out just fine. Former-commit-id: 77a7a3de173f63e291f1e9234ea7213676bcc364
Diffstat (limited to 'assets/css')
-rw-r--r--assets/css/components/_littlefoot.scss31
1 files changed, 3 insertions, 28 deletions
diff --git a/assets/css/components/_littlefoot.scss b/assets/css/components/_littlefoot.scss
index d3a75b77..e57722ad 100644
--- a/assets/css/components/_littlefoot.scss
+++ b/assets/css/components/_littlefoot.scss
@@ -24,6 +24,7 @@
--popover-width:15em;
--popover-scroll-indicator-color:#3f3f3f;
--popover-tooltip-size:0.5rem;
+ --popover-z-index: 30;
position:relative;
@media (prefers-color-scheme: dark) {
@@ -80,7 +81,7 @@
transform-origin:var(--popover-transform-origin);
transition:var(--popover-transition);
width:var(--popover-width);
- z-index:10
+ z-index:var(--popover-z-index);
}
.littlefoot__popover.is-above{
bottom:0;
@@ -91,7 +92,7 @@
}
.littlefoot__wrapper{
position:relative;
- z-index:10
+ z-index:var(--popover-z-index);
}
.littlefoot__content,.littlefoot__wrapper{
border-radius:var(--popover-border-radius)
@@ -163,32 +164,6 @@
.is-above .littlefoot__tooltip{
bottom:var(--tooltip-margin)
}
-@media (max-width:767.98px){
- .littlefoot__popover{
- border-radius:0;
- border-width:1px 0 0;
- bottom:0!important;
- left:0!important;
- margin:0;
- max-width:100%!important;
- position:fixed;
- right:0!important;
- top:auto!important;
- transform:translateY(100%);
- width:100%
- }
- .littlefoot__popover.is-active{
- transform:translateY(0)
- }
- .littlefoot__wrapper{
- border-radius:0;
- max-width:100%!important;
- transform:none
- }
- .littlefoot__tooltip{
- display:none
- }
-}
@media not print{
.littlefoot--print{
display:none