material-sass 4.0.0.beta → 4.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +2 -2
- data/Rakefile +12 -12
- data/{app/assets → assets}/javascripts/material-sprockets.js +0 -0
- data/{app/assets → assets}/javascripts/material.js +54 -4
- data/{app/assets → assets}/javascripts/material.min.js +1 -1
- data/{app/assets → assets}/javascripts/material/addons/picker.date.js +0 -0
- data/{app/assets → assets}/javascripts/material/addons/picker.js +0 -0
- data/{app/assets → assets}/javascripts/material/addons/textarea-autosize.js +0 -0
- data/{app/assets → assets}/javascripts/material/addons/waves.js +0 -0
- data/assets/javascripts/material/components/expansion-panel.js +50 -0
- data/{app/assets → assets}/javascripts/material/components/floating-label.js +1 -1
- data/{app/assets → assets}/javascripts/material/components/navdrawer.js +0 -0
- data/{app/assets → assets}/javascripts/material/components/selection-control-focus.js +2 -3
- data/{app/assets → assets}/javascripts/material/components/tab-switch.js +0 -0
- data/{app/assets → assets}/javascripts/material/components/util.js +0 -0
- data/{app/assets → assets}/javascripts/material/initializers/picker.js +0 -0
- data/{app/assets → assets}/javascripts/material/initializers/textarea-autosize.js +0 -0
- data/{app/assets → assets}/javascripts/material/initializers/waves.js +0 -0
- data/{app/assets → assets}/stylesheets/material.min.css +0 -0
- data/{app/assets → assets}/stylesheets/material.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/_colours.scss +7 -11
- data/{app/assets → assets}/stylesheets/material/_functions.scss +8 -14
- data/{app/assets → assets}/stylesheets/material/_mixins.scss +1 -1
- data/{app/assets → assets}/stylesheets/material/_print.scss +4 -4
- data/{app/assets → assets}/stylesheets/material/_utilities.scss +0 -2
- data/{app/assets → assets}/stylesheets/material/_variables.scss +0 -2
- data/{app/assets → assets}/stylesheets/material/base/_base.scss +24 -49
- data/{app/assets → assets}/stylesheets/material/base/_grid.scss +1 -5
- data/{app/assets → assets}/stylesheets/material/base/_typography.scss +1 -11
- data/{app/assets → assets}/stylesheets/material/bootstrap/_alert.scss +14 -16
- data/{app/assets → assets}/stylesheets/material/bootstrap/_badge.scss +19 -7
- data/{app/assets → assets}/stylesheets/material/bootstrap/_breadcrumb.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_carousel.scss +0 -6
- data/{app/assets → assets}/stylesheets/material/bootstrap/_close.scss +0 -4
- data/{app/assets → assets}/stylesheets/material/bootstrap/_code.scss +0 -9
- data/{app/assets → assets}/stylesheets/material/bootstrap/_custom-form.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_form.scss +4 -16
- data/{app/assets → assets}/stylesheets/material/bootstrap/_image.scss +10 -14
- data/{app/assets → assets}/stylesheets/material/bootstrap/_jumbotron.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_media.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_nav.scss +4 -10
- data/{app/assets → assets}/stylesheets/material/bootstrap/_pagination.scss +0 -1
- data/{app/assets → assets}/stylesheets/material/bootstrap/_popover.scss +4 -10
- data/{app/assets → assets}/stylesheets/material/bootstrap/_responsive-embed.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_transition.scss +2 -0
- data/{app/assets → assets}/stylesheets/material/material.scss +1 -10
- data/{app/assets → assets}/stylesheets/material/material/_button-flat.scss +3 -2
- data/{app/assets → assets}/stylesheets/material/material/_button-float.scss +4 -4
- data/{app/assets → assets}/stylesheets/material/material/_button-group.scss +40 -95
- data/{app/assets → assets}/stylesheets/material/material/_button.scss +8 -24
- data/{app/assets → assets}/stylesheets/material/material/_card.scss +28 -48
- data/{app/assets → assets}/stylesheets/material/material/_chip.scss +3 -7
- data/{app/assets → assets}/stylesheets/material/material/_data-table.scss +40 -37
- data/{app/assets → assets}/stylesheets/material/material/_dialog.scss +79 -53
- data/assets/stylesheets/material/material/_expansion-panel.scss +247 -0
- data/{app/assets → assets}/stylesheets/material/material/_menu.scss +99 -96
- data/{app/assets → assets}/stylesheets/material/material/_navdrawer.scss +26 -54
- data/{app/assets → assets}/stylesheets/material/material/_picker.scss +8 -13
- data/{app/assets → assets}/stylesheets/material/material/_progress-circular.scss +0 -1
- data/{app/assets → assets}/stylesheets/material/material/_progress.scss +41 -53
- data/{app/assets → assets}/stylesheets/material/material/_selection-control.scss +4 -25
- data/{app/assets → assets}/stylesheets/material/material/_stepper.scss +1 -9
- data/{app/assets → assets}/stylesheets/material/material/_tab.scss +16 -16
- data/assets/stylesheets/material/material/_text-field-box.scss +59 -0
- data/{app/assets → assets}/stylesheets/material/material/_text-field-floating-label.scss +28 -13
- data/{app/assets → assets}/stylesheets/material/material/_text-field-input-group.scss +40 -49
- data/assets/stylesheets/material/material/_text-field-textarea.scss +15 -0
- data/{app/assets → assets}/stylesheets/material/material/_text-field.scss +23 -42
- data/{app/assets → assets}/stylesheets/material/material/_toolbar.scss +50 -37
- data/{app/assets → assets}/stylesheets/material/material/_tooltip.scss +6 -12
- data/{app/assets → assets}/stylesheets/material/mixins/_background-variant.scss +6 -5
- data/{app/assets → assets}/stylesheets/material/mixins/_border-radius.scss +2 -1
- data/{app/assets → assets}/stylesheets/material/mixins/_breakpoint.scss +7 -6
- data/{app/assets → assets}/stylesheets/material/mixins/_clearfix.scss +0 -0
- data/assets/stylesheets/material/mixins/_float.scss +13 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_form.scss +37 -5
- data/{app/assets → assets}/stylesheets/material/mixins/_grid-framework.scss +30 -24
- data/{app/assets → assets}/stylesheets/material/mixins/_grid.scss +8 -8
- data/{app/assets → assets}/stylesheets/material/mixins/_hex-to-rgba.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_hover.scss +19 -19
- data/{app/assets → assets}/stylesheets/material/mixins/_image.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_list.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_material-icons.scss +4 -2
- data/{app/assets → assets}/stylesheets/material/mixins/_nav-divider.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_reset-text.scss +1 -1
- data/{app/assets → assets}/stylesheets/material/mixins/_screenreader.scss +1 -2
- data/{app/assets → assets}/stylesheets/material/mixins/_strip-unit.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_text-alignment.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_text-emphasis.scss +6 -5
- data/{app/assets → assets}/stylesheets/material/mixins/_text-hide.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_text-truncate.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_transition.scss +0 -8
- data/{app/assets → assets}/stylesheets/material/mixins/_typography.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_align.scss +2 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_background.scss +0 -4
- data/{app/assets → assets}/stylesheets/material/utilities/_border.scss +2 -2
- data/{app/assets → assets}/stylesheets/material/utilities/_clearfix.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_display.scss +6 -2
- data/{app/assets → assets}/stylesheets/material/utilities/_flex.scss +10 -6
- data/{app/assets → assets}/stylesheets/material/utilities/_float.scss +3 -3
- data/{app/assets → assets}/stylesheets/material/utilities/_material-icons.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_position.scss +14 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_screenreader.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_sizing.scss +2 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_spacing.scss +32 -31
- data/{app/assets → assets}/stylesheets/material/utilities/_text.scss +2 -13
- data/{app/assets → assets}/stylesheets/material/utilities/_visibility.scss +2 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_waves.scss +3 -3
- data/assets/stylesheets/material/variables/_elevation-shadow.scss +69 -0
- data/{app/assets → assets}/stylesheets/material/variables/_grid.scss +0 -4
- data/assets/stylesheets/material/variables/_palette.scss +66 -0
- data/{app/assets → assets}/stylesheets/material/variables/_spacer.scss +6 -11
- data/assets/stylesheets/material/variables/_transition.scss +27 -0
- data/{app/assets → assets}/stylesheets/material/variables/_typography.scss +21 -27
- data/{app/assets → assets}/stylesheets/material/variables/_variable-bootstrap.scss +22 -50
- data/{app/assets → assets}/stylesheets/material/variables/_variable-material.scss +108 -141
- data/lib/material-sass.rb +52 -4
- data/lib/material-sass/engine.rb +8 -8
- data/lib/material-sass/version.rb +1 -1
- data/material-sass.gemspec +3 -0
- metadata +145 -149
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.eot +0 -0
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.ijmap +0 -1
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.svg +0 -2373
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.ttf +0 -0
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.woff +0 -0
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.woff2 +0 -0
- data/app/assets/fonts/material-icons/README.md +0 -9
- data/app/assets/fonts/material-icons/codepoints +0 -932
- data/app/assets/fonts/roboto/Roboto-Bold.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
- data/app/assets/images/bg/amber.jpg +0 -0
- data/app/assets/images/bg/brand.jpg +0 -0
- data/app/assets/images/bg/green.jpg +0 -0
- data/app/assets/images/bg/purple.jpg +0 -0
- data/app/assets/images/bg/red.jpg +0 -0
- data/app/assets/images/bg/teal.jpg +0 -0
- data/app/assets/stylesheets/material/material/_expansion-panel.scss +0 -118
- data/app/assets/stylesheets/material/material/_text-field-textarea.scss +0 -18
- data/app/assets/stylesheets/material/mixins/_pull.scss +0 -7
- data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +0 -91
- data/app/assets/stylesheets/material/variables/_palette.scss +0 -45
- data/app/assets/stylesheets/material/variables/_transition.scss +0 -29
@@ -1,10 +1,12 @@
|
|
1
1
|
.dropdown,
|
2
|
+
.dropleft,
|
3
|
+
.dropright,
|
2
4
|
.dropup {
|
3
5
|
position: relative;
|
4
6
|
}
|
5
7
|
|
6
8
|
.dropdown-menu {
|
7
|
-
@include border-
|
9
|
+
@include border-radius($menu-border-radius);
|
8
10
|
@include text-align(left);
|
9
11
|
|
10
12
|
background-color: transparent;
|
@@ -12,6 +14,7 @@
|
|
12
14
|
display: none;
|
13
15
|
float: left;
|
14
16
|
font-size: $menu-font-size;
|
17
|
+
font-weight: $menu-font-weight;
|
15
18
|
line-height: $menu-line-height;
|
16
19
|
list-style: none;
|
17
20
|
margin: 0;
|
@@ -20,23 +23,6 @@
|
|
20
23
|
position: absolute;
|
21
24
|
z-index: map-get($menu-elevation-shadow, elevation);
|
22
25
|
|
23
|
-
&::before {
|
24
|
-
@include border-bottom-radius($menu-border-radius);
|
25
|
-
|
26
|
-
background-clip: padding-box;
|
27
|
-
background-color: $menu-bg;
|
28
|
-
box-shadow: map-get($menu-elevation-shadow, shadow);
|
29
|
-
content: '';
|
30
|
-
display: block;
|
31
|
-
position: absolute;
|
32
|
-
top: 0;
|
33
|
-
right: 0;
|
34
|
-
bottom: 0;
|
35
|
-
left: 0;
|
36
|
-
transform-origin: 0 0;
|
37
|
-
z-index: -1;
|
38
|
-
}
|
39
|
-
|
40
26
|
&.show {
|
41
27
|
display: block;
|
42
28
|
|
@@ -75,19 +61,32 @@
|
|
75
61
|
}
|
76
62
|
}
|
77
63
|
|
64
|
+
&::before {
|
65
|
+
@include border-radius($menu-border-radius);
|
66
|
+
|
67
|
+
background-clip: padding-box;
|
68
|
+
background-color: $menu-bg;
|
69
|
+
box-shadow: map-get($menu-elevation-shadow, shadow);
|
70
|
+
content: '';
|
71
|
+
display: block;
|
72
|
+
position: absolute;
|
73
|
+
top: 0;
|
74
|
+
right: 0;
|
75
|
+
bottom: 0;
|
76
|
+
left: 0;
|
77
|
+
transform-origin: 0 0;
|
78
|
+
z-index: -1;
|
79
|
+
}
|
80
|
+
|
78
81
|
.nav:not(.flex-column):not(.flex-column-reverse) & {
|
79
82
|
min-width: 100%;
|
80
83
|
}
|
81
84
|
}
|
82
85
|
|
83
86
|
.menu {
|
84
|
-
@include border-radius($menu-border-radius);
|
85
|
-
|
86
87
|
margin-top: (($menu-link-height - ($menu-link-height - $menu-line-height) / 2) * -1 + $menu-padding-y * -1);
|
87
88
|
|
88
89
|
&::before {
|
89
|
-
@include border-radius($menu-border-radius);
|
90
|
-
|
91
90
|
transform-origin: 0 ($menu-link-height / 2 + $menu-padding-y);
|
92
91
|
}
|
93
92
|
}
|
@@ -162,15 +161,15 @@
|
|
162
161
|
}
|
163
162
|
|
164
163
|
40% {
|
165
|
-
transform: scale((2 / 3), .25);
|
164
|
+
transform: scale((2 / 3), 0.25);
|
166
165
|
}
|
167
166
|
|
168
167
|
60% {
|
169
|
-
transform: scale(1, .5);
|
168
|
+
transform: scale(1, 0.5);
|
170
169
|
}
|
171
170
|
|
172
171
|
80% {
|
173
|
-
transform: scale(1, .75);
|
172
|
+
transform: scale(1, 0.75);
|
174
173
|
}
|
175
174
|
|
176
175
|
100% {
|
@@ -188,67 +187,60 @@
|
|
188
187
|
}
|
189
188
|
}
|
190
189
|
|
191
|
-
|
192
|
-
.dropdown-menu[x-placement=
|
190
|
+
.dropdown-menu[x-placement='bottom-end']::before,
|
191
|
+
.dropdown-menu[x-placement='left-start']::before {
|
193
192
|
transform-origin: 100% 0;
|
194
193
|
}
|
195
194
|
|
196
|
-
.dropdown-menu[x-placement=
|
197
|
-
.dropdown-menu[x-placement=
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
195
|
+
.dropdown-menu[x-placement='top-end'].show,
|
196
|
+
.dropdown-menu[x-placement='top-start'].show {
|
197
|
+
> :nth-child(1),
|
198
|
+
> :nth-child(2),
|
199
|
+
> :nth-child(3) {
|
200
|
+
animation-name: dropdown-item-show;
|
202
201
|
}
|
203
202
|
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
> :nth-child(3) {
|
208
|
-
animation-name: dropdown-item-show;
|
209
|
-
}
|
210
|
-
|
211
|
-
> :nth-last-child(1) {
|
212
|
-
animation-name: dropdown-item-show-1;
|
213
|
-
}
|
203
|
+
> :nth-last-child(1) {
|
204
|
+
animation-name: dropdown-item-show-1;
|
205
|
+
}
|
214
206
|
|
215
|
-
|
216
|
-
|
217
|
-
|
207
|
+
> :nth-last-child(2) {
|
208
|
+
animation-name: dropdown-item-show-2;
|
209
|
+
}
|
218
210
|
|
219
|
-
|
220
|
-
|
221
|
-
}
|
211
|
+
> :nth-last-child(3) {
|
212
|
+
animation-name: dropdown-item-show-3;
|
222
213
|
}
|
223
214
|
}
|
224
215
|
|
225
|
-
.dropdown-menu[x-placement=
|
216
|
+
.dropdown-menu[x-placement='top-end']::before {
|
226
217
|
transform-origin: 100% 100%;
|
227
218
|
}
|
228
219
|
|
229
|
-
.dropdown-menu[x-placement=
|
220
|
+
.dropdown-menu[x-placement='top-start']::before {
|
230
221
|
transform-origin: 0 100%;
|
231
222
|
}
|
232
223
|
|
233
|
-
.menu[x-placement=
|
224
|
+
.menu[x-placement='bottom-end']::before {
|
234
225
|
transform-origin: 100% ($menu-link-height / 2 + $menu-padding-y);
|
235
226
|
}
|
236
227
|
|
237
|
-
.menu[x-placement=
|
238
|
-
.menu[x-placement=
|
228
|
+
.menu[x-placement='top-end'],
|
229
|
+
.menu[x-placement='top-start'] {
|
239
230
|
margin-top: 0;
|
240
231
|
margin-bottom: (($menu-link-height - ($menu-link-height - $menu-line-height) / 2) * -1 + $menu-padding-y * -1);
|
241
232
|
}
|
242
233
|
|
243
|
-
.menu[x-placement=
|
234
|
+
.menu[x-placement='top-end']::before {
|
244
235
|
transform-origin: 100% calc(100% - #{$menu-link-height / 2 + $menu-padding-y});
|
245
236
|
}
|
246
237
|
|
247
|
-
.menu[x-placement=
|
238
|
+
.menu[x-placement='top-start']::before {
|
248
239
|
transform-origin: 0 calc(100% - #{$menu-link-height / 2 + $menu-padding-y});
|
249
240
|
}
|
250
241
|
|
251
|
-
//
|
242
|
+
// Cascading menu for desktop
|
243
|
+
|
252
244
|
.dropdown-menu-sm,
|
253
245
|
.menu-cascading {
|
254
246
|
font-size: $menu-font-size-cascading;
|
@@ -264,24 +256,48 @@
|
|
264
256
|
.menu-cascading {
|
265
257
|
margin-top: (($menu-link-height-cascading - ($menu-link-height-cascading - $menu-line-height-cascading) / 2) * -1 + $menu-padding-y-cascading * -1);
|
266
258
|
|
267
|
-
&[x-placement=
|
268
|
-
&[x-placement=
|
259
|
+
&[x-placement='top-end'],
|
260
|
+
&[x-placement='top-start'] {
|
269
261
|
margin-top: 0;
|
270
262
|
margin-bottom: (($menu-link-height-cascading - ($menu-link-height-cascading - $menu-line-height-cascading) / 2) * -1 + $menu-padding-y-cascading * -1);
|
271
263
|
}
|
272
264
|
|
273
|
-
&[x-placement=
|
265
|
+
&[x-placement='top-end']::before {
|
274
266
|
transform-origin: 100% calc(100% - #{$menu-link-height-cascading / 2 + $menu-padding-y-cascading});
|
275
267
|
}
|
276
268
|
|
277
|
-
&[x-placement=
|
269
|
+
&[x-placement='top-start']::before {
|
278
270
|
transform-origin: 0 calc(100% - #{$menu-link-height-cascading / 2 + $menu-padding-y-cascading});
|
279
271
|
}
|
280
272
|
}
|
281
273
|
|
274
|
+
// Divider
|
275
|
+
|
276
|
+
.dropdown-divider {
|
277
|
+
@include nav-divider($menu-divider-bg);
|
278
|
+
}
|
279
|
+
|
280
|
+
// Header
|
282
281
|
|
282
|
+
.dropdown-header {
|
283
|
+
color: $menu-header-color;
|
284
|
+
display: block;
|
285
|
+
font-size: $menu-font-size;
|
286
|
+
font-weight: bolder;
|
287
|
+
line-height: $menu-line-height;
|
288
|
+
margin: 0;
|
289
|
+
padding: $menu-link-padding-y $menu-link-padding-x;
|
290
|
+
white-space: nowrap;
|
291
|
+
|
292
|
+
.dropdown-menu-sm &,
|
293
|
+
.menu-cascading & {
|
294
|
+
font-size: $menu-font-size-cascading;
|
295
|
+
line-height: $menu-line-height-cascading;
|
296
|
+
padding: $menu-link-padding-y-cascading $menu-link-padding-x-cascading;
|
297
|
+
}
|
298
|
+
}
|
283
299
|
|
284
|
-
//
|
300
|
+
// Link
|
285
301
|
|
286
302
|
.dropdown-item {
|
287
303
|
@include transition-standard(background-color, color);
|
@@ -291,7 +307,7 @@
|
|
291
307
|
clear: both;
|
292
308
|
color: $menu-link-color;
|
293
309
|
display: block;
|
294
|
-
font-weight:
|
310
|
+
font-weight: inherit;
|
295
311
|
padding: $menu-link-padding-y $menu-link-padding-x;
|
296
312
|
position: relative;
|
297
313
|
text-align: inherit;
|
@@ -322,38 +338,6 @@
|
|
322
338
|
}
|
323
339
|
}
|
324
340
|
|
325
|
-
|
326
|
-
|
327
|
-
// Divider
|
328
|
-
|
329
|
-
.dropdown-divider {
|
330
|
-
@include nav-divider($menu-divider-bg);
|
331
|
-
}
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
// Header
|
336
|
-
|
337
|
-
.dropdown-header {
|
338
|
-
color: $menu-header-color;
|
339
|
-
display: block;
|
340
|
-
font-size: $menu-font-size;
|
341
|
-
font-weight: bolder;
|
342
|
-
line-height: $menu-line-height;
|
343
|
-
margin: 0;
|
344
|
-
padding: $menu-link-padding-y $menu-link-padding-x;
|
345
|
-
white-space: nowrap;
|
346
|
-
|
347
|
-
.dropdown-menu-sm &,
|
348
|
-
.menu-cascading & {
|
349
|
-
font-size: $menu-font-size-cascading;
|
350
|
-
line-height: $menu-line-height-cascading;
|
351
|
-
padding: $menu-link-padding-y-cascading $menu-link-padding-x-cascading;
|
352
|
-
}
|
353
|
-
}
|
354
|
-
|
355
|
-
|
356
|
-
|
357
341
|
// Toggle
|
358
342
|
|
359
343
|
.dropdown-toggle {
|
@@ -365,12 +349,31 @@
|
|
365
349
|
margin-right: ($caret-spacer-x * -1);
|
366
350
|
margin-left: $caret-spacer-x;
|
367
351
|
|
352
|
+
.dropright & {
|
353
|
+
content: $caret-icon-right;
|
354
|
+
}
|
355
|
+
|
368
356
|
.dropup & {
|
369
|
-
content: $caret-icon-
|
357
|
+
content: $caret-icon-up;
|
370
358
|
}
|
371
359
|
}
|
372
360
|
|
373
361
|
&:empty::after {
|
374
362
|
margin-left: ($caret-spacer-x * -1);
|
375
363
|
}
|
364
|
+
|
365
|
+
.dropleft & {
|
366
|
+
&::after {
|
367
|
+
display: none;
|
368
|
+
}
|
369
|
+
|
370
|
+
&::before {
|
371
|
+
@include set-material-icons;
|
372
|
+
|
373
|
+
content: $caret-icon-left;
|
374
|
+
display: inline-block;
|
375
|
+
margin-right: $caret-spacer-x;
|
376
|
+
margin-left: ($caret-spacer-x * -1);
|
377
|
+
}
|
378
|
+
}
|
376
379
|
}
|
@@ -10,8 +10,6 @@
|
|
10
10
|
z-index: map-get($navdrawer-elevation-shadow, elevation);
|
11
11
|
}
|
12
12
|
|
13
|
-
|
14
|
-
|
15
13
|
// Backdrop
|
16
14
|
|
17
15
|
.navdrawer-backdrop {
|
@@ -31,8 +29,6 @@
|
|
31
29
|
}
|
32
30
|
}
|
33
31
|
|
34
|
-
|
35
|
-
|
36
32
|
// Content
|
37
33
|
|
38
34
|
.navdrawer-content {
|
@@ -50,14 +46,12 @@
|
|
50
46
|
transform: translate3d(-100%, 0, 0);
|
51
47
|
width: $navdrawer-width;
|
52
48
|
|
53
|
-
// Direction
|
54
49
|
.navdrawer-right & {
|
55
50
|
right: 0;
|
56
51
|
left: auto;
|
57
52
|
transform: translate3d(100%, 0, 0);
|
58
53
|
}
|
59
54
|
|
60
|
-
// Open
|
61
55
|
.navdrawer.show & {
|
62
56
|
@include transition-deceleration(transform);
|
63
57
|
|
@@ -65,8 +59,6 @@
|
|
65
59
|
}
|
66
60
|
}
|
67
61
|
|
68
|
-
|
69
|
-
|
70
62
|
// Misc
|
71
63
|
|
72
64
|
.navdrawer-body {
|
@@ -104,8 +96,6 @@
|
|
104
96
|
}
|
105
97
|
}
|
106
98
|
|
107
|
-
|
108
|
-
|
109
99
|
// Nav
|
110
100
|
|
111
101
|
.navdrawer-nav {
|
@@ -129,23 +119,19 @@
|
|
129
119
|
background-color: $navdrawer-nav-link-bg-hover;
|
130
120
|
}
|
131
121
|
|
122
|
+
&.active,
|
132
123
|
&:active {
|
133
124
|
color: $navdrawer-nav-link-color-active;
|
134
125
|
}
|
135
126
|
|
136
|
-
&:focus {
|
137
|
-
outline: 0;
|
138
|
-
}
|
139
|
-
|
140
|
-
&.active {
|
141
|
-
color: $navdrawer-nav-link-color-active;
|
142
|
-
}
|
143
|
-
|
144
|
-
// Disabled
|
145
127
|
&.disabled {
|
146
128
|
background-color: transparent;
|
147
129
|
color: $navdrawer-nav-link-color-disabled;
|
148
130
|
}
|
131
|
+
|
132
|
+
&:focus {
|
133
|
+
outline: 0;
|
134
|
+
}
|
149
135
|
}
|
150
136
|
|
151
137
|
.active > .nav-link {
|
@@ -167,17 +153,22 @@
|
|
167
153
|
color: $navdrawer-nav-link-color-active;
|
168
154
|
}
|
169
155
|
|
170
|
-
|
171
|
-
|
172
156
|
// Permanent
|
173
157
|
|
174
158
|
@include media-breakpoint-up(lg) {
|
175
159
|
.navdrawer-permanent {
|
176
160
|
border-right: $navdrawer-border-width solid $navdrawer-border-color;
|
177
|
-
display: block !important;
|
161
|
+
display: block !important; // stylelint-disable-line declaration-no-important
|
178
162
|
right: auto;
|
179
163
|
width: $navdrawer-width;
|
180
164
|
|
165
|
+
&.navdrawer-right {
|
166
|
+
border-right: 0;
|
167
|
+
border-left: $navdrawer-border-width solid $navdrawer-border-color;
|
168
|
+
right: 0;
|
169
|
+
left: auto;
|
170
|
+
}
|
171
|
+
|
181
172
|
.navdrawer-content {
|
182
173
|
box-shadow: none;
|
183
174
|
max-width: none;
|
@@ -185,22 +176,12 @@
|
|
185
176
|
transform: translate3d(0, 0, 0);
|
186
177
|
width: 100%;
|
187
178
|
}
|
188
|
-
|
189
|
-
// Direction
|
190
|
-
&.navdrawer-right {
|
191
|
-
border-right: 0;
|
192
|
-
border-left: $navdrawer-border-width solid $navdrawer-border-color;
|
193
|
-
right: 0;
|
194
|
-
left: auto;
|
195
|
-
}
|
196
179
|
}
|
197
180
|
|
198
|
-
// Backdrop
|
199
181
|
.navdrawer-backdrop-permanent {
|
200
182
|
display: none;
|
201
183
|
}
|
202
184
|
|
203
|
-
// Variation
|
204
185
|
.navdrawer-permanent-clipped,
|
205
186
|
.navdrawer-permanent-float {
|
206
187
|
top: $toolbar-height;
|
@@ -225,8 +206,6 @@
|
|
225
206
|
}
|
226
207
|
}
|
227
208
|
|
228
|
-
|
229
|
-
|
230
209
|
// Persistent
|
231
210
|
|
232
211
|
@include media-breakpoint-up(lg) {
|
@@ -234,15 +213,6 @@
|
|
234
213
|
right: auto;
|
235
214
|
width: $navdrawer-width;
|
236
215
|
|
237
|
-
.navdrawer-content {
|
238
|
-
border-right: $navdrawer-border-width solid $navdrawer-border-color;
|
239
|
-
box-shadow: none;
|
240
|
-
max-width: none;
|
241
|
-
position: absolute;
|
242
|
-
width: 100%;
|
243
|
-
}
|
244
|
-
|
245
|
-
// Direction
|
246
216
|
&.navdrawer-right {
|
247
217
|
right: 0;
|
248
218
|
left: auto;
|
@@ -252,14 +222,20 @@
|
|
252
222
|
border-left: $navdrawer-border-width solid $navdrawer-border-color;
|
253
223
|
}
|
254
224
|
}
|
225
|
+
|
226
|
+
.navdrawer-content {
|
227
|
+
border-right: $navdrawer-border-width solid $navdrawer-border-color;
|
228
|
+
box-shadow: none;
|
229
|
+
max-width: none;
|
230
|
+
position: absolute;
|
231
|
+
width: 100%;
|
232
|
+
}
|
255
233
|
}
|
256
234
|
|
257
|
-
// Backdrop
|
258
235
|
.navdrawer-backdrop-persistent {
|
259
236
|
display: none;
|
260
237
|
}
|
261
238
|
|
262
|
-
// Variation
|
263
239
|
.navdrawer-persistent-clipped {
|
264
240
|
border-top: $navdrawer-border-width solid $navdrawer-border-color;
|
265
241
|
margin-top: ($navdrawer-border-width * -1);
|
@@ -268,8 +244,6 @@
|
|
268
244
|
}
|
269
245
|
}
|
270
246
|
|
271
|
-
|
272
|
-
|
273
247
|
// Temporary
|
274
248
|
|
275
249
|
@include media-breakpoint-up(lg) {
|
@@ -278,20 +252,18 @@
|
|
278
252
|
right: auto;
|
279
253
|
width: $navdrawer-width;
|
280
254
|
|
255
|
+
&.navdrawer-right {
|
256
|
+
right: 0;
|
257
|
+
left: auto;
|
258
|
+
}
|
259
|
+
|
281
260
|
.navdrawer-content {
|
282
261
|
max-width: none;
|
283
262
|
position: absolute;
|
284
263
|
width: 100%;
|
285
264
|
}
|
286
|
-
|
287
|
-
// Direction
|
288
|
-
&.navdrawer-right {
|
289
|
-
right: 0;
|
290
|
-
left: auto;
|
291
|
-
}
|
292
265
|
}
|
293
266
|
|
294
|
-
// Backdrop
|
295
267
|
.navdrawer-backdrop-temporary {
|
296
268
|
display: none;
|
297
269
|
}
|