@x33025/sveltely 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -42,15 +42,18 @@
|
|
|
42
42
|
{#if left}
|
|
43
43
|
<div
|
|
44
44
|
class="h-full overflow-hidden border-r border-gray-200 transition-all duration-300 ease-in-out"
|
|
45
|
-
style="width: {leftOpen ? '
|
|
45
|
+
style="width: {leftOpen ? 'var(--navigation-stack-sidebar-width)' : '0'}"
|
|
46
46
|
>
|
|
47
|
-
<div
|
|
47
|
+
<div
|
|
48
|
+
class="vstack h-full overflow-auto bg-gray-50 p-4"
|
|
49
|
+
style="width: var(--navigation-stack-sidebar-width);"
|
|
50
|
+
>
|
|
48
51
|
{@render left()}
|
|
49
52
|
</div>
|
|
50
53
|
</div>
|
|
51
54
|
{/if}
|
|
52
55
|
|
|
53
|
-
<div class="vstack
|
|
56
|
+
<div class="vstack flex-1">
|
|
54
57
|
{#if children}
|
|
55
58
|
{@render children()}
|
|
56
59
|
{/if}
|
|
@@ -59,9 +62,12 @@
|
|
|
59
62
|
{#if right}
|
|
60
63
|
<div
|
|
61
64
|
class="h-full overflow-hidden border-l border-gray-200 transition-all duration-300 ease-in-out"
|
|
62
|
-
style="width: {rightOpen ? '
|
|
65
|
+
style="width: {rightOpen ? 'var(--navigation-stack-sidebar-width)' : '0'}"
|
|
63
66
|
>
|
|
64
|
-
<div
|
|
67
|
+
<div
|
|
68
|
+
class="vstack h-full overflow-auto bg-gray-50 p-4"
|
|
69
|
+
style="width: var(--navigation-stack-sidebar-width);"
|
|
70
|
+
>
|
|
65
71
|
{@render right()}
|
|
66
72
|
</div>
|
|
67
73
|
</div>
|
package/dist/style/index.css
CHANGED
package/dist/style.css
CHANGED
|
@@ -256,9 +256,6 @@
|
|
|
256
256
|
.w-5 {
|
|
257
257
|
width: calc(var(--spacing) * 5);
|
|
258
258
|
}
|
|
259
|
-
.w-64 {
|
|
260
|
-
width: calc(var(--spacing) * 64);
|
|
261
|
-
}
|
|
262
259
|
.w-full {
|
|
263
260
|
width: 100%;
|
|
264
261
|
}
|
|
@@ -562,6 +559,7 @@
|
|
|
562
559
|
--tooltip-font-size: 12px;
|
|
563
560
|
--tooltip-background: var(--color-black);
|
|
564
561
|
--tooltip-text: var(--color-white);
|
|
562
|
+
--navigation-stack-sidebar-width: 16rem;
|
|
565
563
|
}
|
|
566
564
|
}
|
|
567
565
|
@property --tw-rotate-x {
|