@materializecss/materialize 2.2.1 → 2.3.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.
Files changed (57) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +94 -94
  3. package/dist/css/materialize.colors.min.css +6 -0
  4. package/dist/css/materialize.css +9624 -8820
  5. package/dist/css/materialize.min.css +6 -8
  6. package/dist/css/materialize.min.css.map +1 -1
  7. package/dist/js/materialize.cjs.js +8370 -7926
  8. package/dist/js/materialize.d.ts +2552 -2491
  9. package/dist/js/materialize.js +8375 -7931
  10. package/dist/js/materialize.min.js +6 -6
  11. package/dist/js/materialize.mjs +8342 -7898
  12. package/package.json +95 -79
  13. package/sass/{components/_color-variables.scss → _colors.scss} +403 -370
  14. package/sass/{components/_global.scss → _global.scss} +490 -558
  15. package/sass/{components/_grid.scss → _grid.scss} +172 -170
  16. package/sass/{components/_table_of_contents.scss → _table_of_contents.scss} +28 -32
  17. package/sass/{components/_tapTarget.scss → _tapTarget.scss} +102 -103
  18. package/sass/{components/_typography.scss → _typography.scss} +59 -62
  19. package/sass/{components/_variables.scss → _variables.scss} +57 -56
  20. package/sass/components/forms/_forms.scss +19 -24
  21. package/sass/materialize.scss +48 -47
  22. package/sass/mixins.module.scss +168 -0
  23. package/sass/components/_badges.scss +0 -75
  24. package/sass/components/_buttons.scss +0 -455
  25. package/sass/components/_cards.scss +0 -210
  26. package/sass/components/_carousel.scss +0 -95
  27. package/sass/components/_chips.scss +0 -148
  28. package/sass/components/_collapsible.scss +0 -80
  29. package/sass/components/_collection.scss +0 -115
  30. package/sass/components/_color-classes.scss +0 -32
  31. package/sass/components/_datepicker.scss +0 -216
  32. package/sass/components/_dropdown.scss +0 -78
  33. package/sass/components/_icons-material-design.scss +0 -6
  34. package/sass/components/_materialbox.scss +0 -43
  35. package/sass/components/_modal.scss +0 -68
  36. package/sass/components/_navbar.scss +0 -231
  37. package/sass/components/_normalize.scss +0 -349
  38. package/sass/components/_preloader.scss +0 -418
  39. package/sass/components/_pulse.scss +0 -35
  40. package/sass/components/_sidenav.scss +0 -249
  41. package/sass/components/_slider.scss +0 -121
  42. package/sass/components/_tabs.scss +0 -155
  43. package/sass/components/_timepicker.scss +0 -279
  44. package/sass/components/_toast.scss +0 -65
  45. package/sass/components/_tooltip.scss +0 -48
  46. package/sass/components/_transitions.scss +0 -13
  47. package/sass/components/colors.module.scss +0 -74
  48. package/sass/components/forms/_checkboxes.scss +0 -200
  49. package/sass/components/forms/_file-input.scss +0 -43
  50. package/sass/components/forms/_input-fields.scss +0 -350
  51. package/sass/components/forms/_radio-buttons.scss +0 -112
  52. package/sass/components/forms/_range.scss +0 -153
  53. package/sass/components/forms/_select.scss +0 -195
  54. package/sass/components/forms/_switches.scss +0 -122
  55. package/sass/components/theme.module.scss +0 -140
  56. package/sass/components/tokens.module.scss +0 -272
  57. package/sass/components/typography.module.scss +0 -150
@@ -1,418 +0,0 @@
1
- // Progress Bar
2
- .progress {
3
- position: relative;
4
- height: 4px;
5
- display: block;
6
- width: 100%;
7
- @extend .surface-variant;
8
- border-radius: 4px;
9
- margin: $element-top-margin 0 $element-bottom-margin 0;
10
- overflow: hidden;
11
- background-color: var(--md-sys-color-secondary-container);
12
-
13
- .determinate {
14
- position: absolute;
15
- top: 0;
16
- left: 0;
17
- bottom: 0;
18
- background-color: var(--md-sys-color-primary);
19
- transition: width .3s linear;
20
- }
21
-
22
- .indeterminate {
23
- background-color: var(--md-sys-color-primary);
24
-
25
- &:before {
26
- content: '';
27
- position: absolute;
28
- background-color: inherit;
29
- top: 0;
30
- left: 0;
31
- bottom: 0;
32
- will-change: left, right;
33
- // Custom bezier
34
- animation: indeterminate 2.1s cubic-bezier(0.650, 0.815, 0.735, 0.395) infinite;
35
-
36
- }
37
-
38
- &:after {
39
- content: '';
40
- position: absolute;
41
- background-color: inherit;
42
- top: 0;
43
- left: 0;
44
- bottom: 0;
45
- will-change: left, right;
46
- // Custom bezier
47
- animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.840, 0.440, 1.000) infinite;
48
- animation-delay: 1.15s;
49
- }
50
- }
51
- }
52
-
53
- @keyframes indeterminate {
54
- 0% {
55
- left: -35%;
56
- right: 100%;
57
- }
58
- 60% {
59
- left: 100%;
60
- right: -90%;
61
- }
62
- 100% {
63
- left: 100%;
64
- right: -90%;
65
- }
66
- }
67
-
68
- @keyframes indeterminate-short {
69
- 0% {
70
- left: -200%;
71
- right: 100%;
72
- }
73
- 60% {
74
- left: 107%;
75
- right: -8%;
76
- }
77
- 100% {
78
- left: 107%;
79
- right: -8%;
80
- }
81
- }
82
-
83
-
84
-
85
- /*
86
- @license
87
- Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
88
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
89
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
90
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
91
- Code distributed by Google as part of the polymer project is also
92
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
93
- */
94
-
95
- /**************************/
96
- /* STYLES FOR THE SPINNER */
97
- /**************************/
98
-
99
- /*
100
- * Constants:
101
- * STROKEWIDTH = 3px
102
- * ARCSIZE = 270 degrees (amount of circle the arc takes up)
103
- * ARCTIME = 1333ms (time it takes to expand and contract arc)
104
- * ARCSTARTROT = 216 degrees (how much the start location of the arc
105
- * should rotate each time, 216 gives us a
106
- * 5 pointed star shape (it's 360/5 * 3).
107
- * For a 7 pointed star, we might do
108
- * 360/7 * 3 = 154.286)
109
- * CONTAINERWIDTH = 28px
110
- * SHRINK_TIME = 400ms
111
- */
112
-
113
-
114
- .preloader-wrapper {
115
- display: inline-block;
116
- position: relative;
117
- width: 50px;
118
- height: 50px;
119
-
120
- &.small {
121
- width: 36px;
122
- height: 36px;
123
- }
124
-
125
- &.big {
126
- width: 64px;
127
- height: 64px;
128
- }
129
-
130
- &.active {
131
- /* duration: 360 * ARCTIME / (ARCSTARTROT + (360-ARCSIZE)) */
132
- -webkit-animation: container-rotate 1568ms linear infinite;
133
- animation: container-rotate 1568ms linear infinite;
134
- }
135
- }
136
-
137
- @-webkit-keyframes container-rotate {
138
- to { -webkit-transform: rotate(360deg) }
139
- }
140
-
141
- @keyframes container-rotate {
142
- to { transform: rotate(360deg) }
143
- }
144
-
145
- .spinner-layer {
146
- position: absolute;
147
- width: 100%;
148
- height: 100%;
149
- opacity: 0;
150
- border-color: var(--md-sys-color-primary);
151
- }
152
-
153
- .spinner-blue,
154
- .spinner-blue-only {
155
- border-color: #4285f4;
156
- }
157
-
158
- .spinner-red,
159
- .spinner-red-only {
160
- border-color: #db4437;
161
- }
162
-
163
- .spinner-yellow,
164
- .spinner-yellow-only {
165
- border-color: #f4b400;
166
- }
167
-
168
- .spinner-green,
169
- .spinner-green-only {
170
- border-color: #0f9d58;
171
- }
172
-
173
- /**
174
- * IMPORTANT NOTE ABOUT CSS ANIMATION PROPERTIES (keanulee):
175
- *
176
- * iOS Safari (tested on iOS 8.1) does not handle animation-delay very well - it doesn't
177
- * guarantee that the animation will start _exactly_ after that value. So we avoid using
178
- * animation-delay and instead set custom keyframes for each color (as redundant as it
179
- * seems).
180
- *
181
- * We write out each animation in full (instead of separating animation-name,
182
- * animation-duration, etc.) because under the polyfill, Safari does not recognize those
183
- * specific properties properly, treats them as -webkit-animation, and overrides the
184
- * other animation rules. See https://github.com/Polymer/platform/issues/53.
185
- */
186
- .active .spinner-layer.spinner-blue {
187
- /* durations: 4 * ARCTIME */
188
- -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, blue-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
189
- animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, blue-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
190
- }
191
-
192
- .active .spinner-layer.spinner-red {
193
- /* durations: 4 * ARCTIME */
194
- -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, red-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
195
- animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, red-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
196
- }
197
-
198
- .active .spinner-layer.spinner-yellow {
199
- /* durations: 4 * ARCTIME */
200
- -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, yellow-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
201
- animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, yellow-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
202
- }
203
-
204
- .active .spinner-layer.spinner-green {
205
- /* durations: 4 * ARCTIME */
206
- -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, green-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
207
- animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, green-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
208
- }
209
-
210
- .active .spinner-layer,
211
- .active .spinner-layer.spinner-blue-only,
212
- .active .spinner-layer.spinner-red-only,
213
- .active .spinner-layer.spinner-yellow-only,
214
- .active .spinner-layer.spinner-green-only {
215
- /* durations: 4 * ARCTIME */
216
- opacity: 1;
217
- -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
218
- animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
219
- }
220
-
221
- @-webkit-keyframes fill-unfill-rotate {
222
- 12.5% { -webkit-transform: rotate(135deg); } /* 0.5 * ARCSIZE */
223
- 25% { -webkit-transform: rotate(270deg); } /* 1 * ARCSIZE */
224
- 37.5% { -webkit-transform: rotate(405deg); } /* 1.5 * ARCSIZE */
225
- 50% { -webkit-transform: rotate(540deg); } /* 2 * ARCSIZE */
226
- 62.5% { -webkit-transform: rotate(675deg); } /* 2.5 * ARCSIZE */
227
- 75% { -webkit-transform: rotate(810deg); } /* 3 * ARCSIZE */
228
- 87.5% { -webkit-transform: rotate(945deg); } /* 3.5 * ARCSIZE */
229
- to { -webkit-transform: rotate(1080deg); } /* 4 * ARCSIZE */
230
- }
231
-
232
- @keyframes fill-unfill-rotate {
233
- 12.5% { transform: rotate(135deg); } /* 0.5 * ARCSIZE */
234
- 25% { transform: rotate(270deg); } /* 1 * ARCSIZE */
235
- 37.5% { transform: rotate(405deg); } /* 1.5 * ARCSIZE */
236
- 50% { transform: rotate(540deg); } /* 2 * ARCSIZE */
237
- 62.5% { transform: rotate(675deg); } /* 2.5 * ARCSIZE */
238
- 75% { transform: rotate(810deg); } /* 3 * ARCSIZE */
239
- 87.5% { transform: rotate(945deg); } /* 3.5 * ARCSIZE */
240
- to { transform: rotate(1080deg); } /* 4 * ARCSIZE */
241
- }
242
-
243
- @-webkit-keyframes blue-fade-in-out {
244
- from { opacity: 1; }
245
- 25% { opacity: 1; }
246
- 26% { opacity: 0; }
247
- 89% { opacity: 0; }
248
- 90% { opacity: 1; }
249
- 100% { opacity: 1; }
250
- }
251
-
252
- @keyframes blue-fade-in-out {
253
- from { opacity: 1; }
254
- 25% { opacity: 1; }
255
- 26% { opacity: 0; }
256
- 89% { opacity: 0; }
257
- 90% { opacity: 1; }
258
- 100% { opacity: 1; }
259
- }
260
-
261
- @-webkit-keyframes red-fade-in-out {
262
- from { opacity: 0; }
263
- 15% { opacity: 0; }
264
- 25% { opacity: 1; }
265
- 50% { opacity: 1; }
266
- 51% { opacity: 0; }
267
- }
268
-
269
- @keyframes red-fade-in-out {
270
- from { opacity: 0; }
271
- 15% { opacity: 0; }
272
- 25% { opacity: 1; }
273
- 50% { opacity: 1; }
274
- 51% { opacity: 0; }
275
- }
276
-
277
- @-webkit-keyframes yellow-fade-in-out {
278
- from { opacity: 0; }
279
- 40% { opacity: 0; }
280
- 50% { opacity: 1; }
281
- 75% { opacity: 1; }
282
- 76% { opacity: 0; }
283
- }
284
-
285
- @keyframes yellow-fade-in-out {
286
- from { opacity: 0; }
287
- 40% { opacity: 0; }
288
- 50% { opacity: 1; }
289
- 75% { opacity: 1; }
290
- 76% { opacity: 0; }
291
- }
292
-
293
- @-webkit-keyframes green-fade-in-out {
294
- from { opacity: 0; }
295
- 65% { opacity: 0; }
296
- 75% { opacity: 1; }
297
- 90% { opacity: 1; }
298
- 100% { opacity: 0; }
299
- }
300
-
301
- @keyframes green-fade-in-out {
302
- from { opacity: 0; }
303
- 65% { opacity: 0; }
304
- 75% { opacity: 1; }
305
- 90% { opacity: 1; }
306
- 100% { opacity: 0; }
307
- }
308
-
309
- /**
310
- * Patch the gap that appear between the two adjacent div.circle-clipper while the
311
- * spinner is rotating (appears on Chrome 38, Safari 7.1, and IE 11).
312
- */
313
- .gap-patch {
314
- position: absolute;
315
- top: 0;
316
- left: 45%;
317
- width: 10%;
318
- height: 100%;
319
- overflow: hidden;
320
- border-color: inherit;
321
- }
322
-
323
- .gap-patch .circle {
324
- width: 1000%;
325
- left: -450%;
326
- }
327
-
328
- .circle-clipper {
329
- display: inline-block;
330
- position: relative;
331
- width: 50%;
332
- height: 100%;
333
- overflow: hidden;
334
- border-color: inherit;
335
-
336
- .circle {
337
- width: 200%;
338
- height: 100%;
339
- border-width: 3px; /* STROKEWIDTH */
340
- border-style: solid;
341
- border-color: inherit;
342
- border-bottom-color: transparent !important;
343
- border-radius: 50%;
344
- -webkit-animation: none;
345
- animation: none;
346
- position: absolute;
347
- top: 0;
348
- right: 0;
349
- bottom: 0;
350
- }
351
-
352
- &.left .circle {
353
- left: 0;
354
- border-right-color: transparent !important;
355
- -webkit-transform: rotate(129deg);
356
- transform: rotate(129deg);
357
- }
358
- &.right .circle {
359
- left: -100%;
360
- border-left-color: transparent !important;
361
- -webkit-transform: rotate(-129deg);
362
- transform: rotate(-129deg);
363
- }
364
- }
365
-
366
-
367
-
368
- .active .circle-clipper.left .circle {
369
- /* duration: ARCTIME */
370
- -webkit-animation: left-spin 1333ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
371
- animation: left-spin 1333ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
372
- }
373
-
374
- .active .circle-clipper.right .circle {
375
- /* duration: ARCTIME */
376
- -webkit-animation: right-spin 1333ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
377
- animation: right-spin 1333ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
378
- }
379
-
380
- @-webkit-keyframes left-spin {
381
- from { -webkit-transform: rotate(130deg); }
382
- 50% { -webkit-transform: rotate(-5deg); }
383
- to { -webkit-transform: rotate(130deg); }
384
- }
385
-
386
- @keyframes left-spin {
387
- from { transform: rotate(130deg); }
388
- 50% { transform: rotate(-5deg); }
389
- to { transform: rotate(130deg); }
390
- }
391
-
392
- @-webkit-keyframes right-spin {
393
- from { -webkit-transform: rotate(-130deg); }
394
- 50% { -webkit-transform: rotate(5deg); }
395
- to { -webkit-transform: rotate(-130deg); }
396
- }
397
-
398
- @keyframes right-spin {
399
- from { transform: rotate(-130deg); }
400
- 50% { transform: rotate(5deg); }
401
- to { transform: rotate(-130deg); }
402
- }
403
-
404
- #spinnerContainer.cooldown {
405
- /* duration: SHRINK_TIME */
406
- -webkit-animation: container-rotate 1568ms linear infinite, fade-out 400ms cubic-bezier(0.4, 0.0, 0.2, 1);
407
- animation: container-rotate 1568ms linear infinite, fade-out 400ms cubic-bezier(0.4, 0.0, 0.2, 1);
408
- }
409
-
410
- @-webkit-keyframes fade-out {
411
- from { opacity: 1; }
412
- to { opacity: 0; }
413
- }
414
-
415
- @keyframes fade-out {
416
- from { opacity: 1; }
417
- to { opacity: 0; }
418
- }
@@ -1,35 +0,0 @@
1
- .pulse {
2
- &::before {
3
- content: '';
4
- display: block;
5
- position: absolute;
6
- pointer-events: none;
7
- width: 100%;
8
- height: 100%;
9
- top: 0;
10
- left: 0;
11
- background-color: inherit;
12
- border-radius: inherit;
13
- transition: opacity .3s, transform .3s;
14
- animation: pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;
15
- z-index: -1;
16
- }
17
-
18
- overflow: visible;
19
- position: relative;
20
- }
21
-
22
- @keyframes pulse-animation {
23
- 0% {
24
- opacity: 1;
25
- transform: scale(1);
26
- }
27
- 50% {
28
- opacity: 0;
29
- transform: scale(1.5);
30
- }
31
- 100% {
32
- opacity: 0;
33
- transform: scale(1.5);
34
- }
35
- }
@@ -1,249 +0,0 @@
1
- /* This should be an UL-Element*/
2
- .sidenav {
3
- --sidenav-width: 300px;
4
- --sidenav-font-size: 14px;
5
- --sidenav-padding: 16px;
6
- --sidenav-item-height: 48px;
7
- --sidenav-line-height: var(--sidenav-item-height);
8
-
9
- position: fixed;
10
- width: var(--sidenav-width);
11
- left: 0;
12
- top: 0;
13
- margin: 0;
14
- transform: translateX(-100%);
15
- height: 100vh;
16
- padding: 0;
17
- z-index: 999;
18
- overflow-y: auto;
19
- will-change: transform;
20
- backface-visibility: hidden;
21
- transform: translateX(-105%);
22
- user-select: none;
23
-
24
- color: var(--md-sys-color-on-secondary-container);
25
- background-color: var(--md-sys-color-surface);
26
- @extend .z-depth-1;
27
-
28
- // Right Align
29
- &.right-aligned {
30
- right: 0;
31
- transform: translateX(105%);
32
- left: auto;
33
- transform: translateX(100%);
34
- }
35
-
36
- .collapsible {
37
- margin: 0;
38
- }
39
-
40
- /* Hover only on top row */
41
- /*a:hover {
42
- //color: red;
43
- //background-color: var(--md-sys-color-on-secondary-container);
44
- //md.sys.color.on-secondary-container
45
- }*/
46
- a:focus {
47
- background-color: rgba(0, 0, 0, 0.12);
48
- }
49
-
50
- li.active > a:not(.collapsible-header):not(.btn):not(.btn-large):not(.btn-small):not(.btn-flat):not(.btn-large):not(.btn-floating) {
51
- //color: var(--md-sys-color-on-secondary-container); //var(--md-sys-color-on-secondary-container);
52
- //background-color: var(--md-sys-color-secondary-container);
53
- background-color: color-mix(in srgb, var(--md-sys-color-secondary) 10%, transparent);
54
- }
55
-
56
- .collapsible-body > ul { padding-left: 10px; }
57
-
58
- li {
59
- list-style: none;
60
- display: grid;
61
- align-content: center;
62
- }
63
- li > a {
64
- /* https://stackoverflow.com/questions/5848090/full-width-hover-background-for-nested-lists */
65
- //padding-left: calc(100% + var(--sidenav-padding));
66
- //margin-left: -100%;
67
- margin: 0 12px;
68
- padding: 0 var(--sidenav-padding);
69
- //padding-left: var(--sidenav-padding);
70
-
71
- // Truncate too long text
72
- /*
73
- min-width: 0;
74
- white-space: nowrap;
75
- overflow: hidden;
76
- text-overflow: ellipsis;
77
- */
78
-
79
- display: flex;
80
- height: var(--sidenav-item-height);
81
- font-size: var(--sidenav-font-size);
82
- font-weight: 500;
83
- align-items: center;
84
- overflow: hidden;
85
- border-radius: 100px;
86
-
87
- &:not(.btn):not(.btn-flat):not(.btn-large):not(.btn-floating) {
88
- color: var(--md-sys-color-on-secondary-container);
89
- //color: $sidenav-font-color;
90
- &:hover {
91
- //color: var(--md-sys-color-on-secondary-container);
92
- //md.sys.color.on-secondary-container
93
- background-color: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
94
- }
95
- }
96
-
97
- &.btn, &.btn-large, &.btn-flat, &.btn-floating {
98
- margin: 10px 15px;
99
- }
100
-
101
- /* TODO: Use special class in future like "mw-icon" */
102
- & > .material-icons, & > .material-symbols-outlined,
103
- & > .material-symbols-rounded, & > .material-symbols-sharp {
104
- display: inline-flex;
105
- vertical-align: middle;
106
- //color: $sidenav-icon-color;
107
- margin-right: 12px;
108
- }
109
- }
110
-
111
- .divider {
112
- margin: calc(var(--sidenav-padding) * 0.5) 0 0 0;
113
- }
114
-
115
- .subheader {
116
- cursor: initial;
117
- pointer-events: none;
118
- color: red; //$sidenav-subheader-color;
119
- font-size: var(--sidenav-font-size);
120
- font-weight: 500;
121
- line-height: var(--sidenav-line-height);
122
- }
123
-
124
- // Remove this? is very custom
125
- .user-view {
126
- position: relative;
127
- padding: calc(var(--sidenav-padding) * 2) calc(var(--sidenav-padding) * 2) 0;
128
- margin-bottom: calc(var(--sidenav-padding) * 0.5);
129
-
130
- & > a {
131
- &:hover {
132
- background-color: transparent;
133
- }
134
-
135
- height: auto;
136
- padding: 0;
137
- }
138
-
139
- .background {
140
- overflow: hidden;
141
- position: absolute;
142
- top: 0;
143
- right: 0;
144
- bottom: 0;
145
- left: 0;
146
- z-index: -1;
147
- }
148
-
149
- .circle, .name, .email {
150
- display: block;
151
- }
152
-
153
- .circle {
154
- height: 64px;
155
- width: 64px;
156
- }
157
-
158
- .name,
159
- .email {
160
- font-size: var(--sidenav-font-size);
161
- line-height: calc(var(--sidenav-line-height) * 0.5);
162
- }
163
-
164
- .name {
165
- margin-top: 16px;
166
- font-weight: 500;
167
- }
168
-
169
- .email {
170
- padding-bottom: 16px;
171
- font-weight: 400;
172
- }
173
- }
174
- }
175
-
176
- // Touch interaction
177
- .drag-target {
178
- // Right Align
179
- &.right-aligned {
180
- right: 0;
181
- }
182
- height: 100%;
183
- position: fixed;
184
- top: 0;
185
- left: 0;
186
- z-index: 998;
187
- }
188
-
189
- // Fixed Sidenav shown
190
- .sidenav.sidenav-fixed {
191
- // Right Align
192
- &.right-aligned {
193
- right: 0;
194
- left: auto;
195
- }
196
- left: 0;
197
- transform: translateX(0);
198
- position: fixed;
199
- }
200
-
201
- // Fixed Sidenav hide on smaller
202
- @media #{$medium-and-down} {
203
- .sidenav {
204
- &.sidenav-fixed {
205
- transform: translateX(-105%);
206
-
207
- &.right-aligned {
208
- transform: translateX(105%);
209
- }
210
- }
211
- > a {
212
- padding: 0 var(--sidenav-padding);
213
- }
214
- .user-view {
215
- padding: var(--sidenav-padding) var(--sidenav-padding) 0;
216
- }
217
- }
218
- }
219
-
220
- .sidenav .collapsible-body {
221
- padding: 0;
222
- }
223
-
224
- .sidenav-overlay {
225
- position: fixed;
226
- top: 0;
227
- left: 0;
228
- right: 0;
229
- opacity: 0;
230
- height: 120vh;
231
- background-color: rgba(0, 0, 0, .5);
232
- z-index: 997;
233
- display: none;
234
- }
235
-
236
- // Sidenav collapsible styling (Taken from Collapsible.scss)
237
- .sidenav,
238
- .sidenav.sidenav-fixed {
239
- .collapsible {
240
- border: none;
241
- box-shadow: none;
242
- }
243
- .collapsible-header {
244
- border: none;
245
- }
246
- .collapsible-body {
247
- border: none;
248
- }
249
- }