opui-css 3.3.3 → 3.3.4
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/LICENSE +21 -21
- package/dist/op.css +52 -52
- package/dist/theme-one/components.css +3869 -3869
- package/dist/theme-one/theme-one.css +4404 -4404
- package/dist/theme-two/components.css +3591 -3591
- package/dist/theme-two/theme-two.css +4121 -4121
- package/package.json +9 -10
- package/src/core/normalize.css +196 -196
- package/src/core/utils.css +60 -60
- package/src/open-props.css +10 -10
- package/src/themes/theme-one/components/accordion.css +172 -172
- package/src/themes/theme-one/components/alert.css +85 -85
- package/src/themes/theme-one/components/avatar.css +68 -68
- package/src/themes/theme-one/components/badge.css +101 -101
- package/src/themes/theme-one/components/button-group.css +69 -69
- package/src/themes/theme-one/components/button.css +281 -281
- package/src/themes/theme-one/components/card.css +82 -82
- package/src/themes/theme-one/components/checkbox-radio.css +123 -123
- package/src/themes/theme-one/components/chip.css +135 -135
- package/src/themes/theme-one/components/definition-list.css +68 -68
- package/src/themes/theme-one/components/dialog.css +59 -59
- package/src/themes/theme-one/components/divider.css +7 -7
- package/src/themes/theme-one/components/field-group.css +83 -83
- package/src/themes/theme-one/components/field.css +494 -494
- package/src/themes/theme-one/components/icon-button.css +40 -40
- package/src/themes/theme-one/components/link.css +21 -21
- package/src/themes/theme-one/components/list.css +318 -318
- package/src/themes/theme-one/components/progress.css +83 -83
- package/src/themes/theme-one/components/range.css +121 -121
- package/src/themes/theme-one/components/rich-text.css +210 -210
- package/src/themes/theme-one/components/select.css +163 -163
- package/src/themes/theme-one/components/snackbar.css +148 -148
- package/src/themes/theme-one/components/spinner.css +38 -38
- package/src/themes/theme-one/components/switch.css +225 -225
- package/src/themes/theme-one/components/tab-buttons.css +120 -120
- package/src/themes/theme-one/components/table.css +92 -92
- package/src/themes/theme-one/components/text-field.css +57 -57
- package/src/themes/theme-one/components/textarea.css +25 -25
- package/src/themes/theme-one/components/toggle-button-group.css +135 -135
- package/src/themes/theme-one/components/tooltip.css +94 -94
- package/src/themes/theme-one/components/typography.css +209 -209
- package/src/themes/theme-one/components.css +37 -37
- package/src/themes/theme-one/imports.css +16 -16
- package/src/themes/theme-one/theme.css +163 -163
- package/src/themes/theme-two/components/accordion.css +172 -172
- package/src/themes/theme-two/components/alert.css +85 -85
- package/src/themes/theme-two/components/avatar.css +68 -68
- package/src/themes/theme-two/components/badge.css +101 -101
- package/src/themes/theme-two/components/button-group.css +50 -50
- package/src/themes/theme-two/components/button.css +229 -229
- package/src/themes/theme-two/components/card.css +82 -82
- package/src/themes/theme-two/components/checkbox-radio.css +123 -123
- package/src/themes/theme-two/components/chip.css +135 -135
- package/src/themes/theme-two/components/definition-list.css +68 -68
- package/src/themes/theme-two/components/dialog.css +59 -59
- package/src/themes/theme-two/components/divider.css +7 -7
- package/src/themes/theme-two/components/field-group.css +83 -83
- package/src/themes/theme-two/components/field.css +281 -281
- package/src/themes/theme-two/components/icon-button.css +40 -40
- package/src/themes/theme-two/components/link.css +21 -21
- package/src/themes/theme-two/components/list.css +318 -318
- package/src/themes/theme-two/components/progress.css +83 -83
- package/src/themes/theme-two/components/range.css +121 -121
- package/src/themes/theme-two/components/rich-text.css +210 -210
- package/src/themes/theme-two/components/select.css +162 -162
- package/src/themes/theme-two/components/snackbar.css +148 -148
- package/src/themes/theme-two/components/spinner.css +38 -38
- package/src/themes/theme-two/components/switch.css +225 -225
- package/src/themes/theme-two/components/tab-buttons.css +120 -120
- package/src/themes/theme-two/components/table.css +99 -99
- package/src/themes/theme-two/components/text-field.css +57 -57
- package/src/themes/theme-two/components/textarea.css +25 -25
- package/src/themes/theme-two/components/toggle-button-group.css +135 -135
- package/src/themes/theme-two/components/tooltip.css +94 -94
- package/src/themes/theme-two/components/typography.css +209 -209
- package/src/themes/theme-two/components.css +37 -37
- package/src/themes/theme-two/imports.css +16 -16
- package/src/themes/theme-two/theme.css +158 -158
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
@layer components.extended {
|
|
2
|
-
:where(dialog) {
|
|
3
|
-
margin-block-start: 15%; /* vertical alignment */
|
|
4
|
-
padding-block: 0;
|
|
5
|
-
pointer-events: none;
|
|
6
|
-
|
|
7
|
-
&::backdrop {
|
|
8
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
9
|
-
backdrop-filter: blur(5px);
|
|
10
|
-
|
|
11
|
-
@media (prefers-reduced-motion: reduce) {
|
|
12
|
-
backdrop-filter: none;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&:not([open]) {
|
|
17
|
-
display: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&[open] {
|
|
21
|
-
pointer-events: all;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.actions {
|
|
25
|
-
justify-content: end;
|
|
26
|
-
padding-inline: var(--size-3) var(--size-1);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/* Animation */
|
|
30
|
-
/* There's no close animation, intentionally */
|
|
31
|
-
opacity: 0;
|
|
32
|
-
|
|
33
|
-
&[open] {
|
|
34
|
-
opacity: 1;
|
|
35
|
-
transition: display 0.2s allow-discrete,
|
|
36
|
-
margin-block-start 0.3s var(--ease-1), overlay 0.2s allow-discrete,
|
|
37
|
-
opacity 0.2s var(--ease-out-1);
|
|
38
|
-
|
|
39
|
-
@starting-style {
|
|
40
|
-
opacity: 0;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
45
|
-
margin-block-start: 17%;
|
|
46
|
-
&[open] {
|
|
47
|
-
margin-block-start: 15%;
|
|
48
|
-
|
|
49
|
-
@starting-style {
|
|
50
|
-
margin-block-start: 17%;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
:where(html:has(dialog[open])) {
|
|
57
|
-
overflow: hidden;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
1
|
+
@layer components.extended {
|
|
2
|
+
:where(dialog) {
|
|
3
|
+
margin-block-start: 15%; /* vertical alignment */
|
|
4
|
+
padding-block: 0;
|
|
5
|
+
pointer-events: none;
|
|
6
|
+
|
|
7
|
+
&::backdrop {
|
|
8
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
9
|
+
backdrop-filter: blur(5px);
|
|
10
|
+
|
|
11
|
+
@media (prefers-reduced-motion: reduce) {
|
|
12
|
+
backdrop-filter: none;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:not([open]) {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&[open] {
|
|
21
|
+
pointer-events: all;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.actions {
|
|
25
|
+
justify-content: end;
|
|
26
|
+
padding-inline: var(--size-3) var(--size-1);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Animation */
|
|
30
|
+
/* There's no close animation, intentionally */
|
|
31
|
+
opacity: 0;
|
|
32
|
+
|
|
33
|
+
&[open] {
|
|
34
|
+
opacity: 1;
|
|
35
|
+
transition: display 0.2s allow-discrete,
|
|
36
|
+
margin-block-start 0.3s var(--ease-1), overlay 0.2s allow-discrete,
|
|
37
|
+
opacity 0.2s var(--ease-out-1);
|
|
38
|
+
|
|
39
|
+
@starting-style {
|
|
40
|
+
opacity: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
45
|
+
margin-block-start: 17%;
|
|
46
|
+
&[open] {
|
|
47
|
+
margin-block-start: 15%;
|
|
48
|
+
|
|
49
|
+
@starting-style {
|
|
50
|
+
margin-block-start: 17%;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:where(html:has(dialog[open])) {
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@layer components.root {
|
|
2
|
-
:where(hr) {
|
|
3
|
-
background-color: var(--border-color);
|
|
4
|
-
block-size: var(--border-size-1);
|
|
5
|
-
margin-block: var(--size-fluid-3);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
1
|
+
@layer components.root {
|
|
2
|
+
:where(hr) {
|
|
3
|
+
background-color: var(--border-color);
|
|
4
|
+
block-size: var(--border-size-1);
|
|
5
|
+
margin-block: var(--size-fluid-3);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
@layer components.extended {
|
|
2
|
-
/* Common styling for checkbox, radio and switch groups */
|
|
3
|
-
:where(fieldset.field-group) {
|
|
4
|
-
border: 0;
|
|
5
|
-
border-radius: 0;
|
|
6
|
-
gap: 0;
|
|
7
|
-
padding: 0;
|
|
8
|
-
z-index: 1;
|
|
9
|
-
|
|
10
|
-
legend {
|
|
11
|
-
color: var(--text-color-2);
|
|
12
|
-
padding: 0 1ex 0 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/* Disabled */
|
|
16
|
-
&[disabled] {
|
|
17
|
-
cursor: not-allowed;
|
|
18
|
-
opacity: 0.64;
|
|
19
|
-
user-select: none;
|
|
20
|
-
|
|
21
|
-
input {
|
|
22
|
-
cursor: not-allowed;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/* Validation */
|
|
27
|
-
&.error {
|
|
28
|
-
legend,
|
|
29
|
-
.supporting-text {
|
|
30
|
-
color: var(--color-9);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/* Required */
|
|
35
|
-
&:has([required]) {
|
|
36
|
-
&:not(:has(input:where([type="radio"], [type="checkbox"]):checked)) {
|
|
37
|
-
legend {
|
|
38
|
-
position: relative;
|
|
39
|
-
|
|
40
|
-
&::after {
|
|
41
|
-
color: var(--red);
|
|
42
|
-
content: "*";
|
|
43
|
-
inset: 0 -0.25ex auto auto;
|
|
44
|
-
position: absolute;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
:where(.radio, .checkbox, .switch) .label:after {
|
|
50
|
-
display: none;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/* Supporting text */
|
|
54
|
-
.supporting-text {
|
|
55
|
-
color: var(--text-color-2);
|
|
56
|
-
font-size: var(--font-size-xs);
|
|
57
|
-
line-height: 1.5;
|
|
58
|
-
z-index: 1;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/* Fields */
|
|
62
|
-
.fields {
|
|
63
|
-
display: flex;
|
|
64
|
-
flex-direction: column;
|
|
65
|
-
gap: var(--size-2);
|
|
66
|
-
|
|
67
|
-
* ~ & {
|
|
68
|
-
padding: var(--size-2) 0;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
:last-child {
|
|
73
|
-
padding-block-end: 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/* Directions */
|
|
77
|
-
&.row {
|
|
78
|
-
.fields {
|
|
79
|
-
flex-direction: row;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
1
|
+
@layer components.extended {
|
|
2
|
+
/* Common styling for checkbox, radio and switch groups */
|
|
3
|
+
:where(fieldset.field-group) {
|
|
4
|
+
border: 0;
|
|
5
|
+
border-radius: 0;
|
|
6
|
+
gap: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
z-index: 1;
|
|
9
|
+
|
|
10
|
+
legend {
|
|
11
|
+
color: var(--text-color-2);
|
|
12
|
+
padding: 0 1ex 0 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Disabled */
|
|
16
|
+
&[disabled] {
|
|
17
|
+
cursor: not-allowed;
|
|
18
|
+
opacity: 0.64;
|
|
19
|
+
user-select: none;
|
|
20
|
+
|
|
21
|
+
input {
|
|
22
|
+
cursor: not-allowed;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Validation */
|
|
27
|
+
&.error {
|
|
28
|
+
legend,
|
|
29
|
+
.supporting-text {
|
|
30
|
+
color: var(--color-9);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Required */
|
|
35
|
+
&:has([required]) {
|
|
36
|
+
&:not(:has(input:where([type="radio"], [type="checkbox"]):checked)) {
|
|
37
|
+
legend {
|
|
38
|
+
position: relative;
|
|
39
|
+
|
|
40
|
+
&::after {
|
|
41
|
+
color: var(--red);
|
|
42
|
+
content: "*";
|
|
43
|
+
inset: 0 -0.25ex auto auto;
|
|
44
|
+
position: absolute;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
:where(.radio, .checkbox, .switch) .label:after {
|
|
50
|
+
display: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Supporting text */
|
|
54
|
+
.supporting-text {
|
|
55
|
+
color: var(--text-color-2);
|
|
56
|
+
font-size: var(--font-size-xs);
|
|
57
|
+
line-height: 1.5;
|
|
58
|
+
z-index: 1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Fields */
|
|
62
|
+
.fields {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
gap: var(--size-2);
|
|
66
|
+
|
|
67
|
+
* ~ & {
|
|
68
|
+
padding: var(--size-2) 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:last-child {
|
|
73
|
+
padding-block-end: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Directions */
|
|
77
|
+
&.row {
|
|
78
|
+
.fields {
|
|
79
|
+
flex-direction: row;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|