material-sass 1.4.1 → 4.0.0.alpha5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/Rakefile +61 -0
  4. data/app/assets/fonts/{MaterialIcons-Regular.eot → material-icons/MaterialIcons-Regular.eot} +0 -0
  5. data/app/assets/fonts/{MaterialIcons-Regular.ijmap → material-icons/MaterialIcons-Regular.ijmap} +0 -0
  6. data/app/assets/fonts/{MaterialIcons-Regular.svg → material-icons/MaterialIcons-Regular.svg} +0 -0
  7. data/app/assets/fonts/{MaterialIcons-Regular.ttf → material-icons/MaterialIcons-Regular.ttf} +0 -0
  8. data/app/assets/fonts/{MaterialIcons-Regular.woff → material-icons/MaterialIcons-Regular.woff} +0 -0
  9. data/app/assets/fonts/{MaterialIcons-Regular.woff2 → material-icons/MaterialIcons-Regular.woff2} +0 -0
  10. data/app/assets/fonts/{README.md → material-icons/README.md} +0 -0
  11. data/app/assets/fonts/{codepoints → material-icons/codepoints} +0 -0
  12. data/app/assets/fonts/roboto/Roboto-Bold.eot +0 -0
  13. data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
  14. data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
  15. data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
  16. data/app/assets/fonts/roboto/Roboto-Light.eot +0 -0
  17. data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
  18. data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
  19. data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
  20. data/app/assets/fonts/roboto/Roboto-Medium.eot +0 -0
  21. data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
  22. data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
  23. data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
  24. data/app/assets/fonts/roboto/Roboto-Regular.eot +0 -0
  25. data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
  26. data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
  27. data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
  28. data/app/assets/fonts/roboto/Roboto-Thin.eot +0 -0
  29. data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
  30. data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
  31. data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
  32. data/app/assets/javascripts/material.js +739 -798
  33. data/app/assets/javascripts/material/addons-materialise/pickadate.js +139 -0
  34. data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +9 -0
  35. data/app/assets/javascripts/material/addons-materialise/wave.js +12 -0
  36. data/app/assets/javascripts/material/addons/pickadate.js +7 -0
  37. data/app/assets/javascripts/material/addons/textarea-autosize.js +5 -0
  38. data/app/assets/javascripts/material/{wave.js → addons/wave.js} +0 -10
  39. data/app/assets/javascripts/material/src/floating-label.js +91 -0
  40. data/app/assets/javascripts/material/src/navdrawer.js +352 -0
  41. data/app/assets/javascripts/material/src/tab-switch.js +136 -0
  42. data/app/assets/javascripts/material/src/util.js +138 -0
  43. data/app/assets/stylesheets/material.min.css +2 -2
  44. data/app/assets/stylesheets/material.scss +1 -1
  45. data/app/assets/stylesheets/material/_mixins.scss +21 -0
  46. data/app/assets/stylesheets/material/_utilities.scss +15 -0
  47. data/app/assets/stylesheets/material/_variables.scss +25 -0
  48. data/app/assets/stylesheets/material/base/_base.scss +482 -0
  49. data/app/assets/stylesheets/material/base/_grid.scss +28 -40
  50. data/app/assets/stylesheets/material/base/_typography.scss +208 -0
  51. data/app/assets/stylesheets/material/bootstrap/_alert.scss +55 -0
  52. data/app/assets/stylesheets/material/bootstrap/_animation.scss +26 -0
  53. data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +39 -0
  54. data/app/assets/stylesheets/material/bootstrap/_button-group.scss +155 -0
  55. data/app/assets/stylesheets/material/bootstrap/_carousel.scss +234 -0
  56. data/app/assets/stylesheets/material/bootstrap/_close.scss +31 -0
  57. data/app/assets/stylesheets/material/bootstrap/_code.scss +50 -0
  58. data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +69 -0
  59. data/app/assets/stylesheets/material/bootstrap/_form.scss +116 -0
  60. data/app/assets/stylesheets/material/bootstrap/_image.scss +25 -0
  61. data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +12 -0
  62. data/app/assets/stylesheets/material/bootstrap/_media.scss +69 -0
  63. data/app/assets/stylesheets/material/bootstrap/_nav.scss +118 -0
  64. data/app/assets/stylesheets/material/bootstrap/_pagination.scss +68 -0
  65. data/app/assets/stylesheets/material/bootstrap/_popover.scss +84 -0
  66. data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +37 -0
  67. data/app/assets/stylesheets/material/material.scss +62 -0
  68. data/app/assets/stylesheets/material/material/_button-flat.scss +53 -0
  69. data/app/assets/stylesheets/material/material/_button-float.scss +29 -0
  70. data/app/assets/stylesheets/material/material/_button.scss +241 -0
  71. data/app/assets/stylesheets/material/material/_card.scss +286 -0
  72. data/app/assets/stylesheets/material/material/_chip.scss +93 -0
  73. data/app/assets/stylesheets/material/material/_data-table.scss +138 -0
  74. data/app/assets/stylesheets/material/material/_dialog.scss +147 -0
  75. data/app/assets/stylesheets/material/material/_expansion-panel.scss +292 -0
  76. data/app/assets/stylesheets/material/material/_menu.scss +281 -0
  77. data/app/assets/stylesheets/material/material/_navdrawer.scss +289 -0
  78. data/app/assets/stylesheets/material/material/_picker.scss +272 -0
  79. data/app/assets/stylesheets/material/material/_progress-circular.scss +144 -0
  80. data/app/assets/stylesheets/material/material/_progress.scss +174 -0
  81. data/app/assets/stylesheets/material/material/_selection-control.scss +221 -0
  82. data/app/assets/stylesheets/material/material/_stepper.scss +135 -0
  83. data/app/assets/stylesheets/material/material/_tab.scss +196 -0
  84. data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +51 -0
  85. data/app/assets/stylesheets/material/material/_text-field-input-group.scss +76 -0
  86. data/app/assets/stylesheets/material/material/_text-field-textarea.scss +31 -0
  87. data/app/assets/stylesheets/material/material/_text-field.scss +179 -0
  88. data/app/assets/stylesheets/material/material/_toolbar.scss +516 -0
  89. data/app/assets/stylesheets/material/material/_tooltip.scss +86 -0
  90. data/app/assets/stylesheets/material/mixins/_background-variant.scss +14 -0
  91. data/app/assets/stylesheets/material/mixins/_border-radius.scss +34 -0
  92. data/app/assets/stylesheets/material/mixins/_breakpoint.scss +38 -0
  93. data/app/assets/stylesheets/material/mixins/_clearfix.scss +7 -0
  94. data/app/assets/stylesheets/material/mixins/_form.scss +60 -0
  95. data/app/assets/stylesheets/material/mixins/_grid.scss +149 -0
  96. data/app/assets/stylesheets/material/mixins/_hex-to-rgba.scss +3 -0
  97. data/app/assets/stylesheets/material/mixins/_hover.scss +70 -0
  98. data/app/assets/stylesheets/material/mixins/_image.scss +4 -0
  99. data/app/assets/stylesheets/material/mixins/_list.scss +4 -0
  100. data/app/assets/stylesheets/material/mixins/_nav-divider.scss +6 -0
  101. data/app/assets/stylesheets/material/mixins/_pull.scss +7 -0
  102. data/app/assets/stylesheets/material/mixins/_reset-text.scss +35 -0
  103. data/app/assets/stylesheets/material/mixins/_screenreader.scss +23 -0
  104. data/app/assets/stylesheets/material/mixins/_strip-unit.scss +3 -0
  105. data/app/assets/stylesheets/material/mixins/_tab-focus.scss +5 -0
  106. data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +14 -0
  107. data/app/assets/stylesheets/material/mixins/_text-hide.scss +7 -0
  108. data/app/assets/stylesheets/material/mixins/_text-truncate.scss +5 -0
  109. data/app/assets/stylesheets/material/mixins/_transition.scss +55 -0
  110. data/app/assets/stylesheets/material/mixins/_typography.scss +69 -0
  111. data/app/assets/stylesheets/material/utilities/_align.scss +23 -0
  112. data/app/assets/stylesheets/material/utilities/_background.scss +23 -0
  113. data/app/assets/stylesheets/material/utilities/_border.scss +27 -0
  114. data/app/assets/stylesheets/material/utilities/_clearfix.scss +3 -0
  115. data/app/assets/stylesheets/material/utilities/_display.scss +11 -0
  116. data/app/assets/stylesheets/material/utilities/_float.scss +15 -0
  117. data/app/assets/stylesheets/material/utilities/_material-icons.scss +10 -0
  118. data/app/assets/stylesheets/material/utilities/_screenreader.scss +7 -0
  119. data/app/assets/stylesheets/material/utilities/_spacing.scss +65 -0
  120. data/app/assets/stylesheets/material/utilities/_text.scss +95 -0
  121. data/app/assets/stylesheets/material/utilities/_visibility.scss +50 -0
  122. data/app/assets/stylesheets/material/utilities/_waves.scss +48 -0
  123. data/app/assets/stylesheets/material/variables/_animation.scss +22 -0
  124. data/app/assets/stylesheets/material/variables/_colour.scss +389 -0
  125. data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +84 -0
  126. data/app/assets/stylesheets/material/variables/_grid.scss +32 -0
  127. data/app/assets/stylesheets/material/variables/_spacer.scss +73 -0
  128. data/app/assets/stylesheets/material/variables/_typography.scss +72 -0
  129. data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +129 -0
  130. data/app/assets/stylesheets/material/variables/_variable-material.scss +434 -0
  131. data/lib/material-sass/engine.rb +3 -2
  132. data/lib/material-sass/version.rb +1 -1
  133. metadata +128 -70
  134. data/app/assets/javascripts/material.min.js +0 -2
  135. data/app/assets/javascripts/material/_.js +0 -6
  136. data/app/assets/javascripts/material/bootstrap.js +0 -6
  137. data/app/assets/javascripts/material/form-floating-label.js +0 -49
  138. data/app/assets/javascripts/material/form-textarea.js +0 -13
  139. data/app/assets/javascripts/material/header.js +0 -12
  140. data/app/assets/javascripts/material/menu.js +0 -200
  141. data/app/assets/javascripts/material/modal.js +0 -12
  142. data/app/assets/javascripts/material/picker.js +0 -141
  143. data/app/assets/javascripts/material/snackbar.js +0 -116
  144. data/app/assets/javascripts/material/tab.js +0 -51
  145. data/app/assets/javascripts/material/tile.js +0 -181
  146. data/app/assets/stylesheets/material/addons/_material-icons.scss +0 -9
  147. data/app/assets/stylesheets/material/addons/_waves.scss +0 -44
  148. data/app/assets/stylesheets/material/addons/material-icons/_core.scss +0 -20
  149. data/app/assets/stylesheets/material/addons/material-icons/_larger.scss +0 -23
  150. data/app/assets/stylesheets/material/addons/material-icons/_path.scss +0 -11
  151. data/app/assets/stylesheets/material/addons/material-icons/_variables.scss +0 -3
  152. data/app/assets/stylesheets/material/base.scss +0 -50
  153. data/app/assets/stylesheets/material/base/_reset.scss +0 -421
  154. data/app/assets/stylesheets/material/components/_avatar.scss +0 -59
  155. data/app/assets/stylesheets/material/components/_breadcrumb.scss +0 -26
  156. data/app/assets/stylesheets/material/components/_button-flat.scss +0 -22
  157. data/app/assets/stylesheets/material/components/_button-float.scss +0 -183
  158. data/app/assets/stylesheets/material/components/_button.scss +0 -81
  159. data/app/assets/stylesheets/material/components/_card.scss +0 -175
  160. data/app/assets/stylesheets/material/components/_code.scss +0 -53
  161. data/app/assets/stylesheets/material/components/_dropdown.scss +0 -99
  162. data/app/assets/stylesheets/material/components/_form-checkbox.scss +0 -161
  163. data/app/assets/stylesheets/material/components/_form-floating-label.scss +0 -64
  164. data/app/assets/stylesheets/material/components/_form-switch.scss +0 -96
  165. data/app/assets/stylesheets/material/components/_form-textarea.scss +0 -4
  166. data/app/assets/stylesheets/material/components/_form.scss +0 -217
  167. data/app/assets/stylesheets/material/components/_label.scss +0 -23
  168. data/app/assets/stylesheets/material/components/_modal.scss +0 -164
  169. data/app/assets/stylesheets/material/components/_nav.scss +0 -53
  170. data/app/assets/stylesheets/material/components/_picker.scss +0 -298
  171. data/app/assets/stylesheets/material/components/_progress-circular.scss +0 -169
  172. data/app/assets/stylesheets/material/components/_progress-loadbar.scss +0 -97
  173. data/app/assets/stylesheets/material/components/_progress.scss +0 -132
  174. data/app/assets/stylesheets/material/components/_snackbar.scss +0 -59
  175. data/app/assets/stylesheets/material/components/_stepper.scss +0 -201
  176. data/app/assets/stylesheets/material/components/_tab.scss +0 -84
  177. data/app/assets/stylesheets/material/components/_table.scss +0 -82
  178. data/app/assets/stylesheets/material/components/_tile.scss +0 -156
  179. data/app/assets/stylesheets/material/elements/_content.scss +0 -42
  180. data/app/assets/stylesheets/material/elements/_header.scss +0 -141
  181. data/app/assets/stylesheets/material/elements/_menu.scss +0 -267
  182. data/app/assets/stylesheets/material/mixin/_grid.scss +0 -78
  183. data/app/assets/stylesheets/material/mixin/_responsive.scss +0 -32
  184. data/app/assets/stylesheets/material/mixin/_utilities.scss +0 -69
  185. data/app/assets/stylesheets/material/utilities/_print.scss +0 -95
  186. data/app/assets/stylesheets/material/utilities/_utilities-responsive.scss +0 -97
  187. data/app/assets/stylesheets/material/utilities/_utilities.scss +0 -393
  188. data/app/assets/stylesheets/material/var/_colours.scss +0 -336
  189. data/app/assets/stylesheets/material/var/_variables.scss +0 -78
@@ -0,0 +1,281 @@
1
+ .dropdown,
2
+ .dropup {
3
+ position: relative;
4
+ }
5
+
6
+ .dropdown-menu,
7
+ .menu {
8
+ background-clip: padding-box;
9
+ background-color: $menu-bg;
10
+ border: 0;
11
+ box-shadow: map-get($menu-elevation-shadow, shadow);
12
+ color: inherit;
13
+ display: none;
14
+ float: left;
15
+ font-size: $menu-font-size;
16
+ line-height: $menu-line-height;
17
+ list-style: none;
18
+ margin: 0;
19
+ min-width: 100%;
20
+ padding: $menu-padding-y 0;
21
+ position: absolute;
22
+ left: 0;
23
+ text-align: left;
24
+ z-index: map-get($menu-elevation-shadow, elevation);
25
+ }
26
+
27
+ .dropdown-menu {
28
+ // position
29
+ top: 100%;
30
+ transform-origin: 0 0;
31
+ @include border-bottom-radius($border-radius);
32
+ }
33
+
34
+ .menu {
35
+ // position
36
+ top: calc(50% - #{$menu-link-height / 2 + $menu-padding-y});
37
+ transform-origin: 0 ($menu-link-height / 2 + $menu-padding-y);
38
+ @include border-radius($border-radius);
39
+ }
40
+
41
+ .dropup {
42
+ .dropdown-menu,
43
+ .menu {
44
+ // position
45
+ top: auto;
46
+ }
47
+
48
+ .dropdown-menu {
49
+ // position
50
+ bottom: 100%;
51
+ transform-origin: 0 100%;
52
+ @include border-top-radius($border-radius);
53
+ @include border-bottom-radius(0);
54
+ }
55
+
56
+ .menu {
57
+ // position
58
+ bottom: calc(50% - #{$menu-link-height / 2 + $menu-padding-y});
59
+ transform-origin: 0 calc(100% - #{$menu-link-height / 2 + $menu-padding-y});
60
+ }
61
+ }
62
+
63
+ // open
64
+ .open {
65
+ > .dropdown-menu,
66
+ > .menu {
67
+ animation-duration: $transition-duration-lg;
68
+ animation-timing-function: $transition-timing-function-deceleration;
69
+ display: block;
70
+
71
+ @include media-breakpoint-up(sm) {
72
+ transition-duration: $transition-duration-tablet-lg;
73
+ }
74
+
75
+ @include media-breakpoint-up(lg) {
76
+ transition-duration: $transition-duration-desktop-lg;
77
+ }
78
+ }
79
+
80
+ > .dropdown-menu {
81
+ animation-name: dropdown-open;
82
+ }
83
+
84
+ > .menu {
85
+ animation-name: menu-open;
86
+ }
87
+ }
88
+
89
+ @keyframes dropdown-open {
90
+ 0% {
91
+ opacity: 0;
92
+ // position
93
+ top: 50%;
94
+ transform: scale(0.87, 0.54);
95
+ }
96
+ 50% {
97
+ opacity: 1;
98
+ }
99
+ 100% {
100
+ opacity: 1;
101
+ // position
102
+ top: 100%;
103
+ transform: scale(1, 1);
104
+ }
105
+ }
106
+
107
+ @keyframes menu-open {
108
+ 0% {
109
+ opacity: 0;
110
+ transform: scale(0.87, 0.54);
111
+ }
112
+ 50% {
113
+ opacity: 1;
114
+ }
115
+ 100% {
116
+ opacity: 1;
117
+ transform: scale(1, 1);
118
+ }
119
+ }
120
+
121
+ .dropup.open {
122
+ > .dropdown-menu {
123
+ animation-name: dropup-open;
124
+ }
125
+ }
126
+
127
+ @keyframes dropup-open {
128
+ 0% {
129
+ opacity: 0;
130
+ // position
131
+ bottom: 50%;
132
+ transform: scale(0.87, 0.54);
133
+ }
134
+ 50% {
135
+ opacity: 1;
136
+ }
137
+ 100% {
138
+ opacity: 1;
139
+ // position
140
+ bottom: 100%;
141
+ transform: scale(1, 1);
142
+ }
143
+ }
144
+
145
+ // positioning
146
+ .dropdown-menu-right,
147
+ .menu-right {
148
+ // position
149
+ right: 0;
150
+ left: auto;
151
+ transform-origin: 100% 0;
152
+
153
+ .dropup & {
154
+ transform-origin: 100% 100%;
155
+ }
156
+ }
157
+
158
+ // size
159
+ .dropdown-menu-sm,
160
+ .menu-cascading {
161
+ font-size: $menu-font-size-cascading;
162
+ line-height: $menu-line-height-cascading;
163
+ padding: $menu-padding-y-cascading 0;
164
+ }
165
+
166
+ //
167
+ // backdrop to catch body clicks on mobile
168
+ //
169
+ .dropdown-backdrop {
170
+ position: fixed;
171
+ top: 0;
172
+ right: 0;
173
+ bottom: 0;
174
+ left: 0;
175
+ z-index: (map-get($menu-elevation-shadow, elevation) - 1);
176
+ }
177
+
178
+ //
179
+ // button, link and more within the dropdown menu
180
+ //
181
+ .dropdown-item,
182
+ .menu-item {
183
+ background: none;
184
+ border: 0;
185
+ clear: both;
186
+ color: $menu-link-color;
187
+ display: block;
188
+ font-weight: normal;
189
+ padding: $menu-link-padding;
190
+ position: relative;
191
+ text-align: inherit;
192
+ white-space: nowrap;
193
+ width: 100%;
194
+ @include transition-standard(background-color, color);
195
+
196
+ // active, focus, hover
197
+ @include active-focus-hover {
198
+ background-color: $menu-link-bg-active;
199
+ color: $menu-link-color;
200
+
201
+ @if ($link-decoration-active != "none") {
202
+ text-decoration: none;
203
+ }
204
+ }
205
+
206
+ // disabled
207
+ &.disabled {
208
+ background-color: transparent;
209
+ color: $menu-link-color-disabled;
210
+ cursor: $cursor-disabled;
211
+ }
212
+
213
+ // size
214
+ .dropdown-menu-sm &,
215
+ .menu-cascading & {
216
+ padding: $menu-link-padding-cascading;
217
+ }
218
+ }
219
+
220
+ //
221
+ // divider
222
+ //
223
+ .dropdown-divider,
224
+ .menu-divider {
225
+ @include nav-divider($menu-divider-bg);
226
+ }
227
+
228
+ //
229
+ // header
230
+ //
231
+ .dropdown-header,
232
+ .menu-header {
233
+ color: $menu-link-color;
234
+ display: block;
235
+ font-size: $menu-font-size;
236
+ font-weight: bolder;
237
+ line-height: $menu-line-height;
238
+ margin: 0;
239
+ padding: $menu-link-padding;
240
+ white-space: nowrap;
241
+
242
+ .dropdown-menu-sm &,
243
+ .menu-cascading & {
244
+ padding: $menu-link-padding-cascading;
245
+ }
246
+ }
247
+
248
+ //
249
+ // toggle
250
+ //
251
+ .dropdown-toggle,
252
+ .menu-toggle {
253
+ &::after {
254
+ border-top: $caret-width solid;
255
+ border-right: $caret-width solid transparent;
256
+ border-left: $caret-width solid transparent;
257
+ content: "";
258
+ display: inline-block;
259
+ height: 0;
260
+ margin-left: $caret-width;
261
+ position: relative;
262
+ top: -1px;
263
+ vertical-align: middle;
264
+ width: 0;
265
+ }
266
+
267
+ // active. focus, hover
268
+ &:focus {
269
+ outline: 0;
270
+ }
271
+ }
272
+
273
+ .dropup {
274
+ .dropdown-toggle,
275
+ .menu-toggle {
276
+ &::after {
277
+ border-top: 0;
278
+ border-bottom: $caret-width solid;
279
+ }
280
+ }
281
+ }
@@ -0,0 +1,289 @@
1
+ .navdrawer {
2
+ display: none;
3
+ overflow: hidden;
4
+ outline: 0;
5
+ position: fixed;
6
+ top: 0;
7
+ right: 0;
8
+ bottom: 0;
9
+ left: 0;
10
+ z-index: map-get($navdrawer-elevation-shadow, elevation);
11
+ }
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-sharp(opacity);
26
+
27
+ &.in {
28
+ opacity: 1;
29
+ @include transition-deceleration(opacity);
30
+ }
31
+ }
32
+
33
+ //
34
+ // content
35
+ //
36
+ .navdrawer-content {
37
+ background-color: $navdrawer-content-bg;
38
+ box-shadow: map-get($navdrawer-elevation-shadow, shadow);
39
+ max-width: calc(100% - #{$navdrawer-gutter-width});
40
+ overflow-x: hidden;
41
+ overflow-y: auto;
42
+ position: fixed;
43
+ top: 0;
44
+ bottom: 0;
45
+ left: 0;
46
+ transform: translate3d(-100%, 0, 0);
47
+ width: $navdrawer-width-mobile;
48
+ -webkit-overflow-scrolling: touch;
49
+ @include transition-sharp(transform);
50
+
51
+ // direction
52
+ .navdrawer-right & {
53
+ // position
54
+ right: 0;
55
+ left: auto;
56
+ transform: translate3d(100%, 0, 0);
57
+ }
58
+
59
+ // open
60
+ .navdrawer.in & {
61
+ transform: translate3d(0, 0, 0);
62
+ @include transition-deceleration(transform);
63
+ }
64
+ }
65
+
66
+ //
67
+ // misc
68
+ //
69
+ .navdrawer-body {
70
+ margin-bottom: $navdrawer-inner-spacer-y;
71
+ padding-right: $navdrawer-inner-spacer-x;
72
+ padding-left: $navdrawer-inner-spacer-x;
73
+ }
74
+
75
+ .navdrawer-divider {
76
+ @include nav-divider($navdrawer-divider-bg);
77
+ }
78
+
79
+ .navdrawer-header {
80
+ background-color: $navdrawer-header-bg;
81
+ border-bottom: $navdrawer-header-border-width solid $navdrawer-header-border-color;
82
+ display: block;
83
+ margin-bottom: $navdrawer-inner-spacer-y;
84
+ padding: ($navdrawer-inner-spacer-y * 2) $navdrawer-inner-spacer-x;
85
+ }
86
+
87
+ .navdrawer-subheader {
88
+ color: $navdrawer-subheader-color;
89
+ display: block;
90
+ font-weight: $navdrawer-subheader-font-weight;
91
+ height: $navdrawer-subheader-height;
92
+ line-height: 1;
93
+ margin-top: 0;
94
+ margin-bottom: 0;
95
+ padding: (($navdrawer-subheader-height - $navdrawer-subheader-font-size) / 2) $navdrawer-inner-spacer-x;
96
+ @include text-truncate;
97
+
98
+ .navdrawer-divider + & {
99
+ margin-top: ($navdrawer-inner-spacer-y * -1);
100
+ }
101
+ }
102
+
103
+ //
104
+ // nav
105
+ //
106
+ .navdrawer-nav {
107
+ margin-bottom: $navdrawer-inner-spacer-y;
108
+
109
+ .nav-item + .nav-item {
110
+ margin-top: 1px;
111
+ }
112
+
113
+ .nav-link {
114
+ color: $navdrawer-nav-link-color;
115
+ display: block;
116
+ font-size: $navdrawer-nav-link-font-size;
117
+ font-weight: $navdrawer-nav-link-font-weight;
118
+ line-height: 1;
119
+ padding: (($navdrawer-nav-link-height - $navdrawer-nav-link-font-size) / 2) $navdrawer-inner-spacer-x;
120
+ @include text-truncate;
121
+ @include transition-standard(background-color, color);
122
+
123
+ // active, focus, hover
124
+ @include active-focus-hover {
125
+ background-color: $navdrawer-nav-link-bg-active;
126
+ }
127
+
128
+ &:active {
129
+ color: $navdrawer-nav-link-color-active;
130
+ }
131
+
132
+ &:focus {
133
+ outline: 0;
134
+ }
135
+
136
+ // disabled
137
+ &.disabled {
138
+ background-color: transparent;
139
+ color: $navdrawer-nav-link-color-disabled;
140
+ }
141
+ }
142
+
143
+ .nav-link.active,
144
+ .active > .nav-link {
145
+ color: $navdrawer-nav-link-color-active;
146
+ }
147
+ }
148
+
149
+ .navdrawer-nav-icon {
150
+ color: $navdrawer-nav-icon-color;
151
+ width: $navdrawer-nav-icon-width;
152
+
153
+ .nav-link:active &,
154
+ .nav-link.active & {
155
+ color: $navdrawer-nav-link-color-active;
156
+ }
157
+ }
158
+
159
+ //
160
+ // permanent
161
+ //
162
+ @include media-breakpoint-up(lg) {
163
+ .navdrawer-permanent {
164
+ border-right: $navdrawer-border-width solid $navdrawer-border-color;
165
+ display: block !important;
166
+ // position
167
+ right: auto;
168
+ width: $navdrawer-width-mobile;
169
+
170
+ &.navdrawer-right {
171
+ border-right: 0;
172
+ border-left: $navdrawer-border-width solid $navdrawer-border-color;
173
+ // position
174
+ right: 0;
175
+ left: auto;
176
+ }
177
+
178
+ .navdrawer-content {
179
+ box-shadow: none;
180
+ max-width: none;
181
+ position: absolute;
182
+ transform: translate3d(0, 0, 0);
183
+ width: 100%;
184
+ }
185
+ }
186
+
187
+ // backdrop
188
+ .navdrawer-backdrop-permanent {
189
+ display: none;
190
+ }
191
+
192
+ // variation
193
+ .navdrawer-permanent-clipped,
194
+ .navdrawer-permanent-float {
195
+ // position
196
+ top: $toolbar-height;
197
+ z-index: (map-get($toolbar-elevation-shadow, elevation) - 1);
198
+ }
199
+
200
+ .navdrawer-permanent-clipped {
201
+ border-top: $navdrawer-border-width solid $navdrawer-border-color;
202
+ margin-top: ($navdrawer-border-width * -1);
203
+ }
204
+
205
+ .navdrawer-permanent-float {
206
+ border-right: 0;
207
+
208
+ &.navdrawer-right {
209
+ border-left: 0;
210
+ }
211
+
212
+ .navdrawer-content {
213
+ background-color: transparent;
214
+ }
215
+ }
216
+ }
217
+
218
+ //
219
+ // persistent
220
+ //
221
+ @include media-breakpoint-up(lg) {
222
+ .navdrawer-persistent {
223
+ // position
224
+ right: auto;
225
+ width: $navdrawer-width-mobile;
226
+
227
+ &.navdrawer-right {
228
+ // position
229
+ right: 0;
230
+ left: auto;
231
+ }
232
+
233
+ .navdrawer-content {
234
+ border-right: $navdrawer-border-width solid $navdrawer-border-color;
235
+ box-shadow: none;
236
+ max-width: none;
237
+ position: absolute;
238
+ width: 100%;
239
+ }
240
+
241
+ &.navdrawer-right .navdrawer-content {
242
+ border-right: 0;
243
+ border-left: $navdrawer-border-width solid $navdrawer-border-color;
244
+ }
245
+ }
246
+
247
+ // backdrop
248
+ .navdrawer-backdrop-persistent {
249
+ display: none;
250
+ }
251
+
252
+ // variation
253
+ .navdrawer-persistent-clipped {
254
+ border-top: $navdrawer-border-width solid $navdrawer-border-color;
255
+ margin-top: ($navdrawer-border-width * -1);
256
+ // position
257
+ top: $toolbar-height;
258
+ z-index: (map-get($toolbar-elevation-shadow, elevation) - 1);
259
+ }
260
+ }
261
+
262
+ //
263
+ // temporary
264
+ //
265
+ @include media-breakpoint-up(lg) {
266
+ .navdrawer-temporary {
267
+ overflow: visible;
268
+ // position
269
+ right: auto;
270
+ width: $navdrawer-width-mobile;
271
+
272
+ &.navdrawer-right {
273
+ // position
274
+ right: 0;
275
+ left: auto;
276
+ }
277
+
278
+ .navdrawer-content {
279
+ max-width: none;
280
+ position: absolute;
281
+ width: 100%;
282
+ }
283
+ }
284
+
285
+ // backdrop
286
+ .navdrawer-backdrop-temporary {
287
+ display: none;
288
+ }
289
+ }