kmaterialize 2.0.0 → 2.3.3-1.0.0
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/README.md +55 -91
- package/components/appbar/_navbar.old.scss +223 -0
- package/components/appbar/appbar.css +235 -0
- package/components/appbar/appbar.mjs +54 -0
- package/components/appbar/appbar.test.mjs +9 -0
- package/components/atomic/atomic.mjs +19 -0
- package/components/atomic/component.mjs +67 -0
- package/components/badge/_badges.scss +75 -0
- package/components/badge/badge.mjs +11 -0
- package/components/breadcrumb/_breadcrumb.scss +27 -0
- package/components/button/_buttons.scss +352 -0
- package/components/button/button.mjs +11 -0
- package/components/button/buttons.stories.ts +150 -0
- package/components/button/buttons.ts +282 -0
- package/components/button/examples.iso.js +18 -0
- package/components/button/fabSpec.js +65 -0
- package/components/button/test-button.mjs +16 -0
- package/components/card/_cards.scss +229 -0
- package/components/card/card.mjs +10 -0
- package/components/card/cards.ts +185 -0
- package/components/card/cardsSpec.js +269 -0
- package/components/carousel/_carousel.scss +93 -0
- package/components/carousel/_slider.scss +119 -0
- package/components/carousel/carousel.ts +693 -0
- package/components/carousel/carouselSpec.js +61 -0
- package/components/carousel/slider.ts +431 -0
- package/components/carousel/sliderSpec.js +99 -0
- package/components/checkbox/_checkboxes.scss +281 -0
- package/components/checkbox/checkbox.mdx +24 -0
- package/components/checkbox/checkbox.stories.ts +120 -0
- package/components/chip/chip.mjs +37 -0
- package/components/chip/chip.test.mjs +10 -0
- package/components/chip/chips.css +126 -0
- package/components/chip/chips.mdx +33 -0
- package/components/chip/chips.ts +440 -0
- package/components/chip/chipsSpec.js +165 -0
- package/components/chip/readme.md +323 -0
- package/components/collapsible/_collapsible.scss +82 -0
- package/components/collapsible/collapsible.ts +230 -0
- package/components/collapsible/collapsibleSpec.js +240 -0
- package/components/datepicker/_datepicker.scss +268 -0
- package/components/datepicker/datepicker.ts +1450 -0
- package/components/datepicker/datepickerSpec.js +162 -0
- package/components/dialog/_materialbox.scss +42 -0
- package/components/dialog/_modal.scss +79 -0
- package/components/dialog/materialbox.ts +446 -0
- package/components/dialog/materialboxSpec.js +37 -0
- package/components/dialog/modal.ts +111 -0
- package/components/dialog/modalSpec.js +83 -0
- package/components/dialog/readme.md +5 -0
- package/components/divider/readme.md +15 -0
- package/components/dropdown/_dropdown.scss +83 -0
- package/components/dropdown/dropdown.ts +653 -0
- package/components/dropdown/dropdownSpec.js +108 -0
- package/components/list/_collection.scss +114 -0
- package/components/list/_list.scss +6 -0
- package/components/list/list.mjs +58 -0
- package/components/list/list.test.mjs +16 -0
- package/components/loading/loading.mjs +26 -0
- package/components/loading/loading.test.mjs +10 -0
- package/components/navigation-bar/_old +582 -0
- package/components/navigation-bar/navigation-bar.mdx +20 -0
- package/components/navigation-bar/navigation-bar.stories.ts +39 -0
- package/components/navigation-drawer/_sidenav.scss +247 -0
- package/components/navigation-drawer/sidenav.ts +546 -0
- package/components/navigation-drawer/sidenavSpec.js +124 -0
- package/components/pagination/_pagination.scss +47 -0
- package/components/progress/_preloader.scss +416 -0
- package/components/radio-button/_radio-buttons.scss +112 -0
- package/components/radio-button/radio-buttons.mdx +28 -0
- package/components/radio-button/radio-buttons.stories.ts +51 -0
- package/components/search/autocomplete.ts +620 -0
- package/components/search/autocompleteSpec.js +321 -0
- package/components/slider/_range.scss +157 -0
- package/components/slider/range.ts +216 -0
- package/components/snackbar/_toast.scss +68 -0
- package/components/snackbar/toastSpec.js +132 -0
- package/components/snackbar/toasts.ts +312 -0
- package/components/switch/_switches.scss +121 -0
- package/components/tabs/_tabs.scss +171 -0
- package/components/tabs/tabs.mjs +31 -0
- package/components/tabs/tabs.ts +358 -0
- package/components/tabs/tabsSpec.js +180 -0
- package/components/textfield/_file-input.scss +41 -0
- package/components/textfield/_input-fields.scss +368 -0
- package/components/textfield/_select.scss +104 -0
- package/components/textfield/formfields.css +311 -0
- package/components/textfield/forms.ts +182 -0
- package/components/textfield/formsSpec.js +142 -0
- package/components/textfield/select.ts +472 -0
- package/components/textfield/selectSpec.js +390 -0
- package/components/textfield/textfield.mjs +29 -0
- package/components/textfield/textfield.test.mjs +10 -0
- package/components/timepicker/_timepicker.scss +362 -0
- package/components/timepicker/timepicker.ts +905 -0
- package/components/tooltip/_tooltip.scss +40 -0
- package/components/tooltip/tooltip.ts +380 -0
- package/components/tooltip/tooltipSpec.js +145 -0
- package/dist/css/materialize.colors.min.css +6 -0
- package/dist/css/materialize.css +7578 -6326
- package/dist/css/materialize.min.css +6 -13
- package/dist/css/materialize.min.css.map +1 -0
- package/dist/js/materialize.cjs.js +8410 -0
- package/dist/js/materialize.d.ts +2625 -0
- package/dist/js/materialize.js +8415 -12374
- package/dist/js/materialize.min.js +6 -6
- package/dist/js/materialize.mjs +8382 -0
- package/package.json +82 -47
- package/sass/_colors.scss +417 -0
- package/sass/_global.scss +490 -0
- package/sass/_grid.scss +172 -0
- package/sass/_table_of_contents.scss +28 -0
- package/sass/_tapTarget.scss +102 -0
- package/sass/_typography.scss +58 -0
- package/sass/_variables.scss +56 -0
- package/sass/materialize.scss +51 -0
- package/sass/mixins.module.scss +168 -0
- package/extras/noUiSlider/nouislider.css +0 -406
- package/extras/noUiSlider/nouislider.js +0 -2147
- package/extras/noUiSlider/nouislider.min.js +0 -1
- package/js/anime.min.js +0 -34
- package/js/autocomplete.js +0 -448
- package/js/buttons.js +0 -354
- package/js/cards.js +0 -40
- package/js/carousel.js +0 -717
- package/js/cash.js +0 -960
- package/js/characterCounter.js +0 -136
- package/js/chips.js +0 -481
- package/js/collapsible.js +0 -275
- package/js/component.js +0 -44
- package/js/datepicker.js +0 -975
- package/js/dropdown.js +0 -635
- package/js/forms.js +0 -275
- package/js/global.js +0 -444
- package/js/materialbox.js +0 -453
- package/js/modal.js +0 -382
- package/js/parallax.js +0 -138
- package/js/pushpin.js +0 -148
- package/js/range.js +0 -263
- package/js/scrollspy.js +0 -295
- package/js/select.js +0 -450
- package/js/sidenav.js +0 -580
- package/js/slider.js +0 -359
- package/js/tabs.js +0 -402
- package/js/tapTarget.js +0 -314
- package/js/timepicker.js +0 -647
- package/js/toasts.js +0 -310
- package/js/tooltip.js +0 -303
- package/js/waves.js +0 -335
|
@@ -0,0 +1,490 @@
|
|
|
1
|
+
@use './_variables' as *;
|
|
2
|
+
|
|
3
|
+
html {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
*, *:before, *:after {
|
|
8
|
+
box-sizing: inherit;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
body {
|
|
12
|
+
background-color: var(--md-sys-color-background);
|
|
13
|
+
color: var(--md-sys-color-on-background);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
button,
|
|
17
|
+
input,
|
|
18
|
+
optgroup,
|
|
19
|
+
select,
|
|
20
|
+
textarea {
|
|
21
|
+
font-family: $font-stack;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
a {
|
|
25
|
+
color: $link-color;
|
|
26
|
+
text-decoration: none;
|
|
27
|
+
-webkit-tap-highlight-color: transparent; // Gets rid of tap active state
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Positioning
|
|
31
|
+
.valign-wrapper { display: flex; align-items: center; }
|
|
32
|
+
|
|
33
|
+
.clearfix { clear: both; }
|
|
34
|
+
|
|
35
|
+
// Z-levels
|
|
36
|
+
.z-depth-0 {
|
|
37
|
+
box-shadow: none !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* 2dp elevation modified*/
|
|
41
|
+
.z-depth-1 {
|
|
42
|
+
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
|
|
43
|
+
0 3px 1px -2px rgba(0, 0, 0, 0.12),
|
|
44
|
+
0 1px 5px 0 rgba(0, 0, 0, 0.2);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.z-depth-1-half {
|
|
48
|
+
box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.14), 0 1px 7px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -1px rgba(0, 0, 0, 0.2);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* 6dp elevation modified*/
|
|
52
|
+
.z-depth-2 {
|
|
53
|
+
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14),
|
|
54
|
+
0 1px 10px 0 rgba(0, 0, 0, 0.12),
|
|
55
|
+
0 2px 4px -1px rgba(0, 0, 0, 0.3);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* 12dp elevation modified*/
|
|
59
|
+
.z-depth-3 {
|
|
60
|
+
box-shadow: 0 8px 17px 2px rgba(0, 0, 0, 0.14),
|
|
61
|
+
0 3px 14px 2px rgba(0, 0, 0, 0.12),
|
|
62
|
+
0 5px 5px -3px rgba(0, 0, 0, 0.2);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* 16dp elevation */
|
|
66
|
+
.z-depth-4 {
|
|
67
|
+
box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14),
|
|
68
|
+
0 6px 30px 5px rgba(0, 0, 0, 0.12),
|
|
69
|
+
0 8px 10px -7px rgba(0, 0, 0, 0.2);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* 24dp elevation */
|
|
73
|
+
.z-depth-5 {
|
|
74
|
+
box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14),
|
|
75
|
+
0 9px 46px 8px rgba(0, 0, 0, 0.12),
|
|
76
|
+
0 11px 15px -7px rgba(0, 0, 0, 0.2);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.hoverable {
|
|
80
|
+
transition: box-shadow .25s;
|
|
81
|
+
&:hover {
|
|
82
|
+
box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Dividers
|
|
87
|
+
.divider {
|
|
88
|
+
height: 1px;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
background-color: var(--md-sys-color-outline-variant);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Blockquote
|
|
94
|
+
blockquote { margin: 20px 0; padding-left: 1.5rem; border-left: 5px solid var(--md-sys-color-primary); }
|
|
95
|
+
|
|
96
|
+
// Icon Styles
|
|
97
|
+
i {
|
|
98
|
+
line-height: inherit;
|
|
99
|
+
&.left {
|
|
100
|
+
float: left;
|
|
101
|
+
margin-left: -8px;
|
|
102
|
+
// margin-right: 15px;
|
|
103
|
+
}
|
|
104
|
+
&.right {
|
|
105
|
+
float: right;
|
|
106
|
+
// margin-left: 15px;
|
|
107
|
+
}
|
|
108
|
+
&.tiny {
|
|
109
|
+
font-size: 1rem;
|
|
110
|
+
}
|
|
111
|
+
&.small {
|
|
112
|
+
font-size: 2rem;
|
|
113
|
+
}
|
|
114
|
+
&.medium {
|
|
115
|
+
font-size: 4rem;
|
|
116
|
+
}
|
|
117
|
+
&.large {
|
|
118
|
+
font-size: 6rem;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Modal
|
|
123
|
+
html.noscroll {
|
|
124
|
+
position: fixed;
|
|
125
|
+
overflow-y: scroll;
|
|
126
|
+
width: 100%;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Images
|
|
130
|
+
img.responsive-img,
|
|
131
|
+
video.responsive-video {
|
|
132
|
+
max-width: 100%;
|
|
133
|
+
height: auto;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Parallax
|
|
137
|
+
.parallax-container {
|
|
138
|
+
position: relative;
|
|
139
|
+
overflow: hidden;
|
|
140
|
+
height: 500px;
|
|
141
|
+
|
|
142
|
+
.parallax {
|
|
143
|
+
position: absolute;
|
|
144
|
+
top: 0;
|
|
145
|
+
left: 0;
|
|
146
|
+
right: 0;
|
|
147
|
+
bottom: 0;
|
|
148
|
+
z-index: -1;
|
|
149
|
+
|
|
150
|
+
img {
|
|
151
|
+
opacity: 0;
|
|
152
|
+
position: absolute;
|
|
153
|
+
left: 50%;
|
|
154
|
+
bottom: 0;
|
|
155
|
+
min-width: 100%;
|
|
156
|
+
min-height: 100%;
|
|
157
|
+
transform: translate3d(0, 0, 0);
|
|
158
|
+
transform: translateX(-50%);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// Pushpin
|
|
164
|
+
.pin-top, .pin-bottom {
|
|
165
|
+
position: relative;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.pinned {
|
|
169
|
+
position: fixed !important;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// Remove Focus Boxes
|
|
173
|
+
select:focus {
|
|
174
|
+
outline: 1px solid var(--md-ref-palette-primary80);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
label {
|
|
178
|
+
font-size: .8rem;
|
|
179
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
/*********************
|
|
184
|
+
Transition Classes
|
|
185
|
+
**********************/
|
|
186
|
+
|
|
187
|
+
ul.staggered-list li { opacity: 0; }
|
|
188
|
+
.fade-in { opacity: 0; transform-origin: 0 50%; }
|
|
189
|
+
|
|
190
|
+
/*********************
|
|
191
|
+
Media Query Classes
|
|
192
|
+
**********************/
|
|
193
|
+
.hide-on-small-only, .hide-on-small-and-down {
|
|
194
|
+
@media #{$small-and-down} { display: none !important; }
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.hide-on-med-and-down {
|
|
198
|
+
@media #{$medium-and-down} { display: none !important; }
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.hide-on-med-and-up {
|
|
202
|
+
@media #{$medium-and-up} { display: none !important; }
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.hide-on-med-only {
|
|
206
|
+
@media only screen and (min-width: $small-screen-up) and (max-width: $medium-screen) {
|
|
207
|
+
display: none !important;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.hide-on-large-only {
|
|
212
|
+
@media #{$large-and-up} { display: none !important; }
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.hide-on-extra-large-only {
|
|
216
|
+
@media #{$extra-large-and-up} { display: none !important; }
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.show-on-extra-large {
|
|
220
|
+
@media #{$extra-large-and-up} { display: block !important; }
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.show-on-large {
|
|
224
|
+
@media #{$large-and-up} { display: block !important; }
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.show-on-medium {
|
|
228
|
+
@media only screen and (min-width: $small-screen-up) and (max-width: $medium-screen) {
|
|
229
|
+
display: block !important;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.show-on-small {
|
|
234
|
+
@media #{$small-and-down} { display: block !important; }
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.show-on-medium-and-up {
|
|
238
|
+
@media #{$medium-and-up} { display: block !important; }
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.show-on-medium-and-down {
|
|
242
|
+
@media #{$medium-and-down} { display: block !important; }
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
// Center text on mobile
|
|
247
|
+
.center-on-small-only {
|
|
248
|
+
@media #{$small-and-down} { text-align: center; }
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// Footer
|
|
252
|
+
.page-footer {
|
|
253
|
+
margin-top: 5rem;
|
|
254
|
+
padding-top: 3rem;
|
|
255
|
+
border-top: 1px dashed var(--md-sys-color-outline-variant);
|
|
256
|
+
p {
|
|
257
|
+
color: var(--md-sys-color-outline-light);
|
|
258
|
+
}
|
|
259
|
+
a {
|
|
260
|
+
color: var(--md-sys-color-primary);
|
|
261
|
+
}
|
|
262
|
+
.footer-copyright,
|
|
263
|
+
.footer-copyright a {
|
|
264
|
+
overflow: hidden;
|
|
265
|
+
min-height: 50px;
|
|
266
|
+
display: flex;
|
|
267
|
+
align-items: center;
|
|
268
|
+
justify-content: space-between;
|
|
269
|
+
padding: 10px 0px;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.page-footer ul {
|
|
274
|
+
padding-left: 0;
|
|
275
|
+
list-style-type: none;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
// Tables
|
|
279
|
+
table, th, td {
|
|
280
|
+
border: none;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
table {
|
|
284
|
+
width: 100%;
|
|
285
|
+
display: table;
|
|
286
|
+
border-collapse: collapse;
|
|
287
|
+
border-spacing: 0;
|
|
288
|
+
|
|
289
|
+
&.striped {
|
|
290
|
+
tr {
|
|
291
|
+
border-bottom: none;
|
|
292
|
+
}
|
|
293
|
+
tbody > tr:nth-child(odd) {
|
|
294
|
+
background-color: rgba(0, 0, 0, 0.08);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
&.highlight > tbody > tr {
|
|
299
|
+
transition: background-color .25s ease;
|
|
300
|
+
|
|
301
|
+
&:hover {
|
|
302
|
+
background-color: rgba(0, 0, 0, 0.04);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
thead {
|
|
307
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
&.centered {
|
|
311
|
+
thead tr th, tbody tr td {
|
|
312
|
+
text-align: center;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
tr {
|
|
318
|
+
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
td, th {
|
|
322
|
+
padding: 15px 5px;
|
|
323
|
+
display: table-cell;
|
|
324
|
+
text-align: left;
|
|
325
|
+
vertical-align: middle;
|
|
326
|
+
border-radius: 0;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
// Responsive Table
|
|
330
|
+
@media #{$medium-and-down} {
|
|
331
|
+
|
|
332
|
+
table.responsive-table {
|
|
333
|
+
width: 100%;
|
|
334
|
+
border-collapse: collapse;
|
|
335
|
+
border-spacing: 0;
|
|
336
|
+
display: block;
|
|
337
|
+
position: relative;
|
|
338
|
+
|
|
339
|
+
td:empty:before {
|
|
340
|
+
content: '\00a0';
|
|
341
|
+
}
|
|
342
|
+
th,
|
|
343
|
+
td {
|
|
344
|
+
margin: 0;
|
|
345
|
+
vertical-align: top;
|
|
346
|
+
}
|
|
347
|
+
th {
|
|
348
|
+
text-align: left;
|
|
349
|
+
}
|
|
350
|
+
thead {
|
|
351
|
+
display: block;
|
|
352
|
+
float: left;
|
|
353
|
+
|
|
354
|
+
tr {
|
|
355
|
+
display: block;
|
|
356
|
+
padding: 0 10px 0 0;
|
|
357
|
+
|
|
358
|
+
th::before {
|
|
359
|
+
content: "\00a0";
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
tbody {
|
|
364
|
+
display: block;
|
|
365
|
+
width: auto;
|
|
366
|
+
position: relative;
|
|
367
|
+
overflow-x: auto;
|
|
368
|
+
white-space: nowrap;
|
|
369
|
+
|
|
370
|
+
tr {
|
|
371
|
+
display: inline-block;
|
|
372
|
+
vertical-align: top;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
th {
|
|
376
|
+
display: block;
|
|
377
|
+
text-align: right;
|
|
378
|
+
}
|
|
379
|
+
td {
|
|
380
|
+
display: block;
|
|
381
|
+
min-height: 1.25em;
|
|
382
|
+
text-align: left;
|
|
383
|
+
}
|
|
384
|
+
tr {
|
|
385
|
+
border-bottom: none;
|
|
386
|
+
padding: 0 10px;
|
|
387
|
+
}
|
|
388
|
+
/* sort out borders */
|
|
389
|
+
thead {
|
|
390
|
+
border: 0;
|
|
391
|
+
border-right: 1px solid var(--md-sys-color-outline-variant);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
// Responsive Videos
|
|
397
|
+
.video-container {
|
|
398
|
+
position: relative;
|
|
399
|
+
padding-bottom: 56.25%;
|
|
400
|
+
height: 0;
|
|
401
|
+
overflow: hidden;
|
|
402
|
+
|
|
403
|
+
iframe, object, embed {
|
|
404
|
+
position: absolute;
|
|
405
|
+
top: 0;
|
|
406
|
+
left: 0;
|
|
407
|
+
width: 100%;
|
|
408
|
+
height: 100%;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/*******************
|
|
413
|
+
Utility Classes
|
|
414
|
+
*******************/
|
|
415
|
+
|
|
416
|
+
.hide { display: none !important; }
|
|
417
|
+
|
|
418
|
+
// Text Align
|
|
419
|
+
.left-align { text-align: left; }
|
|
420
|
+
.right-align { text-align: right }
|
|
421
|
+
.center, .center-align { text-align: center; }
|
|
422
|
+
|
|
423
|
+
// TODO: Remove this
|
|
424
|
+
.left { float: left !important; }
|
|
425
|
+
.right { float: right !important; }
|
|
426
|
+
|
|
427
|
+
// No Text Select
|
|
428
|
+
.no-select { user-select: none; }
|
|
429
|
+
.circle { border-radius: 50%; }
|
|
430
|
+
.center-block { display: block; margin-left: auto; margin-right: auto; }
|
|
431
|
+
.truncate { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
432
|
+
.no-padding { padding: 0 !important; }
|
|
433
|
+
|
|
434
|
+
/**************************
|
|
435
|
+
Utility Spacing Classes
|
|
436
|
+
**************************/
|
|
437
|
+
|
|
438
|
+
$spacing-shortcuts: ("margin": "m", "padding": "p") !default;
|
|
439
|
+
$spacing-directions: ("top": "t", "right": "r", "bottom": "b", "left": "l") !default;
|
|
440
|
+
$spacing-horizontal: "x" !default;
|
|
441
|
+
$spacing-vertical: "y" !default;
|
|
442
|
+
$spacing-values: ("0": 0, "1": 0.25rem, "2": 0.5rem, "3": 0.75rem, "4": 1rem, "5": 1.5rem, "6": 3rem, "auto": auto) !default;
|
|
443
|
+
|
|
444
|
+
@each $property, $shortcut in $spacing-shortcuts{
|
|
445
|
+
@each $name, $value in $spacing-values{
|
|
446
|
+
// All direction spacing
|
|
447
|
+
.#{$shortcut}-#{$name}{
|
|
448
|
+
#{$property}: $value !important;
|
|
449
|
+
}
|
|
450
|
+
// (t, b, r, l) spacing
|
|
451
|
+
@each $direction, $suffix in $spacing-directions{
|
|
452
|
+
.#{$shortcut}#{$suffix}-#{$name}{
|
|
453
|
+
#{$property}-#{$direction}: $value !important
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
// x spacing
|
|
457
|
+
@if $spacing-horizontal != null{
|
|
458
|
+
.#{$shortcut}#{$spacing-horizontal}-#{$name}{
|
|
459
|
+
#{$property}-left: $value !important;
|
|
460
|
+
#{$property}-right: $value !important;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
// y spacing
|
|
464
|
+
@if $spacing-vertical != null{
|
|
465
|
+
.#{$shortcut}#{$spacing-vertical}-#{$name}{
|
|
466
|
+
#{$property}-top: $value !important;
|
|
467
|
+
#{$property}-bottom: $value !important;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
// Docked display
|
|
474
|
+
.display-docked {
|
|
475
|
+
position: absolute;
|
|
476
|
+
opacity: 0;
|
|
477
|
+
z-index: 9999;
|
|
478
|
+
visibility: hidden;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.confirmation-btns {
|
|
482
|
+
margin-left: auto;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/* This is needed for some mobile phones to display the Google Icon font properly */
|
|
486
|
+
.material-icons, .material-symbols-outlined,
|
|
487
|
+
.material-symbols-rounded, .material-symbols-sharp {
|
|
488
|
+
text-rendering: optimizeLegibility;
|
|
489
|
+
font-feature-settings: 'liga';
|
|
490
|
+
}
|
package/sass/_grid.scss
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use './variables' as *;
|
|
3
|
+
|
|
4
|
+
.container {
|
|
5
|
+
margin: 0 auto;
|
|
6
|
+
max-width: 1280px;
|
|
7
|
+
width: 90%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@media #{$medium-and-up} {
|
|
11
|
+
.container {
|
|
12
|
+
width: 85%;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media #{$large-and-up} {
|
|
17
|
+
.container {
|
|
18
|
+
width: 70%;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.section {
|
|
23
|
+
padding: 1rem 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Mixins to eliminate code repetition
|
|
27
|
+
@mixin reset-offset {
|
|
28
|
+
margin-left: auto;
|
|
29
|
+
left: auto;
|
|
30
|
+
right: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@mixin grid-classes($size, $i, $perc) {
|
|
34
|
+
&.offset-#{$size}#{$i} {
|
|
35
|
+
margin-left: $perc;
|
|
36
|
+
}
|
|
37
|
+
&.pull-#{$size}#{$i} {
|
|
38
|
+
right: $perc;
|
|
39
|
+
}
|
|
40
|
+
&.push-#{$size}#{$i} {
|
|
41
|
+
left: $perc;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
body {
|
|
46
|
+
--gap-size: 1.5rem; // default
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.row {
|
|
50
|
+
display: grid;
|
|
51
|
+
grid-template-columns: repeat(12, 1fr);
|
|
52
|
+
gap: var(--gap-size);
|
|
53
|
+
|
|
54
|
+
//--- S
|
|
55
|
+
.s1 { grid-column: auto / span 1; }
|
|
56
|
+
.s2 { grid-column: auto / span 2; }
|
|
57
|
+
.s3 { grid-column: auto / span 3; }
|
|
58
|
+
.s4 { grid-column: auto / span 4; }
|
|
59
|
+
.s5 { grid-column: auto / span 5; }
|
|
60
|
+
.s6 { grid-column: auto / span 6; }
|
|
61
|
+
.s7 { grid-column: auto / span 7; }
|
|
62
|
+
.s8 { grid-column: auto / span 8; }
|
|
63
|
+
.s9 { grid-column: auto / span 9; }
|
|
64
|
+
.s10 { grid-column: auto / span 10; }
|
|
65
|
+
.s11 { grid-column: auto / span 11; }
|
|
66
|
+
.s12 { grid-column: auto / span 12; }
|
|
67
|
+
|
|
68
|
+
.offset-s1 { grid-column-start: 3; }
|
|
69
|
+
.offset-s2 { grid-column-start: 2; }
|
|
70
|
+
.offset-s3 { grid-column-start: 4; }
|
|
71
|
+
.offset-s4 { grid-column-start: 5; }
|
|
72
|
+
.offset-s5 { grid-column-start: 6; }
|
|
73
|
+
.offset-s6 { grid-column-start: 7; }
|
|
74
|
+
.offset-s7 { grid-column-start: 8; }
|
|
75
|
+
.offset-s8 { grid-column-start: 9; }
|
|
76
|
+
.offset-s9 { grid-column-start: 10; }
|
|
77
|
+
.offset-s10 { grid-column-start: 11; }
|
|
78
|
+
.offset-s11 { grid-column-start: 12; }
|
|
79
|
+
|
|
80
|
+
//--- M
|
|
81
|
+
@media #{$medium-and-up} {
|
|
82
|
+
.m1 { grid-column: auto / span 1; }
|
|
83
|
+
.m2 { grid-column: auto / span 2; }
|
|
84
|
+
.m3 { grid-column: auto / span 3; }
|
|
85
|
+
.m4 { grid-column: auto / span 4; }
|
|
86
|
+
.m5 { grid-column: auto / span 5; }
|
|
87
|
+
.m6 { grid-column: auto / span 6; }
|
|
88
|
+
.m7 { grid-column: auto / span 7; }
|
|
89
|
+
.m8 { grid-column: auto / span 8; }
|
|
90
|
+
.m9 { grid-column: auto / span 9; }
|
|
91
|
+
.m10 { grid-column: auto / span 10; }
|
|
92
|
+
.m11 { grid-column: auto / span 11; }
|
|
93
|
+
.m12 { grid-column: auto / span 12; }
|
|
94
|
+
|
|
95
|
+
.offset-m1 { grid-column-start: 2; }
|
|
96
|
+
.offset-m2 { grid-column-start: 3; }
|
|
97
|
+
.offset-m3 { grid-column-start: 4; }
|
|
98
|
+
.offset-m4 { grid-column-start: 5; }
|
|
99
|
+
.offset-m5 { grid-column-start: 6; }
|
|
100
|
+
.offset-m6 { grid-column-start: 7; }
|
|
101
|
+
.offset-m7 { grid-column-start: 8; }
|
|
102
|
+
.offset-m8 { grid-column-start: 9; }
|
|
103
|
+
.offset-m9 { grid-column-start: 10; }
|
|
104
|
+
.offset-m10 { grid-column-start: 11; }
|
|
105
|
+
.offset-m11 { grid-column-start: 12; }
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
//--- L
|
|
109
|
+
@media #{$large-and-up} {
|
|
110
|
+
.l1 { grid-column: auto / span 1; }
|
|
111
|
+
.l2 { grid-column: auto / span 2; }
|
|
112
|
+
.l3 { grid-column: auto / span 3; }
|
|
113
|
+
.l4 { grid-column: auto / span 4; }
|
|
114
|
+
.l5 { grid-column: auto / span 5; }
|
|
115
|
+
.l6 { grid-column: auto / span 6; }
|
|
116
|
+
.l7 { grid-column: auto / span 7; }
|
|
117
|
+
.l8 { grid-column: auto / span 8; }
|
|
118
|
+
.l9 { grid-column: auto / span 9; }
|
|
119
|
+
.l10 { grid-column: auto / span 10; }
|
|
120
|
+
.l11 { grid-column: auto / span 11; }
|
|
121
|
+
.l12 { grid-column: auto / span 12; }
|
|
122
|
+
|
|
123
|
+
.offset-l1 { grid-column-start: 2; }
|
|
124
|
+
.offset-l2 { grid-column-start: 3; }
|
|
125
|
+
.offset-l3 { grid-column-start: 4; }
|
|
126
|
+
.offset-l4 { grid-column-start: 5; }
|
|
127
|
+
.offset-l5 { grid-column-start: 6; }
|
|
128
|
+
.offset-l6 { grid-column-start: 7; }
|
|
129
|
+
.offset-l7 { grid-column-start: 8; }
|
|
130
|
+
.offset-l8 { grid-column-start: 9; }
|
|
131
|
+
.offset-l9 { grid-column-start: 10; }
|
|
132
|
+
.offset-l10 { grid-column-start: 11; }
|
|
133
|
+
.offset-l11 { grid-column-start: 12; }
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
//--- XL
|
|
137
|
+
@media #{$extra-large-and-up} {
|
|
138
|
+
.xl1 { grid-column: auto / span 1; }
|
|
139
|
+
.xl2 { grid-column: auto / span 2; }
|
|
140
|
+
.xl3 { grid-column: auto / span 3; }
|
|
141
|
+
.xl4 { grid-column: auto / span 4; }
|
|
142
|
+
.xl5 { grid-column: auto / span 5; }
|
|
143
|
+
.xl6 { grid-column: auto / span 6; }
|
|
144
|
+
.xl7 { grid-column: auto / span 7; }
|
|
145
|
+
.xl8 { grid-column: auto / span 8; }
|
|
146
|
+
.xl9 { grid-column: auto / span 9; }
|
|
147
|
+
.xl10 { grid-column: auto / span 10; }
|
|
148
|
+
.xl11 { grid-column: auto / span 11; }
|
|
149
|
+
.xl12 { grid-column: auto / span 12; }
|
|
150
|
+
|
|
151
|
+
.offset-xl1 { grid-column-start: 2; }
|
|
152
|
+
.offset-xl2 { grid-column-start: 3; }
|
|
153
|
+
.offset-xl3 { grid-column-start: 4; }
|
|
154
|
+
.offset-xl4 { grid-column-start: 5; }
|
|
155
|
+
.offset-xl5 { grid-column-start: 6; }
|
|
156
|
+
.offset-xl6 { grid-column-start: 7; }
|
|
157
|
+
.offset-xl7 { grid-column-start: 8; }
|
|
158
|
+
.offset-xl8 { grid-column-start: 9; }
|
|
159
|
+
.offset-xl9 { grid-column-start: 10; }
|
|
160
|
+
.offset-xl10 { grid-column-start: 11; }
|
|
161
|
+
.offset-xl11 { grid-column-start: 12; }
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
//--- Gap
|
|
167
|
+
.g-0 { gap: 0; }
|
|
168
|
+
.g-1 { gap: calc(0.25 * var(--gap-size)); }
|
|
169
|
+
.g-2 { gap: calc(0.5 * var(--gap-size)); }
|
|
170
|
+
.g-3 { gap: calc(1 * var(--gap-size)); }
|
|
171
|
+
.g-4 { gap: calc(1.5 * var(--gap-size)); }
|
|
172
|
+
.g-5 { gap: calc(3 * var(--gap-size)); }
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.table-of-contents {
|
|
2
|
+
list-style: none;
|
|
3
|
+
&.fixed {
|
|
4
|
+
position: fixed;
|
|
5
|
+
}
|
|
6
|
+
li {
|
|
7
|
+
padding: 0;
|
|
8
|
+
}
|
|
9
|
+
a {
|
|
10
|
+
display: inline-block;
|
|
11
|
+
font-weight: 400;
|
|
12
|
+
color: var(--md-sys-color-secondary);
|
|
13
|
+
padding-left: 16px;
|
|
14
|
+
height: 2rem;
|
|
15
|
+
line-height: 2rem;
|
|
16
|
+
border-left: 1px solid var(--md-sys-color-outline-variant);
|
|
17
|
+
&:hover {
|
|
18
|
+
color: var(--md-sys-color-on-background);
|
|
19
|
+
padding-left: 15px;
|
|
20
|
+
}
|
|
21
|
+
&.active {
|
|
22
|
+
color: var(--md-sys-color-primary);
|
|
23
|
+
font-weight: 500;
|
|
24
|
+
padding-left: 14px;
|
|
25
|
+
border-left: 2px solid var(--md-sys-color-primary);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|