@universal-material/web 3.6.22 → 3.6.23
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/dist/css/universal-material.css +4109 -0
- package/dist/css/universal-material.min.css +4109 -0
- package/dist/custom-elements.json +25060 -0
- package/dist/package.json +139 -0
- package/dist/scss/_api.scss +2 -0
- package/dist/scss/_colors.scss +2 -0
- package/dist/scss/_css-vars.scss +53 -0
- package/dist/scss/_functions.scss +29 -0
- package/dist/scss/_global.scss +27 -0
- package/dist/scss/_layout.scss +5 -0
- package/dist/scss/_mixins.scss +3 -0
- package/dist/scss/_reboot.scss +498 -0
- package/dist/scss/_utilities.scss +4 -0
- package/dist/scss/_variables.scss +139 -0
- package/dist/scss/colors/_text-bg.scss +38 -0
- package/dist/scss/colors/_text.scss +52 -0
- package/dist/scss/functions/_font.scss +29 -0
- package/dist/scss/layout/_container.scss +14 -0
- package/dist/scss/layout/_grid.scss +12 -0
- package/dist/scss/layout/_margin-and-gutters.scss +37 -0
- package/dist/scss/mixins/_breakpoints.scss +71 -0
- package/dist/scss/mixins/_colors.scss +5 -0
- package/dist/scss/mixins/_text-bg.scss +34 -0
- package/dist/scss/mixins/_typo.scss +43 -0
- package/dist/scss/table/_table.scss +48 -0
- package/dist/scss/typo/_font.scss +5 -0
- package/dist/scss/typo/_typo.scss +19 -0
- package/dist/scss/typo/_variables.scss +19 -0
- package/dist/scss/universal-material.scss +16 -0
- package/dist/scss/utilities/_divider.scss +13 -0
- package/dist/scss/utilities/_scheme.scss +9 -0
- package/dist/scss/utilities/_spacing.scss +23 -0
- package/dist/scss/utilities/_text.scss +54 -0
- package/dist/vscode.html-custom-data.json +281 -281
- package/package.json +2 -2
- package/dist/config.js.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
@use "variables";
|
|
2
|
+
|
|
3
|
+
@use "functions";
|
|
4
|
+
@use "mixins";
|
|
5
|
+
|
|
6
|
+
@mixin reboot() {
|
|
7
|
+
// stylelint-disable declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
// Reboot
|
|
11
|
+
//
|
|
12
|
+
// Normalization of HTML elements, manually forked from Normalize.css to remove
|
|
13
|
+
// styles targeting irrelevant browsers while applying new styles.
|
|
14
|
+
//
|
|
15
|
+
// Normalize is licensed MIT. https://github.com/necolas/normalize.css
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
// Document
|
|
19
|
+
//
|
|
20
|
+
// Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.
|
|
21
|
+
|
|
22
|
+
*,
|
|
23
|
+
*::before,
|
|
24
|
+
*::after {
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
// Root
|
|
30
|
+
//
|
|
31
|
+
// Ability to the value of the root font sizes, affecting the value of `rem`.
|
|
32
|
+
// null by default, thus nothing is generated.
|
|
33
|
+
|
|
34
|
+
:root {
|
|
35
|
+
@if variables.$enable-smooth-scroll {
|
|
36
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
37
|
+
scroll-behavior: smooth;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
// Body
|
|
44
|
+
//
|
|
45
|
+
// 1. Remove the margin in all browsers.
|
|
46
|
+
// 2. As a best practice, apply a default `background-color`.
|
|
47
|
+
// 3. Prevent adjustments of font size after orientation changes in iOS.
|
|
48
|
+
// 4. Change the default tap highlight to be completely transparent in iOS.
|
|
49
|
+
|
|
50
|
+
// scss-docs-start reboot-body-rules
|
|
51
|
+
body {
|
|
52
|
+
--u-current-bg-color: var(--u-color-body);
|
|
53
|
+
background-color: var(--u-current-bg-color);
|
|
54
|
+
margin: 0; // 1
|
|
55
|
+
@include mixins.typo-prop(body-l, font-size);
|
|
56
|
+
@include mixins.typo-prop(body-l, font-weight);
|
|
57
|
+
line-height: 1.5;
|
|
58
|
+
text-align: start;
|
|
59
|
+
-webkit-text-size-adjust: 100%; // 3
|
|
60
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); // 4
|
|
61
|
+
}
|
|
62
|
+
// scss-docs-end reboot-body-rules
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
// Content grouping
|
|
66
|
+
//
|
|
67
|
+
// 1. Reset Firefox's gray color
|
|
68
|
+
|
|
69
|
+
hr {
|
|
70
|
+
margin: 1rem 0;
|
|
71
|
+
color: inherit;
|
|
72
|
+
border: 0;
|
|
73
|
+
border-top: 1px solid;
|
|
74
|
+
opacity: 0.25;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
// Typography
|
|
79
|
+
//
|
|
80
|
+
// 1. Remove top margins from headings
|
|
81
|
+
// By default, `<h1>`-`<h6>` all receive top and bottom margins. We nuke the top
|
|
82
|
+
// margin for easier control within type scales as it avoids margin collapsing.
|
|
83
|
+
|
|
84
|
+
h6, h5, h4, h3, h2, h1 {
|
|
85
|
+
margin-top: 0;
|
|
86
|
+
margin-bottom: 0.5rem;
|
|
87
|
+
font-weight: 500;
|
|
88
|
+
line-height: 1.2;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
h1 {
|
|
92
|
+
font-size: calc(1.375rem + 1.5vw);
|
|
93
|
+
}
|
|
94
|
+
@media (min-width: 1200px) {
|
|
95
|
+
h1 {
|
|
96
|
+
font-size: 2.5rem;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
h2 {
|
|
101
|
+
font-size: calc(1.325rem + 0.9vw);
|
|
102
|
+
}
|
|
103
|
+
@media (min-width: 1200px) {
|
|
104
|
+
h2 {
|
|
105
|
+
font-size: 2rem;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
h3 {
|
|
110
|
+
font-size: calc(1.3rem + 0.6vw);
|
|
111
|
+
}
|
|
112
|
+
@media (min-width: 1200px) {
|
|
113
|
+
h3 {
|
|
114
|
+
font-size: 1.75rem;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
h4 {
|
|
119
|
+
font-size: calc(1.275rem + 0.3vw);
|
|
120
|
+
}
|
|
121
|
+
@media (min-width: 1200px) {
|
|
122
|
+
h4 {
|
|
123
|
+
font-size: 1.5rem;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
h5 {
|
|
128
|
+
font-size: 1.25rem;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
h6 {
|
|
132
|
+
font-size: 1rem;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
p {
|
|
136
|
+
margin-top: 0;
|
|
137
|
+
margin-bottom: 1rem;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
abbr[title] {
|
|
141
|
+
-webkit-text-decoration: underline dotted;
|
|
142
|
+
text-decoration: underline dotted;
|
|
143
|
+
cursor: help;
|
|
144
|
+
-webkit-text-decoration-skip-ink: none;
|
|
145
|
+
text-decoration-skip-ink: none;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
address {
|
|
149
|
+
margin-bottom: 1rem;
|
|
150
|
+
font-style: normal;
|
|
151
|
+
line-height: inherit;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
ol,
|
|
155
|
+
ul {
|
|
156
|
+
padding-left: 2rem;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
ol,
|
|
160
|
+
ul,
|
|
161
|
+
dl {
|
|
162
|
+
margin-top: 0;
|
|
163
|
+
margin-bottom: 1rem;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
ol ol,
|
|
167
|
+
ul ul,
|
|
168
|
+
ol ul,
|
|
169
|
+
ul ol {
|
|
170
|
+
margin-bottom: 0;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
dt {
|
|
174
|
+
font-weight: 700;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
dd {
|
|
178
|
+
margin-bottom: 0.5rem;
|
|
179
|
+
margin-left: 0;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
blockquote {
|
|
183
|
+
margin: 0 0 1rem;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
b,
|
|
187
|
+
strong {
|
|
188
|
+
font-weight: bolder;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
small {
|
|
192
|
+
font-size: 0.875em;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
// Mark
|
|
197
|
+
|
|
198
|
+
mark {
|
|
199
|
+
padding: 0.1875em;
|
|
200
|
+
color: var(--u-color-on-warning);
|
|
201
|
+
background-color: var(--u-color-warning);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
sub,
|
|
206
|
+
sup {
|
|
207
|
+
position: relative;
|
|
208
|
+
font-size: 0.75em;
|
|
209
|
+
line-height: 0;
|
|
210
|
+
vertical-align: baseline;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
sub {
|
|
214
|
+
bottom: -0.25em;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
sup {
|
|
218
|
+
top: -0.5em;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
a {
|
|
222
|
+
color: #{functions.get-color-transparency-mix(var(--u-link-color, --u-color-primary), var(--u-text-opacity))};
|
|
223
|
+
text-decoration: none;
|
|
224
|
+
|
|
225
|
+
@media (hover: hover) {
|
|
226
|
+
&:hover {
|
|
227
|
+
text-decoration: underline;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
a:not([href]):not([class]), a:not([href]):not([class]):hover {
|
|
233
|
+
color: inherit;
|
|
234
|
+
text-decoration: none;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
pre,
|
|
238
|
+
code,
|
|
239
|
+
kbd,
|
|
240
|
+
samp {
|
|
241
|
+
font-family: var(--u-font-monospace);
|
|
242
|
+
font-size: 1em;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
pre {
|
|
246
|
+
display: block;
|
|
247
|
+
margin-top: 0;
|
|
248
|
+
margin-bottom: 1rem;
|
|
249
|
+
overflow: auto;
|
|
250
|
+
font-size: 0.875em;
|
|
251
|
+
}
|
|
252
|
+
pre code {
|
|
253
|
+
font-size: inherit;
|
|
254
|
+
color: inherit;
|
|
255
|
+
word-break: normal;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
code {
|
|
259
|
+
font-size: 0.875em;
|
|
260
|
+
word-wrap: break-word;
|
|
261
|
+
}
|
|
262
|
+
a > code {
|
|
263
|
+
color: inherit;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
kbd {
|
|
267
|
+
padding: 0.1875rem 0.375rem;
|
|
268
|
+
font-size: 0.875em;
|
|
269
|
+
color: var(--u-color-on-light);
|
|
270
|
+
background-color: var(--u-color-light);
|
|
271
|
+
font-weight: var(--u-font-weight-regular);
|
|
272
|
+
border-radius: 0.25rem;
|
|
273
|
+
}
|
|
274
|
+
kbd kbd {
|
|
275
|
+
padding: 0;
|
|
276
|
+
font-size: 1em;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
figure {
|
|
280
|
+
margin: 0 0 1rem;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
img,
|
|
284
|
+
svg {
|
|
285
|
+
vertical-align: middle;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
table {
|
|
289
|
+
caption-side: bottom;
|
|
290
|
+
border-collapse: collapse;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
caption {
|
|
294
|
+
padding-top: 0.5rem;
|
|
295
|
+
padding-bottom: 0.5rem;
|
|
296
|
+
color: #{functions.get-color-transparency-mix(currentColor, var(--u-low-emphasis-opacity))};
|
|
297
|
+
text-align: left;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
th {
|
|
301
|
+
text-align: inherit;
|
|
302
|
+
text-align: -webkit-match-parent;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
thead,
|
|
306
|
+
tbody,
|
|
307
|
+
tfoot,
|
|
308
|
+
tr,
|
|
309
|
+
td,
|
|
310
|
+
th {
|
|
311
|
+
border-color: inherit;
|
|
312
|
+
border-style: solid;
|
|
313
|
+
border-width: 0;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
label {
|
|
317
|
+
display: inline-block;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
button {
|
|
321
|
+
border-radius: 0;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
button:focus:not(:focus-visible) {
|
|
325
|
+
outline: 0;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
input,
|
|
329
|
+
button,
|
|
330
|
+
select,
|
|
331
|
+
optgroup,
|
|
332
|
+
textarea {
|
|
333
|
+
margin: 0;
|
|
334
|
+
font-family: inherit;
|
|
335
|
+
font-size: inherit;
|
|
336
|
+
line-height: inherit;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
button,
|
|
340
|
+
select {
|
|
341
|
+
text-transform: none;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
[role=button] {
|
|
345
|
+
cursor: pointer;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
select {
|
|
349
|
+
word-wrap: normal;
|
|
350
|
+
}
|
|
351
|
+
select:disabled {
|
|
352
|
+
opacity: 1;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator {
|
|
356
|
+
display: none !important;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
button,
|
|
360
|
+
[type=button],
|
|
361
|
+
[type=reset],
|
|
362
|
+
[type=submit] {
|
|
363
|
+
-webkit-appearance: button;
|
|
364
|
+
}
|
|
365
|
+
button:not(:disabled),
|
|
366
|
+
[type=button]:not(:disabled),
|
|
367
|
+
[type=reset]:not(:disabled),
|
|
368
|
+
[type=submit]:not(:disabled) {
|
|
369
|
+
cursor: pointer;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
::-moz-focus-inner {
|
|
373
|
+
padding: 0;
|
|
374
|
+
border-style: none;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
textarea {
|
|
378
|
+
resize: vertical;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
fieldset {
|
|
382
|
+
min-width: 0;
|
|
383
|
+
padding: 0;
|
|
384
|
+
margin: 0;
|
|
385
|
+
border: 0;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
legend {
|
|
389
|
+
float: left;
|
|
390
|
+
width: 100%;
|
|
391
|
+
padding: 0;
|
|
392
|
+
margin-bottom: 0.5rem;
|
|
393
|
+
font-size: calc(1.275rem + 0.3vw);
|
|
394
|
+
line-height: inherit;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
// Fix height of inputs with a type of datetime-local, date, month, week, or time
|
|
398
|
+
// See https://github.com/twbs/bootstrap/issues/18842
|
|
399
|
+
|
|
400
|
+
::-webkit-datetime-edit-fields-wrapper,
|
|
401
|
+
::-webkit-datetime-edit-text,
|
|
402
|
+
::-webkit-datetime-edit-minute,
|
|
403
|
+
::-webkit-datetime-edit-hour-field,
|
|
404
|
+
::-webkit-datetime-edit-day-field,
|
|
405
|
+
::-webkit-datetime-edit-month-field,
|
|
406
|
+
::-webkit-datetime-edit-year-field {
|
|
407
|
+
padding: 0;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
::-webkit-inner-spin-button {
|
|
411
|
+
height: auto;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
// 1. This overrides the extra rounded corners on search inputs in iOS so that our
|
|
415
|
+
// `.form-control` class can properly style them. Note that this cannot simply
|
|
416
|
+
// be added to `.form-control` as it's not specific enough. For details, see
|
|
417
|
+
// https://github.com/twbs/bootstrap/issues/11586.
|
|
418
|
+
// 2. Correct the outline style in Safari.
|
|
419
|
+
|
|
420
|
+
[type="search"] {
|
|
421
|
+
-webkit-appearance: textfield; // 1
|
|
422
|
+
outline-offset: -2px; // 2
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
// 1. A few input types should stay LTR
|
|
426
|
+
// See https://rtlstyling.com/posts/rtl-styling#form-inputs
|
|
427
|
+
// 2. RTL only output
|
|
428
|
+
// See https://rtlcss.com/learn/usage-guide/control-directives/#raw
|
|
429
|
+
|
|
430
|
+
/* rtl:raw:
|
|
431
|
+
[type="tel"],
|
|
432
|
+
[type="url"],
|
|
433
|
+
[type="email"],
|
|
434
|
+
[type="number"] {
|
|
435
|
+
direction: ltr;
|
|
436
|
+
}
|
|
437
|
+
*/
|
|
438
|
+
|
|
439
|
+
// Remove the inner padding in Chrome and Safari on macOS.
|
|
440
|
+
|
|
441
|
+
::-webkit-search-decoration {
|
|
442
|
+
-webkit-appearance: none;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
// Remove padding around color pickers in webkit browsers
|
|
446
|
+
|
|
447
|
+
::-webkit-color-swatch-wrapper {
|
|
448
|
+
padding: 0;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
// 1. Inherit font family and line height for file input buttons
|
|
453
|
+
// 2. Correct the inability to style clickable types in iOS and Safari.
|
|
454
|
+
|
|
455
|
+
::file-selector-button {
|
|
456
|
+
font: inherit; // 1
|
|
457
|
+
-webkit-appearance: button; // 2
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
// Correct element displays
|
|
461
|
+
|
|
462
|
+
output {
|
|
463
|
+
display: inline-block;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
// Remove border from iframe
|
|
467
|
+
|
|
468
|
+
iframe {
|
|
469
|
+
border: 0;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
// Summary
|
|
473
|
+
//
|
|
474
|
+
// 1. Add the correct display in all browsers
|
|
475
|
+
|
|
476
|
+
summary {
|
|
477
|
+
display: list-item; // 1
|
|
478
|
+
cursor: pointer;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
// Progress
|
|
483
|
+
//
|
|
484
|
+
// Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
485
|
+
|
|
486
|
+
progress {
|
|
487
|
+
vertical-align: baseline;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
// Hidden attribute
|
|
492
|
+
//
|
|
493
|
+
// Always hide an element with the `hidden` HTML attribute.
|
|
494
|
+
|
|
495
|
+
[hidden] {
|
|
496
|
+
display: none !important;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
@use "sass:string";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
|
|
4
|
+
$awesome-cubic-bezier: cubic-bezier(.19, 1, .22, 1) !default;
|
|
5
|
+
|
|
6
|
+
$enable-smooth-scroll: true !default;
|
|
7
|
+
$include-reboot: true !default;
|
|
8
|
+
|
|
9
|
+
$layout-directions: (
|
|
10
|
+
"",
|
|
11
|
+
-block,
|
|
12
|
+
-inline
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
$spacing-sides: (
|
|
16
|
+
"": "",
|
|
17
|
+
t: -top,
|
|
18
|
+
b: -bottom,
|
|
19
|
+
s: -inline-start,
|
|
20
|
+
e: -inline-end,
|
|
21
|
+
x: -inline,
|
|
22
|
+
y: -block,
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
$breakpoints: (
|
|
26
|
+
xs: 0,
|
|
27
|
+
sm: 600px,
|
|
28
|
+
md: 840px,
|
|
29
|
+
lg: 1200px,
|
|
30
|
+
xl: 1600px
|
|
31
|
+
) !default;
|
|
32
|
+
|
|
33
|
+
$theme-colors: (
|
|
34
|
+
primary,
|
|
35
|
+
secondary,
|
|
36
|
+
tertiary
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
$color-roles: (
|
|
40
|
+
primary,
|
|
41
|
+
primary-container,
|
|
42
|
+
secondary,
|
|
43
|
+
secondary-container,
|
|
44
|
+
tertiary,
|
|
45
|
+
tertiary-container,
|
|
46
|
+
error,
|
|
47
|
+
error-container,
|
|
48
|
+
surface,
|
|
49
|
+
surface-variant,
|
|
50
|
+
surface-container,
|
|
51
|
+
surface-container-highest,
|
|
52
|
+
surface-container-high,
|
|
53
|
+
surface-container-low,
|
|
54
|
+
surface-container-lowest
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
$rgb-colors: (
|
|
58
|
+
primary: string.unquote("103, 80, 164"),
|
|
59
|
+
on-primary: string.unquote("255, 255, 255"),
|
|
60
|
+
primary-container: string.unquote("234, 221, 255"),
|
|
61
|
+
on-primary-container: string.unquote("33, 0, 93"),
|
|
62
|
+
secondary: string.unquote("98, 91, 113"),
|
|
63
|
+
secondary-container: string.unquote("232, 222, 248"),
|
|
64
|
+
on-secondary-container: string.unquote("29, 25, 43"),
|
|
65
|
+
on-secondary: string.unquote("255, 255, 255"),
|
|
66
|
+
tertiary: string.unquote("125, 82, 96"),
|
|
67
|
+
on-tertiary: string.unquote("255, 255, 255"),
|
|
68
|
+
tertiary-container: string.unquote("255, 216, 228"),
|
|
69
|
+
on-tertiary-container: string.unquote("49, 17, 29"),
|
|
70
|
+
error: string.unquote("179, 38, 30"),
|
|
71
|
+
on-error: string.unquote("255, 255, 255"),
|
|
72
|
+
error-container: string.unquote("249, 222, 220"),
|
|
73
|
+
on-error-container: string.unquote("65, 14, 11"),
|
|
74
|
+
surface: string.unquote("254, 247, 255"),
|
|
75
|
+
on-surface: string.unquote("29, 27, 32"),
|
|
76
|
+
surface-variant: string.unquote("231, 224, 236"),
|
|
77
|
+
on-surface-variant: string.unquote("73, 69, 79"),
|
|
78
|
+
surface-container-highest: string.unquote("230, 224, 233"),
|
|
79
|
+
surface-container-high: string.unquote("236, 230, 240"),
|
|
80
|
+
surface-container: string.unquote("243, 237, 247"),
|
|
81
|
+
surface-container-low: string.unquote("247, 242, 250"),
|
|
82
|
+
surface-container-lowest: string.unquote("255, 255, 255"),
|
|
83
|
+
inverse-surface: string.unquote("50, 47, 53"),
|
|
84
|
+
on-inverse-surface: string.unquote("245, 239, 247"),
|
|
85
|
+
outline: string.unquote("121, 116, 126"),
|
|
86
|
+
outline-variant: string.unquote("202, 196, 208"),
|
|
87
|
+
scrim: string.unquote("0, 0, 0"),
|
|
88
|
+
shadow: string.unquote("0, 0, 0")
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
$colors: ();
|
|
92
|
+
|
|
93
|
+
@each $name, $value in $rgb-colors {
|
|
94
|
+
$colors: map.set($colors, $name, string.unquote("rgb(#{$value})"));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
$fixed-colors: (
|
|
98
|
+
success,
|
|
99
|
+
info,
|
|
100
|
+
warning
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
$spacings: (
|
|
104
|
+
0: 0,
|
|
105
|
+
extra-small: 4px,
|
|
106
|
+
small: 8px,
|
|
107
|
+
medium: 16px,
|
|
108
|
+
large: 24px,
|
|
109
|
+
extra-large: 40px,
|
|
110
|
+
) !default;
|
|
111
|
+
|
|
112
|
+
$state-layer-opacity: (
|
|
113
|
+
hover: .08,
|
|
114
|
+
focus: .1,
|
|
115
|
+
press: .1,
|
|
116
|
+
drag: .16
|
|
117
|
+
) !default;
|
|
118
|
+
|
|
119
|
+
$font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default;
|
|
120
|
+
$font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
121
|
+
|
|
122
|
+
$font-weights: (
|
|
123
|
+
thin: 100,
|
|
124
|
+
light: 300,
|
|
125
|
+
regular: 400,
|
|
126
|
+
medium: 500,
|
|
127
|
+
bold: 700,
|
|
128
|
+
bolder: 900,
|
|
129
|
+
) !default;
|
|
130
|
+
|
|
131
|
+
$shape-corner: (
|
|
132
|
+
none: 0,
|
|
133
|
+
extra-small: 4px,
|
|
134
|
+
small: 8px,
|
|
135
|
+
medium: 12px,
|
|
136
|
+
large: 16px,
|
|
137
|
+
extra-large: 28px,
|
|
138
|
+
full: 9999px
|
|
139
|
+
) !default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@use "sass:string";
|
|
2
|
+
|
|
3
|
+
@use "../variables";
|
|
4
|
+
@use "../mixins/text-bg";
|
|
5
|
+
|
|
6
|
+
@each $color in variables.$color-roles {
|
|
7
|
+
|
|
8
|
+
@include text-bg.text-bg-variant-important($color);
|
|
9
|
+
@include text-bg.text-bg-variant-important(inverse-#{$color});
|
|
10
|
+
|
|
11
|
+
@include text-bg.bg-variant-important($color);
|
|
12
|
+
@include text-bg.bg-variant-important(inverse-#{$color});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@each $color in variables.$fixed-colors {
|
|
16
|
+
@include text-bg.text-bg-variant-important($color);
|
|
17
|
+
@include text-bg.text-bg-variant-important(#{$color}-container);
|
|
18
|
+
|
|
19
|
+
@include text-bg.bg-variant-important($color);
|
|
20
|
+
@include text-bg.bg-variant-important(#{$color}-container);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@each $color in variables.$theme-colors {
|
|
24
|
+
@include text-bg.text-bg-variant-important(#{$color}-fixed);
|
|
25
|
+
@include text-bg.text-bg-variant-important(#{$color}-fixed-dim, on-#{$color}-fixed);
|
|
26
|
+
@include text-bg.bg-variant-important(#{$color}-fixed);
|
|
27
|
+
@include text-bg.bg-variant-important(#{$color}-fixed-dim);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@include text-bg.text-bg-variant-important(body);
|
|
31
|
+
@include text-bg.text-bg-variant-important(inverse-body);
|
|
32
|
+
@include text-bg.text-bg-variant-important(light);
|
|
33
|
+
@include text-bg.text-bg-variant-important(dark);
|
|
34
|
+
|
|
35
|
+
@include text-bg.bg-variant-important(body);
|
|
36
|
+
@include text-bg.bg-variant-important(inverse-body);
|
|
37
|
+
@include text-bg.bg-variant-important(light);
|
|
38
|
+
@include text-bg.bg-variant-important(dark);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
@use "sass:string";
|
|
4
|
+
|
|
5
|
+
@use "../variables";
|
|
6
|
+
@use "../mixins/text-bg";
|
|
7
|
+
|
|
8
|
+
@mixin _text-variant-block($name, $color-name) {
|
|
9
|
+
|
|
10
|
+
@if string.index($name, "-container") == null and string.index($name, "-surface") == null {
|
|
11
|
+
@include _text-variant($name, $color-name);
|
|
12
|
+
@include _text-variant($name, $color-name, inverse-);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@include _text-variant($name, $color-name, on-);
|
|
16
|
+
@include _text-variant($name, $color-name, on-inverse-);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@mixin _text-variant($name, $color-name: null, $prefix: '') {
|
|
20
|
+
|
|
21
|
+
@if ($color-name == null) {
|
|
22
|
+
$color-name: $name;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.u-text-#{$prefix}#{$name} {
|
|
26
|
+
@include text-bg.current-color-vars-important(--u-color-#{$prefix}#{$color-name});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@each $color in variables.$color-roles {
|
|
31
|
+
@include _text-variant-block($color, $color);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@each $color in variables.$fixed-colors {
|
|
35
|
+
@include _text-variant($color);
|
|
36
|
+
@include _text-variant(on-#{$color});
|
|
37
|
+
@include _text-variant(#{$color}-container);
|
|
38
|
+
@include _text-variant(on-#{$color}-container);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@each $color in variables.$theme-colors {
|
|
42
|
+
@include _text-variant(#{$color}-fixed);
|
|
43
|
+
@include _text-variant(#{$color}-fixed-dim);
|
|
44
|
+
@include _text-variant(on-#{$color}-fixed);
|
|
45
|
+
@include _text-variant(on-#{$color}-fixed-variant);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@include _text-variant(on-body);
|
|
49
|
+
@include _text-variant(on-inverse-body);
|
|
50
|
+
@include _text-variant(on-light);
|
|
51
|
+
@include _text-variant(on-dark);
|
|
52
|
+
|