bourbon 3.2.4 → 4.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +6 -6
- data/.npmignore +9 -11
- data/Gemfile.lock +49 -0
- data/{LICENSE.md → LICENSE} +10 -8
- data/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss +3 -8
- data/app/assets/stylesheets/_bourbon.scss +9 -12
- data/app/assets/stylesheets/addons/_directional-values.scss +8 -5
- data/app/assets/stylesheets/addons/_html5-input-types.scss +15 -39
- data/app/assets/stylesheets/addons/_position.scss +5 -5
- data/app/assets/stylesheets/addons/_prefixer.scss +5 -5
- data/app/assets/stylesheets/addons/_rem.scss +33 -0
- data/app/assets/stylesheets/addons/_retina-image.scss +1 -1
- data/app/assets/stylesheets/addons/_size.scss +9 -37
- data/app/assets/stylesheets/addons/_timing-functions.scss +1 -1
- data/app/assets/stylesheets/addons/_triangle.scss +0 -1
- data/app/assets/stylesheets/css3/_background-image.scss +29 -35
- data/app/assets/stylesheets/css3/_background.scss +37 -85
- data/app/assets/stylesheets/css3/_border-image.scss +45 -42
- data/app/assets/stylesheets/css3/_flex-box.scss +14 -14
- data/app/assets/stylesheets/css3/_font-face.scss +1 -1
- data/app/assets/stylesheets/css3/_keyframes.scss +7 -7
- data/app/assets/stylesheets/functions/_assign.scss +11 -0
- data/app/assets/stylesheets/functions/_color-lightness.scss +5 -5
- data/app/assets/stylesheets/helpers/_convert-units.scss +15 -0
- data/app/assets/stylesheets/helpers/_is-num.scss +8 -0
- data/app/assets/stylesheets/helpers/_linear-angle-parser.scss +25 -0
- data/app/assets/stylesheets/helpers/_linear-gradient-parser.scss +41 -0
- data/app/assets/stylesheets/helpers/_linear-side-corner-parser.scss +31 -0
- data/app/assets/stylesheets/helpers/_radial-gradient-parser.scss +50 -0
- data/app/assets/stylesheets/helpers/_render-gradients.scss +2 -2
- data/app/assets/stylesheets/helpers/_str-to-num.scss +50 -0
- data/bourbon.gemspec +2 -2
- data/bower.json +6 -23
- data/dist/_bourbon-deprecated-upcoming.scss +3 -8
- data/dist/_bourbon.scss +9 -12
- data/dist/addons/_directional-values.scss +8 -5
- data/dist/addons/_html5-input-types.scss +15 -39
- data/dist/addons/_position.scss +5 -5
- data/dist/addons/_prefixer.scss +5 -5
- data/dist/addons/_rem.scss +33 -0
- data/dist/addons/_retina-image.scss +1 -1
- data/dist/addons/_size.scss +9 -37
- data/dist/addons/_timing-functions.scss +1 -1
- data/dist/addons/_triangle.scss +0 -1
- data/dist/css3/_background-image.scss +29 -35
- data/dist/css3/_background.scss +37 -85
- data/dist/css3/_border-image.scss +45 -42
- data/dist/css3/_flex-box.scss +14 -14
- data/dist/css3/_font-face.scss +1 -1
- data/dist/css3/_keyframes.scss +7 -7
- data/dist/functions/_assign.scss +11 -0
- data/dist/functions/_color-lightness.scss +5 -5
- data/dist/helpers/_convert-units.scss +15 -0
- data/dist/helpers/_is-num.scss +8 -0
- data/dist/helpers/_linear-angle-parser.scss +25 -0
- data/dist/helpers/_linear-gradient-parser.scss +41 -0
- data/dist/helpers/_linear-side-corner-parser.scss +31 -0
- data/dist/helpers/_radial-gradient-parser.scss +50 -0
- data/dist/helpers/_render-gradients.scss +2 -2
- data/dist/helpers/_str-to-num.scss +50 -0
- data/lib/bourbon/version.rb +1 -1
- data/package.json +14 -18
- data/readme.md +96 -0
- metadata +38 -33
- data/README.md +0 -126
- data/app/assets/stylesheets/addons/_word-wrap.scss +0 -8
- data/app/assets/stylesheets/css3/_inline-block.scss +0 -8
- data/app/assets/stylesheets/functions/_linear-gradient.scss +0 -13
- data/app/assets/stylesheets/functions/_px-to-rem.scss +0 -15
- data/app/assets/stylesheets/functions/_radial-gradient.scss +0 -23
- data/app/assets/stylesheets/settings/_asset-pipeline.scss +0 -1
- data/dist/addons/_word-wrap.scss +0 -8
- data/dist/css3/_inline-block.scss +0 -8
- data/dist/functions/_linear-gradient.scss +0 -13
- data/dist/functions/_px-to-rem.scss +0 -15
- data/dist/functions/_radial-gradient.scss +0 -23
- data/dist/settings/_asset-pipeline.scss +0 -1
@@ -1,13 +0,0 @@
|
|
1
|
-
@function linear-gradient($pos, $gradients...) {
|
2
|
-
$type: linear;
|
3
|
-
$pos-type: type-of(nth($pos, 1));
|
4
|
-
|
5
|
-
// if $pos doesn't exist, fix $gradient
|
6
|
-
@if ($pos-type == color) or (nth($pos, 1) == "transparent") {
|
7
|
-
$gradients: zip($pos $gradients);
|
8
|
-
$pos: false;
|
9
|
-
}
|
10
|
-
|
11
|
-
$type-gradient: $type, $pos, $gradients;
|
12
|
-
@return $type-gradient;
|
13
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
// Convert pixels to rems
|
2
|
-
// eg. for a relational value of 12px write rem(12)
|
3
|
-
// Assumes $em-base is the font-size of <html>
|
4
|
-
|
5
|
-
@function rem($pxval) {
|
6
|
-
@if not unitless($pxval) {
|
7
|
-
$pxval: strip-units($pxval);
|
8
|
-
}
|
9
|
-
|
10
|
-
$base: $em-base;
|
11
|
-
@if not unitless($base) {
|
12
|
-
$base: strip-units($base);
|
13
|
-
}
|
14
|
-
@return ($pxval / $base) * 1rem;
|
15
|
-
}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
// This function is required and used by the background-image mixin.
|
2
|
-
@function 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
|
-
|
10
|
-
$data: _radial-arg-parser($G1, $G2, $pos, $shape-size);
|
11
|
-
$G1: nth($data, 1);
|
12
|
-
$G2: nth($data, 2);
|
13
|
-
$pos: nth($data, 3);
|
14
|
-
$shape-size: nth($data, 4);
|
15
|
-
|
16
|
-
$type: radial;
|
17
|
-
$gradient: $G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10;
|
18
|
-
|
19
|
-
$type-gradient: $type, $shape-size $pos, $gradient;
|
20
|
-
@return $type-gradient;
|
21
|
-
}
|
22
|
-
|
23
|
-
|
@@ -1 +0,0 @@
|
|
1
|
-
$asset-pipeline: false !default;
|
data/dist/addons/_word-wrap.scss
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
@function linear-gradient($pos, $gradients...) {
|
2
|
-
$type: linear;
|
3
|
-
$pos-type: type-of(nth($pos, 1));
|
4
|
-
|
5
|
-
// if $pos doesn't exist, fix $gradient
|
6
|
-
@if ($pos-type == color) or (nth($pos, 1) == "transparent") {
|
7
|
-
$gradients: zip($pos $gradients);
|
8
|
-
$pos: false;
|
9
|
-
}
|
10
|
-
|
11
|
-
$type-gradient: $type, $pos, $gradients;
|
12
|
-
@return $type-gradient;
|
13
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
// Convert pixels to rems
|
2
|
-
// eg. for a relational value of 12px write rem(12)
|
3
|
-
// Assumes $em-base is the font-size of <html>
|
4
|
-
|
5
|
-
@function rem($pxval) {
|
6
|
-
@if not unitless($pxval) {
|
7
|
-
$pxval: strip-units($pxval);
|
8
|
-
}
|
9
|
-
|
10
|
-
$base: $em-base;
|
11
|
-
@if not unitless($base) {
|
12
|
-
$base: strip-units($base);
|
13
|
-
}
|
14
|
-
@return ($pxval / $base) * 1rem;
|
15
|
-
}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
// This function is required and used by the background-image mixin.
|
2
|
-
@function 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
|
-
|
10
|
-
$data: _radial-arg-parser($G1, $G2, $pos, $shape-size);
|
11
|
-
$G1: nth($data, 1);
|
12
|
-
$G2: nth($data, 2);
|
13
|
-
$pos: nth($data, 3);
|
14
|
-
$shape-size: nth($data, 4);
|
15
|
-
|
16
|
-
$type: radial;
|
17
|
-
$gradient: $G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10;
|
18
|
-
|
19
|
-
$type-gradient: $type, $shape-size $pos, $gradient;
|
20
|
-
@return $type-gradient;
|
21
|
-
}
|
22
|
-
|
23
|
-
|
@@ -1 +0,0 @@
|
|
1
|
-
$asset-pipeline: false !default;
|