materialize-sass 0.100.2.1 → 1.0.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +18 -42
  3. data/Rakefile +17 -17
  4. data/{app/assets → assets}/javascripts/materialize-sprockets.js +8 -12
  5. data/assets/javascripts/materialize.js +11877 -0
  6. data/assets/javascripts/materialize/autocomplete.js +420 -0
  7. data/assets/javascripts/materialize/buttons.js +388 -0
  8. data/assets/javascripts/materialize/cards.js +28 -0
  9. data/assets/javascripts/materialize/carousel.js +791 -0
  10. data/assets/javascripts/materialize/cash.js +992 -0
  11. data/assets/javascripts/materialize/characterCounter.js +180 -0
  12. data/assets/javascripts/materialize/chips.js +555 -0
  13. data/assets/javascripts/materialize/collapsible.js +275 -0
  14. data/assets/javascripts/materialize/datepicker.js +898 -0
  15. data/assets/javascripts/materialize/dropdown.js +530 -0
  16. data/{app/assets → assets}/javascripts/materialize/extras/nouislider.js +1 -1
  17. data/{app/assets → assets}/javascripts/materialize/extras/nouislider.min.js +1 -1
  18. data/assets/javascripts/materialize/forms.js +223 -0
  19. data/assets/javascripts/materialize/global.js +353 -0
  20. data/assets/javascripts/materialize/materialbox.js +432 -0
  21. data/{app/assets → assets}/javascripts/materialize/modal.js +82 -113
  22. data/assets/javascripts/materialize/parallax.js +135 -0
  23. data/assets/javascripts/materialize/pushpin.js +158 -0
  24. data/assets/javascripts/materialize/range.js +305 -0
  25. data/assets/javascripts/materialize/scrollspy.js +322 -0
  26. data/assets/javascripts/materialize/select.js +426 -0
  27. data/assets/javascripts/materialize/sidenav.js +584 -0
  28. data/assets/javascripts/materialize/slider.js +383 -0
  29. data/assets/javascripts/materialize/tabs.js +460 -0
  30. data/assets/javascripts/materialize/tapTarget.js +347 -0
  31. data/assets/javascripts/materialize/timepicker.js +616 -0
  32. data/{app/assets → assets}/javascripts/materialize/toasts.js +42 -46
  33. data/assets/javascripts/materialize/tooltip.js +325 -0
  34. data/assets/javascripts/materialize/velocity.min.js +782 -0
  35. data/{app/assets → assets}/javascripts/materialize/waves.js +0 -0
  36. data/{app/assets → assets}/stylesheets/materialize.scss +5 -6
  37. data/{app/assets → assets}/stylesheets/materialize/components/_badges.scss +1 -1
  38. data/{app/assets → assets}/stylesheets/materialize/components/_buttons.scss +34 -2
  39. data/{app/assets → assets}/stylesheets/materialize/components/_cards.scss +0 -0
  40. data/{app/assets → assets}/stylesheets/materialize/components/_carousel.scss +1 -1
  41. data/{app/assets → assets}/stylesheets/materialize/components/_chips.scss +6 -5
  42. data/{app/assets → assets}/stylesheets/materialize/components/_collapsible.scss +3 -3
  43. data/{app/assets → assets}/stylesheets/materialize/components/_color.scss +0 -0
  44. data/assets/stylesheets/materialize/components/_datepicker.scss +180 -0
  45. data/{app/assets → assets}/stylesheets/materialize/components/_dropdown.scss +16 -15
  46. data/{app/assets → assets}/stylesheets/materialize/components/_global.scss +49 -14
  47. data/{app/assets → assets}/stylesheets/materialize/components/_grid.scss +1 -1
  48. data/{app/assets → assets}/stylesheets/materialize/components/_icons-material-design.scss +0 -0
  49. data/{app/assets → assets}/stylesheets/materialize/components/_materialbox.scss +0 -0
  50. data/assets/stylesheets/materialize/components/_mixins.scss +5 -0
  51. data/{app/assets → assets}/stylesheets/materialize/components/_modal.scss +1 -1
  52. data/{app/assets → assets}/stylesheets/materialize/components/_navbar.scss +0 -0
  53. data/assets/stylesheets/materialize/components/_normalize.scss +447 -0
  54. data/{app/assets → assets}/stylesheets/materialize/components/_preloader.scss +0 -0
  55. data/{app/assets → assets}/stylesheets/materialize/components/_pulse.scss +0 -0
  56. data/{app/assets/stylesheets/materialize/components/_sideNav.scss → assets/stylesheets/materialize/components/_sidenav.scss} +23 -21
  57. data/{app/assets → assets}/stylesheets/materialize/components/_slider.scss +0 -0
  58. data/{app/assets → assets}/stylesheets/materialize/components/_table_of_contents.scss +3 -3
  59. data/{app/assets → assets}/stylesheets/materialize/components/_tabs.scss +2 -2
  60. data/{app/assets → assets}/stylesheets/materialize/components/_tapTarget.scss +0 -0
  61. data/assets/stylesheets/materialize/components/_timepicker.scss +182 -0
  62. data/{app/assets → assets}/stylesheets/materialize/components/_toast.scss +0 -0
  63. data/{app/assets → assets}/stylesheets/materialize/components/_tooltip.scss +1 -0
  64. data/{app/assets → assets}/stylesheets/materialize/components/_transitions.scss +0 -0
  65. data/{app/assets → assets}/stylesheets/materialize/components/_typography.scss +8 -8
  66. data/{app/assets → assets}/stylesheets/materialize/components/_variables.scss +42 -44
  67. data/{app/assets → assets}/stylesheets/materialize/components/_waves.scss +0 -0
  68. data/{app/assets → assets}/stylesheets/materialize/components/forms/_checkboxes.scss +24 -24
  69. data/{app/assets → assets}/stylesheets/materialize/components/forms/_file-input.scss +0 -0
  70. data/{app/assets → assets}/stylesheets/materialize/components/forms/_forms.scss +0 -0
  71. data/{app/assets → assets}/stylesheets/materialize/components/forms/_input-fields.scss +49 -35
  72. data/{app/assets → assets}/stylesheets/materialize/components/forms/_radio-buttons.scss +29 -29
  73. data/{app/assets → assets}/stylesheets/materialize/components/forms/_range.scss +32 -31
  74. data/{app/assets → assets}/stylesheets/materialize/components/forms/_select.scss +20 -11
  75. data/{app/assets → assets}/stylesheets/materialize/components/forms/_switches.scss +0 -0
  76. data/{app/assets → assets}/stylesheets/materialize/extras/nouislider.css +1 -1
  77. data/lib/materialize-sass.rb +13 -23
  78. data/lib/materialize-sass/engine.rb +6 -9
  79. data/lib/materialize-sass/version.rb +1 -1
  80. data/materialize-sass.gemspec +2 -1
  81. metadata +97 -97
  82. data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
  83. data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
  84. data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
  85. data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
  86. data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
  87. data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
  88. data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
  89. data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
  90. data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
  91. data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
  92. data/app/assets/javascripts/materialize.js +0 -10021
  93. data/app/assets/javascripts/materialize/animation.js +0 -7
  94. data/app/assets/javascripts/materialize/buttons.js +0 -253
  95. data/app/assets/javascripts/materialize/cards.js +0 -28
  96. data/app/assets/javascripts/materialize/carousel.js +0 -543
  97. data/app/assets/javascripts/materialize/character_counter.js +0 -64
  98. data/app/assets/javascripts/materialize/chips.js +0 -315
  99. data/app/assets/javascripts/materialize/collapsible.js +0 -178
  100. data/app/assets/javascripts/materialize/date_picker/picker.date.js +0 -1399
  101. data/app/assets/javascripts/materialize/date_picker/picker.js +0 -1196
  102. data/app/assets/javascripts/materialize/date_picker/picker.time.js +0 -646
  103. data/app/assets/javascripts/materialize/dropdown.js +0 -257
  104. data/app/assets/javascripts/materialize/forms.js +0 -806
  105. data/app/assets/javascripts/materialize/global.js +0 -170
  106. data/app/assets/javascripts/materialize/hammer.min.js +0 -424
  107. data/app/assets/javascripts/materialize/initial.js +0 -10
  108. data/app/assets/javascripts/materialize/jquery.easing.1.4.js +0 -144
  109. data/app/assets/javascripts/materialize/jquery.hammer.js +0 -33
  110. data/app/assets/javascripts/materialize/materialbox.js +0 -263
  111. data/app/assets/javascripts/materialize/parallax.js +0 -54
  112. data/app/assets/javascripts/materialize/pushpin.js +0 -68
  113. data/app/assets/javascripts/materialize/scrollFire.js +0 -49
  114. data/app/assets/javascripts/materialize/scrollspy.js +0 -230
  115. data/app/assets/javascripts/materialize/sideNav.js +0 -395
  116. data/app/assets/javascripts/materialize/slider.js +0 -295
  117. data/app/assets/javascripts/materialize/tabs.js +0 -244
  118. data/app/assets/javascripts/materialize/tapTarget.js +0 -184
  119. data/app/assets/javascripts/materialize/tooltip.js +0 -227
  120. data/app/assets/javascripts/materialize/transitions.js +0 -163
  121. data/app/assets/javascripts/materialize/velocity.min.js +0 -626
  122. data/app/assets/stylesheets/materialize/components/_normalize.scss +0 -424
  123. data/app/assets/stylesheets/materialize/components/_roboto.scss +0 -39
  124. data/app/assets/stylesheets/materialize/components/date_picker/_default.date.scss +0 -469
  125. data/app/assets/stylesheets/materialize/components/date_picker/_default.scss +0 -216
  126. data/app/assets/stylesheets/materialize/components/date_picker/_default.time.scss +0 -267
@@ -22,7 +22,7 @@ form p:last-child {
22
22
  // Checkbox Styles
23
23
  [type="checkbox"] {
24
24
  // Text Label Style
25
- + label {
25
+ + span:not(.lever) {
26
26
  position: relative;
27
27
  padding-left: 35px;
28
28
  cursor: pointer;
@@ -34,8 +34,8 @@ form p:last-child {
34
34
  }
35
35
 
36
36
  /* checkbox aspect */
37
- + label:before,
38
- &:not(.filled-in) + label:after {
37
+ + span:not(.lever):before,
38
+ &:not(.filled-in) + span:not(.lever):after {
39
39
  content: '';
40
40
  position: absolute;
41
41
  top: 0;
@@ -45,22 +45,22 @@ form p:last-child {
45
45
  z-index: 0;
46
46
  border: 2px solid $radio-empty-color;
47
47
  border-radius: 1px;
48
- margin-top: 2px;
48
+ margin-top: 3px;
49
49
  transition: .2s;
50
50
  }
51
51
 
52
- &:not(.filled-in) + label:after {
52
+ &:not(.filled-in) + span:not(.lever):after {
53
53
  border: 0;
54
54
  transform: scale(0);
55
55
  }
56
56
 
57
- &:not(:checked):disabled + label:before {
57
+ &:not(:checked):disabled + span:not(.lever):before {
58
58
  border: none;
59
59
  background-color: $input-disabled-color;
60
60
  }
61
61
 
62
62
  // Focused styles
63
- &.tabbed:focus + label:after {
63
+ &.tabbed:focus + span:not(.lever):after {
64
64
  transform: scale(1);
65
65
  border: 0;
66
66
  border-radius: 50%;
@@ -70,7 +70,7 @@ form p:last-child {
70
70
  }
71
71
 
72
72
  [type="checkbox"]:checked {
73
- + label:before {
73
+ + span:not(.lever):before {
74
74
  top: -4px;
75
75
  left: -5px;
76
76
  width: 12px;
@@ -84,7 +84,7 @@ form p:last-child {
84
84
  transform-origin: 100% 100%;
85
85
  }
86
86
 
87
- &:disabled + label:before {
87
+ &:disabled + span:before {
88
88
  border-right: 2px solid $input-disabled-color;
89
89
  border-bottom: 2px solid $input-disabled-color;
90
90
  }
@@ -92,7 +92,7 @@ form p:last-child {
92
92
 
93
93
  /* Indeterminate checkbox */
94
94
  [type="checkbox"]:indeterminate {
95
- +label:before {
95
+ + span:not(.lever):before {
96
96
  top: -11px;
97
97
  left: -12px;
98
98
  width: 10px;
@@ -107,7 +107,7 @@ form p:last-child {
107
107
  }
108
108
 
109
109
  // Disabled indeterminate
110
- &:disabled + label:before {
110
+ &:disabled + span:not(.lever):before {
111
111
  border-right: 2px solid $input-disabled-color;
112
112
  background-color: transparent;
113
113
  }
@@ -116,12 +116,12 @@ form p:last-child {
116
116
  // Filled in Style
117
117
  [type="checkbox"].filled-in {
118
118
  // General
119
- + label:after {
119
+ + span:not(.lever):after {
120
120
  border-radius: 2px;
121
121
  }
122
122
 
123
- + label:before,
124
- + label:after {
123
+ + span:not(.lever):before,
124
+ + span:not(.lever):after {
125
125
  content: '';
126
126
  left: 0;
127
127
  position: absolute;
@@ -131,7 +131,7 @@ form p:last-child {
131
131
  }
132
132
 
133
133
  // Unchecked style
134
- &:not(:checked) + label:before {
134
+ &:not(:checked) + span:not(.lever):before {
135
135
  width: 0;
136
136
  height: 0;
137
137
  border: 3px solid transparent;
@@ -141,7 +141,7 @@ form p:last-child {
141
141
  transform-origin: 100% 100%;
142
142
  }
143
143
 
144
- &:not(:checked) + label:after {
144
+ &:not(:checked) + span:not(.lever):after {
145
145
  height: 20px;
146
146
  width: 20px;
147
147
  background-color: transparent;
@@ -152,7 +152,7 @@ form p:last-child {
152
152
 
153
153
  // Checked style
154
154
  &:checked {
155
- + label:before {
155
+ + span:not(.lever):before {
156
156
  top: 0;
157
157
  left: 1px;
158
158
  width: 8px;
@@ -165,7 +165,7 @@ form p:last-child {
165
165
  transform-origin: 100% 100%;
166
166
  }
167
167
 
168
- + label:after {
168
+ + span:not(.lever):after {
169
169
  top: 0;
170
170
  width: 20px;
171
171
  height: 20px;
@@ -176,34 +176,34 @@ form p:last-child {
176
176
  }
177
177
 
178
178
  // Focused styles
179
- &.tabbed:focus + label:after {
179
+ &.tabbed:focus + span:not(.lever):after {
180
180
  border-radius: 2px;
181
181
  border-color: $radio-empty-color;
182
182
  background-color: rgba(0,0,0,.1);
183
183
  }
184
184
 
185
- &.tabbed:checked:focus + label:after {
185
+ &.tabbed:checked:focus + span:not(.lever):after {
186
186
  border-radius: 2px;
187
187
  background-color: $secondary-color;
188
188
  border-color: $secondary-color;
189
189
  }
190
190
 
191
191
  // Disabled style
192
- &:disabled:not(:checked) + label:before {
192
+ &:disabled:not(:checked) + span:not(.lever):before {
193
193
  background-color: transparent;
194
194
  border: 2px solid transparent;
195
195
  }
196
196
 
197
- &:disabled:not(:checked) + label:after {
197
+ &:disabled:not(:checked) + span:not(.lever):after {
198
198
  border-color: transparent;
199
199
  background-color: $input-disabled-solid-color;
200
200
  }
201
201
 
202
- &:disabled:checked + label:before {
202
+ &:disabled:checked + span:not(.lever):before {
203
203
  background-color: transparent;
204
204
  }
205
205
 
206
- &:disabled:checked + label:after {
206
+ &:disabled:checked + span:not(.lever):after {
207
207
  background-color: $input-disabled-solid-color;
208
208
  border-color: $input-disabled-solid-color;
209
209
  }
@@ -62,6 +62,14 @@ textarea.materialize-textarea {
62
62
  color: $input-focus-color;
63
63
  }
64
64
 
65
+ // Hide helper text on data message
66
+ &.valid ~ .helper-text[data-success],
67
+ &:focus.valid ~ .helper-text[data-success],
68
+ &.invalid ~ .helper-text[data-error],
69
+ &:focus.invalid ~ .helper-text[data-error] {
70
+ @extend %hidden-text;
71
+ }
72
+
65
73
  // Valid Input Style
66
74
  &.valid,
67
75
  &:focus.valid {
@@ -69,10 +77,13 @@ textarea.materialize-textarea {
69
77
  }
70
78
 
71
79
  // Custom Success Message
72
- &.valid + label:after,
73
- &:focus.valid + label:after {
80
+ &.valid ~ .helper-text:after,
81
+ &:focus.valid ~ .helper-text:after {
74
82
  @extend %custom-success-message;
75
83
  }
84
+ &:focus.valid ~ label {
85
+ color: $input-success-color;
86
+ }
76
87
 
77
88
  // Invalid Input Style
78
89
  &.invalid,
@@ -81,10 +92,13 @@ textarea.materialize-textarea {
81
92
  }
82
93
 
83
94
  // Custom Error message
84
- &.invalid + label:after,
85
- &:focus.invalid + label:after {
95
+ &.invalid ~ .helper-text:after,
96
+ &:focus.invalid ~ .helper-text:after {
86
97
  @extend %custom-error-message;
87
98
  }
99
+ &:focus.invalid ~ label {
100
+ color: $input-error-color;
101
+ }
88
102
 
89
103
  // Full width label when using validate for error messages
90
104
  &.validate + label {
@@ -95,17 +109,6 @@ textarea.materialize-textarea {
95
109
  & + label:after {
96
110
  @extend %input-after-style;
97
111
  }
98
-
99
- // TODO: Remove once input fields are reworked to support validation messages better
100
- &.invalid + label:after,
101
- &.valid + label:after{
102
- display: none;
103
- }
104
-
105
- &.invalid + label.active:after,
106
- &.valid + label.active:after{
107
- display: block;
108
- }
109
112
  }
110
113
 
111
114
 
@@ -118,17 +121,18 @@ textarea.materialize-textarea {
118
121
  border-bottom: $input-invalid-border;
119
122
  box-shadow: 0 1px 0 0 $input-error-color;
120
123
  }
124
+ %hidden-text {
125
+ color: transparent;
126
+ user-select: none;
127
+ pointer-events: none;
128
+ }
121
129
  %custom-success-message {
122
130
  content: attr(data-success);
123
131
  color: $input-success-color;
124
- opacity: 1;
125
- transform: translateY(9px);
126
132
  }
127
133
  %custom-error-message {
128
134
  content: attr(data-error);
129
135
  color: $input-error-color;
130
- opacity: 1;
131
- transform: translateY(9px);
132
136
  }
133
137
  %input-after-style {
134
138
  display: block;
@@ -169,20 +173,19 @@ textarea.materialize-textarea {
169
173
 
170
174
  position: relative;
171
175
  margin-top: 1rem;
176
+ margin-bottom: 1rem;
172
177
 
173
- label {
178
+ & > label {
174
179
  color: $input-border-color;
175
180
  position: absolute;
176
181
  top: 0;
177
182
  left: 0;
178
- height: 100%;
179
183
  font-size: 1rem;
180
184
  cursor: text;
181
- transition: transform .2s ease-out;
185
+ transition: transform .2s ease-out, color .2s ease-out;
182
186
  transform-origin: 0% 100%;
183
187
  text-align: initial;
184
188
  transform: translateY(12px);
185
- pointer-events: none;
186
189
 
187
190
  &:not(.label-icon).active {
188
191
  transform: translateY(-14px) scale(.8);
@@ -190,6 +193,21 @@ textarea.materialize-textarea {
190
193
  }
191
194
  }
192
195
 
196
+ .helper-text {
197
+ &::after {
198
+ opacity: 1;
199
+ position: absolute;
200
+ top: 0;
201
+ left: 0;
202
+ }
203
+
204
+ position: relative;
205
+ min-height: 18px;
206
+ display: block;
207
+ font-size: 12px;
208
+ color: rgba(0,0,0,.54);
209
+ }
210
+
193
211
  // Prefix Icons
194
212
  .prefix {
195
213
  position: absolute;
@@ -281,27 +299,17 @@ textarea {
281
299
  background-color: transparent;
282
300
 
283
301
  &.materialize-textarea {
284
- // Fixes validation messages for dynamic textareas
285
- &.validate + label {
286
- &::after {
287
- top: calc(100% - 12px);
288
- }
289
- &:not(.label-icon).active {
290
- transform: translateY(-25px);
291
- }
292
- height: 100%;
293
- }
294
-
295
302
  overflow-y: hidden; /* prevents scroll bar flash */
296
303
  padding: .8rem 0 1.6rem 0; /* prevents text jump on Enter keypress */
297
304
  resize: none;
298
305
  min-height: $input-height;
306
+ box-sizing: border-box;
299
307
  }
300
308
  }
301
309
 
302
310
  // For textarea autoresize
303
311
  .hiddendiv {
304
- display: none;
312
+ visibility: hidden;
305
313
  white-space: pre-wrap;
306
314
  word-wrap: break-word;
307
315
  overflow-wrap: break-word; /* future version of deprecated 'word-wrap' */
@@ -310,6 +318,7 @@ textarea {
310
318
  // Reduces repaints
311
319
  position: absolute;
312
320
  top: 0;
321
+ z-index: -1;
313
322
  }
314
323
 
315
324
 
@@ -331,3 +340,8 @@ textarea {
331
340
  }
332
341
  }
333
342
  }
343
+
344
+ /* Character Counter */
345
+ .character-counter {
346
+ min-height: 18px;
347
+ }
@@ -9,8 +9,8 @@
9
9
  pointer-events: none;
10
10
  }
11
11
 
12
- [type="radio"]:not(:checked) + label,
13
- [type="radio"]:checked + label {
12
+ [type="radio"]:not(:checked) + span,
13
+ [type="radio"]:checked + span {
14
14
  position: relative;
15
15
  padding-left: 35px;
16
16
  cursor: pointer;
@@ -22,8 +22,8 @@
22
22
  user-select: none;
23
23
  }
24
24
 
25
- [type="radio"] + label:before,
26
- [type="radio"] + label:after {
25
+ [type="radio"] + span:before,
26
+ [type="radio"] + span:after {
27
27
  content: '';
28
28
  position: absolute;
29
29
  left: 0;
@@ -36,80 +36,80 @@
36
36
  }
37
37
 
38
38
  /* Unchecked styles */
39
- [type="radio"]:not(:checked) + label:before,
40
- [type="radio"]:not(:checked) + label:after,
41
- [type="radio"]:checked + label:before,
42
- [type="radio"]:checked + label:after,
43
- [type="radio"].with-gap:checked + label:before,
44
- [type="radio"].with-gap:checked + label:after {
39
+ [type="radio"]:not(:checked) + span:before,
40
+ [type="radio"]:not(:checked) + span:after,
41
+ [type="radio"]:checked + span:before,
42
+ [type="radio"]:checked + span:after,
43
+ [type="radio"].with-gap:checked + span:before,
44
+ [type="radio"].with-gap:checked + span:after {
45
45
  border-radius: 50%;
46
46
  }
47
47
 
48
- [type="radio"]:not(:checked) + label:before,
49
- [type="radio"]:not(:checked) + label:after {
48
+ [type="radio"]:not(:checked) + span:before,
49
+ [type="radio"]:not(:checked) + span:after {
50
50
  border: 2px solid $radio-empty-color;
51
51
  }
52
52
 
53
- [type="radio"]:not(:checked) + label:after {
53
+ [type="radio"]:not(:checked) + span:after {
54
54
  transform: scale(0);
55
55
  }
56
56
 
57
57
  /* Checked styles */
58
- [type="radio"]:checked + label:before {
58
+ [type="radio"]:checked + span:before {
59
59
  border: 2px solid transparent;
60
60
  }
61
61
 
62
- [type="radio"]:checked + label:after,
63
- [type="radio"].with-gap:checked + label:before,
64
- [type="radio"].with-gap:checked + label:after {
62
+ [type="radio"]:checked + span:after,
63
+ [type="radio"].with-gap:checked + span:before,
64
+ [type="radio"].with-gap:checked + span:after {
65
65
  border: $radio-border;
66
66
  }
67
67
 
68
- [type="radio"]:checked + label:after,
69
- [type="radio"].with-gap:checked + label:after {
68
+ [type="radio"]:checked + span:after,
69
+ [type="radio"].with-gap:checked + span:after {
70
70
  background-color: $radio-fill-color;
71
71
  }
72
72
 
73
- [type="radio"]:checked + label:after {
73
+ [type="radio"]:checked + span:after {
74
74
  transform: scale(1.02);
75
75
  }
76
76
 
77
77
  /* Radio With gap */
78
- [type="radio"].with-gap:checked + label:after {
78
+ [type="radio"].with-gap:checked + span:after {
79
79
  transform: scale(.5);
80
80
  }
81
81
 
82
82
  /* Focused styles */
83
- [type="radio"].tabbed:focus + label:before {
83
+ [type="radio"].tabbed:focus + span:before {
84
84
  box-shadow: 0 0 0 10px rgba(0,0,0,.1);
85
85
  }
86
86
 
87
87
  /* Disabled Radio With gap */
88
- [type="radio"].with-gap:disabled:checked + label:before {
88
+ [type="radio"].with-gap:disabled:checked + span:before {
89
89
  border: 2px solid $input-disabled-color;
90
90
  }
91
91
 
92
- [type="radio"].with-gap:disabled:checked + label:after {
92
+ [type="radio"].with-gap:disabled:checked + span:after {
93
93
  border: none;
94
94
  background-color: $input-disabled-color;
95
95
  }
96
96
 
97
97
  /* Disabled style */
98
- [type="radio"]:disabled:not(:checked) + label:before,
99
- [type="radio"]:disabled:checked + label:before {
98
+ [type="radio"]:disabled:not(:checked) + span:before,
99
+ [type="radio"]:disabled:checked + span:before {
100
100
  background-color: transparent;
101
101
  border-color: $input-disabled-color;
102
102
  }
103
103
 
104
- [type="radio"]:disabled + label {
104
+ [type="radio"]:disabled + span {
105
105
  color: $input-disabled-color;
106
106
  }
107
107
 
108
- [type="radio"]:disabled:not(:checked) + label:before {
108
+ [type="radio"]:disabled:not(:checked) + span:before {
109
109
  border-color: $input-disabled-color;
110
110
  }
111
111
 
112
- [type="radio"]:disabled:checked + label:after {
112
+ [type="radio"]:disabled:checked + span:after {
113
113
  background-color: $input-disabled-color;
114
114
  border-color: $input-disabled-solid-color;
115
115
  }