diff --git a/app/src/assets/scss/base.scss b/app/src/assets/scss/base.scss index 74ef0da56..526f23cf1 100644 --- a/app/src/assets/scss/base.scss +++ b/app/src/assets/scss/base.scss @@ -59,7 +59,7 @@ ctrl+p 搜索: 202 .keyboard: 222 // 需小于 .b3-dialog 关于中的锁屏密码设置 -.side-panel: 220 +#menu & .side-panel: 220 // 需小于 #windowControls // 需大于 .protyle-util https://github.com/siyuan-note/siyuan/issues/5069 diff --git a/app/src/assets/scss/component/_menu.scss b/app/src/assets/scss/component/_menu.scss index 885093f70..c2e7a545b 100644 --- a/app/src/assets/scss/component/_menu.scss +++ b/app/src/assets/scss/component/_menu.scss @@ -27,7 +27,7 @@ } &--fullscreen { - top: 35px; + top: 0; left: 0; width: 100%; border: 0; @@ -36,6 +36,7 @@ right: 0; max-height: none; padding: 0; + border-radius: 0; .b3-menu { &__submenu { @@ -57,6 +58,7 @@ border-bottom: .5px solid var(--b3-theme-background-light); line-height: 42px; background-color: var(--b3-theme-background); + text-decoration: none; &:last-child { margin-bottom: 24px; @@ -84,6 +86,9 @@ padding: 0 8px; display: flex; background-color: var(--b3-theme-background); + position: sticky; + top: 0; + z-index: 1; } &__separator { @@ -101,6 +106,7 @@ height: 17px; width: 17px; margin: 0 16px 0 8px; + border-radius: 4px; &--arrow { width: 12px; @@ -160,8 +166,9 @@ align-content: flex-start; .b3-menu__item { - min-width: auto; - margin-top: 7px; + width: auto; + height: 32px; + padding: 8px; } .b3-menu__label { diff --git a/app/src/assets/scss/mobile.scss b/app/src/assets/scss/mobile.scss index d50cce0e7..c3b723210 100644 --- a/app/src/assets/scss/mobile.scss +++ b/app/src/assets/scss/mobile.scss @@ -102,6 +102,7 @@ box-shadow: none; min-width: 1px; line-height: 30px; + font-size: 17px; &:focus, &:hover { @@ -121,42 +122,22 @@ .side-panel { top: 0; - left: auto; - right: -100vw; + left: -110vw; + right: auto; position: fixed; background-color: var(--b3-theme-surface); height: 100vh; - width: 80vw; + width: 100vw; z-index: 220; - transition: top .15s cubic-bezier(0, 0, .2, 1) 0ms, left .15s cubic-bezier(0, 0, .2, 1) 0ms, right .15s cubic-bezier(0, 0, .2, 1) 0ms; - - &--left { - left: -100vw; - right: auto; - } + transition: top .15s cubic-bezier(0, 0, .2, 1) 0ms, left .15s cubic-bezier(0, 0, .2, 1) 0ms; &--all { - width: 100vw; + left: 0; right: 0; top: -200vh; } } -.scrim { - background-color: rgba(0, 0, 0, 0.32); - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 1; - z-index: 4; - transition: opacity 150ms linear; - animation-duration: 1s; - animation-fill-mode: both; - animation-name: fadeIn; -} - #model { .config-about__logo { display: flex; @@ -224,8 +205,11 @@ } } -#menu img.b3-list-item__graphic { - border-radius: 4px; +#menu { + transition: right 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms; + z-index: 220; + right: -110vw; + left: auto; } .keyboard { diff --git a/app/src/assets/template/mobile/index.tpl b/app/src/assets/template/mobile/index.tpl index 59fd4619c..957b91ada 100644 --- a/app/src/assets/template/mobile/index.tpl +++ b/app/src/assets/template/mobile/index.tpl @@ -27,14 +27,15 @@
-
-