You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This expression dynamically adjusts the column width based on the current `--layout-padding` and `--layout-cols` values at each breakpoint.
251
-
252
-
### Grid Layout (SCSS Variables)
223
+
### Layout Root (Dynamic SCSS Variables)
253
224
254
225
The grid system relies on dynamic scss variables updated at the above breakpoints to coincide with a responsive layout that is always divisible by multiples of 2. These dynamic, responsive, variables are used in both the `.layout` and `[data-grid-overlay]` scss selectors.
255
226
@@ -304,11 +275,39 @@ The grid system relies on dynamic scss variables updated at the above breakpoint
304
275
}
305
276
```
306
277
307
-
### Grid Overlay SCSS
278
+
### Grid Calculations
308
279
309
-
A purely css driven grid overlay that coincides with the layout class and it's breakpoints. When the data-overlay-grid is set to active, the grid overlay fades into visibility.
280
+
With a hardcoded variable of `--layout-gap: theme('spacing.4')` (16px), the grid remains fully responsive and divisible by multiples of 2.
This expression dynamically adjusts the column width based on the current `--layout-padding` and `--layout-cols` values at each breakpoint.
307
+
308
+
### Layout SCSS
309
+
310
+
A responsive grid container that adapts to the dynamic variables defined in the layout.scss `:root`. It is utilized on the main element in the server rendered `layout.tsx` found in the app directory.
312
311
313
312
```scss
314
313
.layout {
@@ -330,36 +329,44 @@ A purely css driven grid overlay that coincides with the layout class and it's b
A purely css driven grid overlay that coincides with the layout class and it's breakpoints. When the data-overlay-grid is set to active, the grid overlay fades into visibility. It is dependent on being used on the same element as the `.layout` class. This is utilized on the main element in the server rendered `layout.tsx` found in the app directory.
0 commit comments