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