materialize-sass 0.97.5 → 0.97.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/materialize.js +230 -141
- data/app/assets/javascripts/materialize.min.js +6 -6
- data/app/assets/javascripts/materialize/character_counter.js +20 -7
- data/app/assets/javascripts/materialize/collapsible.js +1 -1
- data/app/assets/javascripts/materialize/date_picker/picker.js +5 -5
- data/app/assets/javascripts/materialize/dropdown.js +12 -3
- data/app/assets/javascripts/materialize/extras/nouislider.js +1 -1
- data/app/assets/javascripts/materialize/extras/nouislider.min.js +0 -5
- data/app/assets/javascripts/materialize/forms.js +6 -5
- data/app/assets/javascripts/materialize/init.js +26 -9
- data/app/assets/javascripts/materialize/initial.js +2 -2
- data/app/assets/javascripts/materialize/leanModal.js +19 -6
- data/app/assets/javascripts/materialize/materialbox.js +9 -9
- data/app/assets/javascripts/materialize/pushpin.js +48 -53
- data/app/assets/javascripts/materialize/scrollFire.js +7 -3
- data/app/assets/javascripts/materialize/scrollspy.js +6 -6
- data/app/assets/javascripts/materialize/sideNav.js +66 -37
- data/app/assets/javascripts/materialize/slider.js +2 -2
- data/app/assets/javascripts/materialize/tabs.js +12 -6
- data/app/assets/stylesheets/materialize.scss +1 -1
- data/app/assets/stylesheets/materialize/components/_buttons.scss +49 -33
- data/app/assets/stylesheets/materialize/components/_cards.scss +9 -5
- data/app/assets/stylesheets/materialize/components/_color.scss +21 -21
- data/app/assets/stylesheets/materialize/components/_global.scss +27 -11
- data/app/assets/stylesheets/materialize/components/_icons-material-design.scss +0 -3258
- data/app/assets/stylesheets/materialize/components/_materialbox.scss +1 -1
- data/app/assets/stylesheets/materialize/components/_navbar.scss +1 -1
- data/app/assets/stylesheets/materialize/components/_normalize.scss +9 -12
- data/app/assets/stylesheets/materialize/components/_sideNav.scss +16 -11
- data/app/assets/stylesheets/materialize/components/_tooltip.scss +1 -0
- data/app/assets/stylesheets/materialize/components/_variables.scss +181 -34
- data/app/assets/stylesheets/materialize/components/date_picker/_default.date.scss +1 -1
- data/app/assets/stylesheets/materialize/components/date_picker/_default.scss +2 -2
- data/app/assets/stylesheets/materialize/components/forms/_checkboxes.scss +220 -0
- data/app/assets/stylesheets/materialize/components/forms/_file-input.scss +38 -0
- data/app/assets/stylesheets/materialize/components/forms/_forms.scss +22 -0
- data/app/assets/stylesheets/materialize/components/forms/_input-fields.scss +254 -0
- data/app/assets/stylesheets/materialize/components/forms/_radio-buttons.scss +119 -0
- data/app/assets/stylesheets/materialize/components/forms/_range.scss +159 -0
- data/app/assets/stylesheets/materialize/components/forms/_select.scss +116 -0
- data/app/assets/stylesheets/materialize/components/forms/_switches.scss +78 -0
- data/app/assets/stylesheets/materialize/extras/nouislider.css +2 -1
- data/lib/materialize-sass/version.rb +1 -1
- metadata +10 -9
- data/app/assets/fonts/material-design-icons/LICENSE.txt +0 -428
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.eot +0 -0
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.svg +0 -769
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.ttf +0 -0
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.woff +0 -0
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.woff2 +0 -0
- data/app/assets/stylesheets/materialize/components/_form.scss +0 -954
@@ -0,0 +1,119 @@
|
|
1
|
+
/* Radio Buttons
|
2
|
+
========================================================================== */
|
3
|
+
|
4
|
+
// Remove default Radio Buttons
|
5
|
+
[type="radio"]:not(:checked),
|
6
|
+
[type="radio"]:checked {
|
7
|
+
position: absolute;
|
8
|
+
left: -9999px;
|
9
|
+
opacity: 0;
|
10
|
+
}
|
11
|
+
|
12
|
+
[type="radio"]:not(:checked) + label,
|
13
|
+
[type="radio"]:checked + label {
|
14
|
+
position: relative;
|
15
|
+
padding-left: 35px;
|
16
|
+
cursor: pointer;
|
17
|
+
display: inline-block;
|
18
|
+
height: 25px;
|
19
|
+
line-height: 25px;
|
20
|
+
font-size: 1rem;
|
21
|
+
transition: .28s ease;
|
22
|
+
|
23
|
+
-khtml-user-select: none; /* webkit (konqueror) browsers */
|
24
|
+
user-select: none;
|
25
|
+
}
|
26
|
+
|
27
|
+
[type="radio"] + label:before,
|
28
|
+
[type="radio"] + label:after {
|
29
|
+
content: '';
|
30
|
+
position: absolute;
|
31
|
+
left: 0;
|
32
|
+
top: 0;
|
33
|
+
margin: 4px;
|
34
|
+
width: 16px;
|
35
|
+
height: 16px;
|
36
|
+
z-index: 0;
|
37
|
+
transition: .28s ease;
|
38
|
+
}
|
39
|
+
|
40
|
+
/* Unchecked styles */
|
41
|
+
[type="radio"]:not(:checked) + label:before,
|
42
|
+
[type="radio"]:not(:checked) + label:after,
|
43
|
+
[type="radio"]:checked + label:before,
|
44
|
+
[type="radio"]:checked + label:after,
|
45
|
+
[type="radio"].with-gap:checked + label:before,
|
46
|
+
[type="radio"].with-gap:checked + label:after {
|
47
|
+
border-radius: 50%;
|
48
|
+
}
|
49
|
+
|
50
|
+
[type="radio"]:not(:checked) + label:before,
|
51
|
+
[type="radio"]:not(:checked) + label:after {
|
52
|
+
border: 2px solid $radio-empty-color;
|
53
|
+
}
|
54
|
+
|
55
|
+
[type="radio"]:not(:checked) + label:after {
|
56
|
+
z-index: -1;
|
57
|
+
transform: scale(0);
|
58
|
+
}
|
59
|
+
|
60
|
+
/* Checked styles */
|
61
|
+
[type="radio"]:checked + label:before {
|
62
|
+
border: 2px solid transparent;
|
63
|
+
}
|
64
|
+
|
65
|
+
[type="radio"]:checked + label:after,
|
66
|
+
[type="radio"].with-gap:checked + label:before,
|
67
|
+
[type="radio"].with-gap:checked + label:after {
|
68
|
+
border: $radio-border;
|
69
|
+
}
|
70
|
+
|
71
|
+
[type="radio"]:checked + label:after,
|
72
|
+
[type="radio"].with-gap:checked + label:after {
|
73
|
+
background-color: $radio-fill-color;
|
74
|
+
z-index: 0;
|
75
|
+
}
|
76
|
+
|
77
|
+
[type="radio"]:checked + label:after {
|
78
|
+
transform: scale(1.02);
|
79
|
+
}
|
80
|
+
|
81
|
+
/* Radio With gap */
|
82
|
+
[type="radio"].with-gap:checked + label:after {
|
83
|
+
transform: scale(.5);
|
84
|
+
}
|
85
|
+
|
86
|
+
/* Focused styles */
|
87
|
+
[type="radio"].tabbed:focus + label:before {
|
88
|
+
box-shadow: 0 0 0 10px rgba(0,0,0,.1);
|
89
|
+
}
|
90
|
+
|
91
|
+
/* Disabled Radio With gap */
|
92
|
+
[type="radio"].with-gap:disabled:checked + label:before {
|
93
|
+
border: 2px solid $input-disabled-color;
|
94
|
+
}
|
95
|
+
|
96
|
+
[type="radio"].with-gap:disabled:checked + label:after {
|
97
|
+
border: none;
|
98
|
+
background-color: $input-disabled-color;
|
99
|
+
}
|
100
|
+
|
101
|
+
/* Disabled style */
|
102
|
+
[type="radio"]:disabled:not(:checked) + label:before,
|
103
|
+
[type="radio"]:disabled:checked + label:before {
|
104
|
+
background-color: transparent;
|
105
|
+
border-color: $input-disabled-color;
|
106
|
+
}
|
107
|
+
|
108
|
+
[type="radio"]:disabled + label {
|
109
|
+
color: $input-disabled-color;
|
110
|
+
}
|
111
|
+
|
112
|
+
[type="radio"]:disabled:not(:checked) + label:before {
|
113
|
+
border-color: $input-disabled-color;
|
114
|
+
}
|
115
|
+
|
116
|
+
[type="radio"]:disabled:checked + label:after {
|
117
|
+
background-color: $input-disabled-color;
|
118
|
+
border-color: $input-disabled-solid-color;
|
119
|
+
}
|
@@ -0,0 +1,159 @@
|
|
1
|
+
/* Range
|
2
|
+
========================================================================== */
|
3
|
+
|
4
|
+
.range-field {
|
5
|
+
position: relative;
|
6
|
+
}
|
7
|
+
|
8
|
+
input[type=range],
|
9
|
+
input[type=range] + .thumb {
|
10
|
+
@extend .no-select;
|
11
|
+
cursor: pointer;
|
12
|
+
}
|
13
|
+
|
14
|
+
input[type=range] {
|
15
|
+
position: relative;
|
16
|
+
background-color: transparent;
|
17
|
+
border: none;
|
18
|
+
outline: none;
|
19
|
+
width: 100%;
|
20
|
+
margin: 15px 0;
|
21
|
+
padding: 0;
|
22
|
+
|
23
|
+
&:focus {
|
24
|
+
outline: none;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
input[type=range] + .thumb {
|
29
|
+
position: absolute;
|
30
|
+
border: none;
|
31
|
+
height: 0;
|
32
|
+
width: 0;
|
33
|
+
border-radius: 50%;
|
34
|
+
background-color: $radio-fill-color;
|
35
|
+
top: 10px;
|
36
|
+
margin-left: -6px;
|
37
|
+
|
38
|
+
transform-origin: 50% 50%;
|
39
|
+
transform: rotate(-45deg);
|
40
|
+
|
41
|
+
.value {
|
42
|
+
display: block;
|
43
|
+
width: 30px;
|
44
|
+
text-align: center;
|
45
|
+
color: $radio-fill-color;
|
46
|
+
font-size: 0;
|
47
|
+
transform: rotate(45deg);
|
48
|
+
}
|
49
|
+
|
50
|
+
&.active {
|
51
|
+
border-radius: 50% 50% 50% 0;
|
52
|
+
|
53
|
+
.value {
|
54
|
+
color: $input-background;
|
55
|
+
margin-left: -1px;
|
56
|
+
margin-top: 8px;
|
57
|
+
font-size: 10px;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
// WebKit
|
63
|
+
input[type=range] {
|
64
|
+
-webkit-appearance: none;
|
65
|
+
}
|
66
|
+
|
67
|
+
input[type=range]::-webkit-slider-runnable-track {
|
68
|
+
height: $track-height;
|
69
|
+
background: #c2c0c2;
|
70
|
+
border: none;
|
71
|
+
}
|
72
|
+
|
73
|
+
input[type=range]::-webkit-slider-thumb {
|
74
|
+
-webkit-appearance: none;
|
75
|
+
border: none;
|
76
|
+
height: $range-height;
|
77
|
+
width: $range-width;
|
78
|
+
border-radius: 50%;
|
79
|
+
background-color: $radio-fill-color;
|
80
|
+
transform-origin: 50% 50%;
|
81
|
+
margin: -5px 0 0 0;
|
82
|
+
transition: .3s;
|
83
|
+
}
|
84
|
+
|
85
|
+
input[type=range]:focus::-webkit-slider-runnable-track {
|
86
|
+
background: #ccc;
|
87
|
+
}
|
88
|
+
|
89
|
+
// FireFox
|
90
|
+
input[type=range] {
|
91
|
+
/* fix for FF unable to apply focus style bug */
|
92
|
+
border: 1px solid white;
|
93
|
+
|
94
|
+
/*required for proper track sizing in FF*/
|
95
|
+
}
|
96
|
+
|
97
|
+
input[type=range]::-moz-range-track {
|
98
|
+
height: $track-height;
|
99
|
+
background: #ddd;
|
100
|
+
border: none;
|
101
|
+
}
|
102
|
+
|
103
|
+
input[type=range]::-moz-range-thumb {
|
104
|
+
border: none;
|
105
|
+
height: $range-height;
|
106
|
+
width: $range-width;
|
107
|
+
border-radius: 50%;
|
108
|
+
background: $radio-fill-color;
|
109
|
+
margin-top: -5px;
|
110
|
+
}
|
111
|
+
|
112
|
+
// hide the outline behind the border
|
113
|
+
input[type=range]:-moz-focusring {
|
114
|
+
outline: 1px solid #fff;
|
115
|
+
outline-offset: -1px;
|
116
|
+
}
|
117
|
+
|
118
|
+
input[type=range]:focus::-moz-range-track {
|
119
|
+
background: #ccc;
|
120
|
+
}
|
121
|
+
|
122
|
+
// IE 10+
|
123
|
+
input[type=range]::-ms-track {
|
124
|
+
height: $track-height;
|
125
|
+
|
126
|
+
// remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead
|
127
|
+
background: transparent;
|
128
|
+
|
129
|
+
// leave room for the larger thumb to overflow with a transparent border */
|
130
|
+
border-color: transparent;
|
131
|
+
border-width: 6px 0;
|
132
|
+
|
133
|
+
/*remove default tick marks*/
|
134
|
+
color: transparent;
|
135
|
+
}
|
136
|
+
|
137
|
+
input[type=range]::-ms-fill-lower {
|
138
|
+
background: #777;
|
139
|
+
}
|
140
|
+
|
141
|
+
input[type=range]::-ms-fill-upper {
|
142
|
+
background: #ddd;
|
143
|
+
}
|
144
|
+
|
145
|
+
input[type=range]::-ms-thumb {
|
146
|
+
border: none;
|
147
|
+
height: $range-height;
|
148
|
+
width: $range-width;
|
149
|
+
border-radius: 50%;
|
150
|
+
background: $radio-fill-color;
|
151
|
+
}
|
152
|
+
|
153
|
+
input[type=range]:focus::-ms-fill-lower {
|
154
|
+
background: #888;
|
155
|
+
}
|
156
|
+
|
157
|
+
input[type=range]:focus::-ms-fill-upper {
|
158
|
+
background: #ccc;
|
159
|
+
}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
/* Select Field
|
2
|
+
========================================================================== */
|
3
|
+
|
4
|
+
select { display: none; }
|
5
|
+
select.browser-default { display: block; }
|
6
|
+
|
7
|
+
select {
|
8
|
+
background-color: $select-background;
|
9
|
+
width: 100%;
|
10
|
+
padding: $select-padding;
|
11
|
+
border: $select-border;
|
12
|
+
border-radius: $select-radius;
|
13
|
+
height: $input-height;
|
14
|
+
}
|
15
|
+
|
16
|
+
.select-label {
|
17
|
+
position: absolute;
|
18
|
+
}
|
19
|
+
|
20
|
+
.select-wrapper {
|
21
|
+
position: relative;
|
22
|
+
|
23
|
+
input.select-dropdown {
|
24
|
+
position: relative;
|
25
|
+
cursor: pointer;
|
26
|
+
background-color: transparent;
|
27
|
+
border: none;
|
28
|
+
border-bottom: $input-border;
|
29
|
+
outline: none;
|
30
|
+
height: $input-height;
|
31
|
+
line-height: $input-height;
|
32
|
+
width: 100%;
|
33
|
+
font-size: $input-font-size;
|
34
|
+
margin: $input-margin;
|
35
|
+
padding: 0;
|
36
|
+
display: block;
|
37
|
+
}
|
38
|
+
|
39
|
+
span.caret {
|
40
|
+
color: initial;
|
41
|
+
position: absolute;
|
42
|
+
right: 0;
|
43
|
+
top: 16px;
|
44
|
+
font-size: 10px;
|
45
|
+
&.disabled {
|
46
|
+
color: $input-disabled-color;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
& + label {
|
51
|
+
position: absolute;
|
52
|
+
top: -14px;
|
53
|
+
font-size: $label-font-size;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
// Disabled styles
|
58
|
+
select:disabled {
|
59
|
+
color: rgba(0,0,0,.3);
|
60
|
+
}
|
61
|
+
|
62
|
+
.select-wrapper input.select-dropdown:disabled {
|
63
|
+
color: rgba(0,0,0,.3);
|
64
|
+
cursor: default;
|
65
|
+
-webkit-user-select: none; /* webkit (safari, chrome) browsers */
|
66
|
+
-moz-user-select: none; /* mozilla browsers */
|
67
|
+
-ms-user-select: none; /* IE10+ */
|
68
|
+
border-bottom: 1px solid rgba(0,0,0,.3);
|
69
|
+
}
|
70
|
+
|
71
|
+
.select-wrapper i {
|
72
|
+
color: $select-disabled-color;
|
73
|
+
}
|
74
|
+
|
75
|
+
.select-dropdown li.disabled,
|
76
|
+
.select-dropdown li.disabled > span,
|
77
|
+
.select-dropdown li.optgroup {
|
78
|
+
color: $select-disabled-color;
|
79
|
+
background-color: transparent;
|
80
|
+
}
|
81
|
+
|
82
|
+
// Prefix Icons
|
83
|
+
.prefix ~ .select-wrapper {
|
84
|
+
margin-left: 3rem;
|
85
|
+
width: 92%;
|
86
|
+
width: calc(100% - 3rem);
|
87
|
+
}
|
88
|
+
|
89
|
+
.prefix ~ label { margin-left: 3rem; }
|
90
|
+
|
91
|
+
// Icons
|
92
|
+
.select-dropdown li {
|
93
|
+
img {
|
94
|
+
height: $dropdown-item-height - 10;
|
95
|
+
width: $dropdown-item-height - 10;
|
96
|
+
margin: 5px 15px;
|
97
|
+
float: right;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
// Optgroup styles
|
102
|
+
.select-dropdown li.optgroup {
|
103
|
+
border-top: 1px solid $dropdown-hover-bg-color;
|
104
|
+
|
105
|
+
&.selected > span {
|
106
|
+
color: rgba(0, 0, 0, .7);
|
107
|
+
}
|
108
|
+
|
109
|
+
& > span {
|
110
|
+
color: rgba(0, 0, 0, .4);
|
111
|
+
}
|
112
|
+
|
113
|
+
& ~ li.optgroup-option {
|
114
|
+
padding-left: 1rem;
|
115
|
+
}
|
116
|
+
}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
/* Switch
|
2
|
+
========================================================================== */
|
3
|
+
|
4
|
+
.switch,
|
5
|
+
.switch * {
|
6
|
+
-webkit-user-select: none;
|
7
|
+
-moz-user-select: none;
|
8
|
+
-khtml-user-select: none;
|
9
|
+
-ms-user-select: none;
|
10
|
+
}
|
11
|
+
|
12
|
+
.switch label {
|
13
|
+
cursor: pointer;
|
14
|
+
}
|
15
|
+
|
16
|
+
.switch label input[type=checkbox] {
|
17
|
+
opacity: 0;
|
18
|
+
width: 0;
|
19
|
+
height: 0;
|
20
|
+
|
21
|
+
&:checked + .lever {
|
22
|
+
background-color: $switch-checked-lever-bg;
|
23
|
+
|
24
|
+
&:after {
|
25
|
+
background-color: $switch-bg-color;
|
26
|
+
left: 24px;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.switch label .lever {
|
32
|
+
content: "";
|
33
|
+
display: inline-block;
|
34
|
+
position: relative;
|
35
|
+
width: 40px;
|
36
|
+
height: 15px;
|
37
|
+
background-color: $switch-unchecked-lever-bg;
|
38
|
+
border-radius: $switch-radius;
|
39
|
+
margin-right: 10px;
|
40
|
+
transition: background 0.3s ease;
|
41
|
+
vertical-align: middle;
|
42
|
+
margin: 0 16px;
|
43
|
+
|
44
|
+
&:after {
|
45
|
+
content: "";
|
46
|
+
position: absolute;
|
47
|
+
display: inline-block;
|
48
|
+
width: 21px;
|
49
|
+
height: 21px;
|
50
|
+
background-color: $switch-unchecked-bg;
|
51
|
+
border-radius: 21px;
|
52
|
+
box-shadow: 0 1px 3px 1px rgba(0,0,0,.4);
|
53
|
+
left: -5px;
|
54
|
+
top: -3px;
|
55
|
+
transition: left 0.3s ease, background .3s ease, box-shadow 0.1s ease;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
// Switch active style
|
60
|
+
input[type=checkbox]:checked:not(:disabled) ~ .lever:active::after,
|
61
|
+
input[type=checkbox]:checked:not(:disabled).tabbed:focus ~ .lever::after {
|
62
|
+
box-shadow: 0 1px 3px 1px rgba(0,0,0,.4), 0 0 0 15px transparentize($switch-bg-color, .9);
|
63
|
+
}
|
64
|
+
|
65
|
+
input[type=checkbox]:not(:disabled) ~ .lever:active:after,
|
66
|
+
input[type=checkbox]:not(:disabled).tabbed:focus ~ .lever::after {
|
67
|
+
box-shadow: 0 1px 3px 1px rgba(0,0,0,.4), 0 0 0 15px rgba(0, 0, 0, .08);
|
68
|
+
}
|
69
|
+
|
70
|
+
// Disabled Styles
|
71
|
+
.switch input[type=checkbox][disabled] + .lever {
|
72
|
+
cursor: default;
|
73
|
+
}
|
74
|
+
|
75
|
+
.switch label input[type=checkbox][disabled] + .lever:after,
|
76
|
+
.switch label input[type=checkbox][disabled]:checked + .lever:after {
|
77
|
+
background-color: $input-disabled-solid-color;
|
78
|
+
}
|