bourbon 3.2.0.beta.2 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.npmignore +9 -0
- data/Gemfile.lock +3 -3
- data/app/assets/stylesheets/_bourbon.scss +5 -3
- data/app/assets/stylesheets/addons/_button.scss +142 -41
- data/app/assets/stylesheets/addons/_directional-values.scss +5 -8
- data/app/assets/stylesheets/addons/_html5-input-types.scss +39 -15
- data/app/assets/stylesheets/addons/_prefixer.scss +5 -5
- data/app/assets/stylesheets/addons/_triangle.scss +51 -13
- data/app/assets/stylesheets/addons/_word-wrap.scss +8 -0
- data/app/assets/stylesheets/css3/_columns.scss +1 -1
- data/app/assets/stylesheets/css3/_filter.scss +5 -0
- data/app/assets/stylesheets/css3/_font-feature-settings.scss +10 -0
- data/app/assets/stylesheets/css3/_image-rendering.scss +1 -0
- data/app/assets/stylesheets/css3/_keyframes.scss +9 -10
- data/app/assets/stylesheets/css3/_transition.scss +47 -4
- data/app/assets/stylesheets/functions/_color-lightness.scss +13 -0
- data/app/assets/stylesheets/functions/_modular-scale.scss +1 -1
- data/app/assets/stylesheets/functions/_px-to-rem.scss +15 -0
- data/bourbon.gemspec +2 -2
- data/bower.json +1 -0
- data/dist/_bourbon.scss +5 -2
- data/dist/addons/_button.scss +142 -41
- data/dist/addons/_directional-values.scss +5 -8
- data/dist/addons/_html5-input-types.scss +3 -3
- data/dist/addons/_triangle.scss +51 -13
- data/dist/addons/_word-wrap.scss +8 -0
- data/dist/css3/_columns.scss +1 -1
- data/dist/css3/_filter.scss +5 -0
- data/dist/css3/_font-feature-settings.scss +10 -0
- data/dist/css3/_image-rendering.scss +1 -0
- data/dist/css3/_keyframes.scss +6 -7
- data/dist/css3/_placeholder.scss +3 -24
- data/dist/css3/_transition.scss +47 -4
- data/dist/functions/_color-lightness.scss +13 -0
- data/dist/functions/_modular-scale.scss +1 -1
- data/dist/functions/_px-to-rem.scss +15 -0
- data/lib/bourbon/version.rb +1 -1
- data/package.json +24 -0
- data/readme.md +20 -21
- metadata +30 -20
- data/app/assets/stylesheets/addons/_rem.scss +0 -33
- data/app/assets/stylesheets/functions/_assign.scss +0 -11
- data/dist/addons/_rem.scss +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae7566eb86c1fcee496a5231ae2d1c20eb2a7739
|
4
|
+
data.tar.gz: e5daaa6b7ff5e21c186361a36b202745d4f924b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9938d49283e7c4e3b49ef14596050de2778b4c2f2f2c5b7083d3e4206a488ed461eb852116ca526119df2866957004d04bfc2fd68c29654a6da944ddc38b4956
|
7
|
+
data.tar.gz: fd2f71bd7253c5afc7ff7e542a7f6896392736061e8681f93e505ebbbf437e03cee03110a6bbda0fc43fe7f6954ef9d96037891afdfd6f20d73d026903c1a246
|
data/.npmignore
ADDED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bourbon (
|
5
|
-
sass (
|
4
|
+
bourbon (4.0.0.rc1)
|
5
|
+
sass (~> 3.3)
|
6
6
|
thor
|
7
7
|
|
8
8
|
GEM
|
@@ -36,7 +36,7 @@ GEM
|
|
36
36
|
rspec-expectations (2.8.0)
|
37
37
|
diff-lcs (~> 1.1.2)
|
38
38
|
rspec-mocks (2.8.0)
|
39
|
-
sass (3.
|
39
|
+
sass (3.3.4)
|
40
40
|
term-ansicolor (1.0.7)
|
41
41
|
thor (0.18.1)
|
42
42
|
|
@@ -11,13 +11,14 @@
|
|
11
11
|
@import "helpers/shape-size-stripper";
|
12
12
|
|
13
13
|
// Custom Functions
|
14
|
-
@import "functions/
|
14
|
+
@import "functions/color-lightness";
|
15
15
|
@import "functions/flex-grid";
|
16
|
-
@import "functions/grid-width";
|
17
16
|
@import "functions/golden-ratio";
|
17
|
+
@import "functions/grid-width";
|
18
18
|
@import "functions/linear-gradient";
|
19
19
|
@import "functions/modular-scale";
|
20
20
|
@import "functions/px-to-em";
|
21
|
+
@import "functions/px-to-rem";
|
21
22
|
@import "functions/radial-gradient";
|
22
23
|
@import "functions/strip-units";
|
23
24
|
@import "functions/tint-shade";
|
@@ -35,6 +36,7 @@
|
|
35
36
|
@import "css3/box-sizing";
|
36
37
|
@import "css3/calc";
|
37
38
|
@import "css3/columns";
|
39
|
+
@import "css3/filter";
|
38
40
|
@import "css3/flex-box";
|
39
41
|
@import "css3/font-face";
|
40
42
|
@import "css3/hyphens";
|
@@ -60,11 +62,11 @@
|
|
60
62
|
@import "addons/html5-input-types";
|
61
63
|
@import "addons/position";
|
62
64
|
@import "addons/prefixer";
|
63
|
-
@import "addons/rem";
|
64
65
|
@import "addons/retina-image";
|
65
66
|
@import "addons/size";
|
66
67
|
@import "addons/timing-functions";
|
67
68
|
@import "addons/triangle";
|
69
|
+
@import "addons/word-wrap";
|
68
70
|
|
69
71
|
// Soon to be deprecated Mixins
|
70
72
|
@import "bourbon-deprecated-upcoming";
|
@@ -1,38 +1,51 @@
|
|
1
|
-
@mixin button ($style: simple, $base-color: #4294f0) {
|
1
|
+
@mixin button ($style: simple, $base-color: #4294f0, $text-size: inherit, $padding: 7px 18px) {
|
2
2
|
|
3
|
-
@if type-of($style) == color {
|
3
|
+
@if type-of($style) == string and type-of($base-color) == color {
|
4
|
+
@include buttonstyle($style, $base-color, $text-size, $padding);
|
5
|
+
}
|
6
|
+
|
7
|
+
@if type-of($style) == string and type-of($base-color) == number {
|
8
|
+
$padding: $text-size;
|
9
|
+
$text-size: $base-color;
|
10
|
+
$base-color: #4294f0;
|
11
|
+
|
12
|
+
@if $padding == inherit {
|
13
|
+
$padding: 7px 18px;
|
14
|
+
}
|
15
|
+
|
16
|
+
@include buttonstyle($style, $base-color, $text-size, $padding);
|
17
|
+
}
|
18
|
+
|
19
|
+
@if type-of($style) == color and type-of($base-color) == color {
|
4
20
|
$base-color: $style;
|
5
21
|
$style: simple;
|
22
|
+
@include buttonstyle($style, $base-color, $text-size, $padding);
|
6
23
|
}
|
7
24
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
25
|
+
@if type-of($style) == color and type-of($base-color) == number {
|
26
|
+
$padding: $text-size;
|
27
|
+
$text-size: $base-color;
|
28
|
+
$base-color: $style;
|
29
|
+
$style: simple;
|
13
30
|
|
14
|
-
@
|
15
|
-
|
31
|
+
@if $padding == inherit {
|
32
|
+
$padding: 7px 18px;
|
16
33
|
}
|
17
34
|
|
18
|
-
@
|
19
|
-
@include pill($base-color, $grayscale: true);
|
20
|
-
}
|
35
|
+
@include buttonstyle($style, $base-color, $text-size, $padding);
|
21
36
|
}
|
22
37
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
38
|
+
@if type-of($style) == number {
|
39
|
+
$padding: $base-color;
|
40
|
+
$text-size: $style;
|
41
|
+
$base-color: #4294f0;
|
42
|
+
$style: simple;
|
28
43
|
|
29
|
-
@
|
30
|
-
|
44
|
+
@if $padding == #4294f0 {
|
45
|
+
$padding: 7px 18px;
|
31
46
|
}
|
32
47
|
|
33
|
-
@
|
34
|
-
@include pill($base-color);
|
35
|
-
}
|
48
|
+
@include buttonstyle($style, $base-color, $text-size, $padding);
|
36
49
|
}
|
37
50
|
|
38
51
|
&:disabled {
|
@@ -42,16 +55,55 @@
|
|
42
55
|
}
|
43
56
|
|
44
57
|
|
58
|
+
// Selector Style Button
|
59
|
+
//************************************************************************//
|
60
|
+
@mixin buttonstyle($type, $b-color, $t-size, $pad) {
|
61
|
+
// Grayscale button
|
62
|
+
@if $type == simple and $b-color == grayscale($b-color) {
|
63
|
+
@include simple($b-color, true, $t-size, $pad);
|
64
|
+
}
|
65
|
+
|
66
|
+
@if $type == shiny and $b-color == grayscale($b-color) {
|
67
|
+
@include shiny($b-color, true, $t-size, $pad);
|
68
|
+
}
|
69
|
+
|
70
|
+
@if $type == pill and $b-color == grayscale($b-color) {
|
71
|
+
@include pill($b-color, true, $t-size, $pad);
|
72
|
+
}
|
73
|
+
|
74
|
+
@if $type == flat and $b-color == grayscale($b-color) {
|
75
|
+
@include flat($b-color, true, $t-size, $pad);
|
76
|
+
}
|
77
|
+
|
78
|
+
// Colored button
|
79
|
+
@if $type == simple {
|
80
|
+
@include simple($b-color, false, $t-size, $pad);
|
81
|
+
}
|
82
|
+
|
83
|
+
@else if $type == shiny {
|
84
|
+
@include shiny($b-color, false, $t-size, $pad);
|
85
|
+
}
|
86
|
+
|
87
|
+
@else if $type == pill {
|
88
|
+
@include pill($b-color, false, $t-size, $pad);
|
89
|
+
}
|
90
|
+
|
91
|
+
@else if $type == flat {
|
92
|
+
@include flat($b-color, false, $t-size, $pad);
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
|
45
97
|
// Simple Button
|
46
98
|
//************************************************************************//
|
47
|
-
@mixin simple($base-color, $grayscale: false) {
|
99
|
+
@mixin simple($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
|
48
100
|
$color: hsl(0, 0, 100%);
|
49
101
|
$border: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
|
50
102
|
$inset-shadow: adjust-color($base-color, $saturation: -8%, $lightness: 15%);
|
51
103
|
$stop-gradient: adjust-color($base-color, $saturation: 9%, $lightness: -11%);
|
52
104
|
$text-shadow: adjust-color($base-color, $saturation: 15%, $lightness: -18%);
|
53
105
|
|
54
|
-
@if
|
106
|
+
@if is-light($base-color) {
|
55
107
|
$color: hsl(0, 0, 20%);
|
56
108
|
$text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
|
57
109
|
}
|
@@ -68,10 +120,10 @@
|
|
68
120
|
box-shadow: inset 0 1px 0 0 $inset-shadow;
|
69
121
|
color: $color;
|
70
122
|
display: inline-block;
|
71
|
-
font-size:
|
123
|
+
font-size: $textsize;
|
72
124
|
font-weight: bold;
|
73
125
|
@include linear-gradient ($base-color, $stop-gradient);
|
74
|
-
padding:
|
126
|
+
padding: $padding;
|
75
127
|
text-decoration: none;
|
76
128
|
text-shadow: 0 1px 0 $text-shadow;
|
77
129
|
background-clip: padding-box;
|
@@ -92,7 +144,8 @@
|
|
92
144
|
@include linear-gradient ($base-color-hover, $stop-gradient-hover);
|
93
145
|
}
|
94
146
|
|
95
|
-
&:active:not(:disabled)
|
147
|
+
&:active:not(:disabled),
|
148
|
+
&:focus:not(:disabled) {
|
96
149
|
$border-active: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
|
97
150
|
$inset-shadow-active: adjust-color($base-color, $saturation: 7%, $lightness: -17%);
|
98
151
|
|
@@ -102,14 +155,14 @@
|
|
102
155
|
}
|
103
156
|
|
104
157
|
border: 1px solid $border-active;
|
105
|
-
box-shadow: inset 0 0 8px 4px $inset-shadow-active, inset 0 0 8px 4px $inset-shadow-active
|
158
|
+
box-shadow: inset 0 0 8px 4px $inset-shadow-active, inset 0 0 8px 4px $inset-shadow-active;
|
106
159
|
}
|
107
160
|
}
|
108
161
|
|
109
162
|
|
110
163
|
// Shiny Button
|
111
164
|
//************************************************************************//
|
112
|
-
@mixin shiny($base-color, $grayscale: false) {
|
165
|
+
@mixin shiny($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
|
113
166
|
$color: hsl(0, 0, 100%);
|
114
167
|
$border: adjust-color($base-color, $red: -117, $green: -111, $blue: -81);
|
115
168
|
$border-bottom: adjust-color($base-color, $red: -126, $green: -127, $blue: -122);
|
@@ -119,7 +172,7 @@
|
|
119
172
|
$text-shadow: adjust-color($base-color, $red: -140, $green: -141, $blue: -114);
|
120
173
|
$third-stop: adjust-color($base-color, $red: -86, $green: -75, $blue: -48);
|
121
174
|
|
122
|
-
@if
|
175
|
+
@if is-light($base-color) {
|
123
176
|
$color: hsl(0, 0, 20%);
|
124
177
|
$text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
|
125
178
|
}
|
@@ -140,10 +193,10 @@
|
|
140
193
|
box-shadow: inset 0 1px 0 0 $inset-shadow;
|
141
194
|
color: $color;
|
142
195
|
display: inline-block;
|
143
|
-
font-size:
|
196
|
+
font-size: $textsize;
|
144
197
|
font-weight: bold;
|
145
198
|
@include linear-gradient(top, $base-color 0%, $second-stop 50%, $third-stop 50%, $fourth-stop 100%);
|
146
|
-
padding:
|
199
|
+
padding: $padding;
|
147
200
|
text-align: center;
|
148
201
|
text-decoration: none;
|
149
202
|
text-shadow: 0 -1px 1px $text-shadow;
|
@@ -168,21 +221,22 @@
|
|
168
221
|
$fourth-stop-hover 100%);
|
169
222
|
}
|
170
223
|
|
171
|
-
&:active:not(:disabled)
|
224
|
+
&:active:not(:disabled),
|
225
|
+
&:focus:not(:disabled) {
|
172
226
|
$inset-shadow-active: adjust-color($base-color, $red: -111, $green: -116, $blue: -122);
|
173
227
|
|
174
228
|
@if $grayscale == true {
|
175
229
|
$inset-shadow-active: grayscale($inset-shadow-active);
|
176
230
|
}
|
177
231
|
|
178
|
-
box-shadow: inset 0 0 20px 0 $inset-shadow-active
|
232
|
+
box-shadow: inset 0 0 20px 0 $inset-shadow-active;
|
179
233
|
}
|
180
234
|
}
|
181
235
|
|
182
236
|
|
183
237
|
// Pill Button
|
184
238
|
//************************************************************************//
|
185
|
-
@mixin pill($base-color, $grayscale: false) {
|
239
|
+
@mixin pill($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
|
186
240
|
$color: hsl(0, 0, 100%);
|
187
241
|
$border-bottom: adjust-color($base-color, $hue: 8, $saturation: -11%, $lightness: -26%);
|
188
242
|
$border-sides: adjust-color($base-color, $hue: 4, $saturation: -21%, $lightness: -21%);
|
@@ -191,7 +245,7 @@
|
|
191
245
|
$stop-gradient: adjust-color($base-color, $hue: 8, $saturation: 14%, $lightness: -10%);
|
192
246
|
$text-shadow: adjust-color($base-color, $hue: 5, $saturation: -19%, $lightness: -15%);
|
193
247
|
|
194
|
-
@if
|
248
|
+
@if is-light($base-color) {
|
195
249
|
$color: hsl(0, 0, 20%);
|
196
250
|
$text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
|
197
251
|
}
|
@@ -208,14 +262,14 @@
|
|
208
262
|
border: 1px solid $border-top;
|
209
263
|
border-color: $border-top $border-sides $border-bottom;
|
210
264
|
border-radius: 16px;
|
211
|
-
box-shadow: inset 0 1px 0 0 $inset-shadow
|
265
|
+
box-shadow: inset 0 1px 0 0 $inset-shadow;
|
212
266
|
color: $color;
|
213
267
|
display: inline-block;
|
214
|
-
font-size:
|
268
|
+
font-size: $textsize;
|
215
269
|
font-weight: normal;
|
216
270
|
line-height: 1;
|
217
271
|
@include linear-gradient ($base-color, $stop-gradient);
|
218
|
-
padding:
|
272
|
+
padding: $padding;
|
219
273
|
text-align: center;
|
220
274
|
text-decoration: none;
|
221
275
|
text-shadow: 0 -1px 1px $text-shadow;
|
@@ -249,7 +303,8 @@
|
|
249
303
|
background-clip: padding-box;
|
250
304
|
}
|
251
305
|
|
252
|
-
&:active:not(:disabled)
|
306
|
+
&:active:not(:disabled),
|
307
|
+
&:focus:not(:disabled) {
|
253
308
|
$active-color: adjust-color($base-color, $hue: 4, $saturation: -12%, $lightness: -10%);
|
254
309
|
$border-active: adjust-color($base-color, $hue: 6, $saturation: -2.5%, $lightness: -30%);
|
255
310
|
$border-bottom-active: adjust-color($base-color, $hue: 11, $saturation: 6%, $lightness: -31%);
|
@@ -267,7 +322,53 @@
|
|
267
322
|
background: $active-color;
|
268
323
|
border: 1px solid $border-active;
|
269
324
|
border-bottom: 1px solid $border-bottom-active;
|
270
|
-
box-shadow: inset 0 0 6px 3px $inset-shadow-active
|
325
|
+
box-shadow: inset 0 0 6px 3px $inset-shadow-active;
|
271
326
|
text-shadow: 0 -1px 1px $text-shadow-active;
|
272
327
|
}
|
273
328
|
}
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
// Flat Button
|
333
|
+
//************************************************************************//
|
334
|
+
@mixin flat($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
|
335
|
+
$color: hsl(0, 0, 100%);
|
336
|
+
|
337
|
+
@if is-light($base-color) {
|
338
|
+
$color: hsl(0, 0, 20%);
|
339
|
+
}
|
340
|
+
|
341
|
+
background-color: $base-color;
|
342
|
+
border-radius: 3px;
|
343
|
+
border: none;
|
344
|
+
color: $color;
|
345
|
+
display: inline-block;
|
346
|
+
font-size: inherit;
|
347
|
+
font-weight: bold;
|
348
|
+
padding: 7px 18px;
|
349
|
+
text-decoration: none;
|
350
|
+
background-clip: padding-box;
|
351
|
+
|
352
|
+
&:hover:not(:disabled){
|
353
|
+
$base-color-hover: adjust-color($base-color, $saturation: 4%, $lightness: 5%);
|
354
|
+
|
355
|
+
@if $grayscale == true {
|
356
|
+
$base-color-hover: grayscale($base-color-hover);
|
357
|
+
}
|
358
|
+
|
359
|
+
background-color: $base-color-hover;
|
360
|
+
cursor: pointer;
|
361
|
+
}
|
362
|
+
|
363
|
+
&:active:not(:disabled),
|
364
|
+
&:focus:not(:disabled) {
|
365
|
+
$base-color-active: adjust-color($base-color, $saturation: -4%, $lightness: -5%);
|
366
|
+
|
367
|
+
@if $grayscale == true {
|
368
|
+
$base-color-active: grayscale($base-color-active);
|
369
|
+
}
|
370
|
+
|
371
|
+
background-color: $base-color-active;
|
372
|
+
cursor: pointer;
|
373
|
+
}
|
374
|
+
}
|
@@ -57,9 +57,6 @@
|
|
57
57
|
$right: $pre + "-right" + if($suf, "-#{$suf}", "");
|
58
58
|
$all: $pre + if($suf, "-#{$suf}", "");
|
59
59
|
|
60
|
-
// Get list inside $vals (is there a better way?)
|
61
|
-
@each $val in $vals { $vals: $val; }
|
62
|
-
|
63
60
|
$vals: collapse-directionals($vals);
|
64
61
|
|
65
62
|
@if contains-falsy($vals) {
|
@@ -94,21 +91,21 @@
|
|
94
91
|
}
|
95
92
|
|
96
93
|
@mixin margin($vals...) {
|
97
|
-
@include directional-property(margin, false, $vals);
|
94
|
+
@include directional-property(margin, false, $vals...);
|
98
95
|
}
|
99
96
|
|
100
97
|
@mixin padding($vals...) {
|
101
|
-
@include directional-property(padding, false, $vals);
|
98
|
+
@include directional-property(padding, false, $vals...);
|
102
99
|
}
|
103
100
|
|
104
101
|
@mixin border-style($vals...) {
|
105
|
-
@include directional-property(border, style, $vals);
|
102
|
+
@include directional-property(border, style, $vals...);
|
106
103
|
}
|
107
104
|
|
108
105
|
@mixin border-color($vals...) {
|
109
|
-
@include directional-property(border, color, $vals);
|
106
|
+
@include directional-property(border, color, $vals...);
|
110
107
|
}
|
111
108
|
|
112
109
|
@mixin border-width($vals...) {
|
113
|
-
@include directional-property(border, width, $vals);
|
110
|
+
@include directional-property(border, width, $vals...);
|
114
111
|
}
|
@@ -20,19 +20,29 @@ $inputs-list: 'input[type="email"]',
|
|
20
20
|
'input[type="time"]',
|
21
21
|
'input[type="week"]';
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
$
|
23
|
+
$unquoted-inputs-list: ();
|
24
|
+
@each $input-type in $inputs-list {
|
25
|
+
$unquoted-inputs-list: append($unquoted-inputs-list, unquote($input-type), comma);
|
26
|
+
}
|
27
|
+
|
28
|
+
$all-text-inputs: $unquoted-inputs-list;
|
29
|
+
|
26
30
|
|
27
31
|
// Hover Pseudo-class
|
28
32
|
//************************************************************************//
|
29
|
-
$all-text-inputs-hover:
|
33
|
+
$all-text-inputs-hover: ();
|
34
|
+
@each $input-type in $unquoted-inputs-list {
|
35
|
+
$input-type-hover: $input-type + ":hover";
|
36
|
+
$all-text-inputs-hover: append($all-text-inputs-hover, $input-type-hover, comma);
|
37
|
+
}
|
30
38
|
|
31
39
|
// Focus Pseudo-class
|
32
40
|
//************************************************************************//
|
33
|
-
$all-text-inputs-focus:
|
34
|
-
|
35
|
-
|
41
|
+
$all-text-inputs-focus: ();
|
42
|
+
@each $input-type in $unquoted-inputs-list {
|
43
|
+
$input-type-focus: $input-type + ":focus";
|
44
|
+
$all-text-inputs-focus: append($all-text-inputs-focus, $input-type-focus, comma);
|
45
|
+
}
|
36
46
|
|
37
47
|
// You must use interpolation on the variable:
|
38
48
|
// #{$all-text-inputs}
|
@@ -55,23 +65,37 @@ $inputs-button-list: 'input[type="button"]',
|
|
55
65
|
'input[type="reset"]',
|
56
66
|
'input[type="submit"]';
|
57
67
|
|
58
|
-
|
59
|
-
|
60
|
-
$
|
68
|
+
$unquoted-inputs-button-list: ();
|
69
|
+
@each $input-type in $inputs-button-list {
|
70
|
+
$unquoted-inputs-button-list: append($unquoted-inputs-button-list, unquote($input-type), comma);
|
71
|
+
}
|
72
|
+
|
73
|
+
$all-button-inputs: $unquoted-inputs-button-list;
|
74
|
+
|
61
75
|
|
62
76
|
// Hover Pseudo-class
|
63
77
|
//************************************************************************//
|
64
|
-
$all-button-inputs-hover:
|
78
|
+
$all-button-inputs-hover: ();
|
79
|
+
@each $input-type in $unquoted-inputs-button-list {
|
80
|
+
$input-type-hover: $input-type + ":hover";
|
81
|
+
$all-button-inputs-hover: append($all-button-inputs-hover, $input-type-hover, comma);
|
82
|
+
}
|
65
83
|
|
66
84
|
// Focus Pseudo-class
|
67
85
|
//************************************************************************//
|
68
|
-
$all-button-inputs-focus:
|
86
|
+
$all-button-inputs-focus: ();
|
87
|
+
@each $input-type in $unquoted-inputs-button-list {
|
88
|
+
$input-type-focus: $input-type + ":focus";
|
89
|
+
$all-button-inputs-focus: append($all-button-inputs-focus, $input-type-focus, comma);
|
90
|
+
}
|
69
91
|
|
70
92
|
// Active Pseudo-class
|
71
93
|
//************************************************************************//
|
72
|
-
$all-button-inputs-active:
|
73
|
-
|
74
|
-
|
94
|
+
$all-button-inputs-active: ();
|
95
|
+
@each $input-type in $unquoted-inputs-button-list {
|
96
|
+
$input-type-active: $input-type + ":active";
|
97
|
+
$all-button-inputs-active: append($all-button-inputs-active, $input-type-active, comma);
|
98
|
+
}
|
75
99
|
|
76
100
|
// You must use interpolation on the variable:
|
77
101
|
// #{$all-button-inputs}
|