@farming-labs/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/theme",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
5
5
  "keywords": [
6
6
  "docs",
@@ -103,7 +103,7 @@
103
103
  "next": ">=14.0.0",
104
104
  "tsdown": "^0.20.3",
105
105
  "typescript": "^5.9.3",
106
- "@farming-labs/docs": "0.0.18"
106
+ "@farming-labs/docs": "0.0.20"
107
107
  },
108
108
  "peerDependencies": {
109
109
  "@farming-labs/docs": ">=0.0.1",
@@ -146,12 +146,27 @@ code:not(pre code) {
146
146
  }
147
147
  }
148
148
 
149
- /* ─── Docs grid: sidebar | content | TOC with gap and constrained TOC ── */
149
+ /* ─── Docs grid: sidebar (sticky left, full height) | content | TOC ─────── */
150
150
  @media (min-width: 768px) {
151
151
  #nd-docs-layout,
152
152
  [style*="fd-sidebar-col"] {
153
- grid-template-columns: var(--fd-sidebar-col, 0px) minmax(0, 1fr) min(var(--fd-toc-width, 260px), 260px) !important;
154
- gap: 24px !important;
153
+ grid-template-columns: var(--fd-sidebar-col, 0px) 1fr min-content !important;
154
+ }
155
+ /* Sidebar stretches to end and sticks on scroll; no max-height so content isn't clipped */
156
+ #nd-docs-layout aside#nd-sidebar {
157
+ position: sticky;
158
+ top: 0;
159
+ align-self: start;
160
+ min-height: 0;
161
+ height: 100vh;
162
+ }
163
+ }
164
+
165
+ /* ─── Mobile: ensure sidebar drawer/content isn't clipped ───────────────── */
166
+ @media (max-width: 767px) {
167
+ #nd-docs-layout aside#nd-sidebar {
168
+ max-height: none;
169
+ overflow-y: visible;
155
170
  }
156
171
  }
157
172