mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
feat(mobile): immersive header & footer (proof of concept)
This commit is contained in:
parent
ab5a6c59b8
commit
8a8179ea4f
@ -147,6 +147,7 @@ export default class MobileLayout {
|
||||
.css("position", "relative")
|
||||
.child(
|
||||
new FlexContainer("row")
|
||||
.id("title-bar")
|
||||
.contentSized()
|
||||
.css("font-size", "larger")
|
||||
.css("align-items", "center")
|
||||
|
@ -12,6 +12,18 @@ const TPL = `\
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.geo-map-container {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.leaflet-top {
|
||||
margin-top: calc(env(safe-area-inset-top) + var(--mobile-title-bar-height));
|
||||
}
|
||||
|
||||
.leaflet-top,
|
||||
.leaflet-bottom {
|
||||
z-index: 900;
|
||||
|
@ -23,6 +23,7 @@
|
||||
--submenu-opening-delay: 300ms;
|
||||
--launcher-pane-size: 53px;
|
||||
--mobile-bottom-offset: calc(env(safe-area-inset-bottom) * 0.75);
|
||||
--mobile-title-bar-height: 36px;
|
||||
}
|
||||
|
||||
html {
|
||||
@ -66,6 +67,21 @@ body.mobile #root-widget {
|
||||
padding-bottom: var(--mobile-bottom-offset);
|
||||
}
|
||||
|
||||
#title-bar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 9999;
|
||||
padding-top: env(safe-area-inset-top);
|
||||
}
|
||||
|
||||
#title-bar,
|
||||
#mobile-bottom-bar {
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
backdrop-filter: blur(16px);
|
||||
}
|
||||
|
||||
body.desktop #root-widget.horizontal-layout {
|
||||
padding-top: env(safe-area-inset-top);
|
||||
background-color: var(--launcher-pane-background-color);
|
||||
|
Loading…
x
Reference in New Issue
Block a user