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/css3/_flex-box.scss
DELETED
|
@@ -1,321 +0,0 @@
|
|
|
1
|
-
// CSS3 Flexible Box Model and property defaults
|
|
2
|
-
|
|
3
|
-
// Custom shorthand notation for flexbox
|
|
4
|
-
@mixin box($orient: inline-axis, $pack: start, $align: stretch) {
|
|
5
|
-
@include display-box;
|
|
6
|
-
@include box-orient($orient);
|
|
7
|
-
@include box-pack($pack);
|
|
8
|
-
@include box-align($align);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@mixin display-box {
|
|
12
|
-
display: -webkit-box;
|
|
13
|
-
display: -moz-box;
|
|
14
|
-
display: -ms-flexbox; // IE 10
|
|
15
|
-
display: box;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@mixin box-orient($orient: inline-axis) {
|
|
19
|
-
// horizontal|vertical|inline-axis|block-axis|inherit
|
|
20
|
-
@include prefixer(box-orient, $orient, webkit moz spec);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@mixin box-pack($pack: start) {
|
|
24
|
-
// start|end|center|justify
|
|
25
|
-
@include prefixer(box-pack, $pack, webkit moz spec);
|
|
26
|
-
-ms-flex-pack: $pack; // IE 10
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@mixin box-align($align: stretch) {
|
|
30
|
-
// start|end|center|baseline|stretch
|
|
31
|
-
@include prefixer(box-align, $align, webkit moz spec);
|
|
32
|
-
-ms-flex-align: $align; // IE 10
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@mixin box-direction($direction: normal) {
|
|
36
|
-
// normal|reverse|inherit
|
|
37
|
-
@include prefixer(box-direction, $direction, webkit moz spec);
|
|
38
|
-
-ms-flex-direction: $direction; // IE 10
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@mixin box-lines($lines: single) {
|
|
42
|
-
// single|multiple
|
|
43
|
-
@include prefixer(box-lines, $lines, webkit moz spec);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@mixin box-ordinal-group($int: 1) {
|
|
47
|
-
@include prefixer(box-ordinal-group, $int, webkit moz spec);
|
|
48
|
-
-ms-flex-order: $int; // IE 10
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@mixin box-flex($value: 0.0) {
|
|
52
|
-
@include prefixer(box-flex, $value, webkit moz spec);
|
|
53
|
-
-ms-flex: $value; // IE 10
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@mixin box-flex-group($int: 1) {
|
|
57
|
-
@include prefixer(box-flex-group, $int, webkit moz spec);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// CSS3 Flexible Box Model and property defaults
|
|
61
|
-
// Unified attributes for 2009, 2011, and 2012 flavours.
|
|
62
|
-
|
|
63
|
-
// 2009 - display (box | inline-box)
|
|
64
|
-
// 2011 - display (flexbox | inline-flexbox)
|
|
65
|
-
// 2012 - display (flex | inline-flex)
|
|
66
|
-
@mixin display($value) {
|
|
67
|
-
// flex | inline-flex
|
|
68
|
-
@if $value == "flex" {
|
|
69
|
-
// 2009
|
|
70
|
-
display: -webkit-box;
|
|
71
|
-
display: -moz-box;
|
|
72
|
-
display: box;
|
|
73
|
-
|
|
74
|
-
// 2012
|
|
75
|
-
display: -webkit-flex;
|
|
76
|
-
display: -moz-flex;
|
|
77
|
-
display: -ms-flexbox; // 2011 (IE 10)
|
|
78
|
-
display: flex;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
@elseif $value == "inline-flex" {
|
|
82
|
-
display: -webkit-inline-box;
|
|
83
|
-
display: -moz-inline-box;
|
|
84
|
-
display: inline-box;
|
|
85
|
-
|
|
86
|
-
display: -webkit-inline-flex;
|
|
87
|
-
display: -moz-inline-flex;
|
|
88
|
-
display: -ms-inline-flexbox;
|
|
89
|
-
display: inline-flex;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
@else {
|
|
93
|
-
display: $value;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// 2009 - box-flex (integer)
|
|
98
|
-
// 2011 - flex (decimal | width decimal)
|
|
99
|
-
// 2012 - flex (integer integer width)
|
|
100
|
-
@mixin flex($value) {
|
|
101
|
-
|
|
102
|
-
// Grab flex-grow for older browsers.
|
|
103
|
-
$flex-grow: nth($value, 1);
|
|
104
|
-
|
|
105
|
-
// 2009
|
|
106
|
-
@include prefixer(box-flex, $flex-grow, webkit moz spec);
|
|
107
|
-
|
|
108
|
-
// 2011 (IE 10), 2012
|
|
109
|
-
@include prefixer(flex, $value, webkit moz ms spec);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// 2009 - box-orient ( horizontal | vertical | inline-axis | block-axis)
|
|
113
|
-
// - box-direction (normal | reverse)
|
|
114
|
-
// 2011 - flex-direction (row | row-reverse | column | column-reverse)
|
|
115
|
-
// 2012 - flex-direction (row | row-reverse | column | column-reverse)
|
|
116
|
-
@mixin flex-direction($value: row) {
|
|
117
|
-
|
|
118
|
-
// Alt values.
|
|
119
|
-
$value-2009: $value;
|
|
120
|
-
$value-2011: $value;
|
|
121
|
-
$direction: "normal";
|
|
122
|
-
|
|
123
|
-
@if $value == row {
|
|
124
|
-
$value-2009: horizontal;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
@elseif $value == "row-reverse" {
|
|
128
|
-
$value-2009: horizontal;
|
|
129
|
-
$direction: reverse;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
@elseif $value == column {
|
|
133
|
-
$value-2009: vertical;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
@elseif $value == "column-reverse" {
|
|
137
|
-
$value-2009: vertical;
|
|
138
|
-
$direction: reverse;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
// 2009
|
|
142
|
-
@include prefixer(box-orient, $value-2009, webkit moz spec);
|
|
143
|
-
@if $direction == "reverse" {
|
|
144
|
-
@include prefixer(box-direction, $direction, webkit moz spec);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
// 2012
|
|
148
|
-
@include prefixer(flex-direction, $value, webkit moz spec);
|
|
149
|
-
|
|
150
|
-
// 2011 (IE 10)
|
|
151
|
-
-ms-flex-direction: $value;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
// 2009 - box-lines (single | multiple)
|
|
155
|
-
// 2011 - flex-wrap (nowrap | wrap | wrap-reverse)
|
|
156
|
-
// 2012 - flex-wrap (nowrap | wrap | wrap-reverse)
|
|
157
|
-
@mixin flex-wrap($value: nowrap) {
|
|
158
|
-
|
|
159
|
-
// Alt values.
|
|
160
|
-
$alt-value: $value;
|
|
161
|
-
@if $value == nowrap {
|
|
162
|
-
$alt-value: single;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
@elseif $value == wrap {
|
|
166
|
-
$alt-value: multiple;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
@elseif $value == "wrap-reverse" {
|
|
170
|
-
$alt-value: multiple;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
@include prefixer(box-lines, $alt-value, webkit moz spec);
|
|
174
|
-
@include prefixer(flex-wrap, $value, webkit moz ms spec);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
// 2009 - TODO: parse values into flex-direction/flex-wrap
|
|
178
|
-
// 2011 - TODO: parse values into flex-direction/flex-wrap
|
|
179
|
-
// 2012 - flex-flow (flex-direction || flex-wrap)
|
|
180
|
-
@mixin flex-flow($value) {
|
|
181
|
-
@include prefixer(flex-flow, $value, webkit moz spec);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
// 2009 - box-ordinal-group (integer)
|
|
185
|
-
// 2011 - flex-order (integer)
|
|
186
|
-
// 2012 - order (integer)
|
|
187
|
-
@mixin order($int: 0) {
|
|
188
|
-
// 2009
|
|
189
|
-
@include prefixer(box-ordinal-group, $int, webkit moz spec);
|
|
190
|
-
|
|
191
|
-
// 2012
|
|
192
|
-
@include prefixer(order, $int, webkit moz spec);
|
|
193
|
-
|
|
194
|
-
// 2011 (IE 10)
|
|
195
|
-
-ms-flex-order: $int;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
// 2012 - flex-grow (number)
|
|
199
|
-
@mixin flex-grow($number: 0) {
|
|
200
|
-
@include prefixer(flex-grow, $number, webkit moz spec);
|
|
201
|
-
-ms-flex-positive: $number;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
// 2012 - flex-shrink (number)
|
|
205
|
-
@mixin flex-shrink($number: 1) {
|
|
206
|
-
@include prefixer(flex-shrink, $number, webkit moz spec);
|
|
207
|
-
-ms-flex-negative: $number;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
// 2012 - flex-basis (number)
|
|
211
|
-
@mixin flex-basis($width: auto) {
|
|
212
|
-
@include prefixer(flex-basis, $width, webkit moz spec);
|
|
213
|
-
-ms-flex-preferred-size: $width;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
// 2009 - box-pack (start | end | center | justify)
|
|
217
|
-
// 2011 - flex-pack (start | end | center | justify)
|
|
218
|
-
// 2012 - justify-content (flex-start | flex-end | center | space-between | space-around)
|
|
219
|
-
@mixin justify-content ($value: flex-start) {
|
|
220
|
-
|
|
221
|
-
// Alt values.
|
|
222
|
-
$alt-value: $value;
|
|
223
|
-
@if $value == "flex-start" {
|
|
224
|
-
$alt-value: start;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
@elseif $value == "flex-end" {
|
|
228
|
-
$alt-value: end;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
@elseif $value == "space-between" {
|
|
232
|
-
$alt-value: justify;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
@elseif $value == "space-around" {
|
|
236
|
-
$alt-value: center;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
// 2009
|
|
240
|
-
@include prefixer(box-pack, $alt-value, webkit moz spec);
|
|
241
|
-
|
|
242
|
-
// 2012
|
|
243
|
-
@include prefixer(justify-content, $value, webkit moz ms o spec);
|
|
244
|
-
|
|
245
|
-
// 2011 (IE 10)
|
|
246
|
-
-ms-flex-pack: $alt-value;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
// 2009 - box-align (start | end | center | baseline | stretch)
|
|
250
|
-
// 2011 - flex-align (start | end | center | baseline | stretch)
|
|
251
|
-
// 2012 - align-items (flex-start | flex-end | center | baseline | stretch)
|
|
252
|
-
@mixin align-items($value: stretch) {
|
|
253
|
-
|
|
254
|
-
$alt-value: $value;
|
|
255
|
-
|
|
256
|
-
@if $value == "flex-start" {
|
|
257
|
-
$alt-value: start;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
@elseif $value == "flex-end" {
|
|
261
|
-
$alt-value: end;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
// 2009
|
|
265
|
-
@include prefixer(box-align, $alt-value, webkit moz spec);
|
|
266
|
-
|
|
267
|
-
// 2012
|
|
268
|
-
@include prefixer(align-items, $value, webkit moz ms o spec);
|
|
269
|
-
|
|
270
|
-
// 2011 (IE 10)
|
|
271
|
-
-ms-flex-align: $alt-value;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
// 2011 - flex-item-align (auto | start | end | center | baseline | stretch)
|
|
275
|
-
// 2012 - align-self (auto | flex-start | flex-end | center | baseline | stretch)
|
|
276
|
-
@mixin align-self($value: auto) {
|
|
277
|
-
|
|
278
|
-
$value-2011: $value;
|
|
279
|
-
@if $value == "flex-start" {
|
|
280
|
-
$value-2011: start;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
@elseif $value == "flex-end" {
|
|
284
|
-
$value-2011: end;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
// 2012
|
|
288
|
-
@include prefixer(align-self, $value, webkit moz spec);
|
|
289
|
-
|
|
290
|
-
// 2011 (IE 10)
|
|
291
|
-
-ms-flex-item-align: $value-2011;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
// 2011 - flex-line-pack (start | end | center | justify | distribute | stretch)
|
|
295
|
-
// 2012 - align-content (flex-start | flex-end | center | space-between | space-around | stretch)
|
|
296
|
-
@mixin align-content($value: stretch) {
|
|
297
|
-
|
|
298
|
-
$value-2011: $value;
|
|
299
|
-
@if $value == "flex-start" {
|
|
300
|
-
$value-2011: start;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
@elseif $value == "flex-end" {
|
|
304
|
-
$value-2011: end;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
@elseif $value == "space-between" {
|
|
308
|
-
$value-2011: justify;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
@elseif $value == "space-around" {
|
|
312
|
-
$value-2011: distribute;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
// 2012
|
|
316
|
-
@include prefixer(align-content, $value, webkit moz spec);
|
|
317
|
-
|
|
318
|
-
// 2011 (IE 10)
|
|
319
|
-
-ms-flex-line-pack: $value-2011;
|
|
320
|
-
}
|
|
321
|
-
|
data/dist/css3/_font-face.scss
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// Order of the includes matters, and it is: normal, bold, italic, bold+italic.
|
|
2
|
-
|
|
3
|
-
@mixin font-face($font-family, $file-path, $weight: normal, $style: normal, $asset-pipeline: $asset-pipeline) {
|
|
4
|
-
@font-face {
|
|
5
|
-
font-family: $font-family;
|
|
6
|
-
font-weight: $weight;
|
|
7
|
-
font-style: $style;
|
|
8
|
-
|
|
9
|
-
@if $asset-pipeline == true {
|
|
10
|
-
src: font-url('#{$file-path}.eot');
|
|
11
|
-
src: font-url('#{$file-path}.eot?#iefix') format('embedded-opentype'),
|
|
12
|
-
font-url('#{$file-path}.woff') format('woff'),
|
|
13
|
-
font-url('#{$file-path}.ttf') format('truetype'),
|
|
14
|
-
font-url('#{$file-path}.svg##{$font-family}') format('svg');
|
|
15
|
-
} @else {
|
|
16
|
-
src: url('#{$file-path}.eot');
|
|
17
|
-
src: url('#{$file-path}.eot?#iefix') format('embedded-opentype'),
|
|
18
|
-
url('#{$file-path}.woff') format('woff'),
|
|
19
|
-
url('#{$file-path}.ttf') format('truetype'),
|
|
20
|
-
url('#{$file-path}.svg##{$font-family}') format('svg');
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// Font feature settings mixin and property default.
|
|
2
|
-
// Examples: @include font-feature-settings("liga");
|
|
3
|
-
// @include font-feature-settings("lnum" false);
|
|
4
|
-
// @include font-feature-settings("pnum" 1, "kern" 0);
|
|
5
|
-
// @include font-feature-settings("ss01", "ss02");
|
|
6
|
-
|
|
7
|
-
@mixin font-feature-settings($settings...) {
|
|
8
|
-
@if length($settings) == 0 { $settings: none; }
|
|
9
|
-
@include prefixer(font-feature-settings, $settings, webkit moz ms spec);
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// HiDPI mixin. Default value set to 1.3 to target Google Nexus 7 (http://bjango.com/articles/min-device-pixel-ratio/)
|
|
2
|
-
@mixin hidpi($ratio: 1.3) {
|
|
3
|
-
@media only screen and (-webkit-min-device-pixel-ratio: $ratio),
|
|
4
|
-
only screen and (min--moz-device-pixel-ratio: $ratio),
|
|
5
|
-
only screen and (-o-min-device-pixel-ratio: #{$ratio}/1),
|
|
6
|
-
only screen and (min-resolution: #{round($ratio*96)}dpi),
|
|
7
|
-
only screen and (min-resolution: #{$ratio}dppx) {
|
|
8
|
-
@content;
|
|
9
|
-
}
|
|
10
|
-
}
|
data/dist/css3/_hyphens.scss
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
@mixin image-rendering ($mode:auto) {
|
|
2
|
-
|
|
3
|
-
@if ($mode == crisp-edges) {
|
|
4
|
-
-ms-interpolation-mode: nearest-neighbor; // IE8+
|
|
5
|
-
image-rendering: -moz-crisp-edges;
|
|
6
|
-
image-rendering: -o-crisp-edges;
|
|
7
|
-
image-rendering: -webkit-optimize-contrast;
|
|
8
|
-
image-rendering: crisp-edges;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@else {
|
|
12
|
-
image-rendering: $mode;
|
|
13
|
-
}
|
|
14
|
-
}
|
data/dist/css3/_keyframes.scss
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// Adds keyframes blocks for supported prefixes, removing redundant prefixes in the block's content
|
|
2
|
-
@mixin keyframes($name) {
|
|
3
|
-
$original-prefix-for-webkit: $prefix-for-webkit;
|
|
4
|
-
$original-prefix-for-mozilla: $prefix-for-mozilla;
|
|
5
|
-
$original-prefix-for-microsoft: $prefix-for-microsoft;
|
|
6
|
-
$original-prefix-for-opera: $prefix-for-opera;
|
|
7
|
-
$original-prefix-for-spec: $prefix-for-spec;
|
|
8
|
-
|
|
9
|
-
@if $original-prefix-for-webkit {
|
|
10
|
-
@include disable-prefix-for-all();
|
|
11
|
-
$prefix-for-webkit: true !global;
|
|
12
|
-
@-webkit-keyframes #{$name} {
|
|
13
|
-
@content;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
@if $original-prefix-for-mozilla {
|
|
17
|
-
@include disable-prefix-for-all();
|
|
18
|
-
$prefix-for-mozilla: true !global;
|
|
19
|
-
@-moz-keyframes #{$name} {
|
|
20
|
-
@content;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
$prefix-for-webkit: $original-prefix-for-webkit !global;
|
|
25
|
-
$prefix-for-mozilla: $original-prefix-for-mozilla !global;
|
|
26
|
-
$prefix-for-microsoft: $original-prefix-for-microsoft !global;
|
|
27
|
-
$prefix-for-opera: $original-prefix-for-opera !global;
|
|
28
|
-
$prefix-for-spec: $original-prefix-for-spec !global;
|
|
29
|
-
|
|
30
|
-
@if $original-prefix-for-spec {
|
|
31
|
-
@keyframes #{$name} {
|
|
32
|
-
@content;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
@mixin linear-gradient($pos, $G1, $G2: null,
|
|
2
|
-
$G3: null, $G4: null,
|
|
3
|
-
$G5: null, $G6: null,
|
|
4
|
-
$G7: null, $G8: null,
|
|
5
|
-
$G9: null, $G10: null,
|
|
6
|
-
$fallback: null) {
|
|
7
|
-
// Detect what type of value exists in $pos
|
|
8
|
-
$pos-type: type-of(nth($pos, 1));
|
|
9
|
-
$pos-spec: null;
|
|
10
|
-
$pos-degree: null;
|
|
11
|
-
|
|
12
|
-
// If $pos is missing from mixin, reassign vars and add default position
|
|
13
|
-
@if ($pos-type == color) or (nth($pos, 1) == "transparent") {
|
|
14
|
-
$G10: $G9; $G9: $G8; $G8: $G7; $G7: $G6; $G6: $G5;
|
|
15
|
-
$G5: $G4; $G4: $G3; $G3: $G2; $G2: $G1; $G1: $pos;
|
|
16
|
-
$pos: null;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@if $pos {
|
|
20
|
-
$positions: _linear-positions-parser($pos);
|
|
21
|
-
$pos-degree: nth($positions, 1);
|
|
22
|
-
$pos-spec: nth($positions, 2);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
$full: $G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10;
|
|
26
|
-
|
|
27
|
-
// Set $G1 as the default fallback color
|
|
28
|
-
$fallback-color: nth($G1, 1);
|
|
29
|
-
|
|
30
|
-
// If $fallback is a color use that color as the fallback color
|
|
31
|
-
@if (type-of($fallback) == color) or ($fallback == "transparent") {
|
|
32
|
-
$fallback-color: $fallback;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
background-color: $fallback-color;
|
|
36
|
-
background-image: -webkit-linear-gradient($pos-degree $full); // Safari 5.1+, Chrome
|
|
37
|
-
background-image: unquote("linear-gradient(#{$pos-spec}#{$full})");
|
|
38
|
-
}
|
data/dist/css3/_perspective.scss
DELETED
data/dist/css3/_placeholder.scss
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// Requires Sass 3.1+
|
|
2
|
-
@mixin radial-gradient($G1, $G2,
|
|
3
|
-
$G3: null, $G4: null,
|
|
4
|
-
$G5: null, $G6: null,
|
|
5
|
-
$G7: null, $G8: null,
|
|
6
|
-
$G9: null, $G10: null,
|
|
7
|
-
$pos: null,
|
|
8
|
-
$shape-size: null,
|
|
9
|
-
$fallback: null) {
|
|
10
|
-
|
|
11
|
-
$data: _radial-arg-parser($G1, $G2, $pos, $shape-size);
|
|
12
|
-
$G1: nth($data, 1);
|
|
13
|
-
$G2: nth($data, 2);
|
|
14
|
-
$pos: nth($data, 3);
|
|
15
|
-
$shape-size: nth($data, 4);
|
|
16
|
-
|
|
17
|
-
$full: $G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10;
|
|
18
|
-
|
|
19
|
-
// Strip deprecated cover/contain for spec
|
|
20
|
-
$shape-size-spec: _shape-size-stripper($shape-size);
|
|
21
|
-
|
|
22
|
-
// Set $G1 as the default fallback color
|
|
23
|
-
$first-color: nth($full, 1);
|
|
24
|
-
$fallback-color: nth($first-color, 1);
|
|
25
|
-
|
|
26
|
-
@if (type-of($fallback) == color) or ($fallback == "transparent") {
|
|
27
|
-
$fallback-color: $fallback;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Add Commas and spaces
|
|
31
|
-
$shape-size: if($shape-size, '#{$shape-size}, ', null);
|
|
32
|
-
$pos: if($pos, '#{$pos}, ', null);
|
|
33
|
-
$pos-spec: if($pos, 'at #{$pos}', null);
|
|
34
|
-
$shape-size-spec: if(($shape-size-spec != ' ') and ($pos == null), '#{$shape-size-spec}, ', '#{$shape-size-spec} ');
|
|
35
|
-
|
|
36
|
-
background-color: $fallback-color;
|
|
37
|
-
background-image: -webkit-radial-gradient(unquote(#{$pos}#{$shape-size}#{$full}));
|
|
38
|
-
background-image: unquote("radial-gradient(#{$shape-size-spec}#{$pos-spec}#{$full})");
|
|
39
|
-
}
|
data/dist/css3/_transform.scss
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
@mixin transform($property: none) {
|
|
2
|
-
// none | <transform-function>
|
|
3
|
-
@include prefixer(transform, $property, webkit moz ms o spec);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
@mixin transform-origin($axes: 50%) {
|
|
7
|
-
// x-axis - left | center | right | length | %
|
|
8
|
-
// y-axis - top | center | bottom | length | %
|
|
9
|
-
// z-axis - length
|
|
10
|
-
@include prefixer(transform-origin, $axes, webkit moz ms o spec);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@mixin transform-style ($style: flat) {
|
|
14
|
-
@include prefixer(transform-style, $style, webkit moz ms o spec);
|
|
15
|
-
}
|
data/dist/css3/_transition.scss
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
// Shorthand mixin. Supports multiple parentheses-deliminated values for each variable.
|
|
2
|
-
// Example: @include transition (all 2s ease-in-out);
|
|
3
|
-
// @include transition (opacity 1s ease-in 2s, width 2s ease-out);
|
|
4
|
-
// @include transition-property (transform, opacity);
|
|
5
|
-
|
|
6
|
-
@mixin transition ($properties...) {
|
|
7
|
-
// Fix for vendor-prefix transform property
|
|
8
|
-
$needs-prefixes: false;
|
|
9
|
-
$webkit: ();
|
|
10
|
-
$moz: ();
|
|
11
|
-
$spec: ();
|
|
12
|
-
|
|
13
|
-
// Create lists for vendor-prefixed transform
|
|
14
|
-
@each $list in $properties {
|
|
15
|
-
@if nth($list, 1) == "transform" {
|
|
16
|
-
$needs-prefixes: true;
|
|
17
|
-
$list1: -webkit-transform;
|
|
18
|
-
$list2: -moz-transform;
|
|
19
|
-
$list3: ();
|
|
20
|
-
|
|
21
|
-
@each $var in $list {
|
|
22
|
-
$list3: join($list3, $var);
|
|
23
|
-
|
|
24
|
-
@if $var != "transform" {
|
|
25
|
-
$list1: join($list1, $var);
|
|
26
|
-
$list2: join($list2, $var);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
$webkit: append($webkit, $list1);
|
|
31
|
-
$moz: append($moz, $list2);
|
|
32
|
-
$spec: append($spec, $list3);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// Create lists for non-prefixed transition properties
|
|
36
|
-
@else {
|
|
37
|
-
$webkit: append($webkit, $list, comma);
|
|
38
|
-
$moz: append($moz, $list, comma);
|
|
39
|
-
$spec: append($spec, $list, comma);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@if $needs-prefixes {
|
|
44
|
-
-webkit-transition: $webkit;
|
|
45
|
-
-moz-transition: $moz;
|
|
46
|
-
transition: $spec;
|
|
47
|
-
}
|
|
48
|
-
@else {
|
|
49
|
-
@if length($properties) >= 1 {
|
|
50
|
-
@include prefixer(transition, $properties, webkit moz spec);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@else {
|
|
54
|
-
$properties: all 0.15s ease-out 0s;
|
|
55
|
-
@include prefixer(transition, $properties, webkit moz spec);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@mixin transition-property ($properties...) {
|
|
61
|
-
-webkit-transition-property: transition-property-names($properties, 'webkit');
|
|
62
|
-
-moz-transition-property: transition-property-names($properties, 'moz');
|
|
63
|
-
transition-property: transition-property-names($properties, false);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@mixin transition-duration ($times...) {
|
|
67
|
-
@include prefixer(transition-duration, $times, webkit moz spec);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@mixin transition-timing-function ($motions...) {
|
|
71
|
-
// ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier()
|
|
72
|
-
@include prefixer(transition-timing-function, $motions, webkit moz spec);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@mixin transition-delay ($times...) {
|
|
76
|
-
@include prefixer(transition-delay, $times, webkit moz spec);
|
|
77
|
-
}
|
data/dist/css3/_user-select.scss
DELETED
data/dist/functions/_assign.scss
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Programatically determines whether a color is light or dark
|
|
2
|
-
// Returns a boolean
|
|
3
|
-
// More details here http://robots.thoughtbot.com/closer-look-color-lightness
|
|
4
|
-
|
|
5
|
-
@function is-light($hex-color) {
|
|
6
|
-
$-local-red: red(rgba($hex-color, 1.0));
|
|
7
|
-
$-local-green: green(rgba($hex-color, 1.0));
|
|
8
|
-
$-local-blue: blue(rgba($hex-color, 1.0));
|
|
9
|
-
|
|
10
|
-
$-local-lightness: ($-local-red * 0.2126 + $-local-green * 0.7152 + $-local-blue * 0.0722) / 255;
|
|
11
|
-
|
|
12
|
-
@return $-local-lightness > .6;
|
|
13
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// Flexible grid
|
|
2
|
-
@function flex-grid($columns, $container-columns: $fg-max-columns) {
|
|
3
|
-
$width: $columns * $fg-column + ($columns - 1) * $fg-gutter;
|
|
4
|
-
$container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter;
|
|
5
|
-
@return percentage($width / $container-width);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
// Flexible gutter
|
|
9
|
-
@function flex-gutter($container-columns: $fg-max-columns, $gutter: $fg-gutter) {
|
|
10
|
-
$container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter;
|
|
11
|
-
@return percentage($gutter / $container-width);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// The $fg-column, $fg-gutter and $fg-max-columns variables must be defined in your base stylesheet to properly use the flex-grid function.
|
|
15
|
-
// This function takes the fluid grid equation (target / context = result) and uses columns to help define each.
|
|
16
|
-
//
|
|
17
|
-
// The calculation presumes that your column structure will be missing the last gutter:
|
|
18
|
-
//
|
|
19
|
-
// -- column -- gutter -- column -- gutter -- column
|
|
20
|
-
//
|
|
21
|
-
// $fg-column: 60px; // Column Width
|
|
22
|
-
// $fg-gutter: 25px; // Gutter Width
|
|
23
|
-
// $fg-max-columns: 12; // Total Columns For Main Container
|
|
24
|
-
//
|
|
25
|
-
// div {
|
|
26
|
-
// width: flex-grid(4); // returns (315px / 995px) = 31.65829%;
|
|
27
|
-
// margin-left: flex-gutter(); // returns (25px / 995px) = 2.51256%;
|
|
28
|
-
//
|
|
29
|
-
// p {
|
|
30
|
-
// width: flex-grid(2, 4); // returns (145px / 315px) = 46.031746%;
|
|
31
|
-
// float: left;
|
|
32
|
-
// margin: flex-gutter(4); // returns (25px / 315px) = 7.936508%;
|
|
33
|
-
// }
|
|
34
|
-
//
|
|
35
|
-
// blockquote {
|
|
36
|
-
// float: left;
|
|
37
|
-
// width: flex-grid(2, 4); // returns (145px / 315px) = 46.031746%;
|
|
38
|
-
// }
|
|
39
|
-
// }
|