opui-css 3.3.5 → 4.0.1
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 +241 -0
- package/LICENSE +21 -21
- package/MIGRATING.md +105 -0
- package/README.md +66 -29
- package/astro/index.ts +46 -0
- package/components/AGENTS.md +247 -0
- package/components/Accordion/Accordion.astro +42 -0
- package/components/Anchor/Anchor.astro +51 -0
- package/components/Avatar/Avatar.astro +44 -0
- package/components/Badge/Badge.astro +54 -0
- package/components/Button/Button.astro +45 -0
- package/components/ButtonGroup/ButtonGroup.astro +29 -0
- package/components/Callout/Callout.astro +75 -0
- package/components/Card/Card.astro +38 -0
- package/components/Checkbox/Checkbox.astro +76 -0
- package/components/Checkbox/CheckboxInput.astro +32 -0
- package/components/Chip/Chip.astro +37 -0
- package/components/ClassicSelect/ClassicSelect.astro +83 -0
- package/components/DescriptionList/Description.astro +12 -0
- package/components/DescriptionList/DescriptionList.astro +22 -0
- package/components/DescriptionList/Item.astro +12 -0
- package/components/DescriptionList/Term.astro +12 -0
- package/components/DescriptionList/index.ts +12 -0
- package/components/Dialog/Dialog.astro +43 -0
- package/components/Divider/Divider.astro +14 -0
- package/components/Drawer/Drawer.astro +49 -0
- package/components/Drawer/DrawerFooter.astro +14 -0
- package/components/Drawer/DrawerHeader.astro +31 -0
- package/components/FieldDescription/FieldDescription.astro +13 -0
- package/components/FieldGroup/FieldGroup.astro +31 -0
- package/components/FieldLegend/FieldLegend.astro +15 -0
- package/components/FieldSet/FieldSet.astro +15 -0
- package/components/Form/Form.astro +15 -0
- package/components/IconButton/IconButton.astro +26 -0
- package/components/List/List.astro +36 -0
- package/components/ListItem/ListItem.astro +118 -0
- package/components/Progress/Progress.astro +40 -0
- package/components/Radio/Radio.astro +70 -0
- package/components/Radio/RadioInput.astro +24 -0
- package/components/Range/Range.astro +136 -0
- package/components/Select/Select.astro +106 -0
- package/components/Switch/Switch.astro +101 -0
- package/components/Switch/SwitchInput.astro +25 -0
- package/components/Table/Body.astro +13 -0
- package/components/Table/Cell.astro +13 -0
- package/components/Table/Column.astro +15 -0
- package/components/Table/ColumnGroup.astro +13 -0
- package/components/Table/Head.astro +13 -0
- package/components/Table/HeaderCell.astro +13 -0
- package/components/Table/Row.astro +13 -0
- package/components/Table/Table.astro +15 -0
- package/components/Table/index.ts +20 -0
- package/components/Tabs/Tabs.astro +28 -0
- package/components/Tabs/TabsItem.astro +47 -0
- package/components/Tabs/TabsPanel.astro +21 -0
- package/components/Tabs/TabsTab.astro +19 -0
- package/components/Tabs/index.ts +14 -0
- package/components/TextField/TextField.astro +128 -0
- package/components/Textarea/Textarea.astro +106 -0
- package/components/Toast/Toast.astro +42 -0
- package/components/ToggleButton/ToggleButton.astro +53 -0
- package/components/ToggleGroup/ToggleGroup.astro +49 -0
- package/components/Tooltip/Tooltip.astro +30 -0
- package/{src/core → core}/normalize.css +194 -196
- package/core/palette.css +59 -0
- package/{src/core → core}/utils.css +71 -60
- package/css/components/accordion.css +174 -0
- package/css/components/anchor.css +27 -0
- package/{src/themes/theme-two → css}/components/avatar.css +65 -68
- package/css/components/badge.css +107 -0
- package/css/components/button-group.css +179 -0
- package/css/components/button.css +215 -0
- package/css/components/callout.css +109 -0
- package/css/components/card.css +117 -0
- package/css/components/checkbox.css +205 -0
- package/{src/themes/theme-one → css}/components/chip.css +87 -135
- package/{src/themes/theme-two/components/definition-list.css → css/components/description-list.css} +77 -68
- package/{src/themes/theme-two → css}/components/dialog.css +68 -59
- package/css/components/divider.css +20 -0
- package/css/components/drawer.css +171 -0
- package/css/components/form.css +146 -0
- package/css/components/icon-button.css +139 -0
- package/{src/themes/theme-two → css}/components/link.css +21 -21
- package/{src/themes/theme-two → css}/components/list.css +345 -318
- package/{src/themes/theme-one → css}/components/progress.css +97 -83
- package/css/components/radio.css +172 -0
- package/css/components/range.css +337 -0
- package/{src/themes/theme-two → css}/components/select.css +169 -162
- package/{src/themes/theme-two → css}/components/spinner.css +37 -38
- package/{src/themes/theme-two → css}/components/switch.css +268 -225
- package/css/components/table.css +179 -0
- package/css/components/tabs.css +77 -0
- package/css/components/text-field.css +450 -0
- package/css/components/text-input.css +64 -0
- package/{src/themes/theme-two → css}/components/textarea.css +24 -25
- package/css/components/toast.css +161 -0
- package/css/components/toggle-button.css +87 -0
- package/css/components/toggle-group.css +56 -0
- package/css/components/tooltip.css +67 -0
- package/css/components/typography.css +585 -0
- package/{src/themes/theme-two → css}/components.css +41 -37
- package/{src/themes/theme-two → css}/imports.css +16 -16
- package/css/js/checkbox.js +21 -0
- package/css/js/toast.js +94 -0
- package/css/theme.css +132 -0
- package/dist/op.css +1001 -32
- package/dist/op.css.map +1 -0
- package/dist/opui.components.css +5146 -0
- package/dist/opui.components.css.map +1 -0
- package/dist/opui.css +6615 -0
- package/dist/opui.css.map +1 -0
- package/env.d.ts +14 -0
- package/open-props.css +9 -0
- package/package.json +81 -72
- package/dist/theme-one/components.css +0 -3869
- package/dist/theme-one/theme-one.css +0 -4424
- package/dist/theme-two/components.css +0 -3591
- package/dist/theme-two/theme-two.css +0 -4141
- package/src/open-props.css +0 -10
- package/src/themes/theme-one/components/accordion.css +0 -172
- package/src/themes/theme-one/components/alert.css +0 -85
- package/src/themes/theme-one/components/avatar.css +0 -68
- package/src/themes/theme-one/components/badge.css +0 -101
- package/src/themes/theme-one/components/button-group.css +0 -69
- package/src/themes/theme-one/components/button.css +0 -281
- package/src/themes/theme-one/components/card.css +0 -82
- package/src/themes/theme-one/components/checkbox-radio.css +0 -123
- package/src/themes/theme-one/components/definition-list.css +0 -68
- package/src/themes/theme-one/components/dialog.css +0 -59
- package/src/themes/theme-one/components/divider.css +0 -7
- package/src/themes/theme-one/components/field-group.css +0 -83
- package/src/themes/theme-one/components/field.css +0 -494
- package/src/themes/theme-one/components/icon-button.css +0 -40
- package/src/themes/theme-one/components/link.css +0 -21
- package/src/themes/theme-one/components/list.css +0 -318
- package/src/themes/theme-one/components/range.css +0 -121
- package/src/themes/theme-one/components/rich-text.css +0 -210
- package/src/themes/theme-one/components/select.css +0 -163
- package/src/themes/theme-one/components/snackbar.css +0 -148
- package/src/themes/theme-one/components/spinner.css +0 -38
- package/src/themes/theme-one/components/switch.css +0 -225
- package/src/themes/theme-one/components/tab-buttons.css +0 -120
- package/src/themes/theme-one/components/table.css +0 -92
- package/src/themes/theme-one/components/text-field.css +0 -57
- package/src/themes/theme-one/components/textarea.css +0 -25
- package/src/themes/theme-one/components/toggle-button-group.css +0 -135
- package/src/themes/theme-one/components/tooltip.css +0 -94
- package/src/themes/theme-one/components/typography.css +0 -209
- package/src/themes/theme-one/components.css +0 -37
- package/src/themes/theme-one/imports.css +0 -16
- package/src/themes/theme-one/theme.css +0 -163
- package/src/themes/theme-two/components/accordion.css +0 -172
- package/src/themes/theme-two/components/alert.css +0 -85
- package/src/themes/theme-two/components/badge.css +0 -101
- package/src/themes/theme-two/components/button-group.css +0 -50
- package/src/themes/theme-two/components/button.css +0 -229
- package/src/themes/theme-two/components/card.css +0 -82
- package/src/themes/theme-two/components/checkbox-radio.css +0 -123
- package/src/themes/theme-two/components/chip.css +0 -135
- package/src/themes/theme-two/components/divider.css +0 -7
- package/src/themes/theme-two/components/field-group.css +0 -83
- package/src/themes/theme-two/components/field.css +0 -281
- package/src/themes/theme-two/components/icon-button.css +0 -40
- package/src/themes/theme-two/components/progress.css +0 -83
- package/src/themes/theme-two/components/range.css +0 -121
- package/src/themes/theme-two/components/rich-text.css +0 -210
- package/src/themes/theme-two/components/snackbar.css +0 -148
- package/src/themes/theme-two/components/tab-buttons.css +0 -120
- package/src/themes/theme-two/components/table.css +0 -99
- package/src/themes/theme-two/components/text-field.css +0 -57
- package/src/themes/theme-two/components/toggle-button-group.css +0 -135
- package/src/themes/theme-two/components/tooltip.css +0 -94
- package/src/themes/theme-two/components/typography.css +0 -209
- package/src/themes/theme-two/theme.css +0 -158
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
@layer components.extended {
|
|
2
|
-
@scope (.rich-text) to (.not-rich-text) {
|
|
3
|
-
a {
|
|
4
|
-
color: var(--primary);
|
|
5
|
-
cursor: pointer;
|
|
6
|
-
font-size: inherit;
|
|
7
|
-
font-weight: 700;
|
|
8
|
-
line-height: inherit;
|
|
9
|
-
text-decoration: underline;
|
|
10
|
-
text-decoration-color: var(--primary);
|
|
11
|
-
text-underline-offset: 2px;
|
|
12
|
-
|
|
13
|
-
&[href] {
|
|
14
|
-
&:hover,
|
|
15
|
-
&:focus-visible {
|
|
16
|
-
color: var(--primary-light);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/* Blockquote */
|
|
22
|
-
blockquote {
|
|
23
|
-
font-size: inherit;
|
|
24
|
-
line-height: inherit;
|
|
25
|
-
:first-child {
|
|
26
|
-
margin-block-start: 0;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
:last-child {
|
|
30
|
-
margin-block-end: 0;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/* Text */
|
|
35
|
-
p {
|
|
36
|
-
font-size: inherit;
|
|
37
|
-
line-height: inherit;
|
|
38
|
-
margin-block: 1.25em;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:is(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6) {
|
|
42
|
-
color: var(--text-color-1);
|
|
43
|
-
|
|
44
|
-
& + *:not(&) {
|
|
45
|
-
margin-block-start: 0;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
h1,
|
|
50
|
-
.h1 {
|
|
51
|
-
font-size: var(--font-size-h1, var(--font-size-7));
|
|
52
|
-
letter-spacing: -0.02em;
|
|
53
|
-
line-height: 1.1111111;
|
|
54
|
-
margin-block: 0 0.8888889em;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
h2,
|
|
58
|
-
.h2 {
|
|
59
|
-
font-size: var(--font-size-h2, var(--font-size-5, 2rem));
|
|
60
|
-
letter-spacing: -0.02em;
|
|
61
|
-
line-height: 1.3333333;
|
|
62
|
-
margin-block: 2em 1em;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
h3,
|
|
66
|
-
.h3 {
|
|
67
|
-
font-size: var(--font-size-h3, var(--font-size-4, 1.5rem));
|
|
68
|
-
letter-spacing: -0.01em;
|
|
69
|
-
line-height: 1.6;
|
|
70
|
-
margin-block: 1.6em 0.6em;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
h4,
|
|
74
|
-
.h4 {
|
|
75
|
-
font-size: var(--font-size-h4, var(--font-size-3, 1.25rem));
|
|
76
|
-
letter-spacing: -0.01em;
|
|
77
|
-
line-height: 1.5;
|
|
78
|
-
margin-block: 1.5em 0.5em;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
h5,
|
|
82
|
-
.h5 {
|
|
83
|
-
font-size: var(--font-size-h5, var(--font-size-2, 1.1rem));
|
|
84
|
-
line-height: 1;
|
|
85
|
-
margin-block: 0 var(--size-1);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
h6,
|
|
89
|
-
.h6 {
|
|
90
|
-
font-size: var(--font-size-h6, var(--font-size-1, 1rem));
|
|
91
|
-
line-height: 1;
|
|
92
|
-
margin-block: 0 var(--size-1);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/** Overline */
|
|
96
|
-
:where(.overline, hgroup > :where(p, .p):first-of-type:first-child) {
|
|
97
|
-
color: light-dark(
|
|
98
|
-
oklch(from var(--text-color-2) calc(l * 1.25) c h),
|
|
99
|
-
oklch(from var(--text-color-2) calc(l * 0.75) c h)
|
|
100
|
-
);
|
|
101
|
-
font-size: var(--font-size-xs);
|
|
102
|
-
font-weight: 500;
|
|
103
|
-
letter-spacing: 0.06em;
|
|
104
|
-
line-height: 2.5;
|
|
105
|
-
text-transform: uppercase;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
hgroup {
|
|
109
|
-
& > p {
|
|
110
|
-
margin: 0;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
& > :where(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6) {
|
|
114
|
-
margin-block-end: 0.4em;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
& + * {
|
|
118
|
-
margin-block-start: 3em;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/* The second p element */
|
|
122
|
-
& > :where(p, .p):last-of-type:last-child:not(:first-child) {
|
|
123
|
-
color: oklch(from currentColor l c h / 75%);
|
|
124
|
-
font-size: var(--font-size-lg);
|
|
125
|
-
line-height: 1.6;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/* Lists */
|
|
130
|
-
ul:not([class]) {
|
|
131
|
-
list-style-type: disc;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
ol:not([class]) {
|
|
135
|
-
list-style-type: decimal;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
:where(ul, ol):not([class]) {
|
|
139
|
-
display: grid;
|
|
140
|
-
font-size: inherit;
|
|
141
|
-
gap: 0.5em;
|
|
142
|
-
line-height: inherit;
|
|
143
|
-
margin-block-start: 1.25em;
|
|
144
|
-
margin-block-end: 1.25em;
|
|
145
|
-
padding-inline-start: 1.625em;
|
|
146
|
-
|
|
147
|
-
li {
|
|
148
|
-
padding-inline-start: 0.375em;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/* Nested lists */
|
|
153
|
-
:where(ul ul),
|
|
154
|
-
:where(ul ol),
|
|
155
|
-
:where(ol ul),
|
|
156
|
-
:where(ol ol) {
|
|
157
|
-
margin-block-start: 0.75em;
|
|
158
|
-
margin-block-end: 0.75em;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/* Description lists */
|
|
162
|
-
:where(dl) {
|
|
163
|
-
font-size: inherit;
|
|
164
|
-
line-height: inherit;
|
|
165
|
-
margin-block-start: 1.25em;
|
|
166
|
-
margin-block-end: 1.25em;
|
|
167
|
-
|
|
168
|
-
dt {
|
|
169
|
-
margin-block-start: 1.25em;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
dd {
|
|
173
|
-
margin-block-start: 0.5em;
|
|
174
|
-
padding-inline-start: 1.625em;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/* Figures */
|
|
179
|
-
figure {
|
|
180
|
-
margin-block: 2em;
|
|
181
|
-
|
|
182
|
-
& > * {
|
|
183
|
-
margin-block: 0;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
& figcaption {
|
|
187
|
-
font-size: 0.875em;
|
|
188
|
-
line-height: 1.4285714;
|
|
189
|
-
margin-block-start: 0.8571429em;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/* Remove top margin from first child */
|
|
194
|
-
& > :first-child {
|
|
195
|
-
margin-block-start: 0;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/* Remove bottom margin from last child */
|
|
199
|
-
& > :last-child {
|
|
200
|
-
margin-block-end: 0;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/* Horizontal rules */
|
|
204
|
-
hr {
|
|
205
|
-
& + * {
|
|
206
|
-
margin-block-start: 0;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
@layer components.extended {
|
|
2
|
-
:where(.snackbar) {
|
|
3
|
-
align-items: center;
|
|
4
|
-
/* Inverse surface-filled */
|
|
5
|
-
background-color: light-dark(var(--gray-15), var(--gray-2));
|
|
6
|
-
border-radius: var(--border-radius);
|
|
7
|
-
box-shadow: var(--shadow-2);
|
|
8
|
-
color: var(--text-color-1-contrast);
|
|
9
|
-
display: flex;
|
|
10
|
-
font-size: var(--font-size-sm);
|
|
11
|
-
gap: var(--size-3);
|
|
12
|
-
inset-block: auto var(--size-3);
|
|
13
|
-
inset-inline: var(--size-3) auto;
|
|
14
|
-
justify-content: space-between;
|
|
15
|
-
min-inline-size: min(100%, 37ch);
|
|
16
|
-
padding: var(--size-2) var(--size-3);
|
|
17
|
-
position: fixed;
|
|
18
|
-
inline-size: calc(100% - var(--size-6, 1.75rem));
|
|
19
|
-
z-index: 100;
|
|
20
|
-
|
|
21
|
-
&::backdrop {
|
|
22
|
-
display: none;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
* {
|
|
26
|
-
word-break: break-word;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/* Global positioning (in relation to the window) */
|
|
30
|
-
/*** Default (end-start) */
|
|
31
|
-
inset-block: auto var(--size-3);
|
|
32
|
-
inset-inline: 50% 0;
|
|
33
|
-
translate: -50% 0;
|
|
34
|
-
|
|
35
|
-
&.start-start,
|
|
36
|
-
&.start-center,
|
|
37
|
-
&.start-end {
|
|
38
|
-
inset-block: var(--size-3) auto;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/* TODO use @custom-media instead? */
|
|
42
|
-
@container (width > 480px) {
|
|
43
|
-
/* Default (end-start) */
|
|
44
|
-
inset-block: auto var(--size-7, 2rem);
|
|
45
|
-
inset-inline: var(--size-7, 2rem) auto;
|
|
46
|
-
translate: revert;
|
|
47
|
-
inline-size: fit-content;
|
|
48
|
-
|
|
49
|
-
&.end-start,
|
|
50
|
-
&.end-end,
|
|
51
|
-
&.start-start,
|
|
52
|
-
&.start-end {
|
|
53
|
-
translate: revert;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&.start-start {
|
|
57
|
-
inset-block: var(--size-7, 2rem) auto;
|
|
58
|
-
inset-inline: var(--size-7, 2rem) auto;
|
|
59
|
-
}
|
|
60
|
-
&.start-center {
|
|
61
|
-
inset-block: var(--size-7, 2rem) auto;
|
|
62
|
-
inset-inline: 50% 0;
|
|
63
|
-
translate: -50% 0;
|
|
64
|
-
}
|
|
65
|
-
&.start-end {
|
|
66
|
-
inset-block: var(--size-7, 2rem) auto;
|
|
67
|
-
inset-inline: auto var(--size-7, 2rem);
|
|
68
|
-
}
|
|
69
|
-
&.end-start {
|
|
70
|
-
inset-block-end: var(--size-7, 2rem);
|
|
71
|
-
inset-inline: var(--size-7, 2rem) auto;
|
|
72
|
-
}
|
|
73
|
-
&.end-center {
|
|
74
|
-
inset-block: auto var(--size-7, 2rem);
|
|
75
|
-
inset-inline: 50% 0;
|
|
76
|
-
translate: -50% 0;
|
|
77
|
-
}
|
|
78
|
-
&.end-end {
|
|
79
|
-
inset-block: auto var(--size-7, 2rem);
|
|
80
|
-
inset-inline: auto var(--size-7, 2rem);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/* Absolute positioning */
|
|
85
|
-
&.absolute {
|
|
86
|
-
position: absolute;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/* Actions */
|
|
90
|
-
.actions {
|
|
91
|
-
align-items: center;
|
|
92
|
-
display: flex;
|
|
93
|
-
flex-shrink: 0;
|
|
94
|
-
gap: var(--size-3);
|
|
95
|
-
padding-inline: 0;
|
|
96
|
-
|
|
97
|
-
button {
|
|
98
|
-
/* Inverse hover and active backgrounds */
|
|
99
|
-
&:where(:not([disabled])) {
|
|
100
|
-
&:where(:not(:active):hover) {
|
|
101
|
-
--_bg-color: light-dark(
|
|
102
|
-
color-mix(in oklch, white 40%, black),
|
|
103
|
-
color-mix(in oklch, white 85%, black)
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&:where(:hover:active) {
|
|
108
|
-
--_bg-color: light-dark(
|
|
109
|
-
color-mix(in oklch, white 45%, black),
|
|
110
|
-
color-mix(in oklch, white 80%, black)
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
button:not(:has(svg)) {
|
|
117
|
-
border-radius: var(--border-radius);
|
|
118
|
-
font-size: inherit;
|
|
119
|
-
max-block-size: var(--size-6, 1.5rem);
|
|
120
|
-
padding: 1ex;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
button:has(svg) {
|
|
124
|
-
color: inherit;
|
|
125
|
-
max-inline-size: var(--size-6, 1.75rem);
|
|
126
|
-
margin: var(--size-00);
|
|
127
|
-
padding: var(--size-1);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/* Animations */
|
|
132
|
-
opacity: 0;
|
|
133
|
-
transition: display 0.075s allow-discrete, overlay 0.075s allow-discrete,
|
|
134
|
-
opacity 0.075s var(--ease-out-1);
|
|
135
|
-
|
|
136
|
-
&:popover-open,
|
|
137
|
-
&:popover-open::backdrop,
|
|
138
|
-
&.visible {
|
|
139
|
-
opacity: 1;
|
|
140
|
-
transition: display 0.25s allow-discrete, overlay 0.25s allow-discrete,
|
|
141
|
-
opacity 0.25s var(--ease-out-1);
|
|
142
|
-
|
|
143
|
-
@starting-style {
|
|
144
|
-
opacity: 0;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
@layer components.root {
|
|
2
|
-
:where(nav.tabs) {
|
|
3
|
-
--_bg-color: transparent;
|
|
4
|
-
|
|
5
|
-
& > [role="tablist"] {
|
|
6
|
-
button {
|
|
7
|
-
outline-color: transparent;
|
|
8
|
-
outline-offset: -4px;
|
|
9
|
-
|
|
10
|
-
&[aria-selected="true"] {
|
|
11
|
-
&:focus-visible {
|
|
12
|
-
outline: 2px solid var(--text-color-1);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* Underlined */
|
|
19
|
-
&.underlined {
|
|
20
|
-
/* Tab list */
|
|
21
|
-
& > [role="tablist"] {
|
|
22
|
-
border-bottom: 1px solid var(--border-color);
|
|
23
|
-
|
|
24
|
-
button {
|
|
25
|
-
--_ripple-color: light-dark(
|
|
26
|
-
color-mix(in oklch, var(--gray-2) 80%, var(--color-8)),
|
|
27
|
-
color-mix(in oklch, var(--gray-13) 80%, var(--color-8))
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
background: var(--_bg-color) var(--ripple, none);
|
|
31
|
-
font-weight: 500;
|
|
32
|
-
line-height: var(--font-lineheight-4);
|
|
33
|
-
padding: var(--size-2) var(--size-3);
|
|
34
|
-
|
|
35
|
-
&:focus-visible {
|
|
36
|
-
border-radius: 0;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&[aria-selected="true"] {
|
|
40
|
-
border-block-end: 2px solid var(--primary);
|
|
41
|
-
color: var(--primary);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
45
|
-
transition: background-color 0.2s var(--ease-out-3),
|
|
46
|
-
border-color 0.2s var(--ease-out-3), color 0.2s var(--ease-out-3),
|
|
47
|
-
outline-offset 0.05s var(--ease-1);
|
|
48
|
-
|
|
49
|
-
/*** Ripple effect */
|
|
50
|
-
background-position: center;
|
|
51
|
-
transition: background var(--button-ripple-duration);
|
|
52
|
-
&:where(:not(:active):hover) {
|
|
53
|
-
--ripple: radial-gradient(
|
|
54
|
-
circle,
|
|
55
|
-
transparent 1%,
|
|
56
|
-
var(--_ripple-color) 1%
|
|
57
|
-
)
|
|
58
|
-
center/15000%;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&:where(:hover:active) {
|
|
62
|
-
background-size: var(--button-ripple-size);
|
|
63
|
-
transition: background 0s;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&:hover {
|
|
67
|
-
background-color: light-dark(
|
|
68
|
-
oklch(from var(--primary) calc(l * 0.75) none h / 5%),
|
|
69
|
-
oklch(from var(--primary) calc(l * 1.25) none h / 5%)
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/* Filled */
|
|
78
|
-
&.filled {
|
|
79
|
-
--_bg-color: var(--surface-default);
|
|
80
|
-
--_radius: var(--border-radius);
|
|
81
|
-
--_selected-bg: var(--surface-filled);
|
|
82
|
-
|
|
83
|
-
& > [role="tablist"] {
|
|
84
|
-
background-color: var(--_bg-color);
|
|
85
|
-
border: var(--border-width) solid var(--border-color);
|
|
86
|
-
border-radius: var(--_radius);
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
padding: 0.792ex;
|
|
89
|
-
width: fit-content;
|
|
90
|
-
|
|
91
|
-
button {
|
|
92
|
-
background-color: var(--_bg-color);
|
|
93
|
-
border-radius: var(--_radius);
|
|
94
|
-
line-height: var(--font-lineheight-4);
|
|
95
|
-
padding-inline: var(--size-3);
|
|
96
|
-
|
|
97
|
-
&:hover {
|
|
98
|
-
background-color: oklch(from var(--_bg-color) calc(l * 1.25) c h);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&[aria-selected="true"] {
|
|
102
|
-
background-color: var(--_selected-bg);
|
|
103
|
-
|
|
104
|
-
&:hover {
|
|
105
|
-
background-color: oklch(
|
|
106
|
-
from var(--_selected-bg) calc(l * 1.25) c h
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
112
|
-
transition: background-color 0.2s var(--ease-out-3),
|
|
113
|
-
border-color 0.2s var(--ease-out-3), color 0.2s var(--ease-out-3),
|
|
114
|
-
outline-offset 0.05s var(--ease-1);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
@layer components.root {
|
|
2
|
-
:where(table) {
|
|
3
|
-
border-collapse: collapse;
|
|
4
|
-
display: block;
|
|
5
|
-
margin: var(--size-3) 0;
|
|
6
|
-
max-inline-size: 100%;
|
|
7
|
-
position: relative;
|
|
8
|
-
|
|
9
|
-
/* Rows */
|
|
10
|
-
tr {
|
|
11
|
-
background-color: var(--surface-default);
|
|
12
|
-
border-top: 1px solid var(--border-color);
|
|
13
|
-
|
|
14
|
-
&:hover {
|
|
15
|
-
background-color: oklch(from var(--surface-filled) l c h / 75%);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/* Cells */
|
|
20
|
-
th,
|
|
21
|
-
td {
|
|
22
|
-
border: 1px solid var(--border-color);
|
|
23
|
-
padding: var(--size-1) var(--size-2);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
th {
|
|
27
|
-
background-color: var(--surface-filled);
|
|
28
|
-
color: var(--text-color-1);
|
|
29
|
-
font-size: var(--font-size-sm, 0.75rem);
|
|
30
|
-
font-weight: 600;
|
|
31
|
-
text-align: start;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
td {
|
|
35
|
-
font-size: var(--font-size-sm, 0.75rem);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/* Caption */
|
|
39
|
-
caption {
|
|
40
|
-
caption-side: bottom;
|
|
41
|
-
color: var(--text-color-2);
|
|
42
|
-
font-size: var(--font-size-sm, 0.75rem);
|
|
43
|
-
padding: var(--size-2) 0;
|
|
44
|
-
text-align: start;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/* Header */
|
|
48
|
-
thead {
|
|
49
|
-
position: sticky;
|
|
50
|
-
top: 0;
|
|
51
|
-
z-index: 1;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/* Footer */
|
|
55
|
-
tfoot {
|
|
56
|
-
border-top: 2px solid var(--border-color);
|
|
57
|
-
|
|
58
|
-
tr {
|
|
59
|
-
background-color: var(--surface-filled);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
td {
|
|
63
|
-
color: var(--text-color-1);
|
|
64
|
-
font-weight: 600;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* Column group */
|
|
69
|
-
colgroup col {
|
|
70
|
-
border: none;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
@container (width < 60ch) {
|
|
74
|
-
th,
|
|
75
|
-
td {
|
|
76
|
-
padding: var(--size-1) 0.875rem;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/* Dense */
|
|
81
|
-
&.dense {
|
|
82
|
-
th,
|
|
83
|
-
td {
|
|
84
|
-
padding: var(--size-1) var(--size-2);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
caption {
|
|
88
|
-
padding: var(--size-1) 0;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
@container (width < 60ch) {
|
|
92
|
-
th,
|
|
93
|
-
td {
|
|
94
|
-
padding: var(--size-1) var(--size-2);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
@layer components.extended {
|
|
2
|
-
:where(
|
|
3
|
-
.field:has(
|
|
4
|
-
:where(
|
|
5
|
-
input[type="date"],
|
|
6
|
-
input[type="datetime-local"],
|
|
7
|
-
input[type="email"],
|
|
8
|
-
input[type="month"],
|
|
9
|
-
input[type="number"],
|
|
10
|
-
input[type="password"],
|
|
11
|
-
input[type="search"],
|
|
12
|
-
input[type="tel"],
|
|
13
|
-
input[type="text"],
|
|
14
|
-
input[type="time"],
|
|
15
|
-
input[type="url"],
|
|
16
|
-
input[type="week"]
|
|
17
|
-
)
|
|
18
|
-
)
|
|
19
|
-
) {
|
|
20
|
-
/* Sizes */
|
|
21
|
-
&.small {
|
|
22
|
-
input {
|
|
23
|
-
padding-inline: var(--size-2);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/* Autosuggest */
|
|
29
|
-
:where(.field:has(input[list])) {
|
|
30
|
-
/* Hide native arrow */
|
|
31
|
-
input::-webkit-calendar-picker-indicator {
|
|
32
|
-
opacity: 0;
|
|
33
|
-
position: absolute;
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
pointer-events: none;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
:where(
|
|
39
|
-
.field:has(input[list]:placeholder-shown),
|
|
40
|
-
.field:has(input[list]):where(:focus-within, :hover)
|
|
41
|
-
) {
|
|
42
|
-
/* Arrow */
|
|
43
|
-
&::after {
|
|
44
|
-
block-size: 0;
|
|
45
|
-
border-block-start: 5px solid;
|
|
46
|
-
border-inline: 5px solid transparent;
|
|
47
|
-
content: "";
|
|
48
|
-
display: inline-block;
|
|
49
|
-
flex-shrink: 0;
|
|
50
|
-
inline-size: 0;
|
|
51
|
-
inset: 50% var(--size-3) auto auto;
|
|
52
|
-
pointer-events: none;
|
|
53
|
-
position: absolute;
|
|
54
|
-
translate: 0 -50%;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|