opui-css 2.0.0 → 2.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.
Files changed (41) hide show
  1. package/LICENSE +21 -21
  2. package/dist/op+ui.css +4185 -4185
  3. package/dist/ui.css +4261 -4261
  4. package/package.json +1 -1
  5. package/src/components/accordion.css +172 -172
  6. package/src/components/alert.css +85 -85
  7. package/src/components/avatar.css +68 -68
  8. package/src/components/badge.css +101 -101
  9. package/src/components/button-group.css +69 -69
  10. package/src/components/button.css +267 -267
  11. package/src/components/card.css +82 -82
  12. package/src/components/checkbox-radio.css +123 -123
  13. package/src/components/chip.css +135 -135
  14. package/src/components/definition-list.css +65 -65
  15. package/src/components/dialog.css +59 -59
  16. package/src/components/divider.css +7 -7
  17. package/src/components/field-group.css +83 -83
  18. package/src/components/field.css +494 -494
  19. package/src/components/icon-button.css +40 -40
  20. package/src/components/link.css +21 -21
  21. package/src/components/list.css +317 -317
  22. package/src/components/progress.css +83 -83
  23. package/src/components/range.css +121 -121
  24. package/src/components/rich-text.css +210 -210
  25. package/src/components/select.css +163 -163
  26. package/src/components/snackbar.css +148 -148
  27. package/src/components/spinner.css +38 -38
  28. package/src/components/switch.css +189 -189
  29. package/src/components/tab-buttons.css +120 -120
  30. package/src/components/table.css +107 -107
  31. package/src/components/text-field.css +57 -57
  32. package/src/components/textarea.css +25 -25
  33. package/src/components/toggle-button-group.css +139 -139
  34. package/src/components/tooltip.css +94 -94
  35. package/src/components/typography.css +209 -209
  36. package/src/core/components.css +37 -37
  37. package/src/core/normalize.css +194 -194
  38. package/src/core/theme.css +160 -160
  39. package/src/core/utils.css +60 -60
  40. package/src/main.css +13 -13
  41. package/src/opui.css +13 -13
@@ -1,194 +1,194 @@
1
- @layer normalize {
2
- *,
3
- ::before,
4
- ::after {
5
- box-sizing: border-box;
6
- }
7
-
8
- * {
9
- scrollbar-width: thin;
10
- }
11
-
12
- :where(html) {
13
- --_page-bg-color: var(--surface-default);
14
-
15
- accent-color: var(--primary);
16
- background-color: var(--_page-bg-color);
17
- block-size: 100%;
18
- caret-color: var(--primary);
19
- color: var(--text-color-2);
20
- font-family: var(--font-sans);
21
- interpolate-size: allow-keywords;
22
- line-height: var(--font-lineheight-4);
23
-
24
- /* https://kilianvalkhof.com/2022/css-html/your-css-reset-needs-text-size-adjust-probably/ */
25
- -moz-text-size-adjust: none;
26
- -webkit-text-size-adjust: none;
27
- text-size-adjust: none;
28
-
29
- @media (--motionOK) {
30
- scroll-behavior: smooth;
31
- }
32
- }
33
-
34
- :where(body) {
35
- -moz-osx-font-smoothing: grayscale;
36
- -webkit-font-smoothing: antialiased;
37
- container-type: inline-size;
38
- font-size: 16px;
39
- font-synthesis: style;
40
- font-weight: 400;
41
- inline-size: 100%;
42
- margin: 0;
43
- min-block-size: 100%;
44
- min-inline-size: 320px;
45
- position: relative;
46
- text-rendering: optimizeLegibility;
47
- }
48
-
49
- /* TODO */
50
- :where(:not(dialog, popover)) {
51
- margin: 0;
52
- }
53
-
54
- :where(:not(fieldset, progress, meter)) {
55
- background-origin: border-box;
56
- background-repeat: no-repeat;
57
- border-style: solid;
58
- border-width: 0;
59
- }
60
-
61
- :where(fieldset) {
62
- border: var(--field-border-width) solid var(--field-border-color);
63
- border-radius: var(--field-border-radius);
64
- padding: var(--size-3);
65
- display: grid;
66
- gap: var(--size-3);
67
- }
68
-
69
- :where(input, button, textarea),
70
- :where(input[type="file"])::-webkit-file-upload-button {
71
- color: inherit;
72
- font-size: inherit;
73
- font: inherit;
74
- letter-spacing: inherit;
75
- }
76
-
77
- :where(input):-webkit-autofill,
78
- :where(input):-webkit-autofill:hover,
79
- :where(input):-webkit-autofill:focus,
80
- :where(textarea):-webkit-autofill,
81
- :where(textarea):-webkit-autofill:hover,
82
- :where(textarea):-webkit-autofill:focus,
83
- :where(select):-webkit-autofill,
84
- :where(select):-webkit-autofill:hover,
85
- :where(select):-webkit-autofill:focus,
86
- :where(input):autofill,
87
- :where(input):autofill:hover,
88
- :where(input):autofill:focus,
89
- :where(textarea):autofill,
90
- :where(textarea):autofill:hover,
91
- :where(textarea):autofill:focus,
92
- :where(select):autofill,
93
- :where(select):autofill:hover,
94
- :where(select):autofill:focus {
95
- -webkit-text-fill-color: var(--text-color-2);
96
- -webkit-box-shadow: 0 0 0px 1e5px var(--well-1) inset;
97
- transition: background-color 5000s ease-in-out 0s;
98
- }
99
-
100
- ::placeholder {
101
- color: var(--text-color-2);
102
- }
103
-
104
- ::-moz-placeholder {
105
- opacity: 1;
106
- }
107
-
108
- :focus-visible {
109
- /* Inverts the --_page-bg-color */
110
- --_focus-visible-color: rgb(
111
- from var(--_page-bg-color) calc(255 - r) calc(255 - g) calc(255 - b)
112
- );
113
-
114
- border-radius: var(--border-radius, 0px);
115
- outline: 2px solid var(--_focus-visible-color);
116
- outline-offset: 2px;
117
- }
118
-
119
- @media (--motionOK) {
120
- :where(:focus-visible) {
121
- transition: outline-offset 145ms var(--ease-2);
122
- }
123
- :where(:not(:active):focus-visible) {
124
- transition-duration: 0.15s;
125
- }
126
- }
127
-
128
- :where(:not(:active):focus-visible) {
129
- outline-offset: var(--outline-offset, 0px);
130
- }
131
-
132
- :where(
133
- a[href],
134
- area,
135
- button,
136
- input:not(
137
- [type="text"],
138
- [type="email"],
139
- [type="number"],
140
- [type="password"],
141
- [type=""],
142
- [type="tel"],
143
- [type="url"]
144
- ),
145
- label[for],
146
- select,
147
- summary
148
- ) {
149
- cursor: pointer;
150
- }
151
-
152
- :where(
153
- a[href],
154
- area,
155
- button,
156
- [role="button"],
157
- input,
158
- label[for],
159
- select,
160
- summary,
161
- textarea,
162
- [tabindex]:not([tabindex*="-"])
163
- ) {
164
- -webkit-tap-highlight-color: transparent;
165
- touch-action: manipulation;
166
- }
167
-
168
- :where(img, svg, video, canvas, audio, iframe, embed, object) {
169
- display: block;
170
- }
171
-
172
- :where(img, svg, video) {
173
- block-size: auto;
174
- max-inline-size: 100%;
175
- }
176
-
177
- :where(svg:not([width])) {
178
- inline-size: var(--size-7);
179
- }
180
-
181
- :where(dt:not(:first-of-type)) {
182
- margin-block-start: var(--size-5);
183
- }
184
-
185
- :where(figure) {
186
- display: grid;
187
- gap: var(--size-2);
188
- place-items: center;
189
- }
190
-
191
- :target {
192
- scroll-margin-block-start: 2rem;
193
- }
194
- }
1
+ @layer normalize {
2
+ *,
3
+ ::before,
4
+ ::after {
5
+ box-sizing: border-box;
6
+ }
7
+
8
+ * {
9
+ scrollbar-width: thin;
10
+ }
11
+
12
+ :where(html) {
13
+ --_page-bg-color: var(--surface-default);
14
+
15
+ accent-color: var(--primary);
16
+ background-color: var(--_page-bg-color);
17
+ block-size: 100%;
18
+ caret-color: var(--primary);
19
+ color: var(--text-color-2);
20
+ font-family: var(--font-sans);
21
+ interpolate-size: allow-keywords;
22
+ line-height: var(--font-lineheight-4);
23
+
24
+ /* https://kilianvalkhof.com/2022/css-html/your-css-reset-needs-text-size-adjust-probably/ */
25
+ -moz-text-size-adjust: none;
26
+ -webkit-text-size-adjust: none;
27
+ text-size-adjust: none;
28
+
29
+ @media (--motionOK) {
30
+ scroll-behavior: smooth;
31
+ }
32
+ }
33
+
34
+ :where(body) {
35
+ -moz-osx-font-smoothing: grayscale;
36
+ -webkit-font-smoothing: antialiased;
37
+ container-type: inline-size;
38
+ font-size: 16px;
39
+ font-synthesis: style;
40
+ font-weight: 400;
41
+ inline-size: 100%;
42
+ margin: 0;
43
+ min-block-size: 100%;
44
+ min-inline-size: 320px;
45
+ position: relative;
46
+ text-rendering: optimizeLegibility;
47
+ }
48
+
49
+ /* TODO */
50
+ :where(:not(dialog, popover)) {
51
+ margin: 0;
52
+ }
53
+
54
+ :where(:not(fieldset, progress, meter)) {
55
+ background-origin: border-box;
56
+ background-repeat: no-repeat;
57
+ border-style: solid;
58
+ border-width: 0;
59
+ }
60
+
61
+ :where(fieldset) {
62
+ border: var(--field-border-width) solid var(--field-border-color);
63
+ border-radius: var(--field-border-radius);
64
+ padding: var(--size-3);
65
+ display: grid;
66
+ gap: var(--size-3);
67
+ }
68
+
69
+ :where(input, button, textarea),
70
+ :where(input[type="file"])::-webkit-file-upload-button {
71
+ color: inherit;
72
+ font-size: inherit;
73
+ font: inherit;
74
+ letter-spacing: inherit;
75
+ }
76
+
77
+ :where(input):-webkit-autofill,
78
+ :where(input):-webkit-autofill:hover,
79
+ :where(input):-webkit-autofill:focus,
80
+ :where(textarea):-webkit-autofill,
81
+ :where(textarea):-webkit-autofill:hover,
82
+ :where(textarea):-webkit-autofill:focus,
83
+ :where(select):-webkit-autofill,
84
+ :where(select):-webkit-autofill:hover,
85
+ :where(select):-webkit-autofill:focus,
86
+ :where(input):autofill,
87
+ :where(input):autofill:hover,
88
+ :where(input):autofill:focus,
89
+ :where(textarea):autofill,
90
+ :where(textarea):autofill:hover,
91
+ :where(textarea):autofill:focus,
92
+ :where(select):autofill,
93
+ :where(select):autofill:hover,
94
+ :where(select):autofill:focus {
95
+ -webkit-text-fill-color: var(--text-color-2);
96
+ -webkit-box-shadow: 0 0 0px 1e5px var(--well-1) inset;
97
+ transition: background-color 5000s ease-in-out 0s;
98
+ }
99
+
100
+ ::placeholder {
101
+ color: var(--text-color-2);
102
+ }
103
+
104
+ ::-moz-placeholder {
105
+ opacity: 1;
106
+ }
107
+
108
+ :focus-visible {
109
+ /* Inverts the --_page-bg-color */
110
+ --_focus-visible-color: rgb(
111
+ from var(--_page-bg-color) calc(255 - r) calc(255 - g) calc(255 - b)
112
+ );
113
+
114
+ border-radius: var(--border-radius, 0px);
115
+ outline: 2px solid var(--_focus-visible-color);
116
+ outline-offset: 2px;
117
+ }
118
+
119
+ @media (--motionOK) {
120
+ :where(:focus-visible) {
121
+ transition: outline-offset 145ms var(--ease-2);
122
+ }
123
+ :where(:not(:active):focus-visible) {
124
+ transition-duration: 0.15s;
125
+ }
126
+ }
127
+
128
+ :where(:not(:active):focus-visible) {
129
+ outline-offset: var(--outline-offset, 0px);
130
+ }
131
+
132
+ :where(
133
+ a[href],
134
+ area,
135
+ button,
136
+ input:not(
137
+ [type="text"],
138
+ [type="email"],
139
+ [type="number"],
140
+ [type="password"],
141
+ [type=""],
142
+ [type="tel"],
143
+ [type="url"]
144
+ ),
145
+ label[for],
146
+ select,
147
+ summary
148
+ ) {
149
+ cursor: pointer;
150
+ }
151
+
152
+ :where(
153
+ a[href],
154
+ area,
155
+ button,
156
+ [role="button"],
157
+ input,
158
+ label[for],
159
+ select,
160
+ summary,
161
+ textarea,
162
+ [tabindex]:not([tabindex*="-"])
163
+ ) {
164
+ -webkit-tap-highlight-color: transparent;
165
+ touch-action: manipulation;
166
+ }
167
+
168
+ :where(img, svg, video, canvas, audio, iframe, embed, object) {
169
+ display: block;
170
+ }
171
+
172
+ :where(img, svg, video) {
173
+ block-size: auto;
174
+ max-inline-size: 100%;
175
+ }
176
+
177
+ :where(svg:not([width])) {
178
+ inline-size: var(--size-7);
179
+ }
180
+
181
+ :where(dt:not(:first-of-type)) {
182
+ margin-block-start: var(--size-5);
183
+ }
184
+
185
+ :where(figure) {
186
+ display: grid;
187
+ gap: var(--size-2);
188
+ place-items: center;
189
+ }
190
+
191
+ :target {
192
+ scroll-margin-block-start: 2rem;
193
+ }
194
+ }