mithril-materialized 1.4.2 → 2.0.0-beta.10
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/README.md +286 -306
- package/dist/advanced.css +1888 -0
- package/dist/autocomplete.d.ts +12 -4
- package/dist/breadcrumb.d.ts +53 -0
- package/dist/button.d.ts +10 -10
- package/dist/carousel.d.ts +26 -7
- package/dist/chip.d.ts +2 -2
- package/dist/code-block.d.ts +2 -3
- package/dist/collapsible.d.ts +12 -7
- package/dist/collection.d.ts +8 -8
- package/dist/components.css +2310 -0
- package/dist/core.css +3402 -0
- package/dist/datepicker.d.ts +66 -0
- package/dist/dropdown.d.ts +5 -5
- package/dist/file-upload.d.ts +34 -0
- package/dist/floating-action-button.d.ts +9 -5
- package/dist/forms.css +2284 -0
- package/dist/icon.d.ts +2 -2
- package/dist/index.css +9284 -2
- package/dist/index.d.ts +13 -3
- package/dist/index.esm.js +6188 -2
- package/dist/index.js +6263 -2
- package/dist/index.min.css +8 -0
- package/dist/index.umd.js +6267 -2
- package/dist/input-options.d.ts +3 -1
- package/dist/input.d.ts +17 -12
- package/dist/label.d.ts +6 -5
- package/dist/material-box.d.ts +22 -4
- package/dist/material-icon.d.ts +14 -0
- package/dist/modal.d.ts +23 -7
- package/dist/option.d.ts +12 -11
- package/dist/pagination.d.ts +5 -9
- package/dist/parallax.d.ts +8 -6
- package/dist/pickers.css +487 -0
- package/dist/pushpin.d.ts +32 -0
- package/dist/radio.d.ts +10 -6
- package/dist/select.d.ts +5 -5
- package/dist/sidenav.d.ts +76 -0
- package/dist/switch.d.ts +4 -5
- package/dist/tabs.d.ts +18 -7
- package/dist/theme-switcher.d.ts +49 -0
- package/dist/timepicker.d.ts +42 -0
- package/dist/toast.d.ts +45 -0
- package/dist/tooltip.d.ts +59 -0
- package/dist/utilities.css +3197 -0
- package/dist/utils.d.ts +17 -0
- package/dist/wizard.d.ts +58 -0
- package/package.json +47 -14
- package/sass/components/_badges.scss +59 -0
- package/sass/components/_breadcrumb.scss +248 -0
- package/sass/components/_buttons.scss +327 -0
- package/sass/components/_cards.scss +197 -0
- package/sass/components/_carousel.scss +92 -0
- package/sass/components/_chips.scss +92 -0
- package/sass/components/_collapsible.scss +94 -0
- package/sass/components/_color-classes.scss +34 -0
- package/sass/components/_color-variables.scss +371 -0
- package/sass/components/_datepicker.scss +282 -0
- package/sass/components/_dropdown.scss +90 -0
- package/sass/components/_file-upload.scss +228 -0
- package/sass/components/_global.scss +777 -0
- package/sass/components/_grid.scss +160 -0
- package/sass/components/_icons-material-design.scss +5 -0
- package/sass/components/_materialbox.scss +43 -0
- package/sass/components/_modal.scss +100 -0
- package/sass/components/_navbar.scss +219 -0
- package/sass/components/_normalize.scss +447 -0
- package/sass/components/_preloader.scss +336 -0
- package/sass/components/_pulse.scss +34 -0
- package/sass/components/_sidenav.scss +370 -0
- package/sass/components/_slider.scss +94 -0
- package/sass/components/_table_of_contents.scss +36 -0
- package/sass/components/_tabs.scss +103 -0
- package/sass/components/_tapTarget.scss +105 -0
- package/sass/components/_theme-switcher.scss +120 -0
- package/sass/components/_theme-variables.scss +205 -0
- package/sass/components/_timepicker.scss +262 -0
- package/sass/components/_toast.scss +61 -0
- package/sass/components/_tooltip.scss +32 -0
- package/sass/components/_transitions.scss +13 -0
- package/sass/components/_typography.scss +61 -0
- package/sass/components/_variables.scss +352 -0
- package/sass/components/_waves.scss +114 -0
- package/sass/components/_wizard.scss +416 -0
- package/sass/components/forms/_checkboxes.scss +203 -0
- package/sass/components/forms/_file-input.scss +50 -0
- package/sass/components/forms/_form-groups.scss +28 -0
- package/sass/components/forms/_forms.scss +24 -0
- package/sass/components/forms/_input-fields.scss +383 -0
- package/sass/components/forms/_radio-buttons.scss +118 -0
- package/sass/components/forms/_range.scss +164 -0
- package/sass/components/forms/_select.scss +193 -0
- package/sass/components/forms/_switches.scss +92 -0
- package/sass/materialize.scss +48 -0
- package/dist/index.css.map +0 -1
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.modern.js +0 -2
- package/dist/index.modern.js.map +0 -1
- package/dist/index.umd.js.map +0 -1
- package/dist/map-editor.d.ts +0 -63
- package/dist/pickers.d.ts +0 -6
- package/dist/timeline.d.ts +0 -24
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use "variables";
|
|
3
|
+
@use "global";
|
|
4
|
+
|
|
5
|
+
// Modern Sidenav Component Styles (v2.0+)
|
|
6
|
+
.sidenav-container {
|
|
7
|
+
position: relative;
|
|
8
|
+
z-index: 997;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.sidenav-backdrop {
|
|
12
|
+
position: fixed;
|
|
13
|
+
top: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
right: 0;
|
|
16
|
+
bottom: 0;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
background: var(--mm-overlay-background, rgba(0, 0, 0, 0.5));
|
|
20
|
+
opacity: 0;
|
|
21
|
+
visibility: hidden;
|
|
22
|
+
transition: opacity 0.3s ease, visibility 0.3s ease;
|
|
23
|
+
z-index: 998;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
|
|
26
|
+
&.show {
|
|
27
|
+
opacity: 1;
|
|
28
|
+
visibility: visible;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.sidenav-link {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
padding: 0.75rem 1rem;
|
|
36
|
+
color: var(--mm-text-primary, rgba(0, 0, 0, 0.87));
|
|
37
|
+
text-decoration: none;
|
|
38
|
+
transition: background-color 0.2s ease, color 0.2s ease;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
min-height: 48px;
|
|
41
|
+
|
|
42
|
+
&:hover:not(.disabled) {
|
|
43
|
+
background: var(--mm-border-color, rgba(0, 0, 0, 0.12));
|
|
44
|
+
color: var(--mm-text-primary, rgba(0, 0, 0, 0.87));
|
|
45
|
+
text-decoration: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.active {
|
|
49
|
+
background: var(--mm-primary-color-light, rgba(38, 166, 154, 0.1));
|
|
50
|
+
color: var(--mm-primary-color, #26a69a);
|
|
51
|
+
|
|
52
|
+
.sidenav-icon {
|
|
53
|
+
color: var(--mm-primary-color, #26a69a);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.disabled {
|
|
58
|
+
color: var(--mm-text-disabled, rgba(0, 0, 0, 0.38));
|
|
59
|
+
cursor: not-allowed;
|
|
60
|
+
|
|
61
|
+
.sidenav-icon {
|
|
62
|
+
color: var(--mm-text-disabled, rgba(0, 0, 0, 0.38));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.sidenav-icon {
|
|
68
|
+
margin-right: 1rem;
|
|
69
|
+
font-size: 1.5rem;
|
|
70
|
+
width: 24px;
|
|
71
|
+
height: 24px;
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
color: var(--mm-text-secondary, rgba(0, 0, 0, 0.6));
|
|
76
|
+
flex-shrink: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.sidenav-text {
|
|
80
|
+
font-size: 0.875rem;
|
|
81
|
+
font-weight: 500;
|
|
82
|
+
line-height: 1.5;
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
text-overflow: ellipsis;
|
|
85
|
+
white-space: nowrap;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.sidenav-divider {
|
|
89
|
+
height: 1px;
|
|
90
|
+
background: var(--mm-divider-color, rgba(0, 0, 0, 0.12));
|
|
91
|
+
margin: 0.5rem 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.sidenav-subheader {
|
|
95
|
+
padding: 1rem 1rem 0.5rem 1rem;
|
|
96
|
+
font-size: 0.75rem;
|
|
97
|
+
font-weight: 600;
|
|
98
|
+
color: var(--mm-text-secondary, rgba(0, 0, 0, 0.6));
|
|
99
|
+
text-transform: uppercase;
|
|
100
|
+
letter-spacing: 0.5px;
|
|
101
|
+
line-height: 1.5;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.sidenav-content {
|
|
105
|
+
padding: 0;
|
|
106
|
+
height: 100%;
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Legacy Sidenav Styles (maintain backward compatibility)
|
|
112
|
+
|
|
113
|
+
.sidenav {
|
|
114
|
+
position: fixed;
|
|
115
|
+
width: variables.$sidenav-width;
|
|
116
|
+
left: 0;
|
|
117
|
+
top: 0;
|
|
118
|
+
margin: 0;
|
|
119
|
+
transform: translateX(-100%);
|
|
120
|
+
height: 100%;
|
|
121
|
+
height: calc(100% + 60px);
|
|
122
|
+
height: -moz-calc(100%); //Temporary Firefox Fix
|
|
123
|
+
padding-bottom: 60px;
|
|
124
|
+
background-color: var(--mm-surface-color, variables.$sidenav-bg-color);
|
|
125
|
+
z-index: 999;
|
|
126
|
+
overflow-y: auto;
|
|
127
|
+
will-change: transform;
|
|
128
|
+
backface-visibility: hidden;
|
|
129
|
+
transform: translateX(-105%);
|
|
130
|
+
transition: transform 0.3s ease, left 0.3s ease, right 0.3s ease;
|
|
131
|
+
|
|
132
|
+
@extend .z-depth-1 !optional;
|
|
133
|
+
|
|
134
|
+
// New component position variants
|
|
135
|
+
&.sidenav-left {
|
|
136
|
+
left: 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&.sidenav-right {
|
|
140
|
+
right: 0;
|
|
141
|
+
left: auto;
|
|
142
|
+
transform: translateX(100%);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// New component mode variants
|
|
146
|
+
&.sidenav-overlay {
|
|
147
|
+
position: fixed;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&.sidenav-push {
|
|
151
|
+
position: relative;
|
|
152
|
+
box-shadow: var(--mm-border-color, rgba(0, 0, 0, 0.12)) 1px 0 0 0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// New component state variants
|
|
156
|
+
&.closed {
|
|
157
|
+
&.sidenav-left {
|
|
158
|
+
transform: translateX(-100%);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&.sidenav-right {
|
|
162
|
+
transform: translateX(100%);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&.open {
|
|
167
|
+
transform: translateX(0);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// Right Align
|
|
171
|
+
&.right-aligned {
|
|
172
|
+
right: 0;
|
|
173
|
+
transform: translateX(105%);
|
|
174
|
+
left: auto;
|
|
175
|
+
transform: translateX(100%);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.collapsible {
|
|
179
|
+
margin: 0;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
li {
|
|
184
|
+
float: none;
|
|
185
|
+
line-height: variables.$sidenav-line-height;
|
|
186
|
+
|
|
187
|
+
&.active { background-color: rgba(0,0,0,.05); }
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// Style non btn anchors
|
|
191
|
+
li > a:not(.btn):not(.btn-large):not(.btn-flat):not(.btn-floating) {
|
|
192
|
+
&:hover { background-color: var(--mm-border-color, rgba(0,0,0,.05));}
|
|
193
|
+
|
|
194
|
+
color: var(--mm-text-primary, variables.$sidenav-font-color);
|
|
195
|
+
display: block;
|
|
196
|
+
font-size: variables.$sidenav-font-size;
|
|
197
|
+
font-weight: 500;
|
|
198
|
+
height: variables.$sidenav-item-height;
|
|
199
|
+
line-height: variables.$sidenav-line-height;
|
|
200
|
+
padding: 0 (variables.$sidenav-padding * 2);
|
|
201
|
+
|
|
202
|
+
& > i,
|
|
203
|
+
& > [class^="mdi-"], li > a > [class*="mdi-"],
|
|
204
|
+
& > i.material-icons {
|
|
205
|
+
float: left;
|
|
206
|
+
height: variables.$sidenav-item-height;
|
|
207
|
+
line-height: variables.$sidenav-line-height;
|
|
208
|
+
margin: 0 (variables.$sidenav-padding * 2) 0 0;
|
|
209
|
+
width: math.div(variables.$sidenav-item-height, 2);
|
|
210
|
+
color: var(--mm-text-secondary, rgba(0,0,0,.54));
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// Stlye btn anchors
|
|
215
|
+
li > .btn, li > .btn-large, li > .btn-flat, li > .btn-floating {
|
|
216
|
+
margin: 10px (variables.$sidenav-padding * 2);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.divider {
|
|
220
|
+
margin: math.div(variables.$sidenav-padding, 2) 0 0 0;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.subheader {
|
|
224
|
+
&:hover {
|
|
225
|
+
background-color: transparent;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
cursor: initial;
|
|
229
|
+
pointer-events: none;
|
|
230
|
+
color: var(--mm-text-secondary, rgba(0,0,0,.54));
|
|
231
|
+
font-size: variables.$sidenav-font-size;
|
|
232
|
+
font-weight: 500;
|
|
233
|
+
line-height: variables.$sidenav-line-height;
|
|
234
|
+
padding: 0 (variables.$sidenav-padding * 2);
|
|
235
|
+
height: variables.$sidenav-item-height;
|
|
236
|
+
display: flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.user-view {
|
|
241
|
+
position: relative;
|
|
242
|
+
padding: (variables.$sidenav-padding * 2) (variables.$sidenav-padding * 2) 0;
|
|
243
|
+
margin-bottom: math.div(variables.$sidenav-padding, 2);
|
|
244
|
+
|
|
245
|
+
& > a {
|
|
246
|
+
&:hover { background-color: transparent; }
|
|
247
|
+
height: auto;
|
|
248
|
+
padding: 0;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.background {
|
|
252
|
+
overflow: hidden;
|
|
253
|
+
position: absolute;
|
|
254
|
+
top: 0;
|
|
255
|
+
right: 0;
|
|
256
|
+
bottom: 0;
|
|
257
|
+
left: 0;
|
|
258
|
+
z-index: -1;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.circle, .name, .email {
|
|
262
|
+
display: block;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.circle {
|
|
266
|
+
height: 64px;
|
|
267
|
+
width: 64px;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.name,
|
|
271
|
+
.email {
|
|
272
|
+
font-size: variables.$sidenav-font-size;
|
|
273
|
+
line-height: math.div(variables.$sidenav-line-height, 2);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.name {
|
|
277
|
+
margin-top: 16px;
|
|
278
|
+
font-weight: 500;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.email {
|
|
282
|
+
padding-bottom: 16px;
|
|
283
|
+
font-weight: 400;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
// Touch interaction
|
|
290
|
+
.drag-target {
|
|
291
|
+
// Right Align
|
|
292
|
+
&.right-aligned {
|
|
293
|
+
right: 0;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
height: 100%;
|
|
297
|
+
width: 10px;
|
|
298
|
+
position: fixed;
|
|
299
|
+
top: 0;
|
|
300
|
+
left: 0;
|
|
301
|
+
z-index: 998;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
// Fixed Sidenav shown
|
|
306
|
+
.sidenav.sidenav-fixed {
|
|
307
|
+
// Right Align
|
|
308
|
+
&.right-aligned {
|
|
309
|
+
right: 0;
|
|
310
|
+
left: auto;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
left: 0;
|
|
314
|
+
transform: translateX(0);
|
|
315
|
+
position: fixed;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
// Fixed Sidenav hide on smaller
|
|
319
|
+
@media #{variables.$medium-and-down} {
|
|
320
|
+
.sidenav {
|
|
321
|
+
&.sidenav-fixed {
|
|
322
|
+
transform: translateX(-105%);
|
|
323
|
+
|
|
324
|
+
&.right-aligned {
|
|
325
|
+
transform: translateX(105%);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
> a {
|
|
330
|
+
padding: 0 variables.$sidenav-padding;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.user-view {
|
|
334
|
+
padding: variables.$sidenav-padding variables.$sidenav-padding 0;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
.sidenav .collapsible-body > ul:not(.collapsible) > li.active,
|
|
341
|
+
.sidenav.sidenav-fixed .collapsible-body > ul:not(.collapsible) > li.active {
|
|
342
|
+
background-color: variables.$primary-color;
|
|
343
|
+
a {
|
|
344
|
+
color: variables.$sidenav-bg-color;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
.sidenav .collapsible-body {
|
|
348
|
+
padding: 0;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
.sidenav-overlay {
|
|
353
|
+
position: fixed;
|
|
354
|
+
top: 0;
|
|
355
|
+
left: 0;
|
|
356
|
+
right: 0;
|
|
357
|
+
bottom: 0;
|
|
358
|
+
width: 100%;
|
|
359
|
+
height: 100%;
|
|
360
|
+
opacity: 0;
|
|
361
|
+
background-color: var(--mm-overlay-background, rgba(0,0,0,.5));
|
|
362
|
+
z-index: 997;
|
|
363
|
+
display: none;
|
|
364
|
+
transition: opacity 0.3s ease;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// Ensure overlay sidenav doesn't affect main content layout
|
|
368
|
+
.sidenav-overlay {
|
|
369
|
+
pointer-events: auto;
|
|
370
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
@use "variables";
|
|
2
|
+
|
|
3
|
+
.slider {
|
|
4
|
+
position: relative;
|
|
5
|
+
height: 400px;
|
|
6
|
+
width: 100%;
|
|
7
|
+
|
|
8
|
+
// Fullscreen slider
|
|
9
|
+
&.fullscreen {
|
|
10
|
+
height: 100%;
|
|
11
|
+
width: 100%;
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
right: 0;
|
|
16
|
+
bottom: 0;
|
|
17
|
+
|
|
18
|
+
ul.slides {
|
|
19
|
+
height: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
ul.indicators {
|
|
23
|
+
z-index: 2;
|
|
24
|
+
bottom: 30px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.slides {
|
|
29
|
+
background-color: variables.$slider-bg-color;
|
|
30
|
+
margin: 0;
|
|
31
|
+
height: 400px;
|
|
32
|
+
|
|
33
|
+
li {
|
|
34
|
+
opacity: 0;
|
|
35
|
+
position: absolute;
|
|
36
|
+
top: 0;
|
|
37
|
+
left: 0;
|
|
38
|
+
z-index: 1;
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: inherit;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
|
|
43
|
+
img {
|
|
44
|
+
height: 100%;
|
|
45
|
+
width: 100%;
|
|
46
|
+
background-size: cover;
|
|
47
|
+
background-position: center;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.caption {
|
|
51
|
+
color: #fff;
|
|
52
|
+
position: absolute;
|
|
53
|
+
top: 15%;
|
|
54
|
+
left: 15%;
|
|
55
|
+
width: 70%;
|
|
56
|
+
opacity: 0;
|
|
57
|
+
|
|
58
|
+
p { color: variables.$slider-bg-color-light; }
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.active {
|
|
62
|
+
z-index: 2;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
.indicators {
|
|
69
|
+
position: absolute;
|
|
70
|
+
text-align: center;
|
|
71
|
+
left: 0;
|
|
72
|
+
right: 0;
|
|
73
|
+
bottom: 0;
|
|
74
|
+
margin: 0;
|
|
75
|
+
|
|
76
|
+
.indicator-item {
|
|
77
|
+
display: inline-block;
|
|
78
|
+
position: relative;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
height: 16px;
|
|
81
|
+
width: 16px;
|
|
82
|
+
margin: 0 12px;
|
|
83
|
+
background-color: variables.$slider-bg-color-light;
|
|
84
|
+
|
|
85
|
+
transition: background-color .3s;
|
|
86
|
+
border-radius: 50%;
|
|
87
|
+
|
|
88
|
+
&.active {
|
|
89
|
+
background-color: variables.$slider-indicator-color;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "variables";
|
|
3
|
+
|
|
4
|
+
/***************
|
|
5
|
+
Nav List
|
|
6
|
+
***************/
|
|
7
|
+
.table-of-contents {
|
|
8
|
+
&.fixed {
|
|
9
|
+
position: fixed;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
li {
|
|
13
|
+
padding: 2px 0;
|
|
14
|
+
}
|
|
15
|
+
a {
|
|
16
|
+
display: inline-block;
|
|
17
|
+
font-weight: 300;
|
|
18
|
+
color: #757575;
|
|
19
|
+
padding-left: 16px;
|
|
20
|
+
height: 1.5rem;
|
|
21
|
+
line-height: 1.5rem;
|
|
22
|
+
letter-spacing: .4;
|
|
23
|
+
display: inline-block;
|
|
24
|
+
|
|
25
|
+
&:hover {
|
|
26
|
+
color: color.adjust(#757575, $lightness: 20%);
|
|
27
|
+
padding-left: 15px;
|
|
28
|
+
border-left: 1px solid variables.$primary-color;
|
|
29
|
+
}
|
|
30
|
+
&.active {
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
padding-left: 14px;
|
|
33
|
+
border-left: 2px solid variables.$primary-color;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "variables";
|
|
3
|
+
|
|
4
|
+
.tabs {
|
|
5
|
+
&.tabs-transparent {
|
|
6
|
+
background-color: transparent;
|
|
7
|
+
|
|
8
|
+
.tab a,
|
|
9
|
+
.tab.disabled a,
|
|
10
|
+
.tab.disabled a:hover {
|
|
11
|
+
color: rgba(255,255,255,0.7);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.tab a:hover,
|
|
15
|
+
.tab a.active {
|
|
16
|
+
color: #fff;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.indicator {
|
|
20
|
+
background-color: #fff;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.tabs-fixed-width {
|
|
25
|
+
display: flex;
|
|
26
|
+
|
|
27
|
+
.tab {
|
|
28
|
+
flex-grow: 1;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
position: relative;
|
|
33
|
+
overflow-x: auto;
|
|
34
|
+
overflow-y: hidden;
|
|
35
|
+
height: 48px;
|
|
36
|
+
width: 100%;
|
|
37
|
+
background-color: var(--mm-background-color, variables.$tabs-bg-color);
|
|
38
|
+
color: var(--mm-text-primary, rgba(0, 0, 0, 0.87));
|
|
39
|
+
margin: 0 auto;
|
|
40
|
+
white-space: nowrap;
|
|
41
|
+
|
|
42
|
+
.tab {
|
|
43
|
+
display: inline-block;
|
|
44
|
+
text-align: center;
|
|
45
|
+
line-height: 48px;
|
|
46
|
+
height: 48px;
|
|
47
|
+
padding: 0;
|
|
48
|
+
margin: 0;
|
|
49
|
+
text-transform: uppercase;
|
|
50
|
+
|
|
51
|
+
a {
|
|
52
|
+
&:focus,
|
|
53
|
+
&:focus.active {
|
|
54
|
+
background-color: color.adjust(variables.$tabs-underline-color, $alpha: -.8);
|
|
55
|
+
outline: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:hover,
|
|
59
|
+
&.active {
|
|
60
|
+
background-color: transparent;
|
|
61
|
+
color: var(--mm-primary-color, variables.$tabs-text-color);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
color: var(--mm-text-secondary, rgba(variables.$tabs-text-color, .7));
|
|
65
|
+
display: block;
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 100%;
|
|
68
|
+
padding: 0 24px;
|
|
69
|
+
font-size: 14px;
|
|
70
|
+
text-overflow: ellipsis;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
transition: color .28s ease, background-color .28s ease;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.disabled a,
|
|
76
|
+
&.disabled a:hover {
|
|
77
|
+
color: var(--mm-text-disabled, rgba(variables.$tabs-text-color, .4));
|
|
78
|
+
cursor: default;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
.indicator {
|
|
82
|
+
position: absolute;
|
|
83
|
+
bottom: 0;
|
|
84
|
+
height: 2px;
|
|
85
|
+
background-color: variables.$tabs-underline-color;
|
|
86
|
+
will-change: left, right;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Fixed Sidenav hide on smaller
|
|
91
|
+
@media #{variables.$medium-and-down} {
|
|
92
|
+
.tabs {
|
|
93
|
+
display: flex;
|
|
94
|
+
|
|
95
|
+
.tab {
|
|
96
|
+
flex-grow: 1;
|
|
97
|
+
|
|
98
|
+
a {
|
|
99
|
+
padding: 0 12px;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
@use "variables";
|
|
2
|
+
|
|
3
|
+
.tap-target-wrapper {
|
|
4
|
+
width: 800px;
|
|
5
|
+
height: 800px;
|
|
6
|
+
position: fixed;
|
|
7
|
+
z-index: 1000;
|
|
8
|
+
visibility: hidden;
|
|
9
|
+
transition: visibility 0s .3s;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.tap-target-wrapper.open {
|
|
13
|
+
visibility: visible;
|
|
14
|
+
transition: visibility 0s;
|
|
15
|
+
|
|
16
|
+
.tap-target {
|
|
17
|
+
transform: scale(1);
|
|
18
|
+
opacity: .95;
|
|
19
|
+
transition:
|
|
20
|
+
transform .3s cubic-bezier(.42,0,.58,1),
|
|
21
|
+
opacity .3s cubic-bezier(.42,0,.58,1);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.tap-target-wave::before {
|
|
25
|
+
transform: scale(1);
|
|
26
|
+
}
|
|
27
|
+
.tap-target-wave::after {
|
|
28
|
+
visibility: visible;
|
|
29
|
+
animation: pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;
|
|
30
|
+
transition:
|
|
31
|
+
opacity .3s,
|
|
32
|
+
transform .3s,
|
|
33
|
+
visibility 0s 1s;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.tap-target {
|
|
38
|
+
position: absolute;
|
|
39
|
+
font-size: 1rem;
|
|
40
|
+
border-radius: 50%;
|
|
41
|
+
background-color: variables.$primary-color;
|
|
42
|
+
box-shadow: 0 20px 20px 0 rgba(0,0,0,0.14), 0 10px 50px 0 rgba(0,0,0,0.12), 0 30px 10px -20px rgba(0,0,0,0.2);
|
|
43
|
+
width: 100%;
|
|
44
|
+
height: 100%;
|
|
45
|
+
opacity: 0;
|
|
46
|
+
transform: scale(0);
|
|
47
|
+
transition:
|
|
48
|
+
transform .3s cubic-bezier(.42,0,.58,1),
|
|
49
|
+
opacity .3s cubic-bezier(.42,0,.58,1);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.tap-target-content {
|
|
53
|
+
position: relative;
|
|
54
|
+
display: table-cell;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.tap-target-wave {
|
|
58
|
+
&::before,
|
|
59
|
+
&::after {
|
|
60
|
+
content: '';
|
|
61
|
+
display: block;
|
|
62
|
+
position: absolute;
|
|
63
|
+
width: 100%;
|
|
64
|
+
height: 100%;
|
|
65
|
+
border-radius: 50%;
|
|
66
|
+
background-color: #ffffff;
|
|
67
|
+
}
|
|
68
|
+
&::before {
|
|
69
|
+
transform: scale(0);
|
|
70
|
+
transition: transform .3s;
|
|
71
|
+
}
|
|
72
|
+
&::after {
|
|
73
|
+
visibility: hidden;
|
|
74
|
+
transition:
|
|
75
|
+
opacity .3s,
|
|
76
|
+
transform .3s,
|
|
77
|
+
visibility 0s;
|
|
78
|
+
z-index: -1;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
position: absolute;
|
|
82
|
+
border-radius: 50%;
|
|
83
|
+
z-index: 10001;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.tap-target-origin {
|
|
87
|
+
&:not(.btn),
|
|
88
|
+
&:not(.btn):hover {
|
|
89
|
+
background: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
top: 50%;
|
|
93
|
+
left: 50%;
|
|
94
|
+
transform: translate(-50%,-50%);
|
|
95
|
+
|
|
96
|
+
z-index: 10002;
|
|
97
|
+
position: absolute !important;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@media only screen and (max-width: 600px) {
|
|
101
|
+
.tap-target, .tap-target-wrapper {
|
|
102
|
+
width: 600px;
|
|
103
|
+
height: 600px;
|
|
104
|
+
}
|
|
105
|
+
}
|