@farming-labs/svelte-theme 0.0.18 → 0.0.20

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/svelte-theme",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "Svelte UI components for @farming-labs/docs — layout, sidebar, TOC, search, and theme toggle",
5
5
  "keywords": [
6
6
  "docs",
@@ -82,8 +82,8 @@
82
82
  "dependencies": {
83
83
  "gray-matter": "^4.0.3",
84
84
  "sugar-high": "^0.9.5",
85
- "@farming-labs/docs": "0.0.18",
86
- "@farming-labs/svelte": "0.0.18"
85
+ "@farming-labs/docs": "0.0.20",
86
+ "@farming-labs/svelte": "0.0.20"
87
87
  },
88
88
  "peerDependencies": {
89
89
  "svelte": ">=5.0.0"
@@ -140,6 +140,28 @@ code:not(pre code) {
140
140
  border-radius: 0 !important;
141
141
  }
142
142
 
143
+ /* ─── Docs grid: sidebar (sticky left, full height) — no clipping ─────── */
144
+ @media (min-width: 1024px) {
145
+ .fd-layout {
146
+ grid-template-columns: var(--fd-sidebar-width) 1fr;
147
+ }
148
+ .fd-sidebar {
149
+ position: sticky;
150
+ top: 0;
151
+ align-self: start;
152
+ min-height: 0;
153
+ height: 100%;
154
+ }
155
+ }
156
+
157
+ /* ─── Mobile: ensure sidebar drawer/content isn't clipped ───────────────── */
158
+ @media (max-width: 1023px) {
159
+ .fd-sidebar {
160
+ max-height: none;
161
+ overflow-y: visible;
162
+ }
163
+ }
164
+
143
165
  /* ─── Sidebar (pixel-border style — BOTH light and dark) ─────────── */
144
166
 
145
167
  /* Full-width border separators between top-level items */