@import "util/keyframes"; @import "util/mixin"; @import "component/chip"; @import "component/slider"; @import "component/switch"; @import "component/dialog"; @import "component/button"; @import "component/menu"; @import "component/snackbar"; @import "component/form"; @import "component/text-field"; @import "component/select"; @import "component/list"; @import "business/graph"; @import "business/layout"; @import "business/block"; @import "util/reset"; @import "util/function"; @import "business/history"; @import "business/color"; @import "protyle/protyle"; @import "component/typography"; @import "viewerjs/viewer"; @import "business/export"; @import "business/card"; @import "business/custom"; .block__popover { width: 80vw; } .b3-list--mobile { & > .fn__flex-column { height: 100%; } .b3-list-item { font-size: 16px; line-height: 40px; &__icon { font-size: 18px; line-height: 40px; height: auto; } &__graphic { width: 18px; height: 40px; line-height: 40px; font-size: 18px; } &__toggle { height: auto; padding: 14px; } &__arrow { height: 12px; width: 12px; } &__action { padding: 12px; height: 16px; svg { width: 16px; height: 16px; } } } } .file-tree__sliderDown { height: 0; overflow: hidden; transition: var(--b3-transition); } .counter { margin-left: 4px; padding: 0 8px; color: var(--b3-theme-on-surface-light); border-radius: 4px; user-select: none; background-color: var(--b3-theme-background-light); line-height: 24px; height: 24px; font-size: 16px; } .toolbar { display: flex; align-items: center; max-width: 100vw; background: var(--b3-theme-background); &--border { border-bottom: .5px solid var(--b3-theme-background-light); } &--dark { background-color: var(--b3-theme-surface); } &__icon { height: 16px; width: 16px; padding: 10px; flex-shrink: 0; margin: 6px 4px; color: var(--b3-theme-on-surface); border-radius: 4px; &[disabled] { opacity: 0.38; } &--active { background-color: var(--b3-list-hover); } } &__title { flex: 1; box-shadow: none; min-width: 1px; line-height: 30px; font-size: 17px; padding: 0; border: 0; background-color: transparent; color: var(--b3-theme-on-background); } &__search { margin: 8px; } &__text { @include text-clamp(1); flex: 1; font-size: 17px; } } .side-panel { position: fixed; background-color: var(--b3-theme-surface); height: 100vh; width: 100vw; z-index: 220; transform: translateX(-100vw); transition: transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms; &--all { transform: translateY(-200vh); } } .side-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 219; background-color: #000; opacity: 0; transition: opacity 150ms linear; } #model { .config-about__logo { display: flex; align-items: center; img { width: 36px; } } .config-repos__sync { margin: 0 auto -16px; overflow: hidden; max-height: 180px; display: flex; flex-direction: column; padding-bottom: 16px; } .config-account { &__bg { position: relative; margin-bottom: 82px; width: 100%; flex: 1; } &__cover { position: absolute; top: 0; width: 100%; height: 100%; background-size: cover; background-position: center center; } &__avatar { position: absolute; bottom: 24px; width: 128px; height: 128px; left: 50%; margin-left: -64px; background-repeat: no-repeat; background-position: 50%; background-size: cover; border-radius: 90px; background-color: rgba(255, 255, 255, 0.8); box-shadow: var(--b3-point-shadow); border: 1px solid var(--b3-theme-surface-lighter); } &__info { width: 100%; box-sizing: border-box; padding: 16px; } &__name { bottom: -58px; position: absolute; width: 100%; text-align: center; } } } #menu { transition: transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms; z-index: 220; transform: translateX(100vw); } .keyboard { position: fixed; bottom: 0; width: 100%; box-sizing: border-box; height: 42px; background: var(--b3-theme-background); z-index: 306; display: flex; border-top: 1px solid var(--b3-theme-surface-lighter); overflow: hidden; flex-direction: column; &__dynamic { overflow: auto; display: flex; &::-webkit-scrollbar { display: none; } } &__bar { border-bottom: 1px solid var(--b3-theme-surface-lighter); } &__util { flex: 1; overflow: auto; background-color: var(--b3-theme-surface); } &__split { width: 1px; height: 28px; background-color: var(--b3-theme-surface-lighter); align-self: center; flex-shrink: 0; } &__action { background: transparent; padding: 0; border: 0; color: var(--b3-theme-on-surface); &[disabled] { opacity: 0.38; } &.protyle-toolbar__item--current svg { background-color: var(--b3-list-hover); } svg { height: 16px; width: 16px; float: left; padding: 6px; margin: 6px; border-radius: 4px; &.keyboard__svg--big { width: 30px; padding: 2px 6px; height: 32px; margin: 2px 6px; } } } &__slash { &-title { height: 24px; } &-block { display: flex; padding: 0px 0 8px 8px; } &-item { background-color: var(--b3-theme-background); border-radius: 8px; flex: 1; display: flex; align-items: center; margin-right: 8px; position: relative; box-shadow: inset 0 0 0 .4px var(--b3-theme-on-surface-light); } &-empty { flex: 1; margin-right: 8px; } &-icon { height: 20px; width: 20px; padding: 6px; flex-shrink: 0; margin: 8px 0 8px 8px; font-size: 20px; text-align: center; line-height: 20px; } &-text { line-height: 48px; margin-left: 8px; } } } .svg { fill: currentColor; display: inline-block; stroke-width: 0; stroke: currentColor; width: 14px; height: 14px; &--mid { width: 16px; height: 16px; } &--small { width: 12px; height: 12px; } } #empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; .b3-list-item { width: 200px; } } .b3-menu { &__accelerator { display: none; } } #historyContainer { & > div { flex-direction: column; & > ul { width: auto !important; flex: 1; } } } .status { position: fixed; bottom: -30px; transition: var(--b3-transition); font-size: 12px; color: var(--b3-theme-on-surface); padding: 4px; white-space: nowrap; width: 100%; box-sizing: border-box; background-color: var(--b3-theme-background); @extend .fn__ellipsis; } // iPhone 右上角属性中对不齐 .protyle-wysiwyg--attr .protyle-attr > div:not(.protyle-attr--memo):not(.protyle-attr--refcount) { max-width: 26vw; white-space: nowrap; display: block; } @media (max-width: 620px) { .protyle-wysiwyg [data-node-id].sb[data-sb-layout="col"] { flex-direction: column; flex-wrap: initial; } } @import "util/responsive";