@supports (padding: max(0px)) { .post { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); } } #app-container { background-color: or(--logseq-og-top-bar-background, --lx-gray-01, --ls-primary-background-color, #fff); position: relative; } .dark #app-container { background-color: or(--logseq-og-top-bar-background, --lx-gray-02, --ls-primary-background-color, #fff); } #root { > div { color: or(--logseq-og-document-text-color, --lx-gray-12, --ls-primary-text-color, #24292e); font-size: var(--ls-page-text-size); } } #app-container { display: flex; flex: 0 0 100%; } #skip-to-main { @apply fixed p-2 rounded; left: 50%; transform: translate(-50%, 0); background-color: var(--ls-secondary-background-color); top: -100px; z-index: 10000; transition: top 0.3s; &:focus { top: 20px; } } #left-container { @apply flex flex-1 flex-col relative h-screen; } #main-container { /* Hack: (overflow-y) to fix sticky header not working */ /* To reproduce: quick creating blocks */ overflow-y: hidden; position: relative; height: 100%; transition: padding-left .3s; &.is-left-sidebar-open { padding-left: 0; @screen sm { padding-left: var(--ls-left-sidebar-width); } } } #main-content { position: relative; height: calc(100vh - var(--ls-headbar-height)); } #main-content-container { @apply p-4 sm:px-8; font-size: 1em; } #main-content-container[data-is-margin-less-pages=true] { padding: 0 !important; position: relative; overflow: auto; } .dark .left-sidebar-inner { background-color: or(--lx-gray-01, --ls-primary-background); } .left-sidebar-inner { position: relative; height: 100%; padding-top: 12px; width: var(--ls-left-sidebar-sm-width); overflow-y: auto; overflow-x: hidden; background-color: or(--lx-gray-02, --ls-primary-background-color); transition: transform .3s; transform: translate3d(-100%, 0, 0); z-index: 3; -webkit-font-smoothing: antialiased; > .wrap { height: calc(100vh - var(--ls-headbar-inner-top-padding) - 50px); margin-top: 30px; width: 100%; padding-top: var(--ls-win32-title-bar-height); > .fake-bar { @apply w-full px-5 pt-1 sm:hidden; top: -45px; } } .dropdown-wrapper { min-width: 180px; margin-top: 1px; .menu-link { padding: 5px 15px; opacity: .8; &:hover { opacity: 1; } } } .page-icon { @apply flex items-center mr-1 align-baseline; width: 20px; flex-shrink: 0; height: 18px; text-align: center; display: inline-block; line-height: 1em; } a.item { @apply px-2 py-2 sm:py-1.5; user-select: none; transition: background-color .3s; .ui__icon { width: 20px; text-align: center; font-size: 16px; margin-right: 8px; opacity: .9; position: relative; } &:hover { background-color: or(--logseq-og-left-sidebar-hover-background, --lx-gray-04, --ls-tertiary-background-color); color: or(--logseq-og-left-sidebar-text-color-hover, --lx-gray-12, --ls-header-button-background); } &.active, &:active { background-color: or(--logseq-og-left-sidebar-active-background, --lx-gray-05, --ls-quaternary-background-color); color: or(--logseq-og-left-sidebar-active-text-color, --lx-gray-12, --ls-quaternary-background-color); } } .nav-contents-container { @apply h-full flex-grow-0 flex-grow-0 overflow-x-hidden overflow-y-auto; padding-bottom: 60px; &.is-scrolled { border-top: 1px solid var(--ls-tertiary-border-color); } } .nav-content-item { &-inner { border-radius: 8px; } .header { @apply px-6 py-1; display: flex; justify-content: space-between; align-items: center; user-select: none; cursor: pointer; > span { > a { padding-left: 12px; display: none; transition: none; &:last-child { transform: translateY(-6px) translateX(2px) rotate(90deg); transform-origin: center center; transition: .15s transform; } } } &:hover { background-color: or(--lx-gray-04, --ls-tertiary-background-color); * { opacity: 1 !important; } > span { > a { display: block; &:last-child { display: block; opacity: .6; } } } } .wrap-th { > span { font-size: 11px; font-weight: 600; } } } .bd { display: none; ul { list-style: none; padding: 0; margin: 0; li { margin: 0; } a { width: 100%; padding: 4px 24px; transition: background-color .3s; .page-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-grow: 1; } .page-icon { display: flex; align-items: center; } &:hover { background-color: or(--lx-gray-04, --ls-quaternary-background-color); } } } } &.is-expand { .header > span > a { &:last-child { transform: translateY(2px) translateX(-3px); } } .bd { display: block; } } } .create { position: absolute; bottom: 0; left: 0; width: 100%; padding: 14px; background-image: linear-gradient(transparent, var(--ls-primary-background-color)); user-select: none; @screen sm { background-image: linear-gradient(transparent, or(--logseq-og-left-sidebar-bottom-gradient, --lx-gray-02, --ls-secondary-background-color)); .dark & { background-image: linear-gradient(transparent, or(--logseq-og-left-sidebar-bottom-gradient, --lx-gray-01, --ls-secondary-background-color)); } } &-link { background-color: var(--ls-primary-background-color); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); } .dropdown-wrapper { top: initial; right: initial; bottom: calc(100% + 6px); left: 0; width: max-content; @screen sm { bottom: 0; left: calc(100% + 6px); } } #create-button { @apply flex items-center justify-center p-2 text-sm font-medium rounded-md w-full border; background-color: or(--lx-gray-03, --ls-secondary-background-color) !important; border-color: transparent; &:hover, &:focus { border-color: var(--ls-border-color); background-color: or(--lx-gray-03, --ls-primary-background-color) !important; } @screen sm { background-color: or(--lx-gray-03, --ls-primary-background-color) !important; &:hover, &:focus { background-color: or(--lx-gray-04, --ls-secondary-background-color) !important; } } } } @screen sm { padding-top: 0; width: var(--ls-left-sidebar-width); background-color: or(--lx-gray-02, --ls-secondary-background-color); .dark & { background-color: or(--logseq-og-left-sidebar-background, --lx-gray-01, --ls-secondary-background-color); } > .wrap { margin-top: 52px; } .create { &-link { background-color: var(--ls-primary-background-color); } } } } .cp__sidebar-left-layout { position: fixed; top: 0; left: 0; z-index: var(--ls-z-index-level-5); width: 10px; a { @apply opacity-90 hover:opacity-100; transition: all 120ms ease-out; color: or(--logseq-og-left-sidebar-text-color, --lx-gray-11, --ls-header-button-background); } > .left-sidebar-inner { padding-top: var(--ls-headbar-inner-top-padding); } > .shade-mask { background-color: rgba(0, 0, 0, .7); position: absolute; top: 0; left: 0; bottom: 0; right: 0; z-index: 1; opacity: 0; transition: opacity .4s; touch-action: none; } &.is-touching { width: 100% !important; transition: none; .left-sidebar-inner { transition: none !important; } > .shade-mask { transition: none !important; z-index: 1; } } &.is-open { width: 100%; .left-sidebar-inner { transform: translate3d(0, 0, 0); overflow: hidden; } > .shade-mask { opacity: 1; z-index: 1; } } &.is-closing { .left-sidebar-inner { transition: transform .3s; transform: translate3d(-100%, 0, 0) !important; } > .shade-mask { opacity: 0; z-index: 1; } } &:before { content: " "; height: 3rem; background-color: var(--ls-primary-background-color); position: fixed; left: 0; top: 0; opacity: 1; z-index: 5; } @screen sm { width: 0; z-index: var(--ls-z-index-level-1); transition: width .3s; &:before { background-color: or(--lx-gray-02, --ls-secondary-background-color); width: 0; overflow: hidden; } &.is-open { width: var(--ls-left-sidebar-width); .left-sidebar-inner { overflow: visible; } } > .shade-mask { display: none; } } } .ls-left-sidebar-open { @screen sm { .cp__header > .r { display: flex; } } } .ls-window-controls { &.ls-right-sidebar-open { .cp__right-sidebar-topbar { margin-right: 144px; .is-fullscreen & { margin-right: 48px; } } } &:not(.ls-right-sidebar-open) { .cp__header > .r { margin-right: 144px; .is-fullscreen & { margin-right: 48px; } } } } .ls-wide-mode { .cp__sidebar-main-content { max-width: var(--ls-main-content-max-width-wide); } } html[data-theme='dark'] { #left-sidebar { > .shade-mask { background-color: rgba(0, 0, 0, .15); } } } .settings-modal { @apply -m-8 rounded-lg; /* box-shadow: inset 0 0 0 1px var(--ls-border-color); */ } .cp__sidebar-main-layout { background-color: or(--logseq-og-main-content-background, --lx-gray-01, --ls-primary-background-color); } .dark .cp__sidebar-main-layout { background-color: or(--logseq-og-main-content-background, --lx-gray-02, --ls-primary-background-color); } .cp__sidebar-main-content { width: 100%; max-width: var(--ls-main-content-max-width); flex: 1; } .cp__sidebar-help { &-docs { @apply ml-2 mt-1; td { word-break: break-all; } th { width: 80%; } } &-btn { @apply fixed bottom-4 right-8; > .inner { @apply font-bold rounded-full h-8 w-8 flex items-center justify-center font-bold select-none cursor-help; background-color: or(--lx-gray-01, --ls-secondary-background-color); } } } .cp__right-sidebar { z-index: var(--ls-z-index-level-1); transition: width 0.3s; background-color: or(--lx-gray-01, --ls-secondary-background-color, #d8e1e8); position: relative; user-select: none; .resizer { @apply absolute top-0 bottom-0; touch-action: none; left: 0; width: 4px; user-select: none; cursor: col-resize !important; transition: background-color 300ms; transition-delay: 300ms; z-index: 1000; &:hover, &:focus, &:active { background-color: var(--ls-active-primary-color); } } &.closed { width: 0 !important; @screen lg { width: 4px !important; } } &.open { max-width: 60vw; } &-scollable { min-height: 100%; overflow-y: scroll; } &-inner { padding-top: 0; } &-settings { @apply flex flex-row; margin-bottom: 0; margin-top: 0; overflow: auto; &-btn { display: block; white-space: nowrap; } } &-topbar { position: sticky; position: -webkit-sticky; top: 0; left: 0; right: 0; background-color: or(--lx-gray-01, --ls-secondary-background-color, #d8e1e8); z-index: 999; user-select: none; -webkit-app-region: drag; a, svg, button { -webkit-app-region: no-drag; } } .page { margin-top: 0; } .non-block-editor textarea, pre, pre.code { margin: 0; padding: 0; font-size: 90%; background: none; } .references { margin-left: 12px; } .sidebar-item { @apply p-4; .close { transform: scale(0.8); transition: transform 0.1s; &:hover { transform: scale(1); } } } } .cp__sidebar-main-content[data-is-full-width='true'] { max-width: 100vw; } .cp__sidebar-main-content[data-is-margin-less-pages='true'] { padding: 0; } .cp__menubar-repos { .title-wrap { line-height: 1.2em; padding: 1px 0; } } /* Workaround for Linux Intel GPU text rendering issue GH#7233 */ .is-electron.is-linux .cp__menubar-repos { #repo-switch, .nav-header .flex-1 { position: relative; } } @supports not (overflow-y: overlay) { .scrollbar-spacing { overflow-y: auto; } } @supports (overflow-y: overlay) { .scrollbar-spacing { overflow-y: overlay; } } .favorites li.dragging-target { border-left: 5px solid green; } .full-height-without-header { height: calc(100vh - var(--ls-headbar-height) - 4rem); } a.ui__modal-close svg, a.close svg, span.rotating-arrow svg { color: var(--ls-primary-text-color); } a.ui__modal-close, a.close { color: var(--ls-primary-text-color); opacity: 0.6; } a.ui__modal-close:hover, a.close:hover { opacity: 1; }