@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,515 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* reset.css — Native element baselines and shared control primitives.
|
|
3
|
+
*
|
|
4
|
+
* @layer reset
|
|
5
|
+
* @requires layers.css, _properties.css, _variables.css
|
|
6
|
+
* @uses appearance: none — select chevron reset
|
|
7
|
+
* @uses ::details-content — accordion open/close (see _accordion.css for :where(ui-accordion, .ui-accordion))
|
|
8
|
+
* @uses container-type — layout containers on main, article, section
|
|
9
|
+
* @uses view-transition-name via the <main> tag - main-content and [data-transition-layer] —
|
|
10
|
+
* global (animated in _view-transitions.css)
|
|
11
|
+
* @uses text-box — vertical trim on headings
|
|
12
|
+
* @uses color-mix(), oklch(from …), contrast-color() — mark/highlight tints
|
|
13
|
+
* @tokens Native-control hooks declared per element — --code-*,
|
|
14
|
+
* --search-cancel-*, --placeholder-color
|
|
15
|
+
*
|
|
16
|
+
* Note: Checkbox lives in _checkbox.css; range/slider in _slider.css;
|
|
17
|
+
* switch in _switch.css.
|
|
18
|
+
*
|
|
19
|
+
* Note: <select> picker internals live in _select.css; popover in _popover.css;
|
|
20
|
+
* dialog in _dialog.css.
|
|
21
|
+
*/
|
|
22
|
+
@layer reset {
|
|
23
|
+
/* ===========================================================================
|
|
24
|
+
UNIVERSAL RESET — box model, margins, padding, borders
|
|
25
|
+
=========================================================================== */
|
|
26
|
+
|
|
27
|
+
:where(*, ::before, ::after, ::backdrop, ::file-selector-button) {
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
margin: 0;
|
|
30
|
+
padding: 0;
|
|
31
|
+
border: 0 solid;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* ===========================================================================
|
|
35
|
+
BASE ELEMENT RESETS
|
|
36
|
+
=========================================================================== */
|
|
37
|
+
|
|
38
|
+
:where(html) {
|
|
39
|
+
font-family: var(--font-family-body, sans-serif);
|
|
40
|
+
font-size: 16px;
|
|
41
|
+
line-height: 1.5;
|
|
42
|
+
tab-size: 4;
|
|
43
|
+
-webkit-text-size-adjust: 100%;
|
|
44
|
+
background-color: var(--background);
|
|
45
|
+
-webkit-tap-highlight-color: transparent;
|
|
46
|
+
overflow: clip;
|
|
47
|
+
|
|
48
|
+
/* Enable container queries by default */
|
|
49
|
+
container-type: normal;
|
|
50
|
+
container-name: html;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:where(:host) {
|
|
54
|
+
line-height: 1.5;
|
|
55
|
+
tab-size: 4;
|
|
56
|
+
-webkit-text-size-adjust: 100%;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:where(body) {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
font-optical-sizing: auto;
|
|
63
|
+
position: relative;
|
|
64
|
+
-webkit-text-size-adjust: 100%;
|
|
65
|
+
text-rendering: optimizeLegibility;
|
|
66
|
+
-moz-osx-font-smoothing: grayscale;
|
|
67
|
+
-webkit-font-smoothing: antialiased;
|
|
68
|
+
text-wrap: pretty;
|
|
69
|
+
color: var(--foreground);
|
|
70
|
+
background-color: var(--background);
|
|
71
|
+
block-size: 100svh;
|
|
72
|
+
scroll-behavior: smooth;
|
|
73
|
+
scrollbar-gutter: stable;
|
|
74
|
+
overflow-y: auto;
|
|
75
|
+
overflow-x: clip;
|
|
76
|
+
font-size: var(--font-size-md);
|
|
77
|
+
line-height: var(--leading-md);
|
|
78
|
+
letter-spacing: var(--tracking-md);
|
|
79
|
+
|
|
80
|
+
/* Enable container queries by default */
|
|
81
|
+
container-type: inline-size;
|
|
82
|
+
container-name: body;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:where(:focus-visible) {
|
|
86
|
+
outline: var(--outline-width) var(--outline-style) var(--ring);
|
|
87
|
+
outline-offset: var(--outline-offset);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:where(b, strong) {
|
|
91
|
+
font-weight: var(--font-weight-strong);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:where(main) {
|
|
95
|
+
--_container-type: inline-size;
|
|
96
|
+
--_container-name: main;
|
|
97
|
+
--_view-transition-name: main-content;
|
|
98
|
+
|
|
99
|
+
/* Allow for more predictable z-indexing and spacing */
|
|
100
|
+
isolation: isolate;
|
|
101
|
+
position: relative;
|
|
102
|
+
|
|
103
|
+
/* Fill the flex body so the footer stays pinned to the bottom on short pages.
|
|
104
|
+
Keeps main's box consistent between pages so view-transition snapshots align. */
|
|
105
|
+
flex: 1 0 auto;
|
|
106
|
+
overflow: clip;
|
|
107
|
+
|
|
108
|
+
/* Enable container queries for main content */
|
|
109
|
+
container-type: var(--_container-type);
|
|
110
|
+
container-name: var(--_container-name);
|
|
111
|
+
|
|
112
|
+
/* View transitions - Main content is isolated from the rest of the page and can be animated independently of, for example, the header or footer */
|
|
113
|
+
view-transition-name: var(--_view-transition-name);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:where([data-transition-layer="global-header"]) {
|
|
117
|
+
view-transition-name: global-header;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:where([data-transition-layer="global-footer"]) {
|
|
121
|
+
view-transition-name: global-footer;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
:where(header) {
|
|
125
|
+
--_container-name: header;
|
|
126
|
+
--_container-type: inline-size;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:where(footer) {
|
|
130
|
+
--_container-name: footer;
|
|
131
|
+
--_container-type: inline-size;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:where(section) {
|
|
135
|
+
--_container-name: section;
|
|
136
|
+
--_container-type: inline-size;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:where(article) {
|
|
140
|
+
--_container-name: article;
|
|
141
|
+
--_container-type: inline-size;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:where(header, footer, section, article) {
|
|
145
|
+
/* Allow for more predictable z-indexing */
|
|
146
|
+
position: relative;
|
|
147
|
+
|
|
148
|
+
/* Enable container queries for main content sections */
|
|
149
|
+
container-type: var(--_container-type);
|
|
150
|
+
container-name: var(--_container-name, layout);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
:where(pre) {
|
|
154
|
+
margin: unset;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
:where(a) {
|
|
158
|
+
color: unset;
|
|
159
|
+
background-color: unset;
|
|
160
|
+
-webkit-text-decoration: inherit;
|
|
161
|
+
text-decoration: inherit;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* ===========================================================================
|
|
165
|
+
TYPOGRAPHY & SEMANTIC ELEMENTS
|
|
166
|
+
=========================================================================== */
|
|
167
|
+
|
|
168
|
+
/* Headings inherit by default — utility classes (.text-h1, etc.) drive size/weight */
|
|
169
|
+
:where(h1, h2, h3, h4, h5, h6) {
|
|
170
|
+
font-size: inherit;
|
|
171
|
+
font-weight: inherit;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
:where(small) {
|
|
175
|
+
font-size: 80%;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
:where(sub, sup) {
|
|
179
|
+
font-size: 75%;
|
|
180
|
+
line-height: 0;
|
|
181
|
+
position: relative;
|
|
182
|
+
vertical-align: baseline;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
:where(sub) {
|
|
186
|
+
bottom: -0.25em;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
:where(sup) {
|
|
190
|
+
top: -0.5em;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:where(abbr[title]) {
|
|
194
|
+
-webkit-text-decoration: underline dotted;
|
|
195
|
+
text-decoration: underline dotted;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
:where(hr) {
|
|
199
|
+
block-size: 1px;
|
|
200
|
+
color: var(--border);
|
|
201
|
+
background-color: var(--border);
|
|
202
|
+
border: 0;
|
|
203
|
+
flex-shrink: 0;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
:where(hr[data-orientation="vertical"]) {
|
|
207
|
+
inline-size: 1px;
|
|
208
|
+
color: var(--border);
|
|
209
|
+
background-color: var(--border);
|
|
210
|
+
border: 0;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:where(code, samp, pre) {
|
|
214
|
+
font-family: var(--font-family-mono);
|
|
215
|
+
font-size: 1em;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
:where(code) {
|
|
219
|
+
--code-display: inline;
|
|
220
|
+
--code-background: var(--muted);
|
|
221
|
+
--code-border: 1px solid var(--muted);
|
|
222
|
+
--code-padding-inline: var(--step-1);
|
|
223
|
+
--code-padding-block: 0em;
|
|
224
|
+
--code-radius: var(--radius-xs);
|
|
225
|
+
--code-color: var(--foreground);
|
|
226
|
+
|
|
227
|
+
display: var(--code-display);
|
|
228
|
+
background-color: var(--code-background);
|
|
229
|
+
padding-inline: var(--code-padding-inline);
|
|
230
|
+
padding-block: var(--code-padding-block);
|
|
231
|
+
border: var(--code-border);
|
|
232
|
+
border-radius: var(--code-radius);
|
|
233
|
+
color: var(--code-color);
|
|
234
|
+
white-space: nowrap;
|
|
235
|
+
overflow: hidden;
|
|
236
|
+
text-overflow: ellipsis;
|
|
237
|
+
max-inline-size: 100%;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* <kbd> baseline lives with the Kbd primitive — see primitives/kbd/kbd.css */
|
|
241
|
+
|
|
242
|
+
/* ===========================================================================
|
|
243
|
+
LIST RESETS
|
|
244
|
+
=========================================================================== */
|
|
245
|
+
|
|
246
|
+
:where(ol, ul, menu) {
|
|
247
|
+
list-style: none;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/* ===========================================================================
|
|
251
|
+
TABLE RESETS
|
|
252
|
+
=========================================================================== */
|
|
253
|
+
|
|
254
|
+
:where(table) {
|
|
255
|
+
text-indent: 0;
|
|
256
|
+
border-color: inherit;
|
|
257
|
+
border-collapse: collapse;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/* ===========================================================================
|
|
261
|
+
MEDIA RESETS
|
|
262
|
+
=========================================================================== */
|
|
263
|
+
|
|
264
|
+
:where(img, svg, video, canvas, audio, iframe, embed, object) {
|
|
265
|
+
display: block;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
:where(img, svg, video, canvas, audio, iframe, embed, object) {
|
|
269
|
+
vertical-align: middle;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
:where(img, video) {
|
|
273
|
+
/* Ensure the image is responsive */
|
|
274
|
+
max-inline-size: 100%;
|
|
275
|
+
block-size: auto;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
:where(figure) {
|
|
279
|
+
display: flex;
|
|
280
|
+
flex-direction: column;
|
|
281
|
+
|
|
282
|
+
> img {
|
|
283
|
+
inline-size: 100%;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/* Custom text selection styling — the tinted background is safe everywhere
|
|
288
|
+
(relative oklch is Baseline). contrast-color() is Chromium-only, so it is
|
|
289
|
+
gated: without it the selection keeps its inherited text color, which stays
|
|
290
|
+
legible against a 30%-opacity tint in both light and dark modes. */
|
|
291
|
+
::selection {
|
|
292
|
+
background-color: oklch(from var(--primary) calc(l + 0.1) c h / 0.3);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
@supports (color: contrast-color(white)) {
|
|
296
|
+
::selection {
|
|
297
|
+
/* Ensure text is always legible on the primary color at 30% opacity + the background color */
|
|
298
|
+
color: contrast-color(
|
|
299
|
+
color-mix(
|
|
300
|
+
in oklch,
|
|
301
|
+
var(--background) 50%,
|
|
302
|
+
oklch(from var(--primary) calc(l + 0.1) c h / 0.3)
|
|
303
|
+
)
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/* ===========================================================================
|
|
309
|
+
FORM ELEMENT RESETS
|
|
310
|
+
=========================================================================== */
|
|
311
|
+
|
|
312
|
+
/* Inherit font and color across all form controls */
|
|
313
|
+
:where(button, input, optgroup, select, textarea),
|
|
314
|
+
::file-selector-button {
|
|
315
|
+
font: inherit;
|
|
316
|
+
font-feature-settings: inherit;
|
|
317
|
+
font-variation-settings: inherit;
|
|
318
|
+
letter-spacing: inherit;
|
|
319
|
+
color: inherit;
|
|
320
|
+
padding: unset;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/* Preflight compatibility — cross-browser form baselines */
|
|
324
|
+
:where(button, input, select, textarea),
|
|
325
|
+
::file-selector-button {
|
|
326
|
+
border-radius: 0;
|
|
327
|
+
background-color: transparent;
|
|
328
|
+
opacity: 1;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
:where(button, input[type="button"], input[type="reset"], input[type="submit"]),
|
|
332
|
+
::file-selector-button {
|
|
333
|
+
appearance: button;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
::file-selector-button {
|
|
337
|
+
margin-inline-end: 4px;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
:where(select:is([multiple], [size])) optgroup {
|
|
341
|
+
font-weight: var(--font-weight-strong);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
:where(select:is([multiple], [size])) optgroup option {
|
|
345
|
+
padding-inline-start: var(--gap-sm);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
:-moz-ui-invalid {
|
|
349
|
+
box-shadow: none;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
::-webkit-inner-spin-button,
|
|
353
|
+
::-webkit-outer-spin-button {
|
|
354
|
+
height: auto;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
::-webkit-search-decoration {
|
|
358
|
+
-webkit-appearance: none;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
::-webkit-details-marker {
|
|
362
|
+
display: none;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
::-webkit-search-cancel-button {
|
|
366
|
+
--search-cancel-display: block;
|
|
367
|
+
--search-cancel-color: currentColor;
|
|
368
|
+
--search-cancel-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'/%3E%3Cline x1='200' y1='56' x2='56' y2='200' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cline x1='200' y1='200' x2='56' y2='56' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3C/svg%3E");
|
|
369
|
+
--search-cancel-icon-size: var(--step-4);
|
|
370
|
+
--search-cancel-size: var(--step-6);
|
|
371
|
+
--search-cancel-radius: var(--radius-sm);
|
|
372
|
+
|
|
373
|
+
-webkit-appearance: none;
|
|
374
|
+
|
|
375
|
+
margin: 0;
|
|
376
|
+
padding: 0;
|
|
377
|
+
inline-size: var(--search-cancel-size);
|
|
378
|
+
block-size: var(--search-cancel-size);
|
|
379
|
+
border-radius: var(--search-cancel-radius);
|
|
380
|
+
|
|
381
|
+
transition:
|
|
382
|
+
opacity var(--default-transition-duration) var(--default-transition-timing-function),
|
|
383
|
+
display var(--default-transition-duration) var(--default-transition-timing-function)
|
|
384
|
+
allow-discrete;
|
|
385
|
+
|
|
386
|
+
mask: var(--search-cancel-mask) no-repeat center / var(--search-cancel-icon-size);
|
|
387
|
+
background-size: var(--search-cancel-icon-size);
|
|
388
|
+
background-color: var(--search-cancel-color);
|
|
389
|
+
background-repeat: no-repeat;
|
|
390
|
+
background-position: center;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
::-webkit-search-cancel-button:is(:hover) {
|
|
394
|
+
opacity: 0.5;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/* Suppress the browser's built-in password reveal / clear glyphs (Edge/IE) so
|
|
398
|
+
they never double up with the Zazz [data-slot~="password-group-toggle"] button. */
|
|
399
|
+
::-ms-reveal,
|
|
400
|
+
::-ms-clear {
|
|
401
|
+
display: none;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
::-webkit-date-and-time-value {
|
|
405
|
+
min-height: 1lh;
|
|
406
|
+
text-align: inherit;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
::-webkit-datetime-edit {
|
|
410
|
+
display: inline-flex;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
::-webkit-datetime-edit-fields-wrapper {
|
|
414
|
+
padding: 0;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
::-webkit-datetime-edit,
|
|
418
|
+
::-webkit-datetime-edit-year-field,
|
|
419
|
+
::-webkit-datetime-edit-month-field,
|
|
420
|
+
::-webkit-datetime-edit-day-field,
|
|
421
|
+
::-webkit-datetime-edit-hour-field,
|
|
422
|
+
::-webkit-datetime-edit-minute-field,
|
|
423
|
+
::-webkit-datetime-edit-second-field,
|
|
424
|
+
::-webkit-datetime-edit-millisecond-field,
|
|
425
|
+
::-webkit-datetime-edit-meridiem-field {
|
|
426
|
+
padding-block: 0;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
::-webkit-calendar-picker-indicator {
|
|
430
|
+
line-height: 1;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/* Input field resets */
|
|
434
|
+
:where(textarea, input) {
|
|
435
|
+
font-size: unset;
|
|
436
|
+
block-size: unset;
|
|
437
|
+
padding: unset;
|
|
438
|
+
margin-bottom: unset;
|
|
439
|
+
line-height: unset;
|
|
440
|
+
background-color: unset;
|
|
441
|
+
border: unset;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
:where(textarea) {
|
|
445
|
+
resize: vertical;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
::placeholder {
|
|
449
|
+
--placeholder-color: var(--muted-foreground);
|
|
450
|
+
color: var(--placeholder-color);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
:where(select) {
|
|
454
|
+
font-size: unset;
|
|
455
|
+
padding: unset;
|
|
456
|
+
margin: unset;
|
|
457
|
+
appearance: none;
|
|
458
|
+
-moz-appearance: none;
|
|
459
|
+
-webkit-appearance: none;
|
|
460
|
+
background-repeat: no-repeat;
|
|
461
|
+
background-position: right center;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
::picker(select) {
|
|
465
|
+
padding: unset;
|
|
466
|
+
margin: unset;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/* Native <select> internals (::picker panel, <option>, ::picker-icon) live in
|
|
470
|
+
_select.css under @layer reset to keep the select styling modular. */
|
|
471
|
+
|
|
472
|
+
/* Button resets */
|
|
473
|
+
:where(button) {
|
|
474
|
+
color: unset;
|
|
475
|
+
padding: unset;
|
|
476
|
+
text-align: inherit;
|
|
477
|
+
background-color: unset;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/* ===========================================================================
|
|
481
|
+
BROWSER NORMALIZATION
|
|
482
|
+
=========================================================================== */
|
|
483
|
+
|
|
484
|
+
/* Strip UA chrome from progress/meter so the component files can redraw the
|
|
485
|
+
track (the element box) and fill (vendor pseudo-elements) from theme tokens —
|
|
486
|
+
same split as select: the plain appearance strip lives here, the redraw in
|
|
487
|
+
progress.css / meter.css under @layer reset. */
|
|
488
|
+
:where(progress, meter) {
|
|
489
|
+
-webkit-appearance: none;
|
|
490
|
+
-moz-appearance: none;
|
|
491
|
+
appearance: none;
|
|
492
|
+
border: none;
|
|
493
|
+
background: none;
|
|
494
|
+
vertical-align: baseline;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/* WebKit wraps both controls in an inner box that carries its own UA styles */
|
|
498
|
+
:where(progress)::-webkit-progress-inner-element {
|
|
499
|
+
display: block;
|
|
500
|
+
block-size: 100%;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
:where(meter)::-webkit-meter-inner-element {
|
|
504
|
+
display: block;
|
|
505
|
+
block-size: 100%;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/* ===========================================================================
|
|
509
|
+
MISCELLANEOUS RESETS
|
|
510
|
+
=========================================================================== */
|
|
511
|
+
|
|
512
|
+
:where([hidden]:not([hidden="until-found"])) {
|
|
513
|
+
display: none !important;
|
|
514
|
+
}
|
|
515
|
+
}
|