mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-11-17 16:31:44 +08:00
style(mobile): background for whole bottom area + fix alignment
This commit is contained in:
parent
6e2444d74f
commit
336e298462
@ -184,13 +184,16 @@ export default class MobileLayout {
|
|||||||
.child(new ProtectedSessionPasswordDialog())
|
.child(new ProtectedSessionPasswordDialog())
|
||||||
.child(new ConfirmDialog())
|
.child(new ConfirmDialog())
|
||||||
)
|
)
|
||||||
|
.child(new FlexContainer("column")
|
||||||
|
.contentSized()
|
||||||
|
.id("mobile-bottom-bar")
|
||||||
.child(new TabRowWidget().css('height', '40px'))
|
.child(new TabRowWidget().css('height', '40px'))
|
||||||
.child(new FlexContainer("row")
|
.child(new FlexContainer("row")
|
||||||
.class("horizontal")
|
.class("horizontal")
|
||||||
.css("height", "53px")
|
.css("height", "53px")
|
||||||
.child(new LauncherContainer(true))
|
.child(new LauncherContainer(true))
|
||||||
.child(new GlobalMenuWidget(true))
|
.child(new GlobalMenuWidget(true))
|
||||||
.id("launcher-pane"))
|
.id("launcher-pane")))
|
||||||
.child(new AboutDialog())
|
.child(new AboutDialog())
|
||||||
.child(new HelpDialog())
|
.child(new HelpDialog())
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,6 +22,7 @@
|
|||||||
:root {
|
:root {
|
||||||
--submenu-opening-delay: 300ms;
|
--submenu-opening-delay: 300ms;
|
||||||
--launcher-pane-size: 53px;
|
--launcher-pane-size: 53px;
|
||||||
|
--mobile-bottom-offset: calc(env(safe-area-inset-bottom) * 0.75);
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
@ -57,7 +58,10 @@ body.mobile.context-menu-shown * {
|
|||||||
|
|
||||||
body.mobile #root-widget {
|
body.mobile #root-widget {
|
||||||
padding-top: env(safe-area-inset-top);
|
padding-top: env(safe-area-inset-top);
|
||||||
padding-bottom: calc(env(safe-area-inset-bottom) * 0.75);
|
}
|
||||||
|
|
||||||
|
#mobile-bottom-bar {
|
||||||
|
padding-bottom: var(--mobile-bottom-offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
body.desktop #root-widget.horizontal-layout {
|
body.desktop #root-widget.horizontal-layout {
|
||||||
@ -1190,7 +1194,7 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {
|
|||||||
|
|
||||||
body.mobile #launcher-pane .dropdown-menu.show {
|
body.mobile #launcher-pane .dropdown-menu.show {
|
||||||
position: fixed !important;
|
position: fixed !important;
|
||||||
bottom: var(--launcher-pane-size) !important;
|
bottom: calc(var(--mobile-bottom-offset) + var(--launcher-pane-size)) !important;
|
||||||
top: unset !important;
|
top: unset !important;
|
||||||
left: 0 !important;
|
left: 0 !important;
|
||||||
right: 0 !important;
|
right: 0 !important;
|
||||||
|
|||||||
@ -113,7 +113,16 @@ body.layout-horizontal > .horizontal {
|
|||||||
#launcher-pane.horizontal {
|
#launcher-pane.horizontal {
|
||||||
height: var(--launcher-pane-size) !important;
|
height: var(--launcher-pane-size) !important;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-top: 1px solid var(--launcher-pane-horizontal-border-color);
|
}
|
||||||
|
|
||||||
|
@media (max-width: 991px) {
|
||||||
|
#mobile-bottom-bar {
|
||||||
|
background: var(--launcher-pane-background-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
#launcher-pane {
|
||||||
|
background: transparent !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 992px) {
|
@media (min-width: 992px) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user