@zazz-ui/core 0.1.0
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/CHANGELOG.md +19 -0
- package/LICENSE +21 -0
- package/README.md +61 -0
- package/dist/sri.json +75 -0
- package/dist/zazz.css +1 -0
- package/dist/zazz.js +1 -0
- package/examples/about.html +590 -0
- package/examples/components.html +1040 -0
- package/examples/forms.html +511 -0
- package/examples/index.html +268 -0
- package/examples/layout.html +320 -0
- package/examples/products.html +846 -0
- package/examples/responsive.html +339 -0
- package/package.json +85 -0
- package/src/base/_layers.css +12 -0
- package/src/base/_layout.css +568 -0
- package/src/base/_reset.css +515 -0
- package/src/base/_typography.css +495 -0
- package/src/base/_utilities.css +6628 -0
- package/src/base/_variables.css +682 -0
- package/src/base/_view-transitions.css +103 -0
- package/src/base/command-score.d.ts +12 -0
- package/src/base/command-score.d.ts.map +1 -0
- package/src/base/command-score.js +151 -0
- package/src/base/command-score.ts +192 -0
- package/src/base/dialog-lifecycle.d.ts +11 -0
- package/src/base/dialog-lifecycle.d.ts.map +1 -0
- package/src/base/dialog-lifecycle.js +65 -0
- package/src/base/dialog-lifecycle.ts +80 -0
- package/src/base/embla.d.ts +90 -0
- package/src/base/embla.d.ts.map +1 -0
- package/src/base/embla.js +643 -0
- package/src/base/embla.ts +791 -0
- package/src/base/hotkeys.d.ts +82 -0
- package/src/base/hotkeys.d.ts.map +1 -0
- package/src/base/hotkeys.js +141 -0
- package/src/base/hotkeys.ts +195 -0
- package/src/base/navigation.d.ts +2 -0
- package/src/base/navigation.d.ts.map +1 -0
- package/src/base/navigation.js +136 -0
- package/src/base/navigation.ts +151 -0
- package/src/base/reveal.d.ts +80 -0
- package/src/base/reveal.d.ts.map +1 -0
- package/src/base/reveal.js +305 -0
- package/src/base/reveal.ts +379 -0
- package/src/base/signals.d.ts +89 -0
- package/src/base/signals.d.ts.map +1 -0
- package/src/base/signals.js +134 -0
- package/src/base/signals.ts +164 -0
- package/src/base/typeahead.d.ts +105 -0
- package/src/base/typeahead.d.ts.map +1 -0
- package/src/base/typeahead.js +411 -0
- package/src/base/typeahead.ts +500 -0
- package/src/base/utils.d.ts +56 -0
- package/src/base/utils.d.ts.map +1 -0
- package/src/base/utils.js +88 -0
- package/src/base/utils.ts +98 -0
- package/src/base/zazz-element.d.ts +44 -0
- package/src/base/zazz-element.d.ts.map +1 -0
- package/src/base/zazz-element.js +59 -0
- package/src/base/zazz-element.ts +73 -0
- package/src/globals.d.ts +148 -0
- package/src/head.d.ts +95 -0
- package/src/head.d.ts.map +1 -0
- package/src/head.js +311 -0
- package/src/head.ts +433 -0
- package/src/index.css +71 -0
- package/src/index.d.ts +36 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.js +35 -0
- package/src/index.ts +36 -0
- package/src/manifest.d.ts +90 -0
- package/src/manifest.d.ts.map +1 -0
- package/src/manifest.js +614 -0
- package/src/manifest.ts +667 -0
- package/src/primitives/accordion/accordion.css +104 -0
- package/src/primitives/accordion/accordion.html +69 -0
- package/src/primitives/alert-dialog/alert-dialog.css +38 -0
- package/src/primitives/alert-dialog/alert-dialog.html +53 -0
- package/src/primitives/autocomplete/autocomplete-groups.html +77 -0
- package/src/primitives/autocomplete/autocomplete.css +114 -0
- package/src/primitives/autocomplete/autocomplete.d.ts +30 -0
- package/src/primitives/autocomplete/autocomplete.d.ts.map +1 -0
- package/src/primitives/autocomplete/autocomplete.html +66 -0
- package/src/primitives/autocomplete/autocomplete.js +41 -0
- package/src/primitives/autocomplete/autocomplete.ts +46 -0
- package/src/primitives/avatar/avatar.html +44 -0
- package/src/primitives/badge/badge-icon.html +36 -0
- package/src/primitives/badge/badge.css +251 -0
- package/src/primitives/badge/badge.html +7 -0
- package/src/primitives/breadcrumbs/breadcrumbs.html +9 -0
- package/src/primitives/button/button-icon-only.html +84 -0
- package/src/primitives/button/button-icon.html +82 -0
- package/src/primitives/button/button.css +319 -0
- package/src/primitives/button/button.html +8 -0
- package/src/primitives/button-group/button-group-vertical.html +6 -0
- package/src/primitives/button-group/button-group.css +94 -0
- package/src/primitives/button-group/button-group.html +64 -0
- package/src/primitives/card/card-subgrid.html +118 -0
- package/src/primitives/card/card.html +53 -0
- package/src/primitives/carousel/carousel.css +61 -0
- package/src/primitives/carousel/carousel.d.ts +16 -0
- package/src/primitives/carousel/carousel.d.ts.map +1 -0
- package/src/primitives/carousel/carousel.html +315 -0
- package/src/primitives/carousel/carousel.js +73 -0
- package/src/primitives/carousel/carousel.ts +84 -0
- package/src/primitives/checkbox/checkbox-tasklist.html +71 -0
- package/src/primitives/checkbox/checkbox.css +82 -0
- package/src/primitives/checkbox/checkbox.d.ts +21 -0
- package/src/primitives/checkbox/checkbox.d.ts.map +1 -0
- package/src/primitives/checkbox/checkbox.html +17 -0
- package/src/primitives/checkbox/checkbox.js +190 -0
- package/src/primitives/checkbox/checkbox.ts +219 -0
- package/src/primitives/combobox/combobox-multiselect.html +91 -0
- package/src/primitives/combobox/combobox.css +307 -0
- package/src/primitives/combobox/combobox.d.ts +100 -0
- package/src/primitives/combobox/combobox.d.ts.map +1 -0
- package/src/primitives/combobox/combobox.html +73 -0
- package/src/primitives/combobox/combobox.js +503 -0
- package/src/primitives/combobox/combobox.ts +559 -0
- package/src/primitives/command/command-actions.d.ts +31 -0
- package/src/primitives/command/command-actions.d.ts.map +1 -0
- package/src/primitives/command/command-actions.html +89 -0
- package/src/primitives/command/command-actions.js +70 -0
- package/src/primitives/command/command-actions.ts +77 -0
- package/src/primitives/command/command-dialog.html +77 -0
- package/src/primitives/command/command.css +151 -0
- package/src/primitives/command/command.d.ts +52 -0
- package/src/primitives/command/command.d.ts.map +1 -0
- package/src/primitives/command/command.html +119 -0
- package/src/primitives/command/command.js +146 -0
- package/src/primitives/command/command.ts +157 -0
- package/src/primitives/dialog/dialog-with-form.html +200 -0
- package/src/primitives/dialog/dialog.css +229 -0
- package/src/primitives/dialog/dialog.html +90 -0
- package/src/primitives/fields/fields.css +278 -0
- package/src/primitives/input/input-icon-leading.html +19 -0
- package/src/primitives/input/input-icon-trailing.html +18 -0
- package/src/primitives/input/input.css +114 -0
- package/src/primitives/input/input.html +61 -0
- package/src/primitives/input-group/input-group-password-group.html +108 -0
- package/src/primitives/input-group/input-group.css +215 -0
- package/src/primitives/input-group/input-group.html +132 -0
- package/src/primitives/kbd/kbd-group.html +18 -0
- package/src/primitives/kbd/kbd.css +87 -0
- package/src/primitives/kbd/kbd.html +7 -0
- package/src/primitives/lightbox/lightbox.css +459 -0
- package/src/primitives/lightbox/lightbox.d.ts +7 -0
- package/src/primitives/lightbox/lightbox.d.ts.map +1 -0
- package/src/primitives/lightbox/lightbox.html +665 -0
- package/src/primitives/lightbox/lightbox.js +96 -0
- package/src/primitives/lightbox/lightbox.ts +113 -0
- package/src/primitives/menu/menu-interest.html +52 -0
- package/src/primitives/menu/menu.css +55 -0
- package/src/primitives/menu/menu.d.ts +38 -0
- package/src/primitives/menu/menu.d.ts.map +1 -0
- package/src/primitives/menu/menu.html +70 -0
- package/src/primitives/menu/menu.js +117 -0
- package/src/primitives/menu/menu.ts +131 -0
- package/src/primitives/menubar/menubar-help-search.html +103 -0
- package/src/primitives/menubar/menubar.html +166 -0
- package/src/primitives/meter/meter.css +178 -0
- package/src/primitives/meter/meter.html +38 -0
- package/src/primitives/mobile-menu/mobile-menu.css +145 -0
- package/src/primitives/mobile-menu/mobile-menu.html +614 -0
- package/src/primitives/navigation-menu/navigation-menu-featured.html +76 -0
- package/src/primitives/navigation-menu/navigation-menu-icon-grid.html +158 -0
- package/src/primitives/navigation-menu/navigation-menu-interest.html +103 -0
- package/src/primitives/navigation-menu/navigation-menu-megamenu.html +141 -0
- package/src/primitives/navigation-menu/navigation-menu-simple.html +96 -0
- package/src/primitives/navigation-menu/navigation-menu.css +295 -0
- package/src/primitives/navigation-menu/navigation-menu.html +576 -0
- package/src/primitives/otp/otp.css +126 -0
- package/src/primitives/otp/otp.d.ts +89 -0
- package/src/primitives/otp/otp.d.ts.map +1 -0
- package/src/primitives/otp/otp.html +22 -0
- package/src/primitives/otp/otp.js +226 -0
- package/src/primitives/otp/otp.ts +279 -0
- package/src/primitives/password-group/password-group.css +238 -0
- package/src/primitives/password-group/password-group.d.ts +25 -0
- package/src/primitives/password-group/password-group.d.ts.map +1 -0
- package/src/primitives/password-group/password-group.html +109 -0
- package/src/primitives/password-group/password-group.js +76 -0
- package/src/primitives/password-group/password-group.ts +95 -0
- package/src/primitives/popover/popover.css +233 -0
- package/src/primitives/progress/progress-indeterminate.html +1 -0
- package/src/primitives/progress/progress.css +105 -0
- package/src/primitives/progress/progress.html +7 -0
- package/src/primitives/prose/prose.html +65 -0
- package/src/primitives/radio/radio.css +84 -0
- package/src/primitives/radio/radio.html +17 -0
- package/src/primitives/reveal/reveal.css +167 -0
- package/src/primitives/select/multiselect.d.ts +43 -0
- package/src/primitives/select/multiselect.d.ts.map +1 -0
- package/src/primitives/select/multiselect.js +147 -0
- package/src/primitives/select/multiselect.ts +188 -0
- package/src/primitives/select/select-align.html +49 -0
- package/src/primitives/select/select-multiple.html +12 -0
- package/src/primitives/select/select-sides.html +65 -0
- package/src/primitives/select/select.css +481 -0
- package/src/primitives/select/select.html +16 -0
- package/src/primitives/separator/separator.css +49 -0
- package/src/primitives/separator/separator.html +16 -0
- package/src/primitives/slider/slider.css +122 -0
- package/src/primitives/slider/slider.html +1 -0
- package/src/primitives/switch/switch.css +126 -0
- package/src/primitives/switch/switch.html +13 -0
- package/src/primitives/table/table-alternating.html +36 -0
- package/src/primitives/table/table-grid.html +30 -0
- package/src/primitives/table/table-size-sm.html +26 -0
- package/src/primitives/table/table.css +158 -0
- package/src/primitives/table/table.html +45 -0
- package/src/primitives/tabs/tabs.css +328 -0
- package/src/primitives/tabs/tabs.d.ts +35 -0
- package/src/primitives/tabs/tabs.d.ts.map +1 -0
- package/src/primitives/tabs/tabs.html +75 -0
- package/src/primitives/tabs/tabs.js +84 -0
- package/src/primitives/tabs/tabs.ts +93 -0
- package/src/primitives/textarea/textarea.css +78 -0
- package/src/primitives/textarea/textarea.html +10 -0
- package/src/primitives/toaster/toaster.css +309 -0
- package/src/primitives/toaster/toaster.d.ts +138 -0
- package/src/primitives/toaster/toaster.d.ts.map +1 -0
- package/src/primitives/toaster/toaster.html +77 -0
- package/src/primitives/toaster/toaster.js +736 -0
- package/src/primitives/toaster/toaster.ts +823 -0
- package/src/primitives/toggle/toggle.css +295 -0
- package/src/primitives/toggle/toggle.html +68 -0
- package/src/primitives/toggle-group/toggle-group-multiple.html +14 -0
- package/src/primitives/toggle-group/toggle-group-vertical.html +14 -0
- package/src/primitives/toggle-group/toggle-group.css +73 -0
- package/src/primitives/toggle-group/toggle-group.html +53 -0
- package/src/primitives/toolbar/toolbar.html +45 -0
- package/src/primitives/tooltip/tooltip-disabled.html +19 -0
- package/src/primitives/tooltip/tooltip-sides.html +57 -0
- package/src/primitives/tooltip/tooltip-with-kbd.html +31 -0
- package/src/primitives/tooltip/tooltip.css +235 -0
- package/src/primitives/tooltip/tooltip.html +12 -0
- package/src/primitives/utilities/aspect-ratio.html +17 -0
- package/src/primitives/utilities/basis.html +27 -0
- package/src/primitives/utilities/col-span.html +23 -0
- package/src/primitives/utilities/compose.html +19 -0
- package/src/primitives/utilities/flex-align.html +26 -0
- package/src/primitives/utilities/flex-direction.html +36 -0
- package/src/primitives/utilities/flex-grow.html +17 -0
- package/src/primitives/utilities/gap.html +62 -0
- package/src/primitives/utilities/grid-cols.html +20 -0
- package/src/primitives/utilities/grid-pile.html +5 -0
- package/src/primitives/utilities/grid-responsive.html +31 -0
- package/src/primitives/utilities/margin-auto.html +13 -0
- package/src/primitives/utilities/object-fit.html +41 -0
- package/src/primitives/utilities/order.html +17 -0
- package/src/primitives/utilities/overflow.html +26 -0
- package/src/primitives/utilities/padding-compose.html +23 -0
- package/src/primitives/utilities/padding.html +30 -0
- package/src/primitives/utilities/position.html +13 -0
- package/src/primitives/utilities/responsive-flex.html +22 -0
- package/src/primitives/utilities/responsive-grid.html +31 -0
- package/src/primitives/utilities/size.html +22 -0
- package/src/primitives/utilities/width.html +22 -0
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<!-- Page-specific tags stay above the generated block -->
|
|
5
|
+
<title>Zazz tests | Overview</title>
|
|
6
|
+
<link rel="prefetch" href="layout.html" />
|
|
7
|
+
|
|
8
|
+
<!-- Shared head, generated from @zazz-ui/core's head contract (src/head.ts). -->
|
|
9
|
+
<!-- Edit nothing between the markers; run `vp run heads` to regenerate. -->
|
|
10
|
+
<!-- zazz:head -->
|
|
11
|
+
<meta charset="utf-8" />
|
|
12
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
13
|
+
<!-- Paint the right theme (background, form controls, scrollbars) before CSS loads -->
|
|
14
|
+
<meta name="color-scheme" content="light dark" />
|
|
15
|
+
<!-- Google Fonts: Geist + Geist Mono (preconnect so the CSS request starts early) -->
|
|
16
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
17
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
18
|
+
<link
|
|
19
|
+
rel="preload"
|
|
20
|
+
as="font"
|
|
21
|
+
type="font/woff2"
|
|
22
|
+
crossorigin
|
|
23
|
+
href="https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwcGFWNOITd.woff2"
|
|
24
|
+
/>
|
|
25
|
+
<link
|
|
26
|
+
href="https://fonts.googleapis.com/css2?family=Geist+Mono:ital,wght@0,100..900;1,100..900&family=Geist:ital,wght@0,100..900;1,100..900&display=swap"
|
|
27
|
+
rel="stylesheet"
|
|
28
|
+
/>
|
|
29
|
+
<!-- Zazz styles: one bundle (index.css @imports every layer in cascade order) -->
|
|
30
|
+
<link rel="stylesheet" href="../src/index.css" />
|
|
31
|
+
<!-- Import map: bare specifiers in Zazz scripts resolve to pinned, SRI-checked files -->
|
|
32
|
+
<script type="importmap">
|
|
33
|
+
{
|
|
34
|
+
"imports": {
|
|
35
|
+
"signal-polyfill": "https://cdn.jsdelivr.net/npm/signal-polyfill@0.2.2/dist/index.js",
|
|
36
|
+
"embla-carousel": "https://cdn.jsdelivr.net/npm/embla-carousel@8.6.0/esm/embla-carousel.esm.js",
|
|
37
|
+
"embla-carousel-autoplay": "https://cdn.jsdelivr.net/npm/embla-carousel-autoplay@8.6.0/esm/embla-carousel-autoplay.esm.js",
|
|
38
|
+
"embla-carousel-auto-scroll": "https://cdn.jsdelivr.net/npm/embla-carousel-auto-scroll@8.6.0/esm/embla-carousel-auto-scroll.esm.js",
|
|
39
|
+
"embla-carousel-class-names": "https://cdn.jsdelivr.net/npm/embla-carousel-class-names@8.6.0/esm/embla-carousel-class-names.esm.js"
|
|
40
|
+
},
|
|
41
|
+
"integrity": {
|
|
42
|
+
"https://cdn.jsdelivr.net/npm/signal-polyfill@0.2.2/dist/index.js": "sha384-0OqM7OXGT6Oz1z98u/geiFn/FUyz4iWexkXHCvbIGXRRDXl6bp6IKc0j78AQ6DEK",
|
|
43
|
+
"https://cdn.jsdelivr.net/npm/embla-carousel@8.6.0/esm/embla-carousel.esm.js": "sha384-GXjfyU1fSHHeweoYd3rwo7OBKYtkq+JcsDoe8VDRc6znCty2ZTzyVvX1DwqCE+9t",
|
|
44
|
+
"https://cdn.jsdelivr.net/npm/embla-carousel-autoplay@8.6.0/esm/embla-carousel-autoplay.esm.js": "sha384-AX49yBc7zd/CT8ZqNMRiiqqVSV9xfxb27VwEGziPioT3wL4k4C5BW2qwefdWuN4J",
|
|
45
|
+
"https://cdn.jsdelivr.net/npm/embla-carousel-auto-scroll@8.6.0/esm/embla-carousel-auto-scroll.esm.js": "sha384-SPdnL1eic73WfM72zFEf0RJ5PdUC7TL3Yb5jOl1JC3/l4D7EsVxwO8wFnnezlMSu",
|
|
46
|
+
"https://cdn.jsdelivr.net/npm/embla-carousel-class-names@8.6.0/esm/embla-carousel-class-names.esm.js": "sha384-ZWno/FqzYeWE5Ils19GIhep1AZ5bMl0mp9wmm6baTJE4+pjMjOdTnE55SjUQAdVh"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
</script>
|
|
50
|
+
<link rel="modulepreload" href="../src/index.js" />
|
|
51
|
+
<!-- Polyfills: Popover API + Invoker Commands (command/commandfor) -->
|
|
52
|
+
<script
|
|
53
|
+
src="https://cdn.jsdelivr.net/npm/@oddbird/popover-polyfill@0.7.2/dist/popover.min.js"
|
|
54
|
+
integrity="sha384-pOVHoXRgxuaWHCRM4KSyfyfRTmdxgjVo1Ux78ZKJ+GjUz4zIzXiTa8XXuDF1R1Sd"
|
|
55
|
+
crossorigin="anonymous"
|
|
56
|
+
defer
|
|
57
|
+
></script>
|
|
58
|
+
<script
|
|
59
|
+
type="module"
|
|
60
|
+
src="https://cdn.jsdelivr.net/npm/invokers@2.2.2/dist/esm/production/compatible.js"
|
|
61
|
+
integrity="sha384-7vRXDaS2mcW7LheGSA/rxBwIQNEqmWj0OLEOta/+mvw+9Uf5w1vplA5qg8kLQ99u"
|
|
62
|
+
crossorigin="anonymous"
|
|
63
|
+
defer
|
|
64
|
+
></script>
|
|
65
|
+
<!-- Zazz behavior: one ES module imports every component script in dependency order -->
|
|
66
|
+
<script type="module" src="../src/index.js"></script>
|
|
67
|
+
<!-- Theme: apply the persisted (or preferred) scheme before first paint -->
|
|
68
|
+
<script>
|
|
69
|
+
(() => {
|
|
70
|
+
try {
|
|
71
|
+
const storedTheme = localStorage.getItem("theme");
|
|
72
|
+
const prefersDark = matchMedia("(prefers-color-scheme: dark)").matches;
|
|
73
|
+
const theme = storedTheme ?? (prefersDark ? "dark" : "light");
|
|
74
|
+
document.documentElement.classList.toggle("dark", theme === "dark");
|
|
75
|
+
} catch {
|
|
76
|
+
document.documentElement.classList.toggle(
|
|
77
|
+
"dark",
|
|
78
|
+
matchMedia("(prefers-color-scheme: dark)").matches,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
})();
|
|
82
|
+
</script>
|
|
83
|
+
<!-- /zazz:head -->
|
|
84
|
+
</head>
|
|
85
|
+
|
|
86
|
+
<body class="bg-background">
|
|
87
|
+
<header class="py-md border-b" data-transition-layer="global-header">
|
|
88
|
+
<div class="container">
|
|
89
|
+
<div class="flex items-center justify-between">
|
|
90
|
+
<a href="index.html" class="text-h6 font-black">Zazz tests</a>
|
|
91
|
+
<nav>
|
|
92
|
+
<menu class="flex gap-xs">
|
|
93
|
+
<li>
|
|
94
|
+
<a class="ui-button" data-variant="ghost" data-size="sm" href="index.html"
|
|
95
|
+
>Overview</a
|
|
96
|
+
>
|
|
97
|
+
</li>
|
|
98
|
+
<li>
|
|
99
|
+
<a class="ui-button" data-variant="ghost" data-size="sm" href="about.html">About</a>
|
|
100
|
+
</li>
|
|
101
|
+
<li>
|
|
102
|
+
<a class="ui-button" data-variant="ghost" data-size="sm" href="products.html"
|
|
103
|
+
>Products</a
|
|
104
|
+
>
|
|
105
|
+
</li>
|
|
106
|
+
<li>
|
|
107
|
+
<a class="ui-button" data-variant="ghost" data-size="sm" href="layout.html"
|
|
108
|
+
>Layout</a
|
|
109
|
+
>
|
|
110
|
+
</li>
|
|
111
|
+
<li>
|
|
112
|
+
<a class="ui-button" data-variant="ghost" data-size="sm" href="responsive.html"
|
|
113
|
+
>Responsive</a
|
|
114
|
+
>
|
|
115
|
+
</li>
|
|
116
|
+
<li>
|
|
117
|
+
<a class="ui-button" data-variant="ghost" data-size="sm" href="components.html"
|
|
118
|
+
>Components</a
|
|
119
|
+
>
|
|
120
|
+
</li>
|
|
121
|
+
<li>
|
|
122
|
+
<a class="ui-button" data-variant="ghost" data-size="sm" href="forms.html">Forms</a>
|
|
123
|
+
</li>
|
|
124
|
+
</menu>
|
|
125
|
+
</nav>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</header>
|
|
129
|
+
|
|
130
|
+
<main data-layout="main">
|
|
131
|
+
<section class="container py-xl">
|
|
132
|
+
<hgroup class="flex flex-col gap-sm">
|
|
133
|
+
<span class="text-eyebrow">Zazz framework</span>
|
|
134
|
+
<h1 class="text-display">Test pages</h1>
|
|
135
|
+
<p class="text-lg text-muted-foreground max-w-screen-sm">
|
|
136
|
+
Standalone pages exercising the container band system, responsive utilities, components,
|
|
137
|
+
and form fields. Built with nothing but Zazz classes. Resize to watch them respond.
|
|
138
|
+
</p>
|
|
139
|
+
</hgroup>
|
|
140
|
+
</section>
|
|
141
|
+
|
|
142
|
+
<section class="container py-xl">
|
|
143
|
+
<div class="flex flex-col gap-sm border rounded-md overflow-auto bg-card">
|
|
144
|
+
<table class="ui-table">
|
|
145
|
+
<caption>
|
|
146
|
+
Table caption
|
|
147
|
+
</caption>
|
|
148
|
+
<thead>
|
|
149
|
+
<tr>
|
|
150
|
+
<th>Header 1</th>
|
|
151
|
+
<th>Header 2</th>
|
|
152
|
+
<th>Header 3</th>
|
|
153
|
+
</tr>
|
|
154
|
+
</thead>
|
|
155
|
+
<tbody>
|
|
156
|
+
<tr>
|
|
157
|
+
<td>Data 1</td>
|
|
158
|
+
<td>Data 2</td>
|
|
159
|
+
<td>Data 3</td>
|
|
160
|
+
</tr>
|
|
161
|
+
</tbody>
|
|
162
|
+
<tfoot>
|
|
163
|
+
<tr>
|
|
164
|
+
<td>Footer 1</td>
|
|
165
|
+
<td>Footer 2</td>
|
|
166
|
+
<td>Footer 3</td>
|
|
167
|
+
</tr>
|
|
168
|
+
</tfoot>
|
|
169
|
+
</table>
|
|
170
|
+
</div>
|
|
171
|
+
</section>
|
|
172
|
+
|
|
173
|
+
<section class="container pb-xl">
|
|
174
|
+
<div
|
|
175
|
+
class="grid grid-cols-1 @sm:grid-cols-2 @lg:grid-cols-3 gap-md"
|
|
176
|
+
data-reveal-each="slide-up"
|
|
177
|
+
>
|
|
178
|
+
<div class="flex flex-col">
|
|
179
|
+
<a
|
|
180
|
+
class="flex-1 flex flex-col gap-sm bg-card text-card-foreground border rounded-lg p-md hover:border-primary transition"
|
|
181
|
+
href="layout.html"
|
|
182
|
+
>
|
|
183
|
+
<span class="ui-badge self-start" data-variant="muted">Layout</span>
|
|
184
|
+
<h2 class="text-h6 font-heading">Container bands</h2>
|
|
185
|
+
<p class="text-sm text-muted-foreground flex-1">
|
|
186
|
+
The subgrid band system: bands from xs to bleed, per-child
|
|
187
|
+
<code>data-container</code>, a <code>data-container</code> default, the responsive
|
|
188
|
+
<code>@md:container</code>
|
|
189
|
+
variants, and the article reading width.
|
|
190
|
+
</p>
|
|
191
|
+
<span class="text-link">View page</span>
|
|
192
|
+
</a>
|
|
193
|
+
</div>
|
|
194
|
+
|
|
195
|
+
<div class="flex flex-col">
|
|
196
|
+
<a
|
|
197
|
+
class="flex-1 flex flex-col gap-sm bg-card text-card-foreground border rounded-lg p-md hover:border-primary transition"
|
|
198
|
+
href="responsive.html"
|
|
199
|
+
>
|
|
200
|
+
<span class="ui-badge self-start" data-variant="muted">Utilities</span>
|
|
201
|
+
<h2 class="text-h6 font-heading">Responsive utilities</h2>
|
|
202
|
+
<p class="text-sm text-muted-foreground flex-1">
|
|
203
|
+
The <code>@xs:</code> through <code>@xl:</code> prefixes across grid columns, flex
|
|
204
|
+
direction, display toggles, column spans, basis, and alignment.
|
|
205
|
+
</p>
|
|
206
|
+
<span class="text-link">View page</span>
|
|
207
|
+
</a>
|
|
208
|
+
</div>
|
|
209
|
+
|
|
210
|
+
<div class="flex flex-col">
|
|
211
|
+
<a
|
|
212
|
+
class="flex-1 flex flex-col gap-sm bg-card text-card-foreground border rounded-lg p-md hover:border-primary transition"
|
|
213
|
+
href="components.html"
|
|
214
|
+
>
|
|
215
|
+
<span class="ui-badge self-start" data-variant="muted">Components</span>
|
|
216
|
+
<h2 class="text-h6 font-heading">Component kitchen sink</h2>
|
|
217
|
+
<p class="text-sm text-muted-foreground flex-1">
|
|
218
|
+
Buttons, badges, breadcrumbs, cards, avatars, accordion, tabs, tooltip, menu,
|
|
219
|
+
dialog, and prose, adapted from each component's source.
|
|
220
|
+
</p>
|
|
221
|
+
<span class="text-link">View page</span>
|
|
222
|
+
</a>
|
|
223
|
+
</div>
|
|
224
|
+
|
|
225
|
+
<div class="flex flex-col">
|
|
226
|
+
<a
|
|
227
|
+
class="flex-1 flex flex-col gap-sm bg-card text-card-foreground border rounded-lg p-md hover:border-primary transition"
|
|
228
|
+
href="forms.html"
|
|
229
|
+
>
|
|
230
|
+
<span class="ui-badge self-start" data-variant="muted">Forms</span>
|
|
231
|
+
<h2 class="text-h6 font-heading">Fields and validation</h2>
|
|
232
|
+
<p class="text-sm text-muted-foreground flex-1">
|
|
233
|
+
Inputs, input groups, the password toggle, textarea, select, checkboxes, radios,
|
|
234
|
+
switches, and the slider, with <code>:user-invalid</code> validation.
|
|
235
|
+
</p>
|
|
236
|
+
<span class="text-link">View page</span>
|
|
237
|
+
</a>
|
|
238
|
+
</div>
|
|
239
|
+
|
|
240
|
+
<div class="flex flex-col gap-sm bg-muted text-muted-foreground border rounded-lg p-md">
|
|
241
|
+
<span class="ui-badge self-start">Tip</span>
|
|
242
|
+
<h2 class="text-h6 font-heading text-foreground">No build step</h2>
|
|
243
|
+
<p class="text-sm flex-1">
|
|
244
|
+
These pages load <code>index.css</code> directly and are served raw at
|
|
245
|
+
<code>/zazz/examples/</code>. Plain HTML plus Zazz tokens, utilities, and components.
|
|
246
|
+
</p>
|
|
247
|
+
</div>
|
|
248
|
+
</div>
|
|
249
|
+
</section>
|
|
250
|
+
</main>
|
|
251
|
+
|
|
252
|
+
<footer class="border-t" data-transition-layer="global-footer">
|
|
253
|
+
<div class="container py-xl">
|
|
254
|
+
<div class="flex items-center justify-between gap-md">
|
|
255
|
+
<div class="text-h6 font-black">Zazz tests</div>
|
|
256
|
+
<menu class="flex gap-sm">
|
|
257
|
+
<li><a class="ui-button" data-variant="link" href="about.html">About</a></li>
|
|
258
|
+
<li><a class="ui-button" data-variant="link" href="layout.html">Layout</a></li>
|
|
259
|
+
<li><a class="ui-button" data-variant="link" href="responsive.html">Responsive</a></li>
|
|
260
|
+
<li><a class="ui-button" data-variant="link" href="products.html">Products</a></li>
|
|
261
|
+
<li><a class="ui-button" data-variant="link" href="components.html">Components</a></li>
|
|
262
|
+
<li><a class="ui-button" data-variant="link" href="forms.html">Forms</a></li>
|
|
263
|
+
</menu>
|
|
264
|
+
</div>
|
|
265
|
+
</div>
|
|
266
|
+
</footer>
|
|
267
|
+
</body>
|
|
268
|
+
</html>
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<!-- Page-specific tags stay above the generated block -->
|
|
5
|
+
<title>Zazz tests | Overview</title>
|
|
6
|
+
<link rel="prefetch" href="layout.html" />
|
|
7
|
+
|
|
8
|
+
<!-- Shared head, generated from @zazz-ui/core's head contract (src/head.ts). -->
|
|
9
|
+
<!-- Edit nothing between the markers; run `vp run heads` to regenerate. -->
|
|
10
|
+
<!-- zazz:head -->
|
|
11
|
+
<meta charset="utf-8" />
|
|
12
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
13
|
+
<!-- Paint the right theme (background, form controls, scrollbars) before CSS loads -->
|
|
14
|
+
<meta name="color-scheme" content="light dark" />
|
|
15
|
+
<!-- Google Fonts: Geist + Geist Mono (preconnect so the CSS request starts early) -->
|
|
16
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
17
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
18
|
+
<link
|
|
19
|
+
rel="preload"
|
|
20
|
+
as="font"
|
|
21
|
+
type="font/woff2"
|
|
22
|
+
crossorigin
|
|
23
|
+
href="https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwcGFWNOITd.woff2"
|
|
24
|
+
/>
|
|
25
|
+
<link
|
|
26
|
+
href="https://fonts.googleapis.com/css2?family=Geist+Mono:ital,wght@0,100..900;1,100..900&family=Geist:ital,wght@0,100..900;1,100..900&display=swap"
|
|
27
|
+
rel="stylesheet"
|
|
28
|
+
/>
|
|
29
|
+
<!-- Zazz styles: one bundle (index.css @imports every layer in cascade order) -->
|
|
30
|
+
<link rel="stylesheet" href="../src/index.css" />
|
|
31
|
+
<!-- Import map: bare specifiers in Zazz scripts resolve to pinned, SRI-checked files -->
|
|
32
|
+
<script type="importmap">
|
|
33
|
+
{
|
|
34
|
+
"imports": {
|
|
35
|
+
"signal-polyfill": "https://cdn.jsdelivr.net/npm/signal-polyfill@0.2.2/dist/index.js",
|
|
36
|
+
"embla-carousel": "https://cdn.jsdelivr.net/npm/embla-carousel@8.6.0/esm/embla-carousel.esm.js",
|
|
37
|
+
"embla-carousel-autoplay": "https://cdn.jsdelivr.net/npm/embla-carousel-autoplay@8.6.0/esm/embla-carousel-autoplay.esm.js",
|
|
38
|
+
"embla-carousel-auto-scroll": "https://cdn.jsdelivr.net/npm/embla-carousel-auto-scroll@8.6.0/esm/embla-carousel-auto-scroll.esm.js",
|
|
39
|
+
"embla-carousel-class-names": "https://cdn.jsdelivr.net/npm/embla-carousel-class-names@8.6.0/esm/embla-carousel-class-names.esm.js"
|
|
40
|
+
},
|
|
41
|
+
"integrity": {
|
|
42
|
+
"https://cdn.jsdelivr.net/npm/signal-polyfill@0.2.2/dist/index.js": "sha384-0OqM7OXGT6Oz1z98u/geiFn/FUyz4iWexkXHCvbIGXRRDXl6bp6IKc0j78AQ6DEK",
|
|
43
|
+
"https://cdn.jsdelivr.net/npm/embla-carousel@8.6.0/esm/embla-carousel.esm.js": "sha384-GXjfyU1fSHHeweoYd3rwo7OBKYtkq+JcsDoe8VDRc6znCty2ZTzyVvX1DwqCE+9t",
|
|
44
|
+
"https://cdn.jsdelivr.net/npm/embla-carousel-autoplay@8.6.0/esm/embla-carousel-autoplay.esm.js": "sha384-AX49yBc7zd/CT8ZqNMRiiqqVSV9xfxb27VwEGziPioT3wL4k4C5BW2qwefdWuN4J",
|
|
45
|
+
"https://cdn.jsdelivr.net/npm/embla-carousel-auto-scroll@8.6.0/esm/embla-carousel-auto-scroll.esm.js": "sha384-SPdnL1eic73WfM72zFEf0RJ5PdUC7TL3Yb5jOl1JC3/l4D7EsVxwO8wFnnezlMSu",
|
|
46
|
+
"https://cdn.jsdelivr.net/npm/embla-carousel-class-names@8.6.0/esm/embla-carousel-class-names.esm.js": "sha384-ZWno/FqzYeWE5Ils19GIhep1AZ5bMl0mp9wmm6baTJE4+pjMjOdTnE55SjUQAdVh"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
</script>
|
|
50
|
+
<link rel="modulepreload" href="../src/index.js" />
|
|
51
|
+
<!-- Polyfills: Popover API + Invoker Commands (command/commandfor) -->
|
|
52
|
+
<script
|
|
53
|
+
src="https://cdn.jsdelivr.net/npm/@oddbird/popover-polyfill@0.7.2/dist/popover.min.js"
|
|
54
|
+
integrity="sha384-pOVHoXRgxuaWHCRM4KSyfyfRTmdxgjVo1Ux78ZKJ+GjUz4zIzXiTa8XXuDF1R1Sd"
|
|
55
|
+
crossorigin="anonymous"
|
|
56
|
+
defer
|
|
57
|
+
></script>
|
|
58
|
+
<script
|
|
59
|
+
type="module"
|
|
60
|
+
src="https://cdn.jsdelivr.net/npm/invokers@2.2.2/dist/esm/production/compatible.js"
|
|
61
|
+
integrity="sha384-7vRXDaS2mcW7LheGSA/rxBwIQNEqmWj0OLEOta/+mvw+9Uf5w1vplA5qg8kLQ99u"
|
|
62
|
+
crossorigin="anonymous"
|
|
63
|
+
defer
|
|
64
|
+
></script>
|
|
65
|
+
<!-- Zazz behavior: one ES module imports every component script in dependency order -->
|
|
66
|
+
<script type="module" src="../src/index.js"></script>
|
|
67
|
+
<!-- Theme: apply the persisted (or preferred) scheme before first paint -->
|
|
68
|
+
<script>
|
|
69
|
+
(() => {
|
|
70
|
+
try {
|
|
71
|
+
const storedTheme = localStorage.getItem("theme");
|
|
72
|
+
const prefersDark = matchMedia("(prefers-color-scheme: dark)").matches;
|
|
73
|
+
const theme = storedTheme ?? (prefersDark ? "dark" : "light");
|
|
74
|
+
document.documentElement.classList.toggle("dark", theme === "dark");
|
|
75
|
+
} catch {
|
|
76
|
+
document.documentElement.classList.toggle(
|
|
77
|
+
"dark",
|
|
78
|
+
matchMedia("(prefers-color-scheme: dark)").matches,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
})();
|
|
82
|
+
</script>
|
|
83
|
+
<!-- /zazz:head -->
|
|
84
|
+
</head>
|
|
85
|
+
|
|
86
|
+
<body class="bg-background">
|
|
87
|
+
<header class="py-md border-b" data-transition-layer="global-header">
|
|
88
|
+
<div class="container">
|
|
89
|
+
<div class="flex items-center justify-between">
|
|
90
|
+
<a href="index.html" class="text-h6 font-black">Zazz tests</a>
|
|
91
|
+
<nav>
|
|
92
|
+
<menu class="flex gap-xs">
|
|
93
|
+
<li>
|
|
94
|
+
<a class="ui-button" data-variant="ghost" data-size="sm" href="index.html"
|
|
95
|
+
>Overview</a
|
|
96
|
+
>
|
|
97
|
+
</li>
|
|
98
|
+
<li>
|
|
99
|
+
<a class="ui-button" data-variant="ghost" data-size="sm" href="about.html">About</a>
|
|
100
|
+
</li>
|
|
101
|
+
<li>
|
|
102
|
+
<a class="ui-button" data-variant="ghost" data-size="sm" href="products.html"
|
|
103
|
+
>Products</a
|
|
104
|
+
>
|
|
105
|
+
</li>
|
|
106
|
+
<li>
|
|
107
|
+
<a class="ui-button" data-variant="ghost" data-size="sm" href="layout.html"
|
|
108
|
+
>Layout</a
|
|
109
|
+
>
|
|
110
|
+
</li>
|
|
111
|
+
<li>
|
|
112
|
+
<a class="ui-button" data-variant="ghost" data-size="sm" href="responsive.html"
|
|
113
|
+
>Responsive</a
|
|
114
|
+
>
|
|
115
|
+
</li>
|
|
116
|
+
<li>
|
|
117
|
+
<a class="ui-button" data-variant="ghost" data-size="sm" href="components.html"
|
|
118
|
+
>Components</a
|
|
119
|
+
>
|
|
120
|
+
</li>
|
|
121
|
+
<li>
|
|
122
|
+
<a class="ui-button" data-variant="ghost" data-size="sm" href="forms.html">Forms</a>
|
|
123
|
+
</li>
|
|
124
|
+
</menu>
|
|
125
|
+
</nav>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</header>
|
|
129
|
+
|
|
130
|
+
<main data-layout="main">
|
|
131
|
+
<!-- Intro -->
|
|
132
|
+
<section class="py-xl">
|
|
133
|
+
<div class="container">
|
|
134
|
+
<hgroup class="flex flex-col gap-sm">
|
|
135
|
+
<span class="text-eyebrow">Layout</span>
|
|
136
|
+
<h1 class="text-h1">Container bands</h1>
|
|
137
|
+
<p class="text-lg text-muted-foreground max-w-screen-sm">
|
|
138
|
+
A <code>.container</code> turns its region into a band grid and spans every column as
|
|
139
|
+
a subgrid. Each child drops into a band: <code>xs</code> through <code>xl</code> cap
|
|
140
|
+
and center at the matching breakpoint, <code>full</code> fills minus the gutters, and
|
|
141
|
+
<code>bleed</code> runs edge to edge. Children default to <code>lg</code>.
|
|
142
|
+
</p>
|
|
143
|
+
</hgroup>
|
|
144
|
+
</div>
|
|
145
|
+
</section>
|
|
146
|
+
|
|
147
|
+
<!-- Every band -->
|
|
148
|
+
<section class="pb-xl">
|
|
149
|
+
<div class="container">
|
|
150
|
+
<p class="text-sm text-muted-foreground font-strong pb-sm" data-container="full">
|
|
151
|
+
Seven children of one container, each placed with <code>data-container</code>. The
|
|
152
|
+
widths nest from bleed down to xs.
|
|
153
|
+
</p>
|
|
154
|
+
|
|
155
|
+
<div
|
|
156
|
+
data-container="bleed"
|
|
157
|
+
class="bg-foreground text-background p-sm mb-xs text-center text-sm font-strong"
|
|
158
|
+
>
|
|
159
|
+
data-container="bleed" · edge to edge, through the gutters
|
|
160
|
+
</div>
|
|
161
|
+
<div
|
|
162
|
+
data-container="full"
|
|
163
|
+
class="bg-primary text-primary-foreground rounded-md p-sm mb-xs text-center text-sm font-strong"
|
|
164
|
+
>
|
|
165
|
+
data-container="full" · full region width minus the gutters
|
|
166
|
+
</div>
|
|
167
|
+
<div
|
|
168
|
+
data-container="xl"
|
|
169
|
+
class="bg-secondary text-secondary-foreground rounded-md p-sm mb-xs text-center text-sm font-strong"
|
|
170
|
+
>
|
|
171
|
+
data-container="xl" · caps at 96rem
|
|
172
|
+
</div>
|
|
173
|
+
<div
|
|
174
|
+
data-container="lg"
|
|
175
|
+
class="bg-tertiary text-tertiary-foreground rounded-md p-sm mb-xs text-center text-sm font-strong"
|
|
176
|
+
>
|
|
177
|
+
data-container="lg" · caps at 80rem · the default band
|
|
178
|
+
</div>
|
|
179
|
+
<div
|
|
180
|
+
data-container="md"
|
|
181
|
+
class="bg-info text-info-foreground rounded-md p-sm mb-xs text-center text-sm font-strong"
|
|
182
|
+
>
|
|
183
|
+
data-container="md" · caps at 64rem
|
|
184
|
+
</div>
|
|
185
|
+
<div
|
|
186
|
+
data-container="sm"
|
|
187
|
+
class="bg-success text-success-foreground rounded-md p-sm mb-xs text-center text-sm font-strong"
|
|
188
|
+
>
|
|
189
|
+
data-container="sm" · caps at 48rem
|
|
190
|
+
</div>
|
|
191
|
+
<div
|
|
192
|
+
data-container="xs"
|
|
193
|
+
class="bg-warning text-warning-foreground rounded-md p-sm text-center text-sm font-strong"
|
|
194
|
+
>
|
|
195
|
+
data-container="xs" · caps at 40rem
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
</section>
|
|
199
|
+
|
|
200
|
+
<!-- Default band for the whole container -->
|
|
201
|
+
<section class="py-xl border-t">
|
|
202
|
+
<div class="container" data-container="md">
|
|
203
|
+
<hgroup class="flex flex-col gap-sm pb-md">
|
|
204
|
+
<span class="text-eyebrow">data-container="md"</span>
|
|
205
|
+
<h2 class="text-h5 font-heading">One default for every child</h2>
|
|
206
|
+
<p class="text-muted-foreground">
|
|
207
|
+
Set <code>data-container</code> on the container and every child lands in that band
|
|
208
|
+
unless it sets its own <code>data-container</code>. This section defaults to
|
|
209
|
+
<code>md</code>, so the heading and this paragraph sit at 64rem.
|
|
210
|
+
</p>
|
|
211
|
+
</hgroup>
|
|
212
|
+
|
|
213
|
+
<div
|
|
214
|
+
class="bg-muted text-muted-foreground rounded-md p-md mb-xs text-center text-sm font-strong"
|
|
215
|
+
>
|
|
216
|
+
no data-container · inherits the md default
|
|
217
|
+
</div>
|
|
218
|
+
<div
|
|
219
|
+
data-container="bleed"
|
|
220
|
+
class="bg-foreground text-background p-md text-center text-sm font-strong"
|
|
221
|
+
>
|
|
222
|
+
data-container="bleed" · one child opting out to full bleed
|
|
223
|
+
</div>
|
|
224
|
+
</div>
|
|
225
|
+
</section>
|
|
226
|
+
|
|
227
|
+
<!-- Responsive container variants -->
|
|
228
|
+
<section class="py-xl border-t">
|
|
229
|
+
<div class="container">
|
|
230
|
+
<hgroup class="flex flex-col gap-sm pb-md">
|
|
231
|
+
<span class="text-eyebrow">Responsive variants</span>
|
|
232
|
+
<h2 class="text-h5 font-heading">@md:container and @max-md:container</h2>
|
|
233
|
+
<p class="text-muted-foreground">
|
|
234
|
+
A responsive container is a band subgrid for only part of the range and a plain block
|
|
235
|
+
the rest. <code>@md:container</code> aligns to the bands at md and up;
|
|
236
|
+
<code>@max-md:container</code> aligns below md and falls back to a normal grid above
|
|
237
|
+
it. Resize to watch each switch.
|
|
238
|
+
</p>
|
|
239
|
+
</hgroup>
|
|
240
|
+
|
|
241
|
+
<!-- @md:container — plain block below md, band subgrid at md+ -->
|
|
242
|
+
<p class="text-sm text-muted-foreground font-strong pb-sm">
|
|
243
|
+
@md:container · stacks full width below md; at md and up the second child moves into the
|
|
244
|
+
sm band.
|
|
245
|
+
</p>
|
|
246
|
+
<div class="@md:container mb-lg">
|
|
247
|
+
<div
|
|
248
|
+
class="bg-card text-card-foreground border rounded-md p-md mb-xs text-center text-sm font-strong"
|
|
249
|
+
>
|
|
250
|
+
no data-container · lg default at md+
|
|
251
|
+
</div>
|
|
252
|
+
<div
|
|
253
|
+
data-container="sm"
|
|
254
|
+
class="bg-primary text-primary-foreground rounded-md p-md text-center text-sm font-strong"
|
|
255
|
+
>
|
|
256
|
+
data-container="sm" · only narrows at md+
|
|
257
|
+
</div>
|
|
258
|
+
</div>
|
|
259
|
+
|
|
260
|
+
<!-- @max-md:container — band subgrid below md, two-col grid at md+ -->
|
|
261
|
+
<p class="text-sm text-muted-foreground font-strong pb-sm">
|
|
262
|
+
@max-md:container · a two column grid at md and up; below md it becomes a band container
|
|
263
|
+
so its first child drops into the xs band.
|
|
264
|
+
</p>
|
|
265
|
+
<div class="grid grid-cols-2 gap-md @max-md:container">
|
|
266
|
+
<div
|
|
267
|
+
data-container="xs"
|
|
268
|
+
class="bg-secondary text-secondary-foreground rounded-md p-md text-center text-sm font-strong"
|
|
269
|
+
>
|
|
270
|
+
data-container="xs"
|
|
271
|
+
</div>
|
|
272
|
+
<div
|
|
273
|
+
class="bg-tertiary text-tertiary-foreground rounded-md p-md text-center text-sm font-strong"
|
|
274
|
+
>
|
|
275
|
+
sibling child
|
|
276
|
+
</div>
|
|
277
|
+
</div>
|
|
278
|
+
</div>
|
|
279
|
+
</section>
|
|
280
|
+
|
|
281
|
+
<!-- Article reading width -->
|
|
282
|
+
<section class="py-xl border-t">
|
|
283
|
+
<div class="container ui-prose" data-variant="article">
|
|
284
|
+
<hgroup>
|
|
285
|
+
<span class="text-eyebrow">data-variant="article"</span>
|
|
286
|
+
<h2>Article reading width</h2>
|
|
287
|
+
<p class="text-lg text-muted-foreground">A measure tuned for long-form text.</p>
|
|
288
|
+
</hgroup>
|
|
289
|
+
<p>
|
|
290
|
+
Add <code>data-variant="article"</code> to a container and it becomes a centered,
|
|
291
|
+
character-based reading column instead of a band subgrid. The width comes from the
|
|
292
|
+
<code>--article-*</code> tokens, defaulting to <code>lg</code> at roughly 70 characters.
|
|
293
|
+
</p>
|
|
294
|
+
<p>
|
|
295
|
+
Pick a different measure with <code>data-container</code>: <code>xs</code> is 45ch,
|
|
296
|
+
<code>sm</code> 50ch, <code>md</code> 65ch, <code>lg</code> 70ch, <code>xl</code> 75ch.
|
|
297
|
+
For full or bleed widths, use a plain band container instead, since the article variant
|
|
298
|
+
only defines the reading sizes.
|
|
299
|
+
</p>
|
|
300
|
+
</div>
|
|
301
|
+
</section>
|
|
302
|
+
</main>
|
|
303
|
+
|
|
304
|
+
<footer class="border-t" data-transition-layer="global-footer">
|
|
305
|
+
<div class="container py-xl">
|
|
306
|
+
<div class="flex items-center justify-between gap-md">
|
|
307
|
+
<div class="text-h6 font-black">Zazz tests</div>
|
|
308
|
+
<menu class="flex gap-sm">
|
|
309
|
+
<li><a class="ui-button" data-variant="link" href="about.html">About</a></li>
|
|
310
|
+
<li><a class="ui-button" data-variant="link" href="layout.html">Layout</a></li>
|
|
311
|
+
<li><a class="ui-button" data-variant="link" href="responsive.html">Responsive</a></li>
|
|
312
|
+
<li><a class="ui-button" data-variant="link" href="products.html">Products</a></li>
|
|
313
|
+
<li><a class="ui-button" data-variant="link" href="components.html">Components</a></li>
|
|
314
|
+
<li><a class="ui-button" data-variant="link" href="forms.html">Forms</a></li>
|
|
315
|
+
</menu>
|
|
316
|
+
</div>
|
|
317
|
+
</div>
|
|
318
|
+
</footer>
|
|
319
|
+
</body>
|
|
320
|
+
</html>
|