bourbon 4.0.2 → 4.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/.gitignore +6 -6
- data/.npmignore +12 -9
- data/CONTRIBUTING.md +34 -0
- data/Gemfile +0 -1
- data/{LICENSE → LICENSE.md} +3 -3
- data/README.md +130 -0
- data/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss +399 -5
- data/app/assets/stylesheets/_bourbon.scss +14 -7
- data/app/assets/stylesheets/addons/_clearfix.scss +11 -16
- data/app/assets/stylesheets/addons/_ellipsis.scss +1 -0
- data/app/assets/stylesheets/addons/_hide-text.scss +4 -2
- data/app/assets/stylesheets/addons/_html5-input-types.scss +4 -0
- data/app/assets/stylesheets/addons/_position.scss +13 -19
- data/app/assets/stylesheets/addons/_size.scss +17 -7
- data/app/assets/stylesheets/addons/_word-wrap.scss +3 -1
- data/app/assets/stylesheets/css3/_background.scss +1 -1
- data/app/assets/stylesheets/css3/_border-radius.scss +14 -14
- data/app/assets/stylesheets/css3/_flex-box.scss +151 -152
- data/app/assets/stylesheets/css3/_font-face.scss +17 -16
- data/app/assets/stylesheets/css3/_hidpi-media-query.scss +2 -2
- data/app/assets/stylesheets/css3/_selection.scss +14 -0
- data/app/assets/stylesheets/css3/_text-decoration.scss +19 -0
- data/app/assets/stylesheets/functions/_contains.scss +12 -0
- data/app/assets/stylesheets/functions/_is-length.scss +7 -0
- data/app/assets/stylesheets/functions/_is-size.scss +6 -0
- data/app/assets/stylesheets/functions/_modular-scale.scss +4 -1
- data/app/assets/stylesheets/helpers/_font-source-declaration.scss +36 -0
- data/app/assets/stylesheets/helpers/_is-num.scss +4 -7
- data/bourbon.gemspec +13 -16
- data/bower.json +25 -8
- data/lib/bourbon/version.rb +1 -1
- data/package.json +18 -14
- data/sache.json +5 -0
- metadata +40 -108
- data/Gemfile.lock +0 -49
- data/app/assets/stylesheets/addons/_button.scss +0 -374
- data/app/assets/stylesheets/functions/_flex-grid.scss +0 -39
- data/app/assets/stylesheets/functions/_golden-ratio.scss +0 -3
- data/app/assets/stylesheets/functions/_grid-width.scss +0 -13
- data/dist/_bourbon-deprecated-upcoming.scss +0 -8
- data/dist/_bourbon.scss +0 -79
- data/dist/addons/_button.scss +0 -374
- data/dist/addons/_clearfix.scss +0 -23
- data/dist/addons/_directional-values.scss +0 -111
- data/dist/addons/_ellipsis.scss +0 -7
- data/dist/addons/_font-family.scss +0 -5
- data/dist/addons/_hide-text.scss +0 -10
- data/dist/addons/_html5-input-types.scss +0 -86
- data/dist/addons/_position.scss +0 -32
- data/dist/addons/_prefixer.scss +0 -45
- data/dist/addons/_retina-image.scss +0 -31
- data/dist/addons/_size.scss +0 -16
- data/dist/addons/_timing-functions.scss +0 -32
- data/dist/addons/_triangle.scss +0 -83
- data/dist/addons/_word-wrap.scss +0 -8
- data/dist/css3/_animation.scss +0 -52
- data/dist/css3/_appearance.scss +0 -3
- data/dist/css3/_backface-visibility.scss +0 -6
- data/dist/css3/_background-image.scss +0 -42
- data/dist/css3/_background.scss +0 -55
- data/dist/css3/_border-image.scss +0 -59
- data/dist/css3/_border-radius.scss +0 -22
- data/dist/css3/_box-sizing.scss +0 -4
- data/dist/css3/_calc.scss +0 -4
- data/dist/css3/_columns.scss +0 -47
- data/dist/css3/_filter.scss +0 -5
- data/dist/css3/_flex-box.scss +0 -321
- data/dist/css3/_font-face.scss +0 -23
- data/dist/css3/_font-feature-settings.scss +0 -10
- data/dist/css3/_hidpi-media-query.scss +0 -10
- data/dist/css3/_hyphens.scss +0 -4
- data/dist/css3/_image-rendering.scss +0 -14
- data/dist/css3/_keyframes.scss +0 -35
- data/dist/css3/_linear-gradient.scss +0 -38
- data/dist/css3/_perspective.scss +0 -8
- data/dist/css3/_placeholder.scss +0 -8
- data/dist/css3/_radial-gradient.scss +0 -39
- data/dist/css3/_transform.scss +0 -15
- data/dist/css3/_transition.scss +0 -77
- data/dist/css3/_user-select.scss +0 -3
- data/dist/functions/_assign.scss +0 -11
- data/dist/functions/_color-lightness.scss +0 -13
- data/dist/functions/_flex-grid.scss +0 -39
- data/dist/functions/_golden-ratio.scss +0 -3
- data/dist/functions/_grid-width.scss +0 -13
- data/dist/functions/_modular-scale.scss +0 -66
- data/dist/functions/_px-to-em.scss +0 -13
- data/dist/functions/_px-to-rem.scss +0 -15
- data/dist/functions/_strip-units.scss +0 -5
- data/dist/functions/_tint-shade.scss +0 -9
- data/dist/functions/_transition-property-name.scss +0 -22
- data/dist/functions/_unpack.scss +0 -17
- data/dist/helpers/_convert-units.scss +0 -15
- data/dist/helpers/_gradient-positions-parser.scss +0 -13
- data/dist/helpers/_is-num.scss +0 -8
- data/dist/helpers/_linear-angle-parser.scss +0 -25
- data/dist/helpers/_linear-gradient-parser.scss +0 -41
- data/dist/helpers/_linear-positions-parser.scss +0 -61
- data/dist/helpers/_linear-side-corner-parser.scss +0 -31
- data/dist/helpers/_radial-arg-parser.scss +0 -69
- data/dist/helpers/_radial-gradient-parser.scss +0 -50
- data/dist/helpers/_radial-positions-parser.scss +0 -18
- data/dist/helpers/_render-gradients.scss +0 -26
- data/dist/helpers/_shape-size-stripper.scss +0 -10
- data/dist/helpers/_str-to-num.scss +0 -50
- data/dist/settings/_asset-pipeline.scss +0 -1
- data/dist/settings/_prefixer.scss +0 -6
- data/dist/settings/_px-to-em.scss +0 -1
- data/readme.md +0 -105
data/dist/addons/_button.scss
DELETED
|
@@ -1,374 +0,0 @@
|
|
|
1
|
-
@mixin button ($style: simple, $base-color: #4294f0, $text-size: inherit, $padding: 7px 18px) {
|
|
2
|
-
|
|
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 {
|
|
20
|
-
$base-color: $style;
|
|
21
|
-
$style: simple;
|
|
22
|
-
@include buttonstyle($style, $base-color, $text-size, $padding);
|
|
23
|
-
}
|
|
24
|
-
|
|
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;
|
|
30
|
-
|
|
31
|
-
@if $padding == inherit {
|
|
32
|
-
$padding: 7px 18px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@include buttonstyle($style, $base-color, $text-size, $padding);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@if type-of($style) == number {
|
|
39
|
-
$padding: $base-color;
|
|
40
|
-
$text-size: $style;
|
|
41
|
-
$base-color: #4294f0;
|
|
42
|
-
$style: simple;
|
|
43
|
-
|
|
44
|
-
@if $padding == #4294f0 {
|
|
45
|
-
$padding: 7px 18px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@include buttonstyle($style, $base-color, $text-size, $padding);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&:disabled {
|
|
52
|
-
opacity: 0.5;
|
|
53
|
-
cursor: not-allowed;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
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
|
-
|
|
97
|
-
// Simple Button
|
|
98
|
-
//************************************************************************//
|
|
99
|
-
@mixin simple($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
|
|
100
|
-
$color: hsl(0, 0, 100%);
|
|
101
|
-
$border: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
|
|
102
|
-
$inset-shadow: adjust-color($base-color, $saturation: -8%, $lightness: 15%);
|
|
103
|
-
$stop-gradient: adjust-color($base-color, $saturation: 9%, $lightness: -11%);
|
|
104
|
-
$text-shadow: adjust-color($base-color, $saturation: 15%, $lightness: -18%);
|
|
105
|
-
|
|
106
|
-
@if is-light($base-color) {
|
|
107
|
-
$color: hsl(0, 0, 20%);
|
|
108
|
-
$text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@if $grayscale == true {
|
|
112
|
-
$border: grayscale($border);
|
|
113
|
-
$inset-shadow: grayscale($inset-shadow);
|
|
114
|
-
$stop-gradient: grayscale($stop-gradient);
|
|
115
|
-
$text-shadow: grayscale($text-shadow);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
border: 1px solid $border;
|
|
119
|
-
border-radius: 3px;
|
|
120
|
-
box-shadow: inset 0 1px 0 0 $inset-shadow;
|
|
121
|
-
color: $color;
|
|
122
|
-
display: inline-block;
|
|
123
|
-
font-size: $textsize;
|
|
124
|
-
font-weight: bold;
|
|
125
|
-
@include linear-gradient ($base-color, $stop-gradient);
|
|
126
|
-
padding: $padding;
|
|
127
|
-
text-decoration: none;
|
|
128
|
-
text-shadow: 0 1px 0 $text-shadow;
|
|
129
|
-
background-clip: padding-box;
|
|
130
|
-
|
|
131
|
-
&:hover:not(:disabled) {
|
|
132
|
-
$base-color-hover: adjust-color($base-color, $saturation: -4%, $lightness: -5%);
|
|
133
|
-
$inset-shadow-hover: adjust-color($base-color, $saturation: -7%, $lightness: 5%);
|
|
134
|
-
$stop-gradient-hover: adjust-color($base-color, $saturation: 8%, $lightness: -14%);
|
|
135
|
-
|
|
136
|
-
@if $grayscale == true {
|
|
137
|
-
$base-color-hover: grayscale($base-color-hover);
|
|
138
|
-
$inset-shadow-hover: grayscale($inset-shadow-hover);
|
|
139
|
-
$stop-gradient-hover: grayscale($stop-gradient-hover);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
box-shadow: inset 0 1px 0 0 $inset-shadow-hover;
|
|
143
|
-
cursor: pointer;
|
|
144
|
-
@include linear-gradient ($base-color-hover, $stop-gradient-hover);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
&:active:not(:disabled),
|
|
148
|
-
&:focus:not(:disabled) {
|
|
149
|
-
$border-active: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
|
|
150
|
-
$inset-shadow-active: adjust-color($base-color, $saturation: 7%, $lightness: -17%);
|
|
151
|
-
|
|
152
|
-
@if $grayscale == true {
|
|
153
|
-
$border-active: grayscale($border-active);
|
|
154
|
-
$inset-shadow-active: grayscale($inset-shadow-active);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
border: 1px solid $border-active;
|
|
158
|
-
box-shadow: inset 0 0 8px 4px $inset-shadow-active, inset 0 0 8px 4px $inset-shadow-active;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
// Shiny Button
|
|
164
|
-
//************************************************************************//
|
|
165
|
-
@mixin shiny($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
|
|
166
|
-
$color: hsl(0, 0, 100%);
|
|
167
|
-
$border: adjust-color($base-color, $red: -117, $green: -111, $blue: -81);
|
|
168
|
-
$border-bottom: adjust-color($base-color, $red: -126, $green: -127, $blue: -122);
|
|
169
|
-
$fourth-stop: adjust-color($base-color, $red: -79, $green: -70, $blue: -46);
|
|
170
|
-
$inset-shadow: adjust-color($base-color, $red: 37, $green: 29, $blue: 12);
|
|
171
|
-
$second-stop: adjust-color($base-color, $red: -56, $green: -50, $blue: -33);
|
|
172
|
-
$text-shadow: adjust-color($base-color, $red: -140, $green: -141, $blue: -114);
|
|
173
|
-
$third-stop: adjust-color($base-color, $red: -86, $green: -75, $blue: -48);
|
|
174
|
-
|
|
175
|
-
@if is-light($base-color) {
|
|
176
|
-
$color: hsl(0, 0, 20%);
|
|
177
|
-
$text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
@if $grayscale == true {
|
|
181
|
-
$border: grayscale($border);
|
|
182
|
-
$border-bottom: grayscale($border-bottom);
|
|
183
|
-
$fourth-stop: grayscale($fourth-stop);
|
|
184
|
-
$inset-shadow: grayscale($inset-shadow);
|
|
185
|
-
$second-stop: grayscale($second-stop);
|
|
186
|
-
$text-shadow: grayscale($text-shadow);
|
|
187
|
-
$third-stop: grayscale($third-stop);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
border: 1px solid $border;
|
|
191
|
-
border-bottom: 1px solid $border-bottom;
|
|
192
|
-
border-radius: 5px;
|
|
193
|
-
box-shadow: inset 0 1px 0 0 $inset-shadow;
|
|
194
|
-
color: $color;
|
|
195
|
-
display: inline-block;
|
|
196
|
-
font-size: $textsize;
|
|
197
|
-
font-weight: bold;
|
|
198
|
-
@include linear-gradient(top, $base-color 0%, $second-stop 50%, $third-stop 50%, $fourth-stop 100%);
|
|
199
|
-
padding: $padding;
|
|
200
|
-
text-align: center;
|
|
201
|
-
text-decoration: none;
|
|
202
|
-
text-shadow: 0 -1px 1px $text-shadow;
|
|
203
|
-
|
|
204
|
-
&:hover:not(:disabled) {
|
|
205
|
-
$first-stop-hover: adjust-color($base-color, $red: -13, $green: -15, $blue: -18);
|
|
206
|
-
$second-stop-hover: adjust-color($base-color, $red: -66, $green: -62, $blue: -51);
|
|
207
|
-
$third-stop-hover: adjust-color($base-color, $red: -93, $green: -85, $blue: -66);
|
|
208
|
-
$fourth-stop-hover: adjust-color($base-color, $red: -86, $green: -80, $blue: -63);
|
|
209
|
-
|
|
210
|
-
@if $grayscale == true {
|
|
211
|
-
$first-stop-hover: grayscale($first-stop-hover);
|
|
212
|
-
$second-stop-hover: grayscale($second-stop-hover);
|
|
213
|
-
$third-stop-hover: grayscale($third-stop-hover);
|
|
214
|
-
$fourth-stop-hover: grayscale($fourth-stop-hover);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
cursor: pointer;
|
|
218
|
-
@include linear-gradient(top, $first-stop-hover 0%,
|
|
219
|
-
$second-stop-hover 50%,
|
|
220
|
-
$third-stop-hover 50%,
|
|
221
|
-
$fourth-stop-hover 100%);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
&:active:not(:disabled),
|
|
225
|
-
&:focus:not(:disabled) {
|
|
226
|
-
$inset-shadow-active: adjust-color($base-color, $red: -111, $green: -116, $blue: -122);
|
|
227
|
-
|
|
228
|
-
@if $grayscale == true {
|
|
229
|
-
$inset-shadow-active: grayscale($inset-shadow-active);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
box-shadow: inset 0 0 20px 0 $inset-shadow-active;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
// Pill Button
|
|
238
|
-
//************************************************************************//
|
|
239
|
-
@mixin pill($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
|
|
240
|
-
$color: hsl(0, 0, 100%);
|
|
241
|
-
$border-bottom: adjust-color($base-color, $hue: 8, $saturation: -11%, $lightness: -26%);
|
|
242
|
-
$border-sides: adjust-color($base-color, $hue: 4, $saturation: -21%, $lightness: -21%);
|
|
243
|
-
$border-top: adjust-color($base-color, $hue: -1, $saturation: -30%, $lightness: -15%);
|
|
244
|
-
$inset-shadow: adjust-color($base-color, $hue: -1, $saturation: -1%, $lightness: 7%);
|
|
245
|
-
$stop-gradient: adjust-color($base-color, $hue: 8, $saturation: 14%, $lightness: -10%);
|
|
246
|
-
$text-shadow: adjust-color($base-color, $hue: 5, $saturation: -19%, $lightness: -15%);
|
|
247
|
-
|
|
248
|
-
@if is-light($base-color) {
|
|
249
|
-
$color: hsl(0, 0, 20%);
|
|
250
|
-
$text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
@if $grayscale == true {
|
|
254
|
-
$border-bottom: grayscale($border-bottom);
|
|
255
|
-
$border-sides: grayscale($border-sides);
|
|
256
|
-
$border-top: grayscale($border-top);
|
|
257
|
-
$inset-shadow: grayscale($inset-shadow);
|
|
258
|
-
$stop-gradient: grayscale($stop-gradient);
|
|
259
|
-
$text-shadow: grayscale($text-shadow);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
border: 1px solid $border-top;
|
|
263
|
-
border-color: $border-top $border-sides $border-bottom;
|
|
264
|
-
border-radius: 16px;
|
|
265
|
-
box-shadow: inset 0 1px 0 0 $inset-shadow;
|
|
266
|
-
color: $color;
|
|
267
|
-
display: inline-block;
|
|
268
|
-
font-size: $textsize;
|
|
269
|
-
font-weight: normal;
|
|
270
|
-
line-height: 1;
|
|
271
|
-
@include linear-gradient ($base-color, $stop-gradient);
|
|
272
|
-
padding: $padding;
|
|
273
|
-
text-align: center;
|
|
274
|
-
text-decoration: none;
|
|
275
|
-
text-shadow: 0 -1px 1px $text-shadow;
|
|
276
|
-
background-clip: padding-box;
|
|
277
|
-
|
|
278
|
-
&:hover:not(:disabled) {
|
|
279
|
-
$base-color-hover: adjust-color($base-color, $lightness: -4.5%);
|
|
280
|
-
$border-bottom: adjust-color($base-color, $hue: 8, $saturation: 13.5%, $lightness: -32%);
|
|
281
|
-
$border-sides: adjust-color($base-color, $hue: 4, $saturation: -2%, $lightness: -27%);
|
|
282
|
-
$border-top: adjust-color($base-color, $hue: -1, $saturation: -17%, $lightness: -21%);
|
|
283
|
-
$inset-shadow-hover: adjust-color($base-color, $saturation: -1%, $lightness: 3%);
|
|
284
|
-
$stop-gradient-hover: adjust-color($base-color, $hue: 8, $saturation: -4%, $lightness: -15.5%);
|
|
285
|
-
$text-shadow-hover: adjust-color($base-color, $hue: 5, $saturation: -5%, $lightness: -22%);
|
|
286
|
-
|
|
287
|
-
@if $grayscale == true {
|
|
288
|
-
$base-color-hover: grayscale($base-color-hover);
|
|
289
|
-
$border-bottom: grayscale($border-bottom);
|
|
290
|
-
$border-sides: grayscale($border-sides);
|
|
291
|
-
$border-top: grayscale($border-top);
|
|
292
|
-
$inset-shadow-hover: grayscale($inset-shadow-hover);
|
|
293
|
-
$stop-gradient-hover: grayscale($stop-gradient-hover);
|
|
294
|
-
$text-shadow-hover: grayscale($text-shadow-hover);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
border: 1px solid $border-top;
|
|
298
|
-
border-color: $border-top $border-sides $border-bottom;
|
|
299
|
-
box-shadow: inset 0 1px 0 0 $inset-shadow-hover;
|
|
300
|
-
cursor: pointer;
|
|
301
|
-
@include linear-gradient ($base-color-hover, $stop-gradient-hover);
|
|
302
|
-
text-shadow: 0 -1px 1px $text-shadow-hover;
|
|
303
|
-
background-clip: padding-box;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
&:active:not(:disabled),
|
|
307
|
-
&:focus:not(:disabled) {
|
|
308
|
-
$active-color: adjust-color($base-color, $hue: 4, $saturation: -12%, $lightness: -10%);
|
|
309
|
-
$border-active: adjust-color($base-color, $hue: 6, $saturation: -2.5%, $lightness: -30%);
|
|
310
|
-
$border-bottom-active: adjust-color($base-color, $hue: 11, $saturation: 6%, $lightness: -31%);
|
|
311
|
-
$inset-shadow-active: adjust-color($base-color, $hue: 9, $saturation: 2%, $lightness: -21.5%);
|
|
312
|
-
$text-shadow-active: adjust-color($base-color, $hue: 5, $saturation: -12%, $lightness: -21.5%);
|
|
313
|
-
|
|
314
|
-
@if $grayscale == true {
|
|
315
|
-
$active-color: grayscale($active-color);
|
|
316
|
-
$border-active: grayscale($border-active);
|
|
317
|
-
$border-bottom-active: grayscale($border-bottom-active);
|
|
318
|
-
$inset-shadow-active: grayscale($inset-shadow-active);
|
|
319
|
-
$text-shadow-active: grayscale($text-shadow-active);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
background: $active-color;
|
|
323
|
-
border: 1px solid $border-active;
|
|
324
|
-
border-bottom: 1px solid $border-bottom-active;
|
|
325
|
-
box-shadow: inset 0 0 6px 3px $inset-shadow-active;
|
|
326
|
-
text-shadow: 0 -1px 1px $text-shadow-active;
|
|
327
|
-
}
|
|
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
|
-
}
|
data/dist/addons/_clearfix.scss
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// Modern micro clearfix provides an easy way to contain floats without adding additional markup.
|
|
2
|
-
//
|
|
3
|
-
// Example usage:
|
|
4
|
-
//
|
|
5
|
-
// // Contain all floats within .wrapper
|
|
6
|
-
// .wrapper {
|
|
7
|
-
// @include clearfix;
|
|
8
|
-
// .content,
|
|
9
|
-
// .sidebar {
|
|
10
|
-
// float : left;
|
|
11
|
-
// }
|
|
12
|
-
// }
|
|
13
|
-
|
|
14
|
-
@mixin clearfix {
|
|
15
|
-
&:after {
|
|
16
|
-
content:"";
|
|
17
|
-
display:table;
|
|
18
|
-
clear:both;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Acknowledgements
|
|
23
|
-
// Beat *that* clearfix: [Thierry Koblentz](http://www.css-101.org/articles/clearfix/latest-new-clearfix-so-far.php)
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
// directional-property mixins are shorthands
|
|
2
|
-
// for writing properties like the following
|
|
3
|
-
//
|
|
4
|
-
// @include margin(null 0 10px);
|
|
5
|
-
// ------
|
|
6
|
-
// margin-right: 0;
|
|
7
|
-
// margin-bottom: 10px;
|
|
8
|
-
// margin-left: 0;
|
|
9
|
-
//
|
|
10
|
-
// - or -
|
|
11
|
-
//
|
|
12
|
-
// @include border-style(dotted null);
|
|
13
|
-
// ------
|
|
14
|
-
// border-top-style: dotted;
|
|
15
|
-
// border-bottom-style: dotted;
|
|
16
|
-
//
|
|
17
|
-
// ------
|
|
18
|
-
//
|
|
19
|
-
// Note: You can also use false instead of null
|
|
20
|
-
|
|
21
|
-
@function collapse-directionals($vals) {
|
|
22
|
-
$output: null;
|
|
23
|
-
|
|
24
|
-
$A: nth( $vals, 1 );
|
|
25
|
-
$B: if( length($vals) < 2, $A, nth($vals, 2));
|
|
26
|
-
$C: if( length($vals) < 3, $A, nth($vals, 3));
|
|
27
|
-
$D: if( length($vals) < 2, $A, nth($vals, if( length($vals) < 4, 2, 4) ));
|
|
28
|
-
|
|
29
|
-
@if $A == 0 { $A: 0 }
|
|
30
|
-
@if $B == 0 { $B: 0 }
|
|
31
|
-
@if $C == 0 { $C: 0 }
|
|
32
|
-
@if $D == 0 { $D: 0 }
|
|
33
|
-
|
|
34
|
-
@if $A == $B and $A == $C and $A == $D { $output: $A }
|
|
35
|
-
@else if $A == $C and $B == $D { $output: $A $B }
|
|
36
|
-
@else if $B == $D { $output: $A $B $C }
|
|
37
|
-
@else { $output: $A $B $C $D }
|
|
38
|
-
|
|
39
|
-
@return $output;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@function contains-falsy($list) {
|
|
43
|
-
@each $item in $list {
|
|
44
|
-
@if not $item {
|
|
45
|
-
@return true;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@return false;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@mixin directional-property($pre, $suf, $vals) {
|
|
53
|
-
// Property Names
|
|
54
|
-
$top: $pre + "-top" + if($suf, "-#{$suf}", "");
|
|
55
|
-
$bottom: $pre + "-bottom" + if($suf, "-#{$suf}", "");
|
|
56
|
-
$left: $pre + "-left" + if($suf, "-#{$suf}", "");
|
|
57
|
-
$right: $pre + "-right" + if($suf, "-#{$suf}", "");
|
|
58
|
-
$all: $pre + if($suf, "-#{$suf}", "");
|
|
59
|
-
|
|
60
|
-
$vals: collapse-directionals($vals);
|
|
61
|
-
|
|
62
|
-
@if contains-falsy($vals) {
|
|
63
|
-
@if nth($vals, 1) { #{$top}: nth($vals, 1); }
|
|
64
|
-
|
|
65
|
-
@if length($vals) == 1 {
|
|
66
|
-
@if nth($vals, 1) { #{$right}: nth($vals, 1); }
|
|
67
|
-
} @else {
|
|
68
|
-
@if nth($vals, 2) { #{$right}: nth($vals, 2); }
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// prop: top/bottom right/left
|
|
72
|
-
@if length($vals) == 2 {
|
|
73
|
-
@if nth($vals, 1) { #{$bottom}: nth($vals, 1); }
|
|
74
|
-
@if nth($vals, 2) { #{$left}: nth($vals, 2); }
|
|
75
|
-
|
|
76
|
-
// prop: top right/left bottom
|
|
77
|
-
} @else if length($vals) == 3 {
|
|
78
|
-
@if nth($vals, 3) { #{$bottom}: nth($vals, 3); }
|
|
79
|
-
@if nth($vals, 2) { #{$left}: nth($vals, 2); }
|
|
80
|
-
|
|
81
|
-
// prop: top right bottom left
|
|
82
|
-
} @else if length($vals) == 4 {
|
|
83
|
-
@if nth($vals, 3) { #{$bottom}: nth($vals, 3); }
|
|
84
|
-
@if nth($vals, 4) { #{$left}: nth($vals, 4); }
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// prop: top/right/bottom/left
|
|
88
|
-
} @else {
|
|
89
|
-
#{$all}: $vals;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
@mixin margin($vals...) {
|
|
94
|
-
@include directional-property(margin, false, $vals...);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
@mixin padding($vals...) {
|
|
98
|
-
@include directional-property(padding, false, $vals...);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
@mixin border-style($vals...) {
|
|
102
|
-
@include directional-property(border, style, $vals...);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
@mixin border-color($vals...) {
|
|
106
|
-
@include directional-property(border, color, $vals...);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@mixin border-width($vals...) {
|
|
110
|
-
@include directional-property(border, width, $vals...);
|
|
111
|
-
}
|
data/dist/addons/_ellipsis.scss
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
$georgia: Georgia, Cambria, "Times New Roman", Times, serif;
|
|
2
|
-
$helvetica: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
|
|
3
|
-
$lucida-grande: "Lucida Grande", Tahoma, Verdana, Arial, sans-serif;
|
|
4
|
-
$monospace: "Bitstream Vera Sans Mono", Consolas, Courier, monospace;
|
|
5
|
-
$verdana: Verdana, Geneva, sans-serif;
|
data/dist/addons/_hide-text.scss
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
//************************************************************************//
|
|
2
|
-
// Generate a variable ($all-text-inputs) with a list of all html5
|
|
3
|
-
// input types that have a text-based input, excluding textarea.
|
|
4
|
-
// http://diveintohtml5.org/forms.html
|
|
5
|
-
//************************************************************************//
|
|
6
|
-
$inputs-list: 'input[type="email"]',
|
|
7
|
-
'input[type="number"]',
|
|
8
|
-
'input[type="password"]',
|
|
9
|
-
'input[type="search"]',
|
|
10
|
-
'input[type="tel"]',
|
|
11
|
-
'input[type="text"]',
|
|
12
|
-
'input[type="url"]',
|
|
13
|
-
|
|
14
|
-
// Webkit & Gecko may change the display of these in the future
|
|
15
|
-
'input[type="color"]',
|
|
16
|
-
'input[type="date"]',
|
|
17
|
-
'input[type="datetime"]',
|
|
18
|
-
'input[type="datetime-local"]',
|
|
19
|
-
'input[type="month"]',
|
|
20
|
-
'input[type="time"]',
|
|
21
|
-
'input[type="week"]';
|
|
22
|
-
|
|
23
|
-
// Bare inputs
|
|
24
|
-
//************************************************************************//
|
|
25
|
-
$all-text-inputs: assign-inputs($inputs-list);
|
|
26
|
-
|
|
27
|
-
// Hover Pseudo-class
|
|
28
|
-
//************************************************************************//
|
|
29
|
-
$all-text-inputs-hover: assign-inputs($inputs-list, hover);
|
|
30
|
-
|
|
31
|
-
// Focus Pseudo-class
|
|
32
|
-
//************************************************************************//
|
|
33
|
-
$all-text-inputs-focus: assign-inputs($inputs-list, focus);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
// You must use interpolation on the variable:
|
|
38
|
-
// #{$all-text-inputs}
|
|
39
|
-
// #{$all-text-inputs-hover}
|
|
40
|
-
// #{$all-text-inputs-focus}
|
|
41
|
-
|
|
42
|
-
// Example
|
|
43
|
-
//************************************************************************//
|
|
44
|
-
// #{$all-text-inputs}, textarea {
|
|
45
|
-
// border: 1px solid red;
|
|
46
|
-
// }
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
//************************************************************************//
|
|
51
|
-
// Generate a variable ($all-button-inputs) with a list of all html5
|
|
52
|
-
// input types that have a button-based input, excluding button.
|
|
53
|
-
//************************************************************************//
|
|
54
|
-
$inputs-button-list: 'input[type="button"]',
|
|
55
|
-
'input[type="reset"]',
|
|
56
|
-
'input[type="submit"]';
|
|
57
|
-
|
|
58
|
-
// Bare inputs
|
|
59
|
-
//************************************************************************//
|
|
60
|
-
$all-button-inputs: assign-inputs($inputs-button-list);
|
|
61
|
-
|
|
62
|
-
// Hover Pseudo-class
|
|
63
|
-
//************************************************************************//
|
|
64
|
-
$all-button-inputs-hover: assign-inputs($inputs-button-list, hover);
|
|
65
|
-
|
|
66
|
-
// Focus Pseudo-class
|
|
67
|
-
//************************************************************************//
|
|
68
|
-
$all-button-inputs-focus: assign-inputs($inputs-button-list, focus);
|
|
69
|
-
|
|
70
|
-
// Active Pseudo-class
|
|
71
|
-
//************************************************************************//
|
|
72
|
-
$all-button-inputs-active: assign-inputs($inputs-button-list, active);
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
// You must use interpolation on the variable:
|
|
77
|
-
// #{$all-button-inputs}
|
|
78
|
-
// #{$all-button-inputs-hover}
|
|
79
|
-
// #{$all-button-inputs-focus}
|
|
80
|
-
// #{$all-button-inputs-active}
|
|
81
|
-
|
|
82
|
-
// Example
|
|
83
|
-
//************************************************************************//
|
|
84
|
-
// #{$all-button-inputs}, button {
|
|
85
|
-
// border: 1px solid red;
|
|
86
|
-
// }
|
data/dist/addons/_position.scss
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
@mixin position ($position: relative, $coordinates: null null null null) {
|
|
2
|
-
|
|
3
|
-
@if type-of($position) == list {
|
|
4
|
-
$coordinates: $position;
|
|
5
|
-
$position: relative;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
$coordinates: unpack($coordinates);
|
|
9
|
-
|
|
10
|
-
$top: nth($coordinates, 1);
|
|
11
|
-
$right: nth($coordinates, 2);
|
|
12
|
-
$bottom: nth($coordinates, 3);
|
|
13
|
-
$left: nth($coordinates, 4);
|
|
14
|
-
|
|
15
|
-
position: $position;
|
|
16
|
-
|
|
17
|
-
@if ($top and $top == auto) or (type-of($top) == number) {
|
|
18
|
-
top: $top;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@if ($right and $right == auto) or (type-of($right) == number) {
|
|
22
|
-
right: $right;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@if ($bottom and $bottom == auto) or (type-of($bottom) == number) {
|
|
26
|
-
bottom: $bottom;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@if ($left and $left == auto) or (type-of($left) == number) {
|
|
30
|
-
left: $left;
|
|
31
|
-
}
|
|
32
|
-
}
|
data/dist/addons/_prefixer.scss
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
//************************************************************************//
|
|
2
|
-
// Example: @include prefixer(border-radius, $radii, webkit ms spec);
|
|
3
|
-
//************************************************************************//
|
|
4
|
-
// Variables located in /settings/_prefixer.scss
|
|
5
|
-
|
|
6
|
-
@mixin prefixer ($property, $value, $prefixes) {
|
|
7
|
-
@each $prefix in $prefixes {
|
|
8
|
-
@if $prefix == webkit {
|
|
9
|
-
@if $prefix-for-webkit {
|
|
10
|
-
-webkit-#{$property}: $value;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
@else if $prefix == moz {
|
|
14
|
-
@if $prefix-for-mozilla {
|
|
15
|
-
-moz-#{$property}: $value;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
@else if $prefix == ms {
|
|
19
|
-
@if $prefix-for-microsoft {
|
|
20
|
-
-ms-#{$property}: $value;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
@else if $prefix == o {
|
|
24
|
-
@if $prefix-for-opera {
|
|
25
|
-
-o-#{$property}: $value;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
@else if $prefix == spec {
|
|
29
|
-
@if $prefix-for-spec {
|
|
30
|
-
#{$property}: $value;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
@else {
|
|
34
|
-
@warn "Unrecognized prefix: #{$prefix}";
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@mixin disable-prefix-for-all() {
|
|
40
|
-
$prefix-for-webkit: false !global;
|
|
41
|
-
$prefix-for-mozilla: false !global;
|
|
42
|
-
$prefix-for-microsoft: false !global;
|
|
43
|
-
$prefix-for-opera: false !global;
|
|
44
|
-
$prefix-for-spec: false !global;
|
|
45
|
-
}
|