@materializecss/materialize 2.2.1 → 2.2.2
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 +8 -11
- package/dist/css/materialize.css +2790 -2140
- package/dist/css/materialize.min.css +3 -5
- package/dist/css/materialize.min.css.map +1 -1
- package/dist/js/materialize.cjs.js +528 -215
- package/dist/js/materialize.d.ts +115 -13
- package/dist/js/materialize.js +528 -215
- package/dist/js/materialize.min.js +3 -3
- package/dist/js/materialize.mjs +528 -215
- package/package.json +5 -3
- package/sass/components/_badges.scss +1 -1
- package/sass/components/_breadcrumb.scss +27 -0
- package/sass/components/_buttons.scss +60 -167
- package/sass/components/_cards.scss +36 -17
- package/sass/components/_carousel.scss +16 -18
- package/sass/components/_chips.scss +6 -14
- package/sass/components/_collapsible.scss +8 -5
- package/sass/components/_collection.scss +2 -3
- package/sass/components/_color-variables.scss +35 -3
- package/sass/components/_datepicker.scss +95 -48
- package/sass/components/_dropdown.scss +11 -7
- package/sass/components/_global.scss +22 -111
- package/sass/components/_grid.scss +3 -1
- package/sass/components/_materialbox.scss +5 -6
- package/sass/components/_modal.scss +11 -4
- package/sass/components/_navbar.scss +17 -16
- package/sass/components/_pagination.scss +47 -0
- package/sass/components/_preloader.scss +3 -1
- package/sass/components/_pulse.scss +3 -3
- package/sass/components/_sidenav.scss +15 -17
- package/sass/components/_slider.scss +2 -4
- package/sass/components/_tabs.scss +45 -33
- package/sass/components/_tapTarget.scss +10 -11
- package/sass/components/_timepicker.scss +62 -47
- package/sass/components/_toast.scss +3 -0
- package/sass/components/_tooltip.scss +0 -8
- package/sass/components/_transitions.scss +2 -3
- package/sass/components/_typography.scss +5 -5
- package/sass/components/_variables.scss +3 -2
- package/sass/components/forms/_checkboxes.scss +1 -2
- package/sass/components/forms/_file-input.scss +7 -9
- package/sass/components/forms/_forms.scss +8 -14
- package/sass/components/forms/_input-fields.scss +17 -11
- package/sass/components/forms/_range.scss +6 -1
- package/sass/components/forms/_select.scss +11 -103
- package/sass/components/forms/_switches.scss +2 -0
- package/sass/components/mixins.module.scss +159 -0
- package/sass/materialize.scss +39 -43
- package/sass/components/_color-classes.scss +0 -32
|
@@ -355,10 +355,9 @@ $colors: (
|
|
|
355
355
|
) !default;
|
|
356
356
|
|
|
357
357
|
|
|
358
|
-
// usage:
|
|
358
|
+
// usage: colorFunc("name_of_color", "type_of_color")
|
|
359
359
|
// to avoid to repeating map-get($colors, ...)
|
|
360
|
-
|
|
361
|
-
@function color($color, $type) {
|
|
360
|
+
@function colorFunc($color, $type) {
|
|
362
361
|
@if map-has-key($colors, $color) {
|
|
363
362
|
$curr_color: map-get($colors, $color);
|
|
364
363
|
@if map-has-key($curr_color, $type) {
|
|
@@ -368,3 +367,36 @@ $colors: (
|
|
|
368
367
|
@warn "Unknown `#{$color}` - `#{$type}` in $colors.";
|
|
369
368
|
@return null;
|
|
370
369
|
}
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
// Color Classes
|
|
373
|
+
@each $color_name, $color in $colors {
|
|
374
|
+
@each $color_type, $color_value in $color {
|
|
375
|
+
@if $color_type == "base" {
|
|
376
|
+
.#{$color_name} {
|
|
377
|
+
background-color: $color_value !important;
|
|
378
|
+
}
|
|
379
|
+
.#{$color_name}-text {
|
|
380
|
+
color: $color_value !important;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
@else if $color_name != "shades" {
|
|
384
|
+
.#{$color_name}.#{$color_type} {
|
|
385
|
+
background-color: $color_value !important;
|
|
386
|
+
}
|
|
387
|
+
.#{$color_name}-text.text-#{$color_type} {
|
|
388
|
+
color: $color_value !important;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
// Shade classes
|
|
395
|
+
@each $color, $color_value in $shades {
|
|
396
|
+
.#{$color} {
|
|
397
|
+
background-color: $color_value !important;
|
|
398
|
+
}
|
|
399
|
+
.#{$color}-text {
|
|
400
|
+
color: $color_value !important;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
/* Modal */
|
|
2
|
-
.
|
|
2
|
+
// @removed since v2.2.1
|
|
3
|
+
/*.datepicker-modal {
|
|
3
4
|
max-width: 325px;
|
|
5
|
+
// @removed since v2.2.1-dev regarding Material M3 standards
|
|
4
6
|
min-width: 300px;
|
|
5
7
|
max-height: none;
|
|
6
|
-
}
|
|
8
|
+
}*/
|
|
7
9
|
|
|
8
|
-
.datepicker-container
|
|
10
|
+
.datepicker-container {
|
|
9
11
|
display: flex;
|
|
10
12
|
flex-direction: column;
|
|
13
|
+
max-width: 325px;
|
|
11
14
|
padding: 0;
|
|
12
15
|
background-color: var(--md-sys-color-surface);
|
|
13
16
|
}
|
|
@@ -24,13 +27,20 @@
|
|
|
24
27
|
|
|
25
28
|
.select-wrapper {
|
|
26
29
|
input {
|
|
30
|
+
height: 49px;
|
|
31
|
+
margin: 4px 0 0 0;
|
|
32
|
+
border-bottom: none;
|
|
33
|
+
border-radius: 4px;
|
|
34
|
+
text-align: center;
|
|
35
|
+
|
|
27
36
|
&:focus {
|
|
28
37
|
border-bottom: none;
|
|
38
|
+
background-color: var(--md-sys-color-primary-container);
|
|
29
39
|
}
|
|
30
40
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
41
|
+
&::selection {
|
|
42
|
+
background-color: transparent;
|
|
43
|
+
}
|
|
34
44
|
}
|
|
35
45
|
|
|
36
46
|
.caret {
|
|
@@ -43,6 +53,11 @@
|
|
|
43
53
|
vertical-align: middle;
|
|
44
54
|
}
|
|
45
55
|
|
|
56
|
+
.select-year input,
|
|
57
|
+
.select-month input {
|
|
58
|
+
background-color: transparent;
|
|
59
|
+
}
|
|
60
|
+
|
|
46
61
|
.select-year input {
|
|
47
62
|
width: 50px;
|
|
48
63
|
}
|
|
@@ -75,9 +90,11 @@
|
|
|
75
90
|
/* Date Display */
|
|
76
91
|
.datepicker-date-display {
|
|
77
92
|
flex: 1 auto;
|
|
78
|
-
|
|
79
|
-
color:
|
|
93
|
+
// @removed since v2.2.1-dev regarding Material M3 standards
|
|
94
|
+
// background-color: var(--md-sys-color-primary);
|
|
95
|
+
// color: var(--md-sys-color-on-primary);
|
|
80
96
|
padding: 20px 22px;
|
|
97
|
+
border-bottom: 1px solid var(--md-sys-color-surface-variant-light);
|
|
81
98
|
font-weight: 500;
|
|
82
99
|
|
|
83
100
|
.year-text {
|
|
@@ -93,6 +110,12 @@
|
|
|
93
110
|
line-height: 47px;
|
|
94
111
|
font-weight: 500;
|
|
95
112
|
}
|
|
113
|
+
|
|
114
|
+
.daterange & {
|
|
115
|
+
.date-text {
|
|
116
|
+
font-size: 1.8rem;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
96
119
|
}
|
|
97
120
|
|
|
98
121
|
|
|
@@ -124,49 +147,98 @@
|
|
|
124
147
|
color: var(--md-sys-color-on-surface-variant);
|
|
125
148
|
}
|
|
126
149
|
|
|
127
|
-
|
|
150
|
+
.datepicker-day {
|
|
151
|
+
padding: 0;
|
|
128
152
|
color: var(--md-sys-color-on-background);
|
|
153
|
+
// border-radius: 50%;
|
|
129
154
|
|
|
130
155
|
&.is-today {
|
|
131
156
|
color: var(--md-sys-color-primary);
|
|
132
157
|
}
|
|
133
158
|
|
|
134
|
-
|
|
159
|
+
/*&.is-selected button {
|
|
135
160
|
background-color: var(--md-sys-color-primary);
|
|
136
161
|
color: var(--md-sys-color-on-primary);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
&.is-disabled {
|
|
141
|
-
color: var(--md-sys-color-on-surface);
|
|
142
|
-
pointer-events: none;
|
|
143
|
-
}
|
|
162
|
+
}*/
|
|
163
|
+
}
|
|
164
|
+
}
|
|
144
165
|
|
|
145
|
-
|
|
146
|
-
|
|
166
|
+
// @todo
|
|
167
|
+
.datepicker-day.has-event {}
|
|
168
|
+
// @todo
|
|
169
|
+
.datepicker-day.is-inrange {}
|
|
170
|
+
// @todo
|
|
171
|
+
.datepicker-day.is-startrange {}
|
|
172
|
+
// @todo
|
|
173
|
+
.datepicker-day.is-endrange {}
|
|
174
|
+
|
|
175
|
+
.datepicker-day.is-daterange-start,
|
|
176
|
+
.datepicker-day.is-daterange-end,
|
|
177
|
+
.datepicker-day.is-daterange {
|
|
178
|
+
position: relative;
|
|
179
|
+
|
|
180
|
+
&:before {
|
|
181
|
+
position: absolute;
|
|
182
|
+
top: 5px;
|
|
183
|
+
width: 100%;
|
|
184
|
+
height: 34px;
|
|
185
|
+
content: '';
|
|
186
|
+
background-color: var(--md-sys-color-primary-container);
|
|
187
|
+
z-index: 0;
|
|
147
188
|
}
|
|
148
189
|
}
|
|
149
190
|
|
|
191
|
+
.datepicker-day.is-daterange-start:before,
|
|
192
|
+
.datepicker-day.is-daterange-end:before {
|
|
193
|
+
width: 50%;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.datepicker-day.is-daterange-start:before {
|
|
197
|
+
left: 50%;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.datepicker-day.is-daterange .datepicker-day-button:before {
|
|
201
|
+
background-color: var(--md-sys-color-primary-container);
|
|
202
|
+
}
|
|
203
|
+
|
|
150
204
|
.datepicker-day-button {
|
|
151
205
|
background-color: transparent;
|
|
152
206
|
border: none;
|
|
153
|
-
line-height:
|
|
207
|
+
line-height: 34px;
|
|
154
208
|
display: block;
|
|
155
|
-
width:
|
|
209
|
+
width: 34px;
|
|
156
210
|
border-radius: 50%;
|
|
211
|
+
margin: 5px;
|
|
157
212
|
padding: 0 5px;
|
|
158
213
|
cursor: pointer;
|
|
159
214
|
color: inherit;
|
|
215
|
+
position: relative;
|
|
216
|
+
z-index: 1;
|
|
160
217
|
|
|
161
218
|
&:hover {
|
|
162
219
|
background-color: rgba(var(--md-sys-color-primary-numeric), 0.06);
|
|
163
220
|
}
|
|
164
221
|
|
|
165
222
|
&:focus {
|
|
166
|
-
|
|
223
|
+
border-color: var(--md-sys-color-primary);
|
|
167
224
|
}
|
|
168
|
-
}
|
|
169
225
|
|
|
226
|
+
.is-selected & {
|
|
227
|
+
background-color: var(--md-sys-color-primary);
|
|
228
|
+
color: var(--md-sys-color-on-primary);
|
|
229
|
+
|
|
230
|
+
&:focus {
|
|
231
|
+
background-color: var(--md-sys-color-surface-variant);
|
|
232
|
+
color: var(--md-sys-color-primary);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
&.is-outside-current-month button,
|
|
237
|
+
&.is-disabled button {
|
|
238
|
+
color: var(--md-sys-color-on-surface);
|
|
239
|
+
pointer-events: none;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
170
242
|
|
|
171
243
|
/* Footer */
|
|
172
244
|
.datepicker-footer {
|
|
@@ -189,28 +261,3 @@
|
|
|
189
261
|
color: var(--md-sys-color-error);
|
|
190
262
|
}
|
|
191
263
|
|
|
192
|
-
|
|
193
|
-
/* Media Queries */
|
|
194
|
-
@media #{$medium-and-up} {
|
|
195
|
-
.datepicker-modal {
|
|
196
|
-
max-width: 625px;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.datepicker-container.modal-content {
|
|
200
|
-
flex-direction: row;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.datepicker-date-display {
|
|
204
|
-
flex: 0 1 270px;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.datepicker-controls,
|
|
208
|
-
.datepicker-table,
|
|
209
|
-
.datepicker-footer {
|
|
210
|
-
width: 320px;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.datepicker-day-button {
|
|
214
|
-
line-height: 44px;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use './variables' as *;
|
|
2
|
+
@use './global' as *;
|
|
3
|
+
|
|
1
4
|
[popover] {
|
|
2
5
|
outline: none;
|
|
3
6
|
padding: 0;
|
|
@@ -22,6 +25,14 @@
|
|
|
22
25
|
user-select: none;
|
|
23
26
|
|
|
24
27
|
li {
|
|
28
|
+
clear: both;
|
|
29
|
+
color: var(--md-sys-color-on-background);
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
min-height: $dropdown-item-height;
|
|
32
|
+
line-height: 1.5rem;
|
|
33
|
+
width: 100%;
|
|
34
|
+
text-align: left;
|
|
35
|
+
|
|
25
36
|
&.divider {
|
|
26
37
|
min-height: 0;
|
|
27
38
|
height: 1px;
|
|
@@ -46,13 +57,6 @@
|
|
|
46
57
|
margin: 0 24px 0 0;
|
|
47
58
|
width: 24px;
|
|
48
59
|
}
|
|
49
|
-
clear: both;
|
|
50
|
-
color: var(--md-sys-color-on-background);
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
min-height: $dropdown-item-height;
|
|
53
|
-
line-height: 1.5rem;
|
|
54
|
-
width: 100%;
|
|
55
|
-
text-align: left;
|
|
56
60
|
}
|
|
57
61
|
li:not(.disabled):hover, li.active {
|
|
58
62
|
background-color: color-mix(in srgb, var(--md-sys-color-surface), var(--md-sys-color-on-surface) 8%);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use './_variables' as *;
|
|
2
|
+
|
|
1
3
|
html {
|
|
2
4
|
box-sizing: border-box;
|
|
3
5
|
}
|
|
@@ -19,8 +21,10 @@ textarea {
|
|
|
19
21
|
font-family: $font-stack;
|
|
20
22
|
}
|
|
21
23
|
|
|
22
|
-
a {
|
|
23
|
-
|
|
24
|
+
a {
|
|
25
|
+
color: $link-color;
|
|
26
|
+
text-decoration: none;
|
|
27
|
+
-webkit-tap-highlight-color: transparent; // Gets rid of tap active state
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
// Positioning
|
|
@@ -117,7 +121,7 @@ i {
|
|
|
117
121
|
|
|
118
122
|
// Modal
|
|
119
123
|
html.noscroll {
|
|
120
|
-
position: fixed;
|
|
124
|
+
position: fixed;
|
|
121
125
|
overflow-y: scroll;
|
|
122
126
|
width: 100%;
|
|
123
127
|
}
|
|
@@ -129,109 +133,6 @@ video.responsive-video {
|
|
|
129
133
|
height: auto;
|
|
130
134
|
}
|
|
131
135
|
|
|
132
|
-
// Pagination
|
|
133
|
-
.pagination {
|
|
134
|
-
|
|
135
|
-
li {
|
|
136
|
-
display: inline-block;
|
|
137
|
-
border-radius: 2px;
|
|
138
|
-
text-align: center;
|
|
139
|
-
vertical-align: top;
|
|
140
|
-
height: 30px;
|
|
141
|
-
|
|
142
|
-
a {
|
|
143
|
-
color: var(--md-sys-color-on-surface-variant);
|
|
144
|
-
display: inline-block;
|
|
145
|
-
font-size: 1.2rem;
|
|
146
|
-
padding: 0 10px;
|
|
147
|
-
line-height: 30px;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
&:hover:not(.disabled) {
|
|
151
|
-
background-color: rgba(var(--md-sys-color-primary-numeric), 0.06);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
&.active a {
|
|
155
|
-
color: var(--md-sys-color-on-primary);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&.active,
|
|
159
|
-
&.active:hover {
|
|
160
|
-
background-color: var(--md-sys-color-primary);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
&.disabled a {
|
|
164
|
-
cursor: default;
|
|
165
|
-
color: var(--md-sys-color-on-surface);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
i {
|
|
169
|
-
font-size: 2rem;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
li.pages ul li {
|
|
175
|
-
display: inline-block;
|
|
176
|
-
float: none;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
@media #{$medium-and-down} {
|
|
181
|
-
.pagination {
|
|
182
|
-
width: 100%;
|
|
183
|
-
|
|
184
|
-
li.prev,
|
|
185
|
-
li.next {
|
|
186
|
-
width: 10%;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
li.pages {
|
|
190
|
-
width: 80%;
|
|
191
|
-
overflow: hidden;
|
|
192
|
-
white-space: nowrap;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
// Breadcrumbs
|
|
198
|
-
.breadcrumb {
|
|
199
|
-
display: inline-block;
|
|
200
|
-
font-size: 18px;
|
|
201
|
-
color: var(--font-on-primary-color-medium);
|
|
202
|
-
|
|
203
|
-
i,
|
|
204
|
-
[class^="mdi-"], [class*="mdi-"],
|
|
205
|
-
i.material-icons, i.material-symbols-outlined,
|
|
206
|
-
i.material-symbols-rounded, i.material-symbols-sharp {
|
|
207
|
-
display: block;
|
|
208
|
-
float: left;
|
|
209
|
-
font-size: 24px;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
&:before {
|
|
213
|
-
content: '\E5CC';
|
|
214
|
-
color: var(--font-on-primary-color-medium);
|
|
215
|
-
vertical-align: top;
|
|
216
|
-
display: inline-block;
|
|
217
|
-
font-family: 'Material Symbols Outlined', 'Material Symbols Rounded', 'Material Symbols Sharp', 'Material Icons';
|
|
218
|
-
font-weight: normal;
|
|
219
|
-
font-style: normal;
|
|
220
|
-
font-size: 25px;
|
|
221
|
-
margin: 0 10px 0 8px;
|
|
222
|
-
-webkit-font-smoothing: antialiased;
|
|
223
|
-
float: left;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
&:first-child:before {
|
|
227
|
-
display: none;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
&:last-child {
|
|
231
|
-
color: var(--md-sys-color-on-primary);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
136
|
// Parallax
|
|
236
137
|
.parallax-container {
|
|
237
138
|
position: relative;
|
|
@@ -357,6 +258,7 @@ ul.staggered-list li { opacity: 0; }
|
|
|
357
258
|
padding: 10px 0px;
|
|
358
259
|
}
|
|
359
260
|
}
|
|
261
|
+
|
|
360
262
|
.page-footer ul {
|
|
361
263
|
padding-left: 0;
|
|
362
264
|
list-style-type: none;
|
|
@@ -526,7 +428,7 @@ $spacing-shortcuts: ("margin": "m", "padding": "p") !default;
|
|
|
526
428
|
$spacing-directions: ("top": "t", "right": "r", "bottom": "b", "left": "l") !default;
|
|
527
429
|
$spacing-horizontal: "x" !default;
|
|
528
430
|
$spacing-vertical: "y" !default;
|
|
529
|
-
$spacing-values: ("0": 0, "1": 0.25rem, "2": 0.5rem, "3": 0.75rem, "4": 1rem, "5": 1.5rem, "6": 3rem, "auto": auto) !default;
|
|
431
|
+
$spacing-values: ("0": 0, "1": 0.25rem, "2": 0.5rem, "3": 0.75rem, "4": 1rem, "5": 1.5rem, "6": 3rem, "auto": auto) !default;
|
|
530
432
|
|
|
531
433
|
@each $property, $shortcut in $spacing-shortcuts{
|
|
532
434
|
@each $name, $value in $spacing-values{
|
|
@@ -537,7 +439,7 @@ $spacing-values: ("0": 0, "1": 0.25rem, "2": 0.5rem, "3": 0.75rem, "4": 1rem, "5
|
|
|
537
439
|
// (t, b, r, l) spacing
|
|
538
440
|
@each $direction, $suffix in $spacing-directions{
|
|
539
441
|
.#{$shortcut}#{$suffix}-#{$name}{
|
|
540
|
-
#{$property}-#{$direction}: $value !important
|
|
442
|
+
#{$property}-#{$direction}: $value !important
|
|
541
443
|
}
|
|
542
444
|
}
|
|
543
445
|
// x spacing
|
|
@@ -552,7 +454,16 @@ $spacing-values: ("0": 0, "1": 0.25rem, "2": 0.5rem, "3": 0.75rem, "4": 1rem, "5
|
|
|
552
454
|
.#{$shortcut}#{$spacing-vertical}-#{$name}{
|
|
553
455
|
#{$property}-top: $value !important;
|
|
554
456
|
#{$property}-bottom: $value !important;
|
|
555
|
-
}
|
|
556
|
-
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
557
459
|
}
|
|
558
|
-
}
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
// Docked display
|
|
463
|
+
.display-docked {
|
|
464
|
+
position: absolute;
|
|
465
|
+
opacity: 0;
|
|
466
|
+
z-index: 9999;
|
|
467
|
+
visibility: hidden;
|
|
468
|
+
}
|
|
469
|
+
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
@use "sass:math";
|
|
2
|
+
@use './variables' as *;
|
|
2
3
|
|
|
3
|
-
// Container
|
|
4
4
|
.container {
|
|
5
5
|
margin: 0 auto;
|
|
6
6
|
max-width: 1280px;
|
|
7
7
|
width: 90%;
|
|
8
8
|
}
|
|
9
|
+
|
|
9
10
|
@media #{$medium-and-up} {
|
|
10
11
|
.container {
|
|
11
12
|
width: 85%;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
15
|
+
|
|
14
16
|
@media #{$large-and-up} {
|
|
15
17
|
.container {
|
|
16
18
|
width: 70%;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
.materialboxed {
|
|
2
|
-
&:hover {
|
|
3
|
-
&:not(.active) {
|
|
4
|
-
opacity: .8;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
|
|
8
2
|
display: block;
|
|
9
3
|
cursor: zoom-in;
|
|
10
4
|
position: relative;
|
|
11
5
|
transition: opacity .4s;
|
|
12
6
|
-webkit-backface-visibility: hidden;
|
|
13
7
|
|
|
8
|
+
&:hover {
|
|
9
|
+
&:not(.active) {
|
|
10
|
+
opacity: .8;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
14
13
|
&.active {
|
|
15
14
|
cursor: zoom-out;
|
|
16
15
|
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
@use './variables' as *;
|
|
2
|
+
@use './global' as *;
|
|
3
|
+
|
|
1
4
|
// use with dialog html element
|
|
2
5
|
.modal {
|
|
3
6
|
--modal-footer-divider-height: 1px;
|
|
4
7
|
--modal-border-radius: 28px;
|
|
5
8
|
--modal-padding: 24px;
|
|
6
9
|
--modal-padding-bottom: 16px;
|
|
10
|
+
--modal-background-color: color-mix(in srgb, var(--md-sys-color-surface), var(--md-sys-color-surface-tint) 17%);
|
|
7
11
|
|
|
8
12
|
@extend .z-depth-5;
|
|
9
13
|
border: none;
|
|
@@ -13,6 +17,7 @@
|
|
|
13
17
|
width: 55%;
|
|
14
18
|
border-radius: var(--modal-border-radius);
|
|
15
19
|
will-change: top, opacity;
|
|
20
|
+
background-color: var(--modal-background-color);
|
|
16
21
|
|
|
17
22
|
// Dialog open
|
|
18
23
|
&[open] {
|
|
@@ -20,9 +25,6 @@
|
|
|
20
25
|
flex-direction: column;
|
|
21
26
|
}
|
|
22
27
|
|
|
23
|
-
// Background
|
|
24
|
-
background-color: color-mix(in srgb, var(--md-sys-color-surface), var(--md-sys-color-surface-tint) 17%);
|
|
25
|
-
|
|
26
28
|
@media #{$medium-and-down} {
|
|
27
29
|
width: 80%;
|
|
28
30
|
}
|
|
@@ -36,16 +38,21 @@
|
|
|
36
38
|
padding: var(--modal-padding);
|
|
37
39
|
padding-bottom: var(--modal-padding-bottom);
|
|
38
40
|
flex-shrink: 0;
|
|
41
|
+
position: sticky;
|
|
42
|
+
top: 0;
|
|
43
|
+
background-color: var(--modal-background-color);
|
|
39
44
|
}
|
|
40
45
|
.modal-content {
|
|
41
46
|
padding: 0 var(--modal-padding);
|
|
42
|
-
overflow-y: auto;
|
|
43
47
|
}
|
|
44
48
|
.modal-footer {
|
|
45
49
|
border-radius: 0 0 var(--modal-border-radius) var(--modal-border-radius);
|
|
46
50
|
padding: var(--modal-padding);
|
|
47
51
|
text-align: right;
|
|
48
52
|
flex-shrink: 0;
|
|
53
|
+
position: sticky;
|
|
54
|
+
bottom: 0;
|
|
55
|
+
background-color: var(--modal-background-color);
|
|
49
56
|
}
|
|
50
57
|
|
|
51
58
|
.modal-close {
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
@use './variables' as *;
|
|
2
|
+
@use './global' as *;
|
|
3
|
+
|
|
2
4
|
:root {
|
|
3
5
|
--navbar-height: 64px;
|
|
4
6
|
--navbar-height-mobile: 56px;
|
|
5
7
|
}
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
.navbar {
|
|
10
|
+
color: var(--md-sys-color-on-primary);
|
|
11
|
+
@extend .z-depth-1;
|
|
12
|
+
background-color: var(--md-sys-color-secondary-container);
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: var(--navbar-height-mobile);
|
|
15
|
+
line-height: var(--navbar-height-mobile);
|
|
16
|
+
|
|
8
17
|
&.nav-extended {
|
|
9
18
|
height: auto;
|
|
10
19
|
|
|
@@ -12,21 +21,13 @@ nav {
|
|
|
12
21
|
min-height: var(--navbar-height-mobile);
|
|
13
22
|
height: auto;
|
|
14
23
|
}
|
|
15
|
-
|
|
24
|
+
|
|
16
25
|
.nav-content {
|
|
17
26
|
position: relative;
|
|
18
27
|
line-height: normal;
|
|
19
28
|
}
|
|
20
29
|
}
|
|
21
30
|
|
|
22
|
-
color: var(--md-sys-color-on-primary);
|
|
23
|
-
@extend .z-depth-1;
|
|
24
|
-
background-color: var(--md-sys-color-secondary-container);
|
|
25
|
-
|
|
26
|
-
width: 100%;
|
|
27
|
-
height: var(--navbar-height-mobile);
|
|
28
|
-
line-height: var(--navbar-height-mobile);
|
|
29
|
-
|
|
30
31
|
a {
|
|
31
32
|
color: var(--md-sys-color-on-primary);
|
|
32
33
|
}
|
|
@@ -139,11 +140,11 @@ nav {
|
|
|
139
140
|
cursor: pointer;
|
|
140
141
|
|
|
141
142
|
&.active {
|
|
142
|
-
background-color: var(--md-
|
|
143
|
+
background-color: var(--md-sys-color-primary-container-dark);
|
|
143
144
|
}
|
|
144
145
|
|
|
145
146
|
&:hover:not(.active) {
|
|
146
|
-
background-color: var(--md-
|
|
147
|
+
background-color: var(--md-sys-color-on-primary-dark);
|
|
147
148
|
}
|
|
148
149
|
|
|
149
150
|
&.btn, &.btn-large, &.btn-flat, &.btn-floating {
|
|
@@ -211,17 +212,17 @@ nav {
|
|
|
211
212
|
height: var(--navbar-height-mobile);
|
|
212
213
|
z-index: 997;
|
|
213
214
|
|
|
214
|
-
|
|
215
|
+
.navbar {
|
|
215
216
|
position: fixed;
|
|
216
217
|
right: 0;
|
|
217
218
|
}
|
|
218
219
|
}
|
|
219
220
|
|
|
220
221
|
@media #{$medium-and-up} {
|
|
221
|
-
nav.nav-extended .nav-wrapper {
|
|
222
|
+
.nav.nav-extended .nav-wrapper {
|
|
222
223
|
min-height: var(--navbar-height-mobile);
|
|
223
224
|
}
|
|
224
|
-
nav,
|
|
225
|
+
.nav, .navbar .nav-wrapper i, nav a.sidenav-trigger, .navbar a.sidenav-trigger i {
|
|
225
226
|
height: var(--navbar-height);
|
|
226
227
|
line-height: var(--navbar-height)
|
|
227
228
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@use './variables' as *;
|
|
2
|
+
@use './mixins.module.scss' as *;
|
|
3
|
+
|
|
4
|
+
.pagination {
|
|
5
|
+
li {
|
|
6
|
+
display: inline-block;
|
|
7
|
+
vertical-align: top;
|
|
8
|
+
|
|
9
|
+
a {
|
|
10
|
+
@include btn($height: 2rem, $padding-left: .66rem, $padding-right: .66rem, $font-size: 1.2rem);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&.active a {
|
|
14
|
+
@include btn-filled;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.disabled a {
|
|
18
|
+
@include btn-disabled;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
i {
|
|
22
|
+
font-size: 2rem;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
li.pages ul li {
|
|
27
|
+
display: inline-block;
|
|
28
|
+
float: none;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@media #{$medium-and-down} {
|
|
33
|
+
.pagination {
|
|
34
|
+
width: 100%;
|
|
35
|
+
|
|
36
|
+
li.prev,
|
|
37
|
+
li.next {
|
|
38
|
+
width: 10%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
li.pages {
|
|
42
|
+
width: 80%;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|