opui-css 5.0.0 → 5.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 +317 -276
- package/LICENSE +21 -21
- package/MIGRATING.md +138 -127
- package/README.md +87 -87
- package/astro/index.ts +46 -46
- package/components/AGENTS.md +248 -248
- package/components/Accordion/Accordion.astro +52 -42
- package/components/Anchor/Anchor.astro +55 -51
- package/components/Avatar/Avatar.astro +38 -38
- package/components/Badge/Badge.astro +59 -59
- package/components/Button/Button.astro +45 -45
- package/components/ButtonGroup/ButtonGroup.astro +36 -29
- package/components/Callout/Callout.astro +75 -75
- package/components/Card/Card.astro +38 -36
- package/components/Checkbox/Checkbox.astro +76 -76
- package/components/Checkbox/CheckboxInput.astro +32 -32
- package/components/Chip/Chip.astro +37 -37
- package/components/ClassicSelect/ClassicSelect.astro +83 -83
- package/components/DescriptionList/Description.astro +12 -12
- package/components/DescriptionList/DescriptionList.astro +22 -22
- package/components/DescriptionList/Item.astro +12 -12
- package/components/DescriptionList/Term.astro +12 -12
- package/components/DescriptionList/index.ts +12 -12
- package/components/Dialog/Dialog.astro +43 -41
- package/components/Divider/Divider.astro +17 -17
- package/components/Drawer/Drawer.astro +49 -49
- package/components/Drawer/DrawerFooter.astro +14 -14
- package/components/Drawer/DrawerHeader.astro +31 -31
- package/components/FieldDescription/FieldDescription.astro +13 -13
- package/components/FieldGroup/FieldGroup.astro +31 -31
- package/components/FieldLegend/FieldLegend.astro +15 -15
- package/components/FieldSet/FieldSet.astro +15 -15
- package/components/Form/Form.astro +15 -15
- package/components/IconButton/IconButton.astro +26 -26
- package/components/List/List.astro +36 -36
- package/components/ListItem/ListItem.astro +118 -118
- package/components/Progress/Progress.astro +41 -40
- package/components/Radio/Radio.astro +70 -70
- package/components/Radio/RadioInput.astro +24 -24
- package/components/Range/Range.astro +136 -136
- package/components/Select/Select.astro +106 -106
- package/components/Switch/Switch.astro +101 -101
- package/components/Switch/SwitchInput.astro +25 -25
- package/components/Table/Body.astro +13 -13
- package/components/Table/Cell.astro +13 -13
- package/components/Table/Column.astro +15 -15
- package/components/Table/ColumnGroup.astro +13 -13
- package/components/Table/Head.astro +13 -13
- package/components/Table/HeaderCell.astro +13 -13
- package/components/Table/Row.astro +13 -13
- package/components/Table/Table.astro +18 -18
- package/components/Table/index.ts +20 -20
- package/components/Tabs/Tabs.astro +28 -28
- package/components/Tabs/TabsItem.astro +47 -47
- package/components/Tabs/TabsPanel.astro +21 -21
- package/components/Tabs/TabsTab.astro +19 -19
- package/components/Tabs/index.ts +14 -14
- package/components/TextField/TextField.astro +128 -128
- package/components/Textarea/Textarea.astro +106 -106
- package/components/Toast/Toast.astro +42 -42
- package/components/ToggleButton/ToggleButton.astro +53 -53
- package/components/ToggleGroup/ToggleGroup.astro +49 -49
- package/components/Tooltip/Tooltip.astro +30 -30
- package/core/normalize.css +200 -194
- package/core/palette.css +110 -59
- package/core/utils.css +71 -71
- package/css/components/accordion.css +174 -174
- package/css/components/anchor.css +27 -27
- package/css/components/avatar.css +65 -65
- package/css/components/badge.css +107 -107
- package/css/components/button-group.css +193 -179
- package/css/components/button.css +227 -215
- package/css/components/callout.css +112 -109
- package/css/components/card.css +115 -117
- package/css/components/checkbox.css +211 -205
- package/css/components/chip.css +92 -87
- package/css/components/description-list.css +81 -80
- package/css/components/dialog.css +69 -68
- package/css/components/divider.css +20 -20
- package/css/components/drawer.css +171 -171
- package/css/components/form.css +147 -146
- package/css/components/icon-button.css +158 -139
- package/css/components/link.css +21 -21
- package/css/components/list.css +343 -345
- package/css/components/progress.css +103 -97
- package/css/components/radio.css +170 -172
- package/css/components/range.css +342 -337
- package/css/components/select.css +172 -169
- package/css/components/spinner.css +38 -37
- package/css/components/switch.css +271 -268
- package/css/components/table.css +173 -179
- package/css/components/tabs.css +84 -83
- package/css/components/text-field.css +449 -450
- package/css/components/text-input.css +68 -64
- package/css/components/textarea.css +26 -24
- package/css/components/toast.css +160 -161
- package/css/components/toggle-button.css +91 -87
- package/css/components/toggle-group.css +56 -56
- package/css/components/tooltip.css +70 -67
- package/css/components/typography.css +585 -585
- package/css/components.css +41 -41
- package/css/imports.css +17 -16
- package/css/js/checkbox.js +21 -21
- package/css/js/toast.js +94 -94
- package/css/theme.css +133 -132
- package/dist/op.css +4 -66
- package/dist/op.css.map +1 -1
- package/dist/opui.components.css +5234 -5154
- package/dist/opui.components.css.map +1 -1
- package/dist/opui.css +5798 -5663
- package/dist/opui.css.map +1 -1
- package/env.d.ts +14 -14
- package/open-props.css +8 -9
- package/package.json +81 -81
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
---
|
|
2
|
-
type Props = {
|
|
3
|
-
[key: string]: any
|
|
4
|
-
class?: string
|
|
5
|
-
name?: string
|
|
6
|
-
orientation?: "vertical"
|
|
7
|
-
selection?: "single" | "multiple"
|
|
8
|
-
size?: "default" | "small" | "x-small"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const title = "Toggle Group"
|
|
12
|
-
|
|
13
|
-
const {
|
|
14
|
-
class: className,
|
|
15
|
-
name,
|
|
16
|
-
orientation,
|
|
17
|
-
selection = "multiple",
|
|
18
|
-
size = "default",
|
|
19
|
-
...rest
|
|
20
|
-
} = Astro.props
|
|
21
|
-
|
|
22
|
-
const { $id } = Astro.locals
|
|
23
|
-
const groupName = name || $id("toggle-group")
|
|
24
|
-
const inputType = selection === "single" ? "radio" : "checkbox"
|
|
25
|
-
|
|
26
|
-
const originalName = Astro.locals.currentToggleGroupName
|
|
27
|
-
const originalType = Astro.locals.currentToggleGroupType
|
|
28
|
-
|
|
29
|
-
Astro.locals.currentToggleGroupName = groupName
|
|
30
|
-
Astro.locals.currentToggleGroupType = inputType
|
|
31
|
-
|
|
32
|
-
const html = await Astro.slots.render("default")
|
|
33
|
-
|
|
34
|
-
Astro.locals.currentToggleGroupName = originalName
|
|
35
|
-
Astro.locals.currentToggleGroupType = originalType
|
|
36
|
-
---
|
|
37
|
-
|
|
38
|
-
<div
|
|
39
|
-
class:list={[
|
|
40
|
-
"ui-toggle-group",
|
|
41
|
-
size !== "default" && size && `ui-${size}`,
|
|
42
|
-
orientation && `ui-${orientation}`,
|
|
43
|
-
className,
|
|
44
|
-
]}
|
|
45
|
-
role={selection === "single" ? "radiogroup" : "group"}
|
|
46
|
-
{...rest}
|
|
47
|
-
>
|
|
48
|
-
<Fragment set:html={html} />
|
|
49
|
-
</div>
|
|
1
|
+
---
|
|
2
|
+
type Props = {
|
|
3
|
+
[key: string]: any
|
|
4
|
+
class?: string
|
|
5
|
+
name?: string
|
|
6
|
+
orientation?: "vertical"
|
|
7
|
+
selection?: "single" | "multiple"
|
|
8
|
+
size?: "default" | "small" | "x-small"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const title = "Toggle Group"
|
|
12
|
+
|
|
13
|
+
const {
|
|
14
|
+
class: className,
|
|
15
|
+
name,
|
|
16
|
+
orientation,
|
|
17
|
+
selection = "multiple",
|
|
18
|
+
size = "default",
|
|
19
|
+
...rest
|
|
20
|
+
} = Astro.props
|
|
21
|
+
|
|
22
|
+
const { $id } = Astro.locals
|
|
23
|
+
const groupName = name || $id("toggle-group")
|
|
24
|
+
const inputType = selection === "single" ? "radio" : "checkbox"
|
|
25
|
+
|
|
26
|
+
const originalName = Astro.locals.currentToggleGroupName
|
|
27
|
+
const originalType = Astro.locals.currentToggleGroupType
|
|
28
|
+
|
|
29
|
+
Astro.locals.currentToggleGroupName = groupName
|
|
30
|
+
Astro.locals.currentToggleGroupType = inputType
|
|
31
|
+
|
|
32
|
+
const html = await Astro.slots.render("default")
|
|
33
|
+
|
|
34
|
+
Astro.locals.currentToggleGroupName = originalName
|
|
35
|
+
Astro.locals.currentToggleGroupType = originalType
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
<div
|
|
39
|
+
class:list={[
|
|
40
|
+
"ui-toggle-group",
|
|
41
|
+
size !== "default" && size && `ui-${size}`,
|
|
42
|
+
orientation && `ui-${orientation}`,
|
|
43
|
+
className,
|
|
44
|
+
]}
|
|
45
|
+
role={selection === "single" ? "radiogroup" : "group"}
|
|
46
|
+
{...rest}
|
|
47
|
+
>
|
|
48
|
+
<Fragment set:html={html} />
|
|
49
|
+
</div>
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
---
|
|
2
|
-
import Anchor from "../Anchor/Anchor.astro"
|
|
3
|
-
|
|
4
|
-
type Props = {
|
|
5
|
-
[key: string]: any
|
|
6
|
-
alignment?: string
|
|
7
|
-
arrow?: boolean
|
|
8
|
-
class?: string
|
|
9
|
-
id?: string
|
|
10
|
-
label?: string
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const title = "Tooltip"
|
|
14
|
-
|
|
15
|
-
const { alignment, arrow, class: className, id, label, ...rest } = Astro.props
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
<Anchor
|
|
19
|
-
alignment={alignment}
|
|
20
|
-
class:list={["ui-tooltip", { "ui-with-arrow": arrow }, className]}
|
|
21
|
-
id={id}
|
|
22
|
-
trigger="hover"
|
|
23
|
-
{...rest}
|
|
24
|
-
>
|
|
25
|
-
<slot />
|
|
26
|
-
<Fragment slot="anchored">
|
|
27
|
-
{label}
|
|
28
|
-
<slot name="content" />
|
|
29
|
-
</Fragment>
|
|
30
|
-
</Anchor>
|
|
1
|
+
---
|
|
2
|
+
import Anchor from "../Anchor/Anchor.astro"
|
|
3
|
+
|
|
4
|
+
type Props = {
|
|
5
|
+
[key: string]: any
|
|
6
|
+
alignment?: string
|
|
7
|
+
arrow?: boolean
|
|
8
|
+
class?: string
|
|
9
|
+
id?: string
|
|
10
|
+
label?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const title = "Tooltip"
|
|
14
|
+
|
|
15
|
+
const { alignment, arrow, class: className, id, label, ...rest } = Astro.props
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
<Anchor
|
|
19
|
+
alignment={alignment}
|
|
20
|
+
class:list={["ui-tooltip", { "ui-with-arrow": arrow }, className]}
|
|
21
|
+
id={id}
|
|
22
|
+
trigger="hover"
|
|
23
|
+
{...rest}
|
|
24
|
+
>
|
|
25
|
+
<slot />
|
|
26
|
+
<Fragment slot="anchored">
|
|
27
|
+
{label}
|
|
28
|
+
<slot name="content" />
|
|
29
|
+
</Fragment>
|
|
30
|
+
</Anchor>
|
package/core/normalize.css
CHANGED
|
@@ -1,194 +1,200 @@
|
|
|
1
|
-
@layer normalize {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
::
|
|
5
|
-
|
|
6
|
-
/*
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
|
|
42
|
-
font-
|
|
43
|
-
font-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
min-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
:where(input):-webkit-autofill,
|
|
85
|
-
:where(
|
|
86
|
-
:where(
|
|
87
|
-
:where(textarea):-webkit-autofill,
|
|
88
|
-
:where(
|
|
89
|
-
:where(
|
|
90
|
-
:where(select):-webkit-autofill,
|
|
91
|
-
:where(
|
|
92
|
-
:where(
|
|
93
|
-
:where(input):autofill,
|
|
94
|
-
:where(
|
|
95
|
-
:where(
|
|
96
|
-
:where(textarea):autofill,
|
|
97
|
-
:where(
|
|
98
|
-
:where(
|
|
99
|
-
:where(select):autofill
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
border-radius: var(--border-radius, 0px);
|
|
120
|
-
outline: 2px solid var(--_focus-visible-color);
|
|
121
|
-
outline-offset: 2px;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
125
|
-
:where(:focus-visible) {
|
|
126
|
-
transition: outline-offset .15 var(--ease-2);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
:where(:not(:active):focus-visible) {
|
|
130
|
-
transition-duration: 0.15s;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
:where(:not(:active):focus-visible) {
|
|
135
|
-
outline-offset: var(--outline-offset, 0px);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
:where(
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
[type="
|
|
144
|
-
[type="
|
|
145
|
-
[type=""],
|
|
146
|
-
[type="
|
|
147
|
-
[type="
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
:
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
1
|
+
@layer normalize {
|
|
2
|
+
*,
|
|
3
|
+
::before,
|
|
4
|
+
::after {
|
|
5
|
+
/* Set box sizing instead of inheriting */
|
|
6
|
+
/* https://www.oddbird.net/2025/09/04/box-model/ */
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
* {
|
|
11
|
+
scrollbar-width: thin;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(html) {
|
|
15
|
+
--_page-bg-color: var(--surface-default);
|
|
16
|
+
|
|
17
|
+
accent-color: var(--primary);
|
|
18
|
+
background-color: var(--_page-bg-color);
|
|
19
|
+
block-size: 100%;
|
|
20
|
+
caret-color: var(--primary);
|
|
21
|
+
color: var(--text-muted, var(--text-color-2));
|
|
22
|
+
/* text-color-2 is for backwards compatibility */
|
|
23
|
+
font-family: var(--font-sans);
|
|
24
|
+
interpolate-size: allow-keywords;
|
|
25
|
+
line-height: var(--font-lineheight-4);
|
|
26
|
+
|
|
27
|
+
/* https://kilianvalkhof.com/2022/css-html/your-css-reset-needs-text-size-adjust-probably/ */
|
|
28
|
+
-moz-text-size-adjust: none;
|
|
29
|
+
-webkit-text-size-adjust: none;
|
|
30
|
+
text-size-adjust: none;
|
|
31
|
+
|
|
32
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
33
|
+
scroll-behavior: smooth;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:where(body) {
|
|
38
|
+
-moz-osx-font-smoothing: grayscale;
|
|
39
|
+
-webkit-font-smoothing: antialiased;
|
|
40
|
+
container-type: inline-size;
|
|
41
|
+
font-size: 16px;
|
|
42
|
+
font-synthesis: style;
|
|
43
|
+
font-weight: 400;
|
|
44
|
+
inline-size: 100%;
|
|
45
|
+
margin: 0;
|
|
46
|
+
min-block-size: 100%;
|
|
47
|
+
min-inline-size: 320px;
|
|
48
|
+
position: relative;
|
|
49
|
+
text-rendering: optimizeLegibility;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:where(:not(dialog, popover)) {
|
|
53
|
+
margin: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:where(dialog:not([open])) {
|
|
57
|
+
outline: none !important;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:where(:not(fieldset, progress, meter)) {
|
|
61
|
+
background-origin: border-box;
|
|
62
|
+
background-repeat: no-repeat;
|
|
63
|
+
border-style: solid;
|
|
64
|
+
border-width: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:where(fieldset) {
|
|
68
|
+
border: var(--field-border-width) solid var(--field-border-color);
|
|
69
|
+
border-radius: var(--field-border-radius);
|
|
70
|
+
padding: var(--size-3);
|
|
71
|
+
display: grid;
|
|
72
|
+
gap: var(--size-3);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:where(input, button, textarea),
|
|
76
|
+
:where(input[type="file"])::-webkit-file-upload-button {
|
|
77
|
+
color: inherit;
|
|
78
|
+
font: inherit;
|
|
79
|
+
letter-spacing: inherit;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:where(input):-webkit-autofill,
|
|
83
|
+
:where(input):-webkit-autofill:hover,
|
|
84
|
+
:where(input):-webkit-autofill:focus,
|
|
85
|
+
:where(textarea):-webkit-autofill,
|
|
86
|
+
:where(textarea):-webkit-autofill:hover,
|
|
87
|
+
:where(textarea):-webkit-autofill:focus,
|
|
88
|
+
:where(select):-webkit-autofill,
|
|
89
|
+
:where(select):-webkit-autofill:hover,
|
|
90
|
+
:where(select):-webkit-autofill:focus,
|
|
91
|
+
:where(input):autofill,
|
|
92
|
+
:where(input):autofill:hover,
|
|
93
|
+
:where(input):autofill:focus,
|
|
94
|
+
:where(textarea):autofill,
|
|
95
|
+
:where(textarea):autofill:hover,
|
|
96
|
+
:where(textarea):autofill:focus,
|
|
97
|
+
:where(select):autofill,
|
|
98
|
+
:where(select):autofill:hover,
|
|
99
|
+
:where(select):autofill:focus {
|
|
100
|
+
-webkit-text-fill-color: var(--text-muted, var(--text-color-2));
|
|
101
|
+
-webkit-box-shadow: 0 0 0px 1e5px var(--well-1) inset;
|
|
102
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
::placeholder {
|
|
106
|
+
color: var(--text-muted, var(--text-color-2));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
::-moz-placeholder {
|
|
110
|
+
opacity: 1;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
:focus-visible {
|
|
114
|
+
/* Inverts the --_page-bg-color */
|
|
115
|
+
--_focus-visible-color: rgb(
|
|
116
|
+
from var(--_page-bg-color) calc(255 - r) calc(255 - g) calc(255 - b)
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
border-radius: var(--border-radius, 0px);
|
|
120
|
+
outline: 2px solid var(--_focus-visible-color);
|
|
121
|
+
outline-offset: 2px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
125
|
+
:where(:focus-visible) {
|
|
126
|
+
transition: outline-offset 0.15 var(--ease-2);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:where(:not(:active):focus-visible) {
|
|
130
|
+
transition-duration: 0.15s;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:where(:not(:active):focus-visible) {
|
|
135
|
+
outline-offset: var(--outline-offset, 0px);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
:where(
|
|
139
|
+
a[href],
|
|
140
|
+
area,
|
|
141
|
+
button,
|
|
142
|
+
input:not(
|
|
143
|
+
[type="text"],
|
|
144
|
+
[type="email"],
|
|
145
|
+
[type="number"],
|
|
146
|
+
[type="password"],
|
|
147
|
+
[type=""],
|
|
148
|
+
[type="tel"],
|
|
149
|
+
[type="url"]
|
|
150
|
+
),
|
|
151
|
+
label[for],
|
|
152
|
+
select,
|
|
153
|
+
summary
|
|
154
|
+
) {
|
|
155
|
+
cursor: pointer;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
:where(
|
|
159
|
+
a[href],
|
|
160
|
+
area,
|
|
161
|
+
button,
|
|
162
|
+
[role="button"],
|
|
163
|
+
input,
|
|
164
|
+
label[for],
|
|
165
|
+
select,
|
|
166
|
+
summary,
|
|
167
|
+
textarea,
|
|
168
|
+
[tabindex]:not([tabindex*="-"])
|
|
169
|
+
) {
|
|
170
|
+
-webkit-tap-highlight-color: transparent;
|
|
171
|
+
touch-action: manipulation;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
:where(img, svg, video, canvas, audio, iframe, embed, object) {
|
|
175
|
+
display: block;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
:where(img, svg, video) {
|
|
179
|
+
block-size: auto;
|
|
180
|
+
max-inline-size: 100%;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
:where(svg:not([width])) {
|
|
184
|
+
inline-size: var(--size-7);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
:where(dt:not(:first-of-type)) {
|
|
188
|
+
margin-block-start: var(--size-5);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
:where(figure) {
|
|
192
|
+
display: grid;
|
|
193
|
+
gap: var(--size-2);
|
|
194
|
+
place-items: center;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:target {
|
|
198
|
+
scroll-margin-block-start: 2rem;
|
|
199
|
+
}
|
|
200
|
+
}
|