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,40 +1,73 @@
|
|
1
|
+
// Utilities for common `display` values
|
2
|
+
|
1
3
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
2
4
|
@include media-breakpoint-up($breakpoint) {
|
3
5
|
$infix: breakpoint-infix($breakpoint);
|
4
6
|
|
7
|
+
.d#{$infix}-block {
|
8
|
+
display: block !important;
|
9
|
+
}
|
10
|
+
|
11
|
+
.d#{$infix}-flex {
|
12
|
+
display: flex !important;
|
13
|
+
}
|
14
|
+
|
15
|
+
.d#{$infix}-inline {
|
16
|
+
display: inline !important;
|
17
|
+
}
|
18
|
+
|
19
|
+
.d#{$infix}-inline-block {
|
20
|
+
display: inline-block !important;
|
21
|
+
}
|
22
|
+
|
23
|
+
.d#{$infix}-inline-flex {
|
24
|
+
display: inline-flex !important;
|
25
|
+
}
|
26
|
+
|
5
27
|
.d#{$infix}-none {
|
6
28
|
display: none !important;
|
7
29
|
}
|
8
30
|
|
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
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
31
|
+
.d#{$infix}-table {
|
32
|
+
display: table !important;
|
33
|
+
}
|
34
|
+
|
35
|
+
.d#{$infix}-table-cell {
|
36
|
+
display: table-cell !important;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
// Utilities for toggling `display` in print
|
44
|
+
|
45
|
+
.d-print-block {
|
46
|
+
display: none !important;
|
47
|
+
|
48
|
+
@media print {
|
49
|
+
display: block !important;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
.d-print-inline {
|
54
|
+
display: none !important;
|
55
|
+
|
56
|
+
@media print {
|
57
|
+
display: inline !important;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
.d-print-inline-block {
|
62
|
+
display: none !important;
|
63
|
+
|
64
|
+
@media print {
|
65
|
+
display: inline-block !important;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
.d-print-none {
|
70
|
+
@media print {
|
71
|
+
display: none !important;
|
39
72
|
}
|
40
73
|
}
|
@@ -2,139 +2,144 @@
|
|
2
2
|
@include media-breakpoint-up($breakpoint) {
|
3
3
|
$infix: breakpoint-infix($breakpoint);
|
4
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
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
5
|
+
.align-content#{$infix}-around {
|
6
|
+
align-content: space-around !important;
|
7
|
+
}
|
8
|
+
|
9
|
+
.align-content#{$infix}-between {
|
10
|
+
align-content: space-between !important;
|
11
|
+
}
|
12
|
+
|
13
|
+
.align-content#{$infix}-center {
|
14
|
+
align-content: center !important;
|
15
|
+
}
|
16
|
+
|
17
|
+
.align-content#{$infix}-end {
|
18
|
+
align-content: flex-end !important;
|
19
|
+
}
|
20
|
+
|
21
|
+
.align-content#{$infix}-start {
|
22
|
+
align-content: flex-start !important;
|
23
|
+
}
|
24
|
+
|
25
|
+
.align-content#{$infix}-stretch {
|
26
|
+
align-content: stretch !important;
|
27
|
+
}
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
.align-items#{$infix}-baseline {
|
32
|
+
align-items: baseline !important;
|
33
|
+
}
|
34
|
+
|
35
|
+
.align-items#{$infix}-center {
|
36
|
+
align-items: center !important;
|
37
|
+
}
|
38
|
+
|
39
|
+
.align-items#{$infix}-start {
|
40
|
+
align-items: flex-start !important;
|
41
|
+
}
|
42
|
+
|
43
|
+
.align-items#{$infix}-end {
|
44
|
+
align-items: flex-end !important;
|
45
|
+
}
|
46
|
+
|
47
|
+
.align-items#{$infix}-stretch {
|
48
|
+
align-items: stretch !important;
|
49
|
+
}
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
.align-self#{$infix}-auto {
|
54
|
+
align-self: auto !important;
|
55
|
+
}
|
56
|
+
|
57
|
+
.align-self#{$infix}-baseline {
|
58
|
+
align-self: baseline !important;
|
59
|
+
}
|
60
|
+
|
61
|
+
.align-self#{$infix}-center {
|
62
|
+
align-self: center !important;
|
63
|
+
}
|
64
|
+
|
65
|
+
.align-self#{$infix}-end {
|
66
|
+
align-self: flex-end !important;
|
67
|
+
}
|
68
|
+
|
69
|
+
.align-self#{$infix}-start {
|
70
|
+
align-self: flex-start !important;
|
71
|
+
}
|
72
|
+
|
73
|
+
.align-self#{$infix}-stretch {
|
74
|
+
align-self: stretch !important;
|
75
|
+
}
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
.flex#{$infix}-column {
|
80
|
+
flex-direction: column !important;
|
81
|
+
}
|
82
|
+
|
83
|
+
.flex#{$infix}-column-reverse {
|
84
|
+
flex-direction: column-reverse !important;
|
85
|
+
}
|
86
|
+
|
87
|
+
.flex#{$infix}-row {
|
88
|
+
flex-direction: row !important;
|
89
|
+
}
|
90
|
+
|
91
|
+
.flex#{$infix}-row-reverse {
|
92
|
+
flex-direction: row-reverse !important;
|
93
|
+
}
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
.flex#{$infix}-nowrap {
|
98
|
+
flex-wrap: nowrap !important;
|
99
|
+
}
|
100
|
+
|
101
|
+
.flex#{$infix}-wrap {
|
102
|
+
flex-wrap: wrap !important;
|
103
|
+
}
|
104
|
+
|
105
|
+
.flex#{$infix}-wrap-reverse {
|
106
|
+
flex-wrap: wrap-reverse !important;
|
107
|
+
}
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
.justify-content#{$infix}-around {
|
112
|
+
justify-content: space-around !important;
|
113
|
+
}
|
114
|
+
|
115
|
+
.justify-content#{$infix}-between {
|
116
|
+
justify-content: space-between !important;
|
117
|
+
}
|
118
|
+
|
119
|
+
.justify-content#{$infix}-center {
|
120
|
+
justify-content: center !important;
|
121
|
+
}
|
122
|
+
|
123
|
+
.justify-content#{$infix}-end {
|
124
|
+
justify-content: flex-end !important;
|
125
|
+
}
|
126
|
+
|
127
|
+
.justify-content#{$infix}-start {
|
128
|
+
justify-content: flex-start !important;
|
129
|
+
}
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
.order#{$infix}-first {
|
134
|
+
order: -1;
|
135
|
+
}
|
136
|
+
|
137
|
+
.order#{$infix}-last {
|
138
|
+
order: 1;
|
139
|
+
}
|
140
|
+
|
141
|
+
.order#{$infix}-0 {
|
142
|
+
order: 0;
|
143
|
+
}
|
139
144
|
}
|
140
145
|
}
|
@@ -1,10 +1,8 @@
|
|
1
1
|
.material-icons {
|
2
|
-
|
3
|
-
line-height: #{strip-unit($font-size-base) / (($material-icon-size / $font-size-root) / strip-unit($font-size-base))}em;
|
4
|
-
vertical-align: middle;
|
2
|
+
@include reset-material-icons;
|
5
3
|
}
|
6
4
|
|
7
5
|
.material-icons-inline {
|
8
|
-
|
9
|
-
|
6
|
+
font-size: inherit;
|
7
|
+
line-height: 1;
|
10
8
|
}
|
@@ -1,24 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
left: 0;
|
9
|
-
z-index: map-get($toolbar-elevation-shadow, elevation);
|
10
|
-
}
|
1
|
+
.fixed-bottom {
|
2
|
+
position: fixed;
|
3
|
+
right: 0;
|
4
|
+
bottom: 0;
|
5
|
+
left: 0;
|
6
|
+
z-index: map-get($toolbar-elevation-shadow, elevation);
|
7
|
+
}
|
11
8
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
9
|
+
.fixed-top {
|
10
|
+
position: fixed;
|
11
|
+
top: 0;
|
12
|
+
right: 0;
|
13
|
+
left: 0;
|
14
|
+
z-index: map-get($toolbar-elevation-shadow, elevation);
|
15
|
+
}
|
19
16
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
17
|
+
.sticky-top {
|
18
|
+
position: sticky;
|
19
|
+
top: 0;
|
20
|
+
z-index: map-get($toolbar-elevation-shadow, elevation);
|
21
|
+
}
|
@@ -1,16 +1,15 @@
|
|
1
|
-
|
2
|
-
@each $
|
3
|
-
|
4
|
-
|
5
|
-
#{$prop}: $value !important;
|
6
|
-
}
|
1
|
+
@each $prop, $prop-abbr in (height: h, width: w) {
|
2
|
+
@each $size, $value in $sizes {
|
3
|
+
.#{$prop-abbr}-#{$size} {
|
4
|
+
#{$prop}: $value !important;
|
7
5
|
}
|
8
6
|
}
|
7
|
+
}
|
9
8
|
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
.mh-100 {
|
10
|
+
max-height: 100% !important;
|
11
|
+
}
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
.mw-100 {
|
14
|
+
max-width: 100% !important;
|
15
|
+
}
|