Add new sections, update design system, fix header mobile layout
Sections: - Add announcement-bar, cards, features-3col-cards, hero-card-homepage, hero-card-page, hero-slider - Rename content-image-right → content-image (image-left layout, better mobile stacking) Design system: - Add cards-grid global class (flex-wrap for fluid wrapping card grids) - Update feature-card with responsive _widthMax constraints (33%/50%/95%) - Document Bricks Style Manager spacing setup in design.md Headers: - Fix header-with-cta mobile hamburger positioning — wrap nav+button in block element with row-reverse on mobile Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -8,6 +8,17 @@ Three importable files. **Import in this order** before any templates:
|
||||
|
||||
---
|
||||
|
||||
## Bricks Style Manager — Spacing
|
||||
|
||||
Bricks has a built-in Spacing section in the Style Manager that works well and should be kept enabled. One setting needs to match our design system:
|
||||
|
||||
- **Scale Steps** → set to: `2xs,xs,sm,md,lg,xl,2xl`
|
||||
- **Baseline** → set to `sm`
|
||||
|
||||
This aligns the Style Manager's spacing scale labels with our `--space-*` CSS variable naming convention.
|
||||
|
||||
---
|
||||
|
||||
## How to Import
|
||||
|
||||
| File | Where to import |
|
||||
@@ -60,6 +71,8 @@ A simple scale from extra-small to 2x-large. Use these in gap, padding, and marg
|
||||
| `--space-lg` | `40px` | Section internal gap (header to content row) |
|
||||
| `--space-xl` | `64px` | Section top/bottom padding |
|
||||
| `--space-2xl` | `96px` | Hero or large feature section padding |
|
||||
| `--row-gap` | `15px` | Default row gap between stacked elements |
|
||||
| `--col-gap` | `15px` | Default column gap between side-by-side elements |
|
||||
|
||||
**Usage example in Bricks:**
|
||||
In any gap or padding field, type `var(--space-lg)` instead of a fixed pixel value.
|
||||
@@ -72,16 +85,16 @@ Heading and text size scale. Apply these in the font-size field of any text elem
|
||||
|
||||
| Variable | Value | Purpose |
|
||||
| -------------- | ----------- | -------------------- |
|
||||
| `--h1` | `3rem` | Page-level heading |
|
||||
| `--h2` | `2.25rem` | Section heading |
|
||||
| `--h3` | `1.75rem` | Sub-section heading |
|
||||
| `--h4` | `1.25rem` | Card or block heading|
|
||||
| `--h5` | `1.125rem` | Minor heading |
|
||||
| `--h6` | `1rem` | Small label heading |
|
||||
| `--text-sm` | `0.875rem` | Captions, footnotes |
|
||||
| `--text-base` | `1rem` | Body copy (default) |
|
||||
| `--text-lg` | `1.125rem` | Lead paragraph |
|
||||
| `--text-xl` | `1.25rem` | Large intro text |
|
||||
| `--h1` | `64px` | Page-level heading |
|
||||
| `--h2` | `48px` | Section heading |
|
||||
| `--h3` | `36px` | Sub-section heading |
|
||||
| `--h4` | `28px` | Card or block heading|
|
||||
| `--h5` | `22px` | Minor heading |
|
||||
| `--h6` | `18px` | Small label heading |
|
||||
| `--text-sm` | `14px` | Captions, footnotes |
|
||||
| `--text-base` | `16px` | Body copy (default) |
|
||||
| `--text-lg` | `18px` | Lead paragraph |
|
||||
| `--text-xl` | `20px` | Large intro text |
|
||||
|
||||
---
|
||||
|
||||
@@ -104,6 +117,8 @@ Swatches: `primary`, `primary-light`, `primary-dark`, `secondary`, `secondary-li
|
||||
| `col-3` | 3-column row container | `flex-direction: row`, centered, `gap: 32px`, stacks on mobile |
|
||||
| `col-4` | 4-column row container | `flex-direction: row`, centered, `gap: 24px`, stacks on mobile |
|
||||
| `features-container` | Individual feature column (3 or 4 col) | `text-align: center`, `row-gap: 10px` |
|
||||
| `cards-grid` | Fluid wrapping card row | `flex-wrap: wrap`, `align-items: stretch`, `gap: var(--col-gap)` — cards wrap to new rows automatically |
|
||||
| `feature-card` | Individual feature column (card variant) | `background: var(--color-bg-alt)`, `padding: var(--space-md)`, `border-radius: 8px`, `row-gap: 15px`, `max-width: 33%` (50% landscape, 95% portrait) |
|
||||
| `footer-sub-section` | Footer column containers | `row-gap: 15px` |
|
||||
|
||||
**Note:** `features-container` and `footer-sub-section` are also embedded in the `features-3col`, `features-4col`, and `footer-columns` templates — importing those templates will bring these classes along automatically.
|
||||
**Note:** `features-container` and `footer-sub-section` are also embedded in the `features-3col`, `features-4col`, and `footer-columns` templates — importing those templates will bring these classes along automatically. `feature-card` is embedded in `features-3col-cards` and `cards`. `cards-grid` and `feature-card` are embedded in `cards` — importing that template brings both along. For the fluid card layout, each card element also has `_flexBasis: 280px` and `_flexGrow: 1` set inline so they fill the row and wrap to the next line automatically.
|
||||
|
||||
Reference in New Issue
Block a user