material-sass 4.0.0.alpha6 → 4.0.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +36 -8
- data/Rakefile +16 -3
- data/app/assets/javascripts/material-sprockets.js +6 -1
- data/app/assets/javascripts/material.js +654 -417
- data/app/assets/javascripts/material.min.js +1 -0
- data/app/assets/javascripts/material/addons/picker.date.js +234 -0
- data/app/assets/javascripts/material/addons/picker.js +172 -0
- data/app/assets/javascripts/material/addons/textarea-autosize.js +20 -2
- data/app/assets/javascripts/material/addons/waves.js +127 -0
- data/app/assets/javascripts/material/components/floating-label.js +92 -0
- data/app/assets/javascripts/material/components/navdrawer.js +353 -0
- data/app/assets/javascripts/material/components/selection-control-focus.js +47 -0
- data/app/assets/javascripts/material/components/tab-switch.js +148 -0
- data/app/assets/javascripts/material/components/util.js +133 -0
- data/app/assets/javascripts/material/initializers/picker.js +171 -0
- data/app/assets/javascripts/material/initializers/textarea-autosize.js +10 -0
- data/app/assets/javascripts/material/initializers/waves.js +13 -0
- data/app/assets/stylesheets/material/_colours.scss +324 -0
- data/app/assets/stylesheets/material/_functions.scss +65 -0
- data/app/assets/stylesheets/material/_mixins.scss +23 -23
- data/app/assets/stylesheets/material/_print.scss +102 -0
- data/app/assets/stylesheets/material/_utilities.scss +21 -17
- data/app/assets/stylesheets/material/_variables.scss +13 -42
- data/app/assets/stylesheets/material/base/_base.scss +420 -5
- data/app/assets/stylesheets/material/base/_grid.scss +34 -33
- data/app/assets/stylesheets/material/base/_typography.scss +165 -174
- data/app/assets/stylesheets/material/bootstrap/_alert.scss +32 -39
- data/app/assets/stylesheets/material/bootstrap/_badge.scss +34 -0
- data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +18 -18
- data/app/assets/stylesheets/material/bootstrap/_carousel.scss +127 -142
- data/app/assets/stylesheets/material/bootstrap/_close.scss +18 -19
- data/app/assets/stylesheets/material/bootstrap/_code.scss +10 -7
- data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +50 -56
- data/app/assets/stylesheets/material/bootstrap/_form.scss +159 -129
- data/app/assets/stylesheets/material/bootstrap/_image.scss +19 -16
- data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +10 -7
- data/app/assets/stylesheets/material/bootstrap/_nav.scss +71 -69
- data/app/assets/stylesheets/material/bootstrap/_pagination.scss +34 -26
- data/app/assets/stylesheets/material/bootstrap/_popover.scss +26 -59
- data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +4 -4
- data/app/assets/stylesheets/material/bootstrap/_transition.scss +10 -8
- data/app/assets/stylesheets/material/material.scss +75 -62
- data/app/assets/stylesheets/material/material/_button-flat.scss +26 -39
- data/app/assets/stylesheets/material/material/_button-float.scss +10 -14
- data/app/assets/stylesheets/material/material/_button-group.scss +268 -0
- data/app/assets/stylesheets/material/material/_button.scss +133 -189
- data/app/assets/stylesheets/material/material/_card.scss +300 -248
- data/app/assets/stylesheets/material/material/_chip.scss +65 -64
- data/app/assets/stylesheets/material/material/_data-table.scss +135 -45
- data/app/assets/stylesheets/material/material/_dialog.scss +141 -110
- data/app/assets/stylesheets/material/material/_expansion-panel.scss +86 -119
- data/app/assets/stylesheets/material/material/_menu.scss +308 -228
- data/app/assets/stylesheets/material/material/_navdrawer.scss +239 -234
- data/app/assets/stylesheets/material/material/_picker.scss +157 -155
- data/app/assets/stylesheets/material/material/_progress-circular.scss +80 -80
- data/app/assets/stylesheets/material/material/_progress.scss +180 -115
- data/app/assets/stylesheets/material/material/_selection-control.scss +132 -139
- data/app/assets/stylesheets/material/material/_stepper.scss +94 -93
- data/app/assets/stylesheets/material/material/_tab.scss +74 -93
- data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +29 -20
- data/app/assets/stylesheets/material/material/_text-field-input-group.scss +94 -24
- data/app/assets/stylesheets/material/material/_text-field-textarea.scss +13 -26
- data/app/assets/stylesheets/material/material/_text-field.scss +127 -118
- data/app/assets/stylesheets/material/material/_toolbar.scss +308 -313
- data/app/assets/stylesheets/material/material/_tooltip.scss +23 -62
- data/app/assets/stylesheets/material/mixins/_background-variant.scss +6 -6
- data/app/assets/stylesheets/material/mixins/_border-radius.scss +17 -17
- data/app/assets/stylesheets/material/mixins/_breakpoint.scss +32 -2
- data/app/assets/stylesheets/material/mixins/_clearfix.scss +1 -1
- data/app/assets/stylesheets/material/mixins/_form.scss +62 -25
- data/app/assets/stylesheets/material/mixins/_grid-framework.scss +8 -16
- data/app/assets/stylesheets/material/mixins/_grid.scss +40 -64
- data/app/assets/stylesheets/material/mixins/_material-icons.scss +36 -0
- data/app/assets/stylesheets/material/mixins/_nav-divider.scss +1 -1
- data/app/assets/stylesheets/material/mixins/_reset-text.scss +2 -21
- data/app/assets/stylesheets/material/mixins/_screenreader.scss +14 -12
- data/app/assets/stylesheets/material/mixins/_text-alignment.scss +23 -0
- data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +6 -6
- data/app/assets/stylesheets/material/mixins/_transition.scss +42 -10
- data/app/assets/stylesheets/material/utilities/_background.scss +18 -18
- data/app/assets/stylesheets/material/utilities/_border.scss +88 -41
- data/app/assets/stylesheets/material/utilities/_display.scss +63 -30
- data/app/assets/stylesheets/material/utilities/_flex.scss +139 -134
- data/app/assets/stylesheets/material/utilities/_material-icons.scss +3 -5
- data/app/assets/stylesheets/material/utilities/_position.scss +19 -22
- data/app/assets/stylesheets/material/utilities/_sizing.scss +11 -12
- data/app/assets/stylesheets/material/utilities/_spacing.scss +51 -56
- data/app/assets/stylesheets/material/utilities/_text.scss +80 -75
- data/app/assets/stylesheets/material/utilities/_visibility.scss +5 -46
- data/app/assets/stylesheets/material/utilities/_waves.scss +11 -18
- data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +89 -82
- data/app/assets/stylesheets/material/variables/_grid.scss +29 -26
- data/app/assets/stylesheets/material/variables/_palette.scss +45 -0
- data/app/assets/stylesheets/material/variables/_spacer.scss +34 -88
- data/app/assets/stylesheets/material/variables/_transition.scss +29 -0
- data/app/assets/stylesheets/material/variables/_typography.scss +88 -74
- data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +196 -133
- data/app/assets/stylesheets/material/variables/_variable-material.scss +481 -429
- data/lib/material-sass/version.rb +1 -1
- data/material-sass.gemspec +3 -3
- metadata +26 -21
- data/app/assets/javascripts/material/addons-materialise/pickadate.js +0 -139
- data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +0 -11
- data/app/assets/javascripts/material/addons-materialise/wave.js +0 -15
- data/app/assets/javascripts/material/addons/pickadate.js +0 -7
- data/app/assets/javascripts/material/addons/wave.js +0 -5
- data/app/assets/javascripts/material/src/floating-label.js +0 -91
- data/app/assets/javascripts/material/src/navdrawer.js +0 -352
- data/app/assets/javascripts/material/src/tab-switch.js +0 -133
- data/app/assets/javascripts/material/src/util.js +0 -138
- data/app/assets/stylesheets/material/base/_normalize.scss +0 -253
- data/app/assets/stylesheets/material/base/_reboot.scss +0 -239
- data/app/assets/stylesheets/material/bootstrap/_button-group.scss +0 -134
- data/app/assets/stylesheets/material/mixins/_tab-focus.scss +0 -5
- data/app/assets/stylesheets/material/mixins/_transform.scss +0 -9
- data/app/assets/stylesheets/material/variables/_animation.scss +0 -22
- data/app/assets/stylesheets/material/variables/_colour.scss +0 -389
@@ -1,293 +1,298 @@
|
|
1
1
|
.navdrawer {
|
2
2
|
display: none;
|
3
|
-
overflow: hidden;
|
4
3
|
outline: 0;
|
4
|
+
overflow: hidden;
|
5
5
|
position: fixed;
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
top: 0;
|
7
|
+
right: 0;
|
8
|
+
bottom: 0;
|
9
|
+
left: 0;
|
10
10
|
z-index: map-get($navdrawer-elevation-shadow, elevation);
|
11
11
|
}
|
12
12
|
|
13
|
-
//
|
14
|
-
// backdrop
|
15
|
-
//
|
16
|
-
.navdrawer-backdrop {
|
17
|
-
background-color: $navdrawer-backdrop-bg;
|
18
|
-
opacity: 0;
|
19
|
-
position: fixed;
|
20
|
-
top: 0;
|
21
|
-
right: 0;
|
22
|
-
bottom: 0;
|
23
|
-
left: 0;
|
24
|
-
z-index: (map-get($navdrawer-elevation-shadow, elevation) - 1);
|
25
|
-
@include transition-standard(opacity);
|
26
13
|
|
27
|
-
&.show {
|
28
|
-
opacity: 1;
|
29
|
-
}
|
30
|
-
}
|
31
14
|
|
32
|
-
//
|
33
|
-
// content
|
34
|
-
//
|
35
|
-
.navdrawer-content {
|
36
|
-
background-color: $navdrawer-content-bg;
|
37
|
-
box-shadow: map-get($navdrawer-elevation-shadow, shadow);
|
38
|
-
max-width: calc(100% - #{$navdrawer-gutter-width});
|
39
|
-
overflow-x: hidden;
|
40
|
-
overflow-y: auto;
|
41
|
-
position: fixed;
|
42
|
-
top: 0;
|
43
|
-
bottom: 0;
|
44
|
-
left: 0;
|
45
|
-
transform: translate3d(-100%, 0, 0);
|
46
|
-
width: $navdrawer-width-mobile;
|
47
|
-
@include transition-sharp(transform);
|
48
|
-
|
49
|
-
// direction
|
50
|
-
.navdrawer-right & {
|
51
|
-
// position
|
52
|
-
right: 0;
|
53
|
-
left: auto;
|
54
|
-
transform: translate3d(100%, 0, 0);
|
55
|
-
}
|
15
|
+
// Backdrop
|
56
16
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
17
|
+
.navdrawer-backdrop {
|
18
|
+
@include transition-standard-complex(opacity);
|
19
|
+
|
20
|
+
background-color: $navdrawer-backdrop-bg;
|
21
|
+
opacity: 0;
|
22
|
+
position: fixed;
|
23
|
+
top: 0;
|
24
|
+
right: 0;
|
25
|
+
bottom: 0;
|
26
|
+
left: 0;
|
27
|
+
z-index: (map-get($navdrawer-elevation-shadow, elevation) - 1);
|
28
|
+
|
29
|
+
&.show {
|
30
|
+
opacity: 1;
|
62
31
|
}
|
32
|
+
}
|
33
|
+
|
34
|
+
|
63
35
|
|
64
|
-
//
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
36
|
+
// Content
|
37
|
+
|
38
|
+
.navdrawer-content {
|
39
|
+
@include transition-sharp(transform);
|
40
|
+
|
41
|
+
background-color: $navdrawer-content-bg;
|
42
|
+
box-shadow: map-get($navdrawer-elevation-shadow, shadow);
|
43
|
+
max-width: calc(100% - #{$navdrawer-gutter-width});
|
44
|
+
overflow-x: hidden;
|
45
|
+
overflow-y: auto;
|
46
|
+
position: fixed;
|
47
|
+
top: 0;
|
48
|
+
bottom: 0;
|
49
|
+
left: 0;
|
50
|
+
transform: translate3d(-100%, 0, 0);
|
51
|
+
width: $navdrawer-width;
|
52
|
+
|
53
|
+
// Direction
|
54
|
+
.navdrawer-right & {
|
55
|
+
right: 0;
|
56
|
+
left: auto;
|
57
|
+
transform: translate3d(100%, 0, 0);
|
71
58
|
}
|
72
59
|
|
73
|
-
|
74
|
-
|
60
|
+
// Open
|
61
|
+
.navdrawer.show & {
|
62
|
+
@include transition-deceleration(transform);
|
63
|
+
|
64
|
+
transform: translate3d(0, 0, 0);
|
75
65
|
}
|
66
|
+
}
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
// Misc
|
71
|
+
|
72
|
+
.navdrawer-body {
|
73
|
+
margin-bottom: $navdrawer-inner-spacer-y;
|
74
|
+
padding-right: $navdrawer-inner-spacer-x;
|
75
|
+
padding-left: $navdrawer-inner-spacer-x;
|
76
|
+
}
|
77
|
+
|
78
|
+
.navdrawer-divider {
|
79
|
+
@include nav-divider($navdrawer-divider-bg);
|
80
|
+
}
|
76
81
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
82
|
+
.navdrawer-header {
|
83
|
+
background-color: $navdrawer-header-bg;
|
84
|
+
border-bottom: $navdrawer-header-border-width solid $navdrawer-header-border-color;
|
85
|
+
display: block;
|
86
|
+
margin-bottom: $navdrawer-inner-spacer-y;
|
87
|
+
padding: $toolbar-padding-y $navdrawer-inner-spacer-x;
|
88
|
+
}
|
89
|
+
|
90
|
+
.navdrawer-subheader {
|
91
|
+
@include text-truncate;
|
92
|
+
|
93
|
+
color: $navdrawer-subheader-color;
|
94
|
+
display: block;
|
95
|
+
font-weight: $navdrawer-subheader-font-weight;
|
96
|
+
height: $navdrawer-subheader-height;
|
97
|
+
line-height: 1;
|
98
|
+
margin-top: 0;
|
99
|
+
margin-bottom: 0;
|
100
|
+
padding: (($navdrawer-subheader-height - $navdrawer-subheader-font-size) / 2) $navdrawer-inner-spacer-x;
|
101
|
+
|
102
|
+
.navdrawer-divider + & {
|
103
|
+
margin-top: ($navdrawer-inner-spacer-y * -1);
|
83
104
|
}
|
105
|
+
}
|
84
106
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
107
|
+
|
108
|
+
|
109
|
+
// Nav
|
110
|
+
|
111
|
+
.navdrawer-nav {
|
112
|
+
display: flex;
|
113
|
+
flex-direction: column;
|
114
|
+
list-style: none;
|
115
|
+
margin-bottom: $navdrawer-inner-spacer-y;
|
116
|
+
padding-left: 0;
|
117
|
+
|
118
|
+
.nav-link {
|
94
119
|
@include text-truncate;
|
120
|
+
@include transition-standard(background-color, color);
|
95
121
|
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
122
|
+
color: $navdrawer-nav-link-color;
|
123
|
+
font-size: $navdrawer-nav-link-font-size;
|
124
|
+
font-weight: $navdrawer-nav-link-font-weight;
|
125
|
+
line-height: 1;
|
126
|
+
padding: (($navdrawer-nav-link-height - $navdrawer-nav-link-font-size) / 2) $navdrawer-inner-spacer-x;
|
100
127
|
|
101
|
-
|
102
|
-
|
103
|
-
//
|
104
|
-
.navdrawer-nav {
|
105
|
-
display: flex;
|
106
|
-
flex-direction: column;
|
107
|
-
list-style: none;
|
108
|
-
margin-bottom: $navdrawer-inner-spacer-y;
|
109
|
-
padding-left: 0;
|
110
|
-
|
111
|
-
.nav-link {
|
112
|
-
color: $navdrawer-nav-link-color;
|
113
|
-
font-size: $navdrawer-nav-link-font-size;
|
114
|
-
font-weight: $navdrawer-nav-link-font-weight;
|
115
|
-
line-height: 1;
|
116
|
-
padding: (($navdrawer-nav-link-height - $navdrawer-nav-link-font-size) / 2) $navdrawer-inner-spacer-x;
|
117
|
-
@include text-truncate;
|
118
|
-
@include transition-standard(background-color, color);
|
119
|
-
|
120
|
-
// active, focus, hover
|
121
|
-
@include active-focus-hover {
|
122
|
-
background-color: $navdrawer-nav-link-bg-active;
|
123
|
-
}
|
124
|
-
|
125
|
-
&:active {
|
126
|
-
color: $navdrawer-nav-link-color-active;
|
127
|
-
}
|
128
|
-
|
129
|
-
&:focus {
|
130
|
-
outline: 0;
|
131
|
-
}
|
132
|
-
|
133
|
-
&.active {
|
134
|
-
color: $navdrawer-nav-link-color-active;
|
135
|
-
}
|
136
|
-
|
137
|
-
// disabled
|
138
|
-
&.disabled {
|
139
|
-
background-color: transparent;
|
140
|
-
color: $navdrawer-nav-link-color-disabled;
|
141
|
-
}
|
128
|
+
@include active-focus-hover {
|
129
|
+
background-color: $navdrawer-nav-link-bg-hover;
|
142
130
|
}
|
143
131
|
|
144
|
-
|
132
|
+
&:active {
|
145
133
|
color: $navdrawer-nav-link-color-active;
|
146
134
|
}
|
147
|
-
}
|
148
135
|
|
149
|
-
|
150
|
-
|
151
|
-
|
136
|
+
&:focus {
|
137
|
+
outline: 0;
|
138
|
+
}
|
152
139
|
|
153
|
-
|
154
|
-
.nav-link.active & {
|
140
|
+
&.active {
|
155
141
|
color: $navdrawer-nav-link-color-active;
|
156
142
|
}
|
143
|
+
|
144
|
+
// Disabled
|
145
|
+
&.disabled {
|
146
|
+
background-color: transparent;
|
147
|
+
color: $navdrawer-nav-link-color-disabled;
|
148
|
+
}
|
157
149
|
}
|
158
150
|
|
159
|
-
.active > .nav-link
|
151
|
+
.active > .nav-link {
|
160
152
|
color: $navdrawer-nav-link-color-active;
|
161
153
|
}
|
154
|
+
}
|
162
155
|
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
@include media-breakpoint-up(lg) {
|
167
|
-
.navdrawer-permanent {
|
168
|
-
border-right: $navdrawer-border-width solid $navdrawer-border-color;
|
169
|
-
display: block !important;
|
170
|
-
// position
|
171
|
-
right: auto;
|
172
|
-
width: $navdrawer-width-mobile;
|
156
|
+
.navdrawer-nav-icon {
|
157
|
+
color: $navdrawer-nav-icon-color;
|
158
|
+
width: $navdrawer-nav-icon-width;
|
173
159
|
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
left: auto;
|
180
|
-
}
|
160
|
+
.nav-link:active &,
|
161
|
+
.nav-link.active & {
|
162
|
+
color: $navdrawer-nav-link-color-active;
|
163
|
+
}
|
164
|
+
}
|
181
165
|
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
166
|
+
.active > .nav-link .navdrawer-nav-icon {
|
167
|
+
color: $navdrawer-nav-link-color-active;
|
168
|
+
}
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
// Permanent
|
173
|
+
|
174
|
+
@include media-breakpoint-up(lg) {
|
175
|
+
.navdrawer-permanent {
|
176
|
+
border-right: $navdrawer-border-width solid $navdrawer-border-color;
|
177
|
+
display: block !important;
|
178
|
+
right: auto;
|
179
|
+
width: $navdrawer-width;
|
180
|
+
|
181
|
+
.navdrawer-content {
|
182
|
+
box-shadow: none;
|
183
|
+
max-width: none;
|
184
|
+
position: absolute;
|
185
|
+
transform: translate3d(0, 0, 0);
|
186
|
+
width: 100%;
|
189
187
|
}
|
190
188
|
|
191
|
-
//
|
192
|
-
|
193
|
-
|
194
|
-
|
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
|
+
}
|
195
197
|
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
top: $toolbar-height;
|
201
|
-
z-index: (map-get($toolbar-elevation-shadow, elevation) - 1);
|
202
|
-
}
|
198
|
+
// Backdrop
|
199
|
+
.navdrawer-backdrop-permanent {
|
200
|
+
display: none;
|
201
|
+
}
|
203
202
|
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
203
|
+
// Variation
|
204
|
+
.navdrawer-permanent-clipped,
|
205
|
+
.navdrawer-permanent-float {
|
206
|
+
top: $toolbar-height;
|
207
|
+
z-index: (map-get($toolbar-elevation-shadow, elevation) - 1);
|
208
|
+
}
|
208
209
|
|
209
|
-
|
210
|
-
|
210
|
+
.navdrawer-permanent-clipped {
|
211
|
+
border-top: $navdrawer-border-width solid $navdrawer-border-color;
|
212
|
+
margin-top: ($navdrawer-border-width * -1);
|
213
|
+
}
|
211
214
|
|
212
|
-
|
213
|
-
|
214
|
-
}
|
215
|
+
.navdrawer-permanent-float {
|
216
|
+
border-right: 0;
|
215
217
|
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
218
|
+
&.navdrawer-right {
|
219
|
+
border-left: 0;
|
220
|
+
}
|
221
|
+
|
222
|
+
.navdrawer-content {
|
223
|
+
background-color: transparent;
|
224
|
+
}
|
220
225
|
}
|
226
|
+
}
|
221
227
|
|
222
|
-
//
|
223
|
-
// persistent
|
224
|
-
//
|
225
|
-
@include media-breakpoint-up(lg) {
|
226
|
-
.navdrawer-persistent {
|
227
|
-
// position
|
228
|
-
right: auto;
|
229
|
-
width: $navdrawer-width-mobile;
|
230
|
-
|
231
|
-
&.navdrawer-right {
|
232
|
-
// position
|
233
|
-
right: 0;
|
234
|
-
left: auto;
|
235
|
-
}
|
236
228
|
|
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
229
|
|
245
|
-
|
230
|
+
// Persistent
|
231
|
+
|
232
|
+
@include media-breakpoint-up(lg) {
|
233
|
+
.navdrawer-persistent {
|
234
|
+
right: auto;
|
235
|
+
width: $navdrawer-width;
|
236
|
+
|
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
|
+
&.navdrawer-right {
|
247
|
+
right: 0;
|
248
|
+
left: auto;
|
249
|
+
|
250
|
+
.navdrawer-content {
|
246
251
|
border-right: 0;
|
247
252
|
border-left: $navdrawer-border-width solid $navdrawer-border-color;
|
248
253
|
}
|
249
254
|
}
|
255
|
+
}
|
250
256
|
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
257
|
+
// Backdrop
|
258
|
+
.navdrawer-backdrop-persistent {
|
259
|
+
display: none;
|
260
|
+
}
|
255
261
|
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
z-index: (map-get($toolbar-elevation-shadow, elevation) - 1);
|
263
|
-
}
|
262
|
+
// Variation
|
263
|
+
.navdrawer-persistent-clipped {
|
264
|
+
border-top: $navdrawer-border-width solid $navdrawer-border-color;
|
265
|
+
margin-top: ($navdrawer-border-width * -1);
|
266
|
+
top: $toolbar-height;
|
267
|
+
z-index: (map-get($toolbar-elevation-shadow, elevation) - 1);
|
264
268
|
}
|
269
|
+
}
|
265
270
|
|
266
|
-
//
|
267
|
-
// temporary
|
268
|
-
//
|
269
|
-
@include media-breakpoint-up(lg) {
|
270
|
-
.navdrawer-temporary {
|
271
|
-
overflow: visible;
|
272
|
-
// position
|
273
|
-
right: auto;
|
274
|
-
width: $navdrawer-width-mobile;
|
275
|
-
|
276
|
-
&.navdrawer-right {
|
277
|
-
// position
|
278
|
-
right: 0;
|
279
|
-
left: auto;
|
280
|
-
}
|
281
271
|
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
272
|
+
|
273
|
+
// Temporary
|
274
|
+
|
275
|
+
@include media-breakpoint-up(lg) {
|
276
|
+
.navdrawer-temporary {
|
277
|
+
overflow: visible;
|
278
|
+
right: auto;
|
279
|
+
width: $navdrawer-width;
|
280
|
+
|
281
|
+
.navdrawer-content {
|
282
|
+
max-width: none;
|
283
|
+
position: absolute;
|
284
|
+
width: 100%;
|
287
285
|
}
|
288
286
|
|
289
|
-
//
|
290
|
-
|
291
|
-
|
292
|
-
|
287
|
+
// Direction
|
288
|
+
&.navdrawer-right {
|
289
|
+
right: 0;
|
290
|
+
left: auto;
|
291
|
+
}
|
293
292
|
}
|
293
|
+
|
294
|
+
// Backdrop
|
295
|
+
.navdrawer-backdrop-temporary {
|
296
|
+
display: none;
|
297
|
+
}
|
298
|
+
}
|