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
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
// Bourbon 4.1.0
|
|
2
|
+
// http://bourbon.io
|
|
3
|
+
// Copyright 2011-2014 thoughtbot, inc.
|
|
4
|
+
// MIT License
|
|
5
|
+
|
|
1
6
|
// Settings
|
|
2
7
|
@import "settings/prefixer";
|
|
3
8
|
@import "settings/px-to-em";
|
|
@@ -5,6 +10,7 @@
|
|
|
5
10
|
|
|
6
11
|
// Custom Helpers
|
|
7
12
|
@import "helpers/convert-units";
|
|
13
|
+
@import "helpers/font-source-declaration";
|
|
8
14
|
@import "helpers/gradient-positions-parser";
|
|
9
15
|
@import "helpers/is-num";
|
|
10
16
|
@import "helpers/linear-angle-parser";
|
|
@@ -21,16 +27,16 @@
|
|
|
21
27
|
// Custom Functions
|
|
22
28
|
@import "functions/assign";
|
|
23
29
|
@import "functions/color-lightness";
|
|
24
|
-
@import "functions/
|
|
25
|
-
@import "functions/
|
|
26
|
-
@import "functions/
|
|
27
|
-
@import "functions/modular-scale";
|
|
30
|
+
@import "functions/contains";
|
|
31
|
+
@import "functions/is-length";
|
|
32
|
+
@import "functions/is-size";
|
|
28
33
|
@import "functions/px-to-em";
|
|
29
34
|
@import "functions/px-to-rem";
|
|
30
35
|
@import "functions/strip-units";
|
|
31
36
|
@import "functions/tint-shade";
|
|
32
37
|
@import "functions/transition-property-name";
|
|
33
38
|
@import "functions/unpack";
|
|
39
|
+
@import "functions/modular-scale";
|
|
34
40
|
|
|
35
41
|
// CSS3 Mixins
|
|
36
42
|
@import "css3/animation";
|
|
@@ -47,20 +53,21 @@
|
|
|
47
53
|
@import "css3/flex-box";
|
|
48
54
|
@import "css3/font-face";
|
|
49
55
|
@import "css3/font-feature-settings";
|
|
50
|
-
@import "css3/hyphens";
|
|
51
56
|
@import "css3/hidpi-media-query";
|
|
57
|
+
@import "css3/hyphens";
|
|
52
58
|
@import "css3/image-rendering";
|
|
53
59
|
@import "css3/keyframes";
|
|
54
60
|
@import "css3/linear-gradient";
|
|
55
61
|
@import "css3/perspective";
|
|
62
|
+
@import "css3/placeholder";
|
|
56
63
|
@import "css3/radial-gradient";
|
|
64
|
+
@import "css3/selection";
|
|
65
|
+
@import "css3/text-decoration";
|
|
57
66
|
@import "css3/transform";
|
|
58
67
|
@import "css3/transition";
|
|
59
68
|
@import "css3/user-select";
|
|
60
|
-
@import "css3/placeholder";
|
|
61
69
|
|
|
62
70
|
// Addons & other mixins
|
|
63
|
-
@import "addons/button";
|
|
64
71
|
@import "addons/clearfix";
|
|
65
72
|
@import "addons/directional-values";
|
|
66
73
|
@import "addons/ellipsis";
|
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
//
|
|
1
|
+
// The clearfix mixin provides an easy way to contain floats
|
|
2
2
|
//
|
|
3
3
|
// Example usage:
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
// @include clearfix;
|
|
8
|
-
// .content,
|
|
9
|
-
// .sidebar {
|
|
10
|
-
// float : left;
|
|
11
|
-
// }
|
|
12
|
-
// }
|
|
4
|
+
// .wrapper {
|
|
5
|
+
// @include clearfix;
|
|
6
|
+
// }
|
|
13
7
|
|
|
14
8
|
@mixin clearfix {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
&::after {
|
|
10
|
+
clear: both;
|
|
11
|
+
content: "";
|
|
12
|
+
display: table;
|
|
19
13
|
}
|
|
20
14
|
}
|
|
21
15
|
|
|
22
|
-
// Acknowledgements
|
|
23
|
-
//
|
|
16
|
+
// Acknowledgements:
|
|
17
|
+
// Thierry Koblentz, cssmojo
|
|
18
|
+
// http://goo.gl/AQWvyH
|
|
@@ -32,12 +32,16 @@ $all-text-inputs-hover: assign-inputs($inputs-list, hover);
|
|
|
32
32
|
//************************************************************************//
|
|
33
33
|
$all-text-inputs-focus: assign-inputs($inputs-list, focus);
|
|
34
34
|
|
|
35
|
+
// Active Pseudo-class
|
|
36
|
+
//************************************************************************//
|
|
37
|
+
$all-text-inputs-active: assign-inputs($inputs-list, active);
|
|
35
38
|
|
|
36
39
|
|
|
37
40
|
// You must use interpolation on the variable:
|
|
38
41
|
// #{$all-text-inputs}
|
|
39
42
|
// #{$all-text-inputs-hover}
|
|
40
43
|
// #{$all-text-inputs-focus}
|
|
44
|
+
// #{$all-text-inputs-active}
|
|
41
45
|
|
|
42
46
|
// Example
|
|
43
47
|
//************************************************************************//
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Set element positioning in a single statement
|
|
2
|
+
|
|
3
|
+
@mixin position($position: relative, $coordinates: null null null null) {
|
|
2
4
|
|
|
3
5
|
@if type-of($position) == list {
|
|
4
6
|
$coordinates: $position;
|
|
@@ -7,26 +9,18 @@
|
|
|
7
9
|
|
|
8
10
|
$coordinates: unpack($coordinates);
|
|
9
11
|
|
|
10
|
-
$
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
$offsets: (
|
|
13
|
+
top: nth($coordinates, 1),
|
|
14
|
+
right: nth($coordinates, 2),
|
|
15
|
+
bottom: nth($coordinates, 3),
|
|
16
|
+
left: nth($coordinates, 4)
|
|
17
|
+
);
|
|
14
18
|
|
|
15
19
|
position: $position;
|
|
16
20
|
|
|
17
|
-
@
|
|
18
|
-
|
|
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;
|
|
21
|
+
@each $offset, $value in $offsets {
|
|
22
|
+
@if is-length($value) {
|
|
23
|
+
#{$offset}: $value;
|
|
24
|
+
}
|
|
31
25
|
}
|
|
32
26
|
}
|
|
@@ -1,16 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
$height: nth($size, 1);
|
|
3
|
-
$width: $height;
|
|
1
|
+
// Set `width` and `height` in a single statement
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
@mixin size($value) {
|
|
4
|
+
$width: nth($value, 1);
|
|
5
|
+
$height: $width;
|
|
6
|
+
|
|
7
|
+
@if length($value) > 1 {
|
|
8
|
+
$height: nth($value, 2);
|
|
7
9
|
}
|
|
8
10
|
|
|
9
|
-
@if
|
|
11
|
+
@if is-size($height) {
|
|
10
12
|
height: $height;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
|
-
@
|
|
15
|
+
@else {
|
|
16
|
+
@warn "`#{$height}` is not a valid length for the `$height` parameter in the `size` mixin.";
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@if is-size($width) {
|
|
14
20
|
width: $width;
|
|
15
21
|
}
|
|
22
|
+
|
|
23
|
+
@else {
|
|
24
|
+
@warn "`#{$width}` is not a valid length for the `$width` parameter in the `size` mixin.";
|
|
25
|
+
}
|
|
16
26
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
$spec-background: ();
|
|
13
13
|
$background-type: type-of($background);
|
|
14
14
|
|
|
15
|
-
@if $background-type == string or list {
|
|
15
|
+
@if $background-type == string or $background-type == list {
|
|
16
16
|
$background-str: if($background-type == list, nth($background, 1), $background);
|
|
17
17
|
|
|
18
18
|
$url-str: str-slice($background-str, 0, 3);
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
//
|
|
3
|
-
|
|
1
|
+
// Border Radius (Shorthand)
|
|
2
|
+
// Provides a shorthand syntax to target and add border radii to both corners on one side of a box
|
|
3
|
+
|
|
4
4
|
@mixin border-top-radius($radii) {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
border-top-left-radius: $radii;
|
|
6
|
+
border-top-right-radius: $radii;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
@mixin border-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
@mixin border-right-radius($radii) {
|
|
10
|
+
border-bottom-right-radius: $radii;
|
|
11
|
+
border-top-right-radius: $radii;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
@mixin border-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
@mixin border-bottom-radius($radii) {
|
|
15
|
+
border-bottom-left-radius: $radii;
|
|
16
|
+
border-bottom-right-radius: $radii;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
@mixin border-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
@mixin border-left-radius($radii) {
|
|
20
|
+
border-bottom-left-radius: $radii;
|
|
21
|
+
border-top-left-radius: $radii;
|
|
22
22
|
}
|