mirror of
https://github.com/logseq/logseq.git
synced 2026-05-29 23:19:38 +00:00
enhance(mobile): reuse left sidebar style
This commit is contained in:
@@ -444,7 +444,7 @@
|
||||
[close-signal])
|
||||
|
||||
[:<>
|
||||
[:div.left-sidebar-inner.flex-1.flex.flex-col.min-h-0
|
||||
[:div.left-sidebar-inner.as-container.flex-1.flex.flex-col.min-h-0
|
||||
{:key "left-sidebar"
|
||||
:ref ref-el
|
||||
:style (cond-> {}
|
||||
|
||||
@@ -59,12 +59,14 @@
|
||||
}
|
||||
|
||||
.left-sidebar-inner {
|
||||
@apply relative h-full pt-3 overflow-y-auto overflow-x-hidden transition-transform;
|
||||
@apply transform-gpu translate-x-[-100%] z-[3] antialiased;
|
||||
&.as-container {
|
||||
@apply relative h-full pt-3 overflow-y-auto overflow-x-hidden transition-transform;
|
||||
@apply transform-gpu translate-x-[-100%] z-[3] antialiased;
|
||||
|
||||
width: var(--ls-left-sidebar-sm-width);
|
||||
background-color: var(--left-sidebar-bg-color);
|
||||
border-right: 1px solid var(--lx-gray-03, var(--ls-tertiary-background-color));
|
||||
width: var(--ls-left-sidebar-sm-width);
|
||||
background-color: var(--left-sidebar-bg-color);
|
||||
border-right: 1px solid var(--lx-gray-03, var(--ls-tertiary-background-color));
|
||||
}
|
||||
|
||||
> .wrap {
|
||||
@apply flex flex-col relative w-full mt-6;
|
||||
|
||||
@@ -74,7 +74,7 @@ body {
|
||||
}
|
||||
|
||||
ul {
|
||||
@apply !list-disc ml-1 mt-2 list-inside;
|
||||
@apply list-disc ml-1 mt-2 list-inside;
|
||||
|
||||
li {
|
||||
@apply pl-0;
|
||||
@@ -466,4 +466,16 @@ html[data-silk-native-page-scroll-replaced=false] .app-silk-index-scroll-view {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.left-sidebar-inner {
|
||||
@apply -mx-4;
|
||||
|
||||
a {
|
||||
@apply text-gray-12 dark:text-gray-11;
|
||||
|
||||
.page-title {
|
||||
display: flex !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@
|
||||
{:class "flex flex-col items-center p-2"}
|
||||
(silkhq/sidebar-sheet-handle)
|
||||
[:div.w-full.app-silk-popup-content-inner.p-2
|
||||
[:div.sidebar-contents-container.mt-8
|
||||
(container/sidebar-favorites)
|
||||
(container/sidebar-recent-pages)]]))))))
|
||||
[:div.left-sidebar-inner
|
||||
[:div.sidebar-contents-container.mt-8
|
||||
(container/sidebar-favorites)
|
||||
(container/sidebar-recent-pages)]]]))))))
|
||||
|
||||
Reference in New Issue
Block a user