mtl 1.0.3 → 1.1.0
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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/app/assets/javascripts/mtl.js +1 -1
- data/app/assets/javascripts/mtl/dropdown.coffee +3 -2
- data/app/assets/javascripts/mtl/modal.coffee +6 -11
- data/app/assets/stylesheets/mtl/extend/_dropdown.scss +0 -1
- data/app/assets/stylesheets/mtl/extend/_forms.scss +13 -3
- data/lib/mtl/version.rb +3 -2
- data/package.json +1 -1
- data/vendor/assets/javascripts/materialize/buttons.js +181 -5
- data/vendor/assets/javascripts/materialize/carousel.js +1 -1
- data/vendor/assets/javascripts/materialize/chips.js +75 -53
- data/vendor/assets/javascripts/materialize/dropdown.js +20 -20
- data/vendor/assets/javascripts/materialize/forms.js +3 -2
- data/vendor/assets/javascripts/materialize/global.js +56 -3
- data/vendor/assets/javascripts/materialize/init.js +3 -2
- data/vendor/assets/javascripts/materialize/modal.js +184 -0
- data/vendor/assets/javascripts/materialize/parallax.js +2 -2
- data/vendor/assets/javascripts/materialize/scrollspy.js +6 -5
- data/vendor/assets/javascripts/materialize/sideNav.js +193 -175
- data/vendor/assets/javascripts/materialize/tabs.js +30 -14
- data/vendor/assets/javascripts/materialize/toasts.js +29 -28
- data/vendor/assets/javascripts/materialize/tooltip.js +6 -0
- data/vendor/assets/stylesheets/materialize/_buttons.scss +78 -8
- data/vendor/assets/stylesheets/materialize/_cards.scss +2 -0
- data/vendor/assets/stylesheets/materialize/_chips.scss +15 -6
- data/vendor/assets/stylesheets/materialize/_dropdown.scss +9 -1
- data/vendor/assets/stylesheets/materialize/_global.scss +34 -15
- data/vendor/assets/stylesheets/materialize/_modal.scss +1 -1
- data/vendor/assets/stylesheets/materialize/_navbar.scss +11 -3
- data/vendor/assets/stylesheets/materialize/_sideNav.scss +6 -17
- data/vendor/assets/stylesheets/materialize/_tabs.scss +62 -19
- data/vendor/assets/stylesheets/materialize/_variables.scss +82 -82
- data/vendor/assets/stylesheets/materialize/_waves.scss +1 -1
- data/vendor/assets/stylesheets/materialize/forms/_input-fields.scss +13 -0
- data/vendor/assets/stylesheets/materialize/forms/_radio-buttons.scss +0 -2
- data/vendor/assets/stylesheets/materialize/forms/_select.scss +6 -1
- metadata +3 -3
- data/vendor/assets/javascripts/materialize/leanModal.js +0 -192
@@ -1,4 +1,12 @@
|
|
1
1
|
nav {
|
2
|
+
&.nav-extended {
|
3
|
+
height: auto;
|
4
|
+
|
5
|
+
.nav-wrapper {
|
6
|
+
height: auto;
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
2
10
|
color: $navbar-font-color;
|
3
11
|
@extend .z-depth-1;
|
4
12
|
background-color: $primary-color;
|
@@ -12,7 +20,7 @@ nav {
|
|
12
20
|
[class^="mdi-"], [class*="mdi-"],
|
13
21
|
i.material-icons {
|
14
22
|
display: block;
|
15
|
-
font-size:
|
23
|
+
font-size: 24px;
|
16
24
|
height: $navbar-height-mobile;
|
17
25
|
line-height: $navbar-height-mobile;
|
18
26
|
}
|
@@ -33,9 +41,9 @@ nav {
|
|
33
41
|
position: relative;
|
34
42
|
z-index: 1;
|
35
43
|
height: $navbar-height-mobile;
|
44
|
+
margin: 0 18px;
|
36
45
|
|
37
46
|
i {
|
38
|
-
font-size: 2.7rem;
|
39
47
|
height: $navbar-height-mobile;
|
40
48
|
line-height: $navbar-height-mobile;
|
41
49
|
}
|
@@ -165,7 +173,7 @@ nav {
|
|
165
173
|
.navbar-fixed {
|
166
174
|
position: relative;
|
167
175
|
height: $navbar-height-mobile;
|
168
|
-
z-index:
|
176
|
+
z-index: 997;
|
169
177
|
|
170
178
|
nav {
|
171
179
|
position: fixed;
|
@@ -11,7 +11,6 @@
|
|
11
11
|
padding-bottom: 60px;
|
12
12
|
background-color: $sidenav-bg-color;
|
13
13
|
z-index: 999;
|
14
|
-
backface-visibility: hidden;
|
15
14
|
overflow-y: auto;
|
16
15
|
will-change: transform;
|
17
16
|
backface-visibility: hidden;
|
@@ -93,18 +92,18 @@
|
|
93
92
|
}
|
94
93
|
|
95
94
|
.userView {
|
96
|
-
overflow: hidden;
|
97
95
|
position: relative;
|
98
96
|
padding: ($sidenav-padding * 2) ($sidenav-padding * 2) 0;
|
99
97
|
margin-bottom: $sidenav-padding / 2;
|
100
98
|
|
101
|
-
a {
|
99
|
+
& > a {
|
102
100
|
&:hover { background-color: transparent; }
|
103
101
|
height: auto;
|
104
102
|
padding: 0;
|
105
103
|
}
|
106
104
|
|
107
105
|
.background {
|
106
|
+
overflow: hidden;
|
108
107
|
position: absolute;
|
109
108
|
top: 0;
|
110
109
|
right: 0;
|
@@ -124,7 +123,7 @@
|
|
124
123
|
|
125
124
|
.name,
|
126
125
|
.email {
|
127
|
-
font-
|
126
|
+
font-size: $sidenav-font-size;
|
128
127
|
line-height: 24px;
|
129
128
|
}
|
130
129
|
|
@@ -151,16 +150,6 @@
|
|
151
150
|
}
|
152
151
|
|
153
152
|
|
154
|
-
// Hidden side-nav for all sizes
|
155
|
-
.side-nav.fixed {
|
156
|
-
a {
|
157
|
-
display: block;
|
158
|
-
padding: 0 $sidenav-padding;
|
159
|
-
color: $sidenav-font-color;
|
160
|
-
}
|
161
|
-
}
|
162
|
-
|
163
|
-
|
164
153
|
// Fixed side-nav shown
|
165
154
|
.side-nav.fixed {
|
166
155
|
left: 0;
|
@@ -196,8 +185,8 @@
|
|
196
185
|
}
|
197
186
|
|
198
187
|
|
199
|
-
.side-nav .collapsible-body li.active,
|
200
|
-
.side-nav.fixed .collapsible-body li.active {
|
188
|
+
.side-nav .collapsible-body > ul:not(.collapsible) > li.active,
|
189
|
+
.side-nav.fixed .collapsible-body > ul:not(.collapsible) > li.active {
|
201
190
|
background-color: $primary-color;
|
202
191
|
a {
|
203
192
|
color: $sidenav-bg-color;
|
@@ -213,7 +202,7 @@
|
|
213
202
|
|
214
203
|
height: 120vh;
|
215
204
|
background-color: rgba(0,0,0,.5);
|
216
|
-
z-index:
|
205
|
+
z-index: 997;
|
217
206
|
|
218
207
|
will-change: opacity;
|
219
208
|
}
|
@@ -1,48 +1,73 @@
|
|
1
1
|
.tabs {
|
2
|
-
|
2
|
+
&.tabs-transparent {
|
3
|
+
background-color: transparent;
|
4
|
+
|
5
|
+
.tab a,
|
6
|
+
.tab.disabled a,
|
7
|
+
.tab.disabled a:hover {
|
8
|
+
color: rgba(255,255,255,0.7);
|
9
|
+
}
|
10
|
+
|
11
|
+
.tab a:hover,
|
12
|
+
.tab a.active {
|
13
|
+
color: #fff;
|
14
|
+
}
|
15
|
+
|
16
|
+
.indicator {
|
17
|
+
background-color: #fff;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
&.tabs-fixed-width {
|
22
|
+
display: flex;
|
23
|
+
|
24
|
+
.tab {
|
25
|
+
-webkit-box-flex: 1;
|
26
|
+
-webkit-flex-grow: 1;
|
27
|
+
-ms-flex-positive: 1;
|
28
|
+
flex-grow: 1;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
3
32
|
position: relative;
|
4
33
|
overflow-x: auto;
|
5
34
|
overflow-y: hidden;
|
6
35
|
height: 48px;
|
36
|
+
width: 100%;
|
7
37
|
background-color: $tabs-bg-color;
|
8
38
|
margin: 0 auto;
|
9
|
-
width: 100%;
|
10
39
|
white-space: nowrap;
|
11
40
|
|
12
41
|
.tab {
|
13
|
-
|
14
|
-
-webkit-flex-grow: 1;
|
15
|
-
-ms-flex-positive: 1;
|
16
|
-
flex-grow: 1;
|
17
|
-
display: block;
|
18
|
-
float: left;
|
42
|
+
display: inline-block;
|
19
43
|
text-align: center;
|
20
44
|
line-height: 48px;
|
21
45
|
height: 48px;
|
22
46
|
padding: 0;
|
23
47
|
margin: 0;
|
24
48
|
text-transform: uppercase;
|
25
|
-
text-overflow: ellipsis;
|
26
|
-
overflow: hidden;
|
27
|
-
letter-spacing: .8px;
|
28
|
-
width: 15%;
|
29
|
-
min-width: 80px;
|
30
49
|
|
31
50
|
a {
|
32
|
-
|
51
|
+
&:hover,
|
52
|
+
&.active {
|
53
|
+
background-color: transparent;
|
54
|
+
color: $tabs-text-color;
|
55
|
+
}
|
56
|
+
|
57
|
+
color: rgba($tabs-text-color, .7);
|
33
58
|
display: block;
|
34
59
|
width: 100%;
|
35
60
|
height: 100%;
|
61
|
+
padding: 0 24px;
|
62
|
+
font-size: 14px;
|
36
63
|
text-overflow: ellipsis;
|
37
64
|
overflow: hidden;
|
38
65
|
transition: color .28s ease;
|
39
|
-
&:hover {
|
40
|
-
color: lighten($tabs-text-color, 20%);
|
41
|
-
}
|
42
66
|
}
|
43
67
|
|
44
|
-
&.disabled a
|
45
|
-
|
68
|
+
&.disabled a,
|
69
|
+
&.disabled a:hover {
|
70
|
+
color: rgba($tabs-text-color, .7);
|
46
71
|
cursor: default;
|
47
72
|
}
|
48
73
|
}
|
@@ -54,3 +79,21 @@
|
|
54
79
|
will-change: left, right;
|
55
80
|
}
|
56
81
|
}
|
82
|
+
|
83
|
+
// Fixed sideNav hide on smaller
|
84
|
+
@media #{$medium-and-down} {
|
85
|
+
.tabs {
|
86
|
+
display: flex;
|
87
|
+
|
88
|
+
.tab {
|
89
|
+
-webkit-box-flex: 1;
|
90
|
+
-webkit-flex-grow: 1;
|
91
|
+
-ms-flex-positive: 1;
|
92
|
+
flex-grow: 1;
|
93
|
+
|
94
|
+
a {
|
95
|
+
padding: 0 12px;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
@@ -1,37 +1,37 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
1
|
+
// ==========================================================================
|
2
|
+
// Materialize variables
|
3
|
+
// ==========================================================================
|
4
|
+
//
|
5
|
+
// Table of Contents:
|
6
|
+
//
|
7
|
+
// 1. Colors
|
8
|
+
// 2. Badges
|
9
|
+
// 3. Buttons
|
10
|
+
// 4. Cards
|
11
|
+
// 5. Collapsible
|
12
|
+
// 6. Chips
|
13
|
+
// 7. Date Picker
|
14
|
+
// 8. Dropdown
|
15
|
+
// 10. Forms
|
16
|
+
// 11. Global
|
17
|
+
// 12. Grid
|
18
|
+
// 13. Navigation Bar
|
19
|
+
// 14. Side Navigation
|
20
|
+
// 15. Photo Slider
|
21
|
+
// 16. Spinners | Loaders
|
22
|
+
// 17. Tabs
|
23
|
+
// 18. Tables
|
24
|
+
// 19. Toasts
|
25
|
+
// 20. Typography
|
26
|
+
// 21. Footer
|
27
|
+
// 22. Flow Text
|
28
|
+
// 23. Collections
|
29
|
+
// 24. Progress Bar
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
// 1. Colors
|
34
|
+
// ==========================================================================
|
35
35
|
|
36
36
|
$primary-color: color("materialize-red", "lighten-2") !default;
|
37
37
|
$primary-color-light: lighten($primary-color, 15%) !default;
|
@@ -43,14 +43,14 @@ $error-color: color("red", "base") !default;
|
|
43
43
|
$link-color: color("light-blue", "darken-1") !default;
|
44
44
|
|
45
45
|
|
46
|
-
|
47
|
-
|
46
|
+
// 2. Badges
|
47
|
+
// ==========================================================================
|
48
48
|
|
49
49
|
$badge-bg-color: $secondary-color !default;
|
50
50
|
|
51
51
|
|
52
|
-
|
53
|
-
|
52
|
+
// 3. Buttons
|
53
|
+
// ==========================================================================
|
54
54
|
|
55
55
|
// Shared styles
|
56
56
|
$button-border: none !default;
|
@@ -81,13 +81,13 @@ $button-flat-disabled-color: lighten(#999, 10%) !default;
|
|
81
81
|
$button-floating-background: $secondary-color !default;
|
82
82
|
$button-floating-background-hover: $button-floating-background !default;
|
83
83
|
$button-floating-color: #fff !default;
|
84
|
-
$button-floating-size:
|
85
|
-
$button-floating-large-size:
|
84
|
+
$button-floating-size: 40px !default;
|
85
|
+
$button-floating-large-size: 56px !default;
|
86
86
|
$button-floating-radius: 50% !default;
|
87
87
|
|
88
88
|
|
89
|
-
|
90
|
-
|
89
|
+
// 4. Cards
|
90
|
+
// ==========================================================================
|
91
91
|
|
92
92
|
$card-padding: 20px !default;
|
93
93
|
$card-bg-color: #fff !default;
|
@@ -95,16 +95,16 @@ $card-link-color: color("orange", "accent-2") !default;
|
|
95
95
|
$card-link-color-light: lighten($card-link-color, 20%) !default;
|
96
96
|
|
97
97
|
|
98
|
-
|
99
|
-
|
98
|
+
// 5. Collapsible
|
99
|
+
// ==========================================================================
|
100
100
|
|
101
101
|
$collapsible-height: 3rem !default;
|
102
102
|
$collapsible-header-color: #fff !default;
|
103
103
|
$collapsible-border-color: #ddd !default;
|
104
104
|
|
105
105
|
|
106
|
-
|
107
|
-
|
106
|
+
// 6. Chips
|
107
|
+
// ==========================================================================
|
108
108
|
|
109
109
|
$chip-bg-color: #e4e4e4 !default;
|
110
110
|
$chip-border-color: #9e9e9e !default;
|
@@ -112,8 +112,8 @@ $chip-selected-color: #26a69a !default;
|
|
112
112
|
$chip-margin: 5px !default;
|
113
113
|
|
114
114
|
|
115
|
-
|
116
|
-
|
115
|
+
// 7. Date Picker
|
116
|
+
// ==========================================================================
|
117
117
|
|
118
118
|
$datepicker-weekday-bg: darken($secondary-color, 7%) !default;
|
119
119
|
$datepicker-date-bg: $secondary-color !default;
|
@@ -123,8 +123,8 @@ $datepicker-selected: $secondary-color !default;
|
|
123
123
|
$datepicker-selected-outfocus: desaturate(lighten($secondary-color, 35%), 15%) !default;
|
124
124
|
|
125
125
|
|
126
|
-
|
127
|
-
|
126
|
+
// 8. Dropdown
|
127
|
+
// ==========================================================================
|
128
128
|
|
129
129
|
$dropdown-bg-color: #fff !default;
|
130
130
|
$dropdown-hover-bg-color: #eee !default;
|
@@ -132,14 +132,14 @@ $dropdown-color: $secondary-color !default;
|
|
132
132
|
$dropdown-item-height: 50px !default;
|
133
133
|
|
134
134
|
|
135
|
-
|
136
|
-
|
135
|
+
// 9. Fonts
|
136
|
+
// ==========================================================================
|
137
137
|
|
138
138
|
$roboto-font-path: "../fonts/roboto/" !default;
|
139
139
|
|
140
140
|
|
141
|
-
|
142
|
-
|
141
|
+
// 10. Forms
|
142
|
+
// ==========================================================================
|
143
143
|
|
144
144
|
// Text Inputs + Textarea
|
145
145
|
$input-height: 3rem !default;
|
@@ -186,8 +186,8 @@ $switch-unchecked-lever-bg: #818181 !default;
|
|
186
186
|
$switch-radius: 15px !default;
|
187
187
|
|
188
188
|
|
189
|
-
|
190
|
-
|
189
|
+
// 11. Global
|
190
|
+
// ==========================================================================
|
191
191
|
|
192
192
|
// Media Query Ranges
|
193
193
|
$small-screen-up: 601px !default;
|
@@ -204,8 +204,8 @@ $medium-and-down: "only screen and (max-width : #{$medium-screen})" !default;
|
|
204
204
|
$medium-only: "only screen and (min-width : #{$small-screen-up}) and (max-width : #{$medium-screen})" !default;
|
205
205
|
|
206
206
|
|
207
|
-
|
208
|
-
|
207
|
+
// 12. Grid
|
208
|
+
// ==========================================================================
|
209
209
|
|
210
210
|
$num-cols: 12 !default;
|
211
211
|
$gutter-width: 1.5rem !default;
|
@@ -213,8 +213,8 @@ $element-top-margin: $gutter-width/3 !default;
|
|
213
213
|
$element-bottom-margin: ($gutter-width*2)/3 !default;
|
214
214
|
|
215
215
|
|
216
|
-
|
217
|
-
|
216
|
+
// 13. Navigation Bar
|
217
|
+
// ==========================================================================
|
218
218
|
|
219
219
|
$navbar-height: 64px !default;
|
220
220
|
$navbar-height-mobile: 56px !default;
|
@@ -222,8 +222,8 @@ $navbar-font-size: 1rem !default;
|
|
222
222
|
$navbar-font-color: #fff !default;
|
223
223
|
$navbar-brand-font-size: 2.1rem !default;
|
224
224
|
|
225
|
-
|
226
|
-
|
225
|
+
// 14. Side Navigation
|
226
|
+
// ==========================================================================
|
227
227
|
|
228
228
|
$sidenav-font-size: 14px !default;
|
229
229
|
$sidenav-font-color: rgba(0,0,0,.87) !default;
|
@@ -232,45 +232,45 @@ $sidenav-padding: 16px !default;
|
|
232
232
|
$sidenav-item-height: 48px !default;
|
233
233
|
|
234
234
|
|
235
|
-
|
236
|
-
|
235
|
+
// 15. Photo Slider
|
236
|
+
// ==========================================================================
|
237
237
|
|
238
238
|
$slider-bg-color: color('grey', 'base') !default;
|
239
239
|
$slider-bg-color-light: color('grey', 'lighten-2') !default;
|
240
240
|
$slider-indicator-color: color('green', 'base') !default;
|
241
241
|
|
242
242
|
|
243
|
-
|
244
|
-
|
243
|
+
// 16. Spinners | Loaders
|
244
|
+
// ==========================================================================
|
245
245
|
|
246
246
|
$spinner-default-color: $secondary-color !default;
|
247
247
|
|
248
248
|
|
249
|
-
|
250
|
-
|
249
|
+
// 17. Tabs
|
250
|
+
// ==========================================================================
|
251
251
|
|
252
252
|
$tabs-underline-color: $primary-color-light !default;
|
253
253
|
$tabs-text-color: $primary-color !default;
|
254
254
|
$tabs-bg-color: #fff !default;
|
255
255
|
|
256
256
|
|
257
|
-
|
258
|
-
|
257
|
+
// 18. Tables
|
258
|
+
// ==========================================================================
|
259
259
|
|
260
260
|
$table-border-color: #d0d0d0 !default;
|
261
261
|
$table-striped-color: #f2f2f2 !default;
|
262
262
|
|
263
263
|
|
264
|
-
|
265
|
-
|
264
|
+
// 19. Toasts
|
265
|
+
// ==========================================================================
|
266
266
|
|
267
267
|
$toast-height: 48px !default;
|
268
268
|
$toast-color: #323232 !default;
|
269
269
|
$toast-text-color: #fff !default;
|
270
270
|
|
271
271
|
|
272
|
-
|
273
|
-
|
272
|
+
// 20. Typography
|
273
|
+
// ==========================================================================
|
274
274
|
|
275
275
|
$off-black: rgba(0, 0, 0, 0.87) !default;
|
276
276
|
// Header Styles
|
@@ -282,22 +282,22 @@ $h5-fontsize: 1.64rem !default;
|
|
282
282
|
$h6-fontsize: 1rem !default;
|
283
283
|
|
284
284
|
|
285
|
-
|
286
|
-
|
285
|
+
// 21. Footer
|
286
|
+
// ==========================================================================
|
287
287
|
|
288
288
|
$footer-bg-color: $primary-color !default;
|
289
289
|
|
290
290
|
|
291
|
-
|
292
|
-
|
291
|
+
// 22. Flow Text
|
292
|
+
// ==========================================================================
|
293
293
|
|
294
294
|
$range : $large-screen - $small-screen !default;
|
295
295
|
$intervals: 20 !default;
|
296
296
|
$interval-size: $range / $intervals !default;
|
297
297
|
|
298
298
|
|
299
|
-
|
300
|
-
|
299
|
+
// 23. Collections
|
300
|
+
// ==========================================================================
|
301
301
|
|
302
302
|
$collection-border-color: #e0e0e0 !default;
|
303
303
|
$collection-bg-color: #fff !default;
|
@@ -307,7 +307,7 @@ $collection-hover-bg-color: #ddd !default;
|
|
307
307
|
$collection-link-color: $secondary-color !default;
|
308
308
|
|
309
309
|
|
310
|
-
|
311
|
-
|
310
|
+
// 24. Progress Bar
|
311
|
+
// ==========================================================================
|
312
312
|
|
313
313
|
$progress-bar-color: $secondary-color !default;
|