@materializecss/materialize 2.2.2 → 2.3.1

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