bourbon 2.0.0.rc1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/_config.yml +42 -0
- data/_includes/animation.html +20 -0
- data/_includes/appearance.html +8 -0
- data/_includes/background-image.html +36 -0
- data/_includes/background-size.html +12 -0
- data/_includes/border-image.html +11 -0
- data/_includes/border-radius.html +26 -0
- data/_includes/box-shadow.html +20 -0
- data/_includes/box-sizing.html +8 -0
- data/_includes/buttons.html +52 -0
- data/_includes/clearfix.html +11 -0
- data/_includes/columns.html +9 -0
- data/_includes/compact.html +9 -0
- data/_includes/complete-list.html +115 -0
- data/_includes/flex-box.html +23 -0
- data/_includes/flex-grid.html +28 -0
- data/_includes/font-family.html +21 -0
- data/_includes/footer.html +37 -0
- data/_includes/golden-ratio.html +16 -0
- data/_includes/grid-width.html +15 -0
- data/_includes/hide-text.html +12 -0
- data/_includes/html5-input-types.html +22 -0
- data/_includes/inline-block.html +8 -0
- data/_includes/intro.html +5 -0
- data/_includes/linear-gradient-function.html +21 -0
- data/_includes/linear-gradient.html +24 -0
- data/_includes/modular-scale.html +20 -0
- data/_includes/navigation.html +43 -0
- data/_includes/position.html +18 -0
- data/_includes/radial-gradient-function.html +24 -0
- data/_includes/radial-gradient.html +26 -0
- data/_includes/timing-functions.html +47 -0
- data/_includes/tint-shade.html +13 -0
- data/_includes/transform-origin.html +8 -0
- data/_includes/transform.html +10 -0
- data/_includes/transitions.html +9 -0
- data/_includes/user-select.html +8 -0
- data/_site/images/border.png +0 -0
- data/_site/images/bourbon-logo.png +0 -0
- data/_site/index.html +890 -0
- data/_site/stylesheets/style.css +1226 -0
- data/app/assets/stylesheets/_bourbon.scss +4 -0
- data/app/assets/stylesheets/addons/_button.scss +11 -7
- data/app/assets/stylesheets/addons/_font-face.scss +12 -0
- data/app/assets/stylesheets/addons/_position.scss +42 -0
- data/app/assets/stylesheets/css3/_animation.scss +9 -27
- data/app/assets/stylesheets/css3/_appearance.scss +1 -5
- data/app/assets/stylesheets/css3/_background-size.scss +1 -5
- data/app/assets/stylesheets/css3/_border-radius.scss +8 -19
- data/app/assets/stylesheets/css3/_box-shadow.scss +1 -3
- data/app/assets/stylesheets/css3/_box-sizing.scss +1 -3
- data/app/assets/stylesheets/css3/_columns.scss +10 -30
- data/app/assets/stylesheets/css3/_flex-box.scss +11 -26
- data/app/assets/stylesheets/css3/_prefixer.scss +12 -0
- data/app/assets/stylesheets/css3/_transform.scss +2 -10
- data/app/assets/stylesheets/css3/_transition.scss +9 -25
- data/app/assets/stylesheets/css3/_user-select.scss +1 -4
- data/app/assets/stylesheets/functions/_transition-property-name.scss +22 -0
- data/doc/README.md +36 -0
- data/images/border.png +0 -0
- data/images/bourbon-logo.png +0 -0
- data/index.html +80 -0
- data/lib/bourbon/sass_extensions/functions/compact.rb +3 -2
- data/lib/bourbon/version.rb +1 -1
- data/readme.md +8 -8
- data/stylesheets/sass/_animation-keyframes.scss +31 -0
- data/stylesheets/sass/_base.scss +304 -0
- data/stylesheets/sass/_demos.scss +198 -0
- data/stylesheets/sass/_mixins.scss +21 -0
- data/stylesheets/sass/_normalize.scss +264 -0
- data/stylesheets/sass/_pygments-theme-dark.scss +38 -0
- data/stylesheets/sass/_pygments-theme-light.scss +37 -0
- data/stylesheets/sass/style.scss +10 -0
- data/stylesheets/style.css +1226 -0
- metadata +69 -11
@@ -7,6 +7,7 @@
|
|
7
7
|
@import "functions/radial-gradient";
|
8
8
|
@import "functions/render-gradients";
|
9
9
|
@import "functions/tint-shade";
|
10
|
+
@import "functions/transition-property-name";
|
10
11
|
|
11
12
|
// CSS3 Mixins
|
12
13
|
@import "css3/animation";
|
@@ -21,6 +22,7 @@
|
|
21
22
|
@import "css3/flex-box";
|
22
23
|
@import "css3/inline-block";
|
23
24
|
@import "css3/linear-gradient";
|
25
|
+
@import "css3/prefixer";
|
24
26
|
@import "css3/radial-gradient";
|
25
27
|
@import "css3/transform";
|
26
28
|
@import "css3/transition";
|
@@ -29,7 +31,9 @@
|
|
29
31
|
// Addons & other mixins
|
30
32
|
@import "addons/button";
|
31
33
|
@import "addons/clearfix";
|
34
|
+
@import "addons/font-face";
|
32
35
|
@import "addons/font-family";
|
33
36
|
@import "addons/hide-text";
|
34
37
|
@import "addons/html5-input-types";
|
38
|
+
@import "addons/position";
|
35
39
|
@import "addons/timing-functions";
|
@@ -34,6 +34,11 @@
|
|
34
34
|
@include pill($base-color);
|
35
35
|
}
|
36
36
|
}
|
37
|
+
|
38
|
+
&:disabled {
|
39
|
+
opacity: 0.5;
|
40
|
+
cursor: not-allowed;
|
41
|
+
}
|
37
42
|
}
|
38
43
|
|
39
44
|
|
@@ -71,7 +76,7 @@
|
|
71
76
|
text-shadow: 0 1px 0 $text-shadow;
|
72
77
|
-webkit-background-clip: padding-box;
|
73
78
|
|
74
|
-
&:hover {
|
79
|
+
&:hover:not(:disabled) {
|
75
80
|
$base-color-hover: adjust-color($base-color, $saturation: -4%, $lightness: -5%);
|
76
81
|
$inset-shadow-hover: adjust-color($base-color, $saturation: -7%, $lightness: 5%);
|
77
82
|
$stop-gradient-hover: adjust-color($base-color, $saturation: 8%, $lightness: -14%);
|
@@ -87,7 +92,7 @@
|
|
87
92
|
@include linear-gradient ($base-color-hover, $stop-gradient-hover);
|
88
93
|
}
|
89
94
|
|
90
|
-
&:active {
|
95
|
+
&:active:not(:disabled) {
|
91
96
|
$border-active: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
|
92
97
|
$inset-shadow-active: adjust-color($base-color, $saturation: 7%, $lightness: -17%);
|
93
98
|
|
@@ -143,7 +148,7 @@
|
|
143
148
|
text-decoration: none;
|
144
149
|
text-shadow: 0 -1px 1px $text-shadow;
|
145
150
|
|
146
|
-
&:hover {
|
151
|
+
&:hover:not(:disabled) {
|
147
152
|
$first-stop-hover: adjust-color($base-color, $red: -13, $green: -15, $blue: -18);
|
148
153
|
$second-stop-hover: adjust-color($base-color, $red: -66, $green: -62, $blue: -51);
|
149
154
|
$third-stop-hover: adjust-color($base-color, $red: -93, $green: -85, $blue: -66);
|
@@ -163,7 +168,7 @@
|
|
163
168
|
$fourth-stop-hover 100%);
|
164
169
|
}
|
165
170
|
|
166
|
-
&:active {
|
171
|
+
&:active:not(:disabled) {
|
167
172
|
$inset-shadow-active: adjust-color($base-color, $red: -111, $green: -116, $blue: -122);
|
168
173
|
|
169
174
|
@if $grayscale == true {
|
@@ -216,7 +221,7 @@
|
|
216
221
|
text-shadow: 0 -1px 1px $text-shadow;
|
217
222
|
-webkit-background-clip: padding-box;
|
218
223
|
|
219
|
-
&:hover {
|
224
|
+
&:hover:not(:disabled) {
|
220
225
|
$base-color-hover: adjust-color($base-color, $lightness: -4.5%);
|
221
226
|
$border-bottom: adjust-color($base-color, $hue: 8, $saturation: 13.5%, $lightness: -32%);
|
222
227
|
$border-sides: adjust-color($base-color, $hue: 4, $saturation: -2%, $lightness: -27%);
|
@@ -244,7 +249,7 @@
|
|
244
249
|
-webkit-background-clip: padding-box;
|
245
250
|
}
|
246
251
|
|
247
|
-
&:active {
|
252
|
+
&:active:not(:disabled) {
|
248
253
|
$active-color: adjust-color($base-color, $hue: 4, $saturation: -12%, $lightness: -10%);
|
249
254
|
$border-active: adjust-color($base-color, $hue: 6, $saturation: -2.5%, $lightness: -30%);
|
250
255
|
$border-bottom-active: adjust-color($base-color, $hue: 11, $saturation: 6%, $lightness: -31%);
|
@@ -266,4 +271,3 @@
|
|
266
271
|
text-shadow: 0 -1px 1px $text-shadow-active;
|
267
272
|
}
|
268
273
|
}
|
269
|
-
|
@@ -0,0 +1,12 @@
|
|
1
|
+
@mixin font-face($font-family, $file-path, $weight: normal, $style: normal ) {
|
2
|
+
@font-face {
|
3
|
+
font-family: $font-family;
|
4
|
+
src: url('#{$file-path}.eot');
|
5
|
+
src: url('#{$file-path}.eot?#iefix') format('embedded-opentype'),
|
6
|
+
url('#{$file-path}.woff') format('woff'),
|
7
|
+
url('#{$file-path}.ttf') format('truetype'),
|
8
|
+
url('#{$file-path}.svg##{$font-family}') format('svg');
|
9
|
+
font-weight: $weight;
|
10
|
+
font-style: $style;
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
@mixin position ($position: relative, $coordinates: 0 0 0 0) {
|
2
|
+
|
3
|
+
@if type-of($position) == list {
|
4
|
+
$coordinates: $position;
|
5
|
+
$position: relative;
|
6
|
+
}
|
7
|
+
|
8
|
+
$top: nth($coordinates, 1);
|
9
|
+
$right: nth($coordinates, 2);
|
10
|
+
$bottom: nth($coordinates, 3);
|
11
|
+
$left: nth($coordinates, 4);
|
12
|
+
|
13
|
+
position: $position;
|
14
|
+
|
15
|
+
@if $top == auto {
|
16
|
+
top: $top;
|
17
|
+
}
|
18
|
+
@else if not(unitless($top)) {
|
19
|
+
top: $top;
|
20
|
+
}
|
21
|
+
|
22
|
+
@if $right == auto {
|
23
|
+
right: $right;
|
24
|
+
}
|
25
|
+
@else if not(unitless($right)) {
|
26
|
+
right: $right;
|
27
|
+
}
|
28
|
+
|
29
|
+
@if $bottom == auto {
|
30
|
+
bottom: $bottom;
|
31
|
+
}
|
32
|
+
@else if not(unitless($bottom)) {
|
33
|
+
bottom: $bottom;
|
34
|
+
}
|
35
|
+
|
36
|
+
@if $left == auto {
|
37
|
+
left: $left;
|
38
|
+
}
|
39
|
+
@else if not(unitless($left)) {
|
40
|
+
left: $left;
|
41
|
+
}
|
42
|
+
}
|
@@ -11,9 +11,7 @@
|
|
11
11
|
$full: compact($animation-1, $animation-2, $animation-3, $animation-4,
|
12
12
|
$animation-5, $animation-6, $animation-7, $animation-8, $animation-9);
|
13
13
|
|
14
|
-
|
15
|
-
-moz-animation: $full;
|
16
|
-
animation: $full;
|
14
|
+
@include prefixer(animation, $full);
|
17
15
|
}
|
18
16
|
|
19
17
|
// Individual Animation Properties
|
@@ -26,9 +24,7 @@
|
|
26
24
|
$full: compact($name-1, $name-2, $name-3, $name-4,
|
27
25
|
$name-5, $name-6, $name-7, $name-8, $name-9);
|
28
26
|
|
29
|
-
|
30
|
-
-moz-animation-name: $full;
|
31
|
-
animation-name: $full;
|
27
|
+
@include prefixer(animation-name, $full);
|
32
28
|
}
|
33
29
|
|
34
30
|
|
@@ -41,9 +37,7 @@
|
|
41
37
|
$full: compact($time-1, $time-2, $time-3, $time-4,
|
42
38
|
$time-5, $time-6, $time-7, $time-8, $time-9);
|
43
39
|
|
44
|
-
|
45
|
-
-moz-animation-duration: $full;
|
46
|
-
animation-duration: $full;
|
40
|
+
@include prefixer(animation-duration, $full);
|
47
41
|
}
|
48
42
|
|
49
43
|
|
@@ -57,9 +51,7 @@
|
|
57
51
|
$full: compact($motion-1, $motion-2, $motion-3, $motion-4,
|
58
52
|
$motion-5, $motion-6, $motion-7, $motion-8, $motion-9);
|
59
53
|
|
60
|
-
|
61
|
-
-moz-animation-timing-function: $full;
|
62
|
-
animation-timing-function: $full;
|
54
|
+
@include prefixer(animation-timing-function, $full);
|
63
55
|
}
|
64
56
|
|
65
57
|
|
@@ -73,9 +65,7 @@
|
|
73
65
|
$full: compact($value-1, $value-2, $value-3, $value-4,
|
74
66
|
$value-5, $value-6, $value-7, $value-8, $value-9);
|
75
67
|
|
76
|
-
|
77
|
-
-moz-animation-iteration-count: $full;
|
78
|
-
animation-iteration-count: $full;
|
68
|
+
@include prefixer(animation-iteration-count, $full);
|
79
69
|
}
|
80
70
|
|
81
71
|
|
@@ -89,9 +79,7 @@
|
|
89
79
|
$full: compact($direction-1, $direction-2, $direction-3, $direction-4,
|
90
80
|
$direction-5, $direction-6, $direction-7, $direction-8, $direction-9);
|
91
81
|
|
92
|
-
|
93
|
-
-moz-animation-direction: $full;
|
94
|
-
animation-direction: $full;
|
82
|
+
@include prefixer(animation-direction, $full);
|
95
83
|
}
|
96
84
|
|
97
85
|
|
@@ -105,9 +93,7 @@
|
|
105
93
|
$full: compact($state-1, $state-2, $state-3, $state-4,
|
106
94
|
$state-5, $state-6, $state-7, $state-8, $state-9);
|
107
95
|
|
108
|
-
|
109
|
-
-moz-animation-play-state: $full;
|
110
|
-
animation-play-state: $full;
|
96
|
+
@include prefixer(animation-play-state, $full);
|
111
97
|
}
|
112
98
|
|
113
99
|
|
@@ -120,9 +106,7 @@
|
|
120
106
|
$full: compact($time-1, $time-2, $time-3, $time-4,
|
121
107
|
$time-5, $time-6, $time-7, $time-8, $time-9);
|
122
108
|
|
123
|
-
|
124
|
-
-moz-animation-delay: $full;
|
125
|
-
animation-delay: $full;
|
109
|
+
@include prefixer(animation-delay, $full);
|
126
110
|
}
|
127
111
|
|
128
112
|
|
@@ -137,7 +121,5 @@
|
|
137
121
|
$full: compact($mode-1, $mode-2, $mode-3, $mode-4,
|
138
122
|
$mode-5, $mode-6, $mode-7, $mode-8, $mode-9);
|
139
123
|
|
140
|
-
|
141
|
-
-moz-animation-fill-mode: $full;
|
142
|
-
animation-fill-mode: $full;
|
124
|
+
@include prefixer(animation-fill-mode, $full);
|
143
125
|
}
|
@@ -7,9 +7,5 @@
|
|
7
7
|
$full: compact($length-1, $length-2, $length-3, $length-4,
|
8
8
|
$length-5, $length-6, $length-7, $length-8, $length-9);
|
9
9
|
|
10
|
-
|
11
|
-
-moz-background-size: $full;
|
12
|
-
-ms-background-size: $full;
|
13
|
-
-o-background-size: $full;
|
14
|
-
background-size: $full;
|
10
|
+
@include prefixer(background-size, $full, webkit, moz, ms, o);
|
15
11
|
}
|
@@ -1,35 +1,24 @@
|
|
1
1
|
@mixin border-radius ($radii) {
|
2
|
-
|
3
|
-
-moz-border-radius: $radii;
|
4
|
-
border-radius: $radii;
|
2
|
+
@include prefixer(border-radius, $radii);
|
5
3
|
}
|
6
4
|
|
7
5
|
@mixin border-top-left-radius($radii) {
|
8
|
-
-
|
9
|
-
|
10
|
-
-moz-border-radius-topleft: $radii;
|
11
|
-
border-top-left-radius: $radii;
|
6
|
+
-moz-border-radius-topleft: $radii;
|
7
|
+
@include prefixer(border-top-left-radius, $radii);
|
12
8
|
}
|
13
9
|
|
14
10
|
@mixin border-top-right-radius($radii) {
|
15
|
-
-
|
16
|
-
|
17
|
-
-moz-border-radius-topright: $radii;
|
18
|
-
border-top-right-radius: $radii;
|
11
|
+
-moz-border-radius-topright: $radii;
|
12
|
+
@include prefixer(border-top-right-radius, $radii);
|
19
13
|
}
|
20
14
|
|
21
15
|
@mixin border-bottom-left-radius($radii) {
|
22
|
-
-
|
23
|
-
|
24
|
-
-moz-border-radius-bottomleft: $radii;
|
25
|
-
border-bottom-left-radius: $radii;
|
16
|
+
-moz-border-radius-bottomleft: $radii;
|
17
|
+
@include prefixer(border-bottom-left-radius, $radii);
|
26
18
|
}
|
27
19
|
|
28
20
|
@mixin border-bottom-right-radius($radii) {
|
29
|
-
|
30
|
-
-moz-border-bottom-right-radius: $radii;
|
31
|
-
-moz-border-radius-bottomright: $radii;
|
32
|
-
border-bottom-right-radius: $radii;
|
21
|
+
@include prefixer(border-bottom-right-radius, $radii);
|
33
22
|
}
|
34
23
|
|
35
24
|
@mixin border-top-radius($radii) {
|
@@ -1,67 +1,47 @@
|
|
1
1
|
@mixin columns($arg: auto) {
|
2
2
|
// <column-count> || <column-width>
|
3
|
-
|
4
|
-
-moz-columns: $arg;
|
5
|
-
columns: $arg;
|
3
|
+
@include prefixer(columns, $arg);
|
6
4
|
}
|
7
5
|
|
8
6
|
@mixin column-count($int: auto) {
|
9
7
|
// auto || integer
|
10
|
-
|
11
|
-
-moz-column-count: $int;
|
12
|
-
column-count: $int;
|
8
|
+
@include prefixer(column-count, $int);
|
13
9
|
}
|
14
10
|
|
15
11
|
@mixin column-gap($length: normal) {
|
16
12
|
// normal || length
|
17
|
-
|
18
|
-
-moz-column-gap: $length;
|
19
|
-
column-gap: $length;
|
13
|
+
@include prefixer(column-gap, $length);
|
20
14
|
}
|
21
15
|
|
22
16
|
@mixin column-fill($arg: auto) {
|
23
17
|
// auto || length
|
24
|
-
|
25
|
-
-moz-columns-fill: $arg;
|
26
|
-
columns-fill: $arg;
|
18
|
+
@include prefixer(columns-fill, $arg);
|
27
19
|
}
|
28
20
|
|
29
21
|
@mixin column-rule($arg) {
|
30
22
|
// <border-width> || <border-style> || <color>
|
31
|
-
|
32
|
-
-moz-column-rule: $arg;
|
33
|
-
column-rule: $arg;
|
23
|
+
@include prefixer(column-rule, $arg);
|
34
24
|
}
|
35
25
|
|
36
26
|
@mixin column-rule-color($color) {
|
37
|
-
|
38
|
-
-moz-column-rule-color: $color;
|
39
|
-
column-rule-color: $color;
|
27
|
+
@include prefixer(column-rule-color, $color);
|
40
28
|
}
|
41
29
|
|
42
30
|
@mixin column-rule-style($style: none) {
|
43
31
|
// none | hidden | dashed | dotted | double | groove | inset | inset | outset | ridge | solid
|
44
|
-
|
45
|
-
-moz-column-rule-style: $style;
|
46
|
-
column-rule-style: $style;
|
32
|
+
@include prefixer(column-rule-style, $style);
|
47
33
|
}
|
48
34
|
|
49
35
|
@mixin column-rule-width ($width: none) {
|
50
|
-
|
51
|
-
-moz-column-rule-width: $width;
|
52
|
-
column-rule-width: $width;
|
36
|
+
@include prefixer(column-rule-width, $width);
|
53
37
|
}
|
54
38
|
|
55
39
|
@mixin column-span($arg: none) {
|
56
40
|
// none || all
|
57
|
-
|
58
|
-
-moz-column-span: $arg;
|
59
|
-
column-span: $arg;
|
41
|
+
@include prefixer(column-span, $arg);
|
60
42
|
}
|
61
43
|
|
62
44
|
@mixin column-width($length: auto) {
|
63
45
|
// auto || length
|
64
|
-
|
65
|
-
-moz-column-width: $length;
|
66
|
-
column-width: $length;
|
46
|
+
@include prefixer(column-width, $length);
|
67
47
|
}
|
@@ -16,52 +16,37 @@
|
|
16
16
|
|
17
17
|
@mixin box-orient($orient: inline-axis) {
|
18
18
|
// horizontal|vertical|inline-axis|block-axis|inherit
|
19
|
-
|
20
|
-
-moz-box-orient: $orient;
|
21
|
-
box-orient: $orient;
|
19
|
+
@include prefixer(box-orient, $orient);
|
22
20
|
}
|
23
21
|
|
24
22
|
@mixin box-pack($pack: start) {
|
25
23
|
// start|end|center|justify
|
26
|
-
|
27
|
-
-moz-box-pack: $pack;
|
28
|
-
box-pack: $pack;
|
24
|
+
@include prefixer(box-pack, $pack);
|
29
25
|
}
|
30
26
|
|
31
27
|
@mixin box-align($align: stretch) {
|
32
28
|
// start|end|center|baseline|stretch
|
33
|
-
|
34
|
-
-moz-box-align: $align;
|
35
|
-
box-align: $align;
|
29
|
+
@include prefixer(box-align, $align);
|
36
30
|
}
|
37
31
|
|
38
32
|
@mixin box-direction($direction: normal) {
|
39
33
|
// normal|reverse|inherit
|
40
|
-
|
41
|
-
-moz-box-direction: $direction;
|
42
|
-
box-direction: $direction;
|
34
|
+
@include prefixer(box-direction, $direction);
|
43
35
|
}
|
36
|
+
|
44
37
|
@mixin box-lines($lines: single) {
|
45
38
|
// single|multiple
|
46
|
-
|
47
|
-
-moz-box-lines: $lines;
|
48
|
-
box-lines: $lines;
|
39
|
+
@include prefixer(box-lines, $lines);
|
49
40
|
}
|
50
41
|
|
51
|
-
@mixin box-ordinal-group($
|
52
|
-
|
53
|
-
-moz-box-ordinal-group: $integer;
|
54
|
-
box-ordinal-group: $integer;
|
42
|
+
@mixin box-ordinal-group($int: 1) {
|
43
|
+
@include prefixer(box-ordinal-group, $int);
|
55
44
|
}
|
56
45
|
|
57
46
|
@mixin box-flex($value: 0.0) {
|
58
|
-
|
59
|
-
-moz-box-flex: $value;
|
60
|
-
box-flex: $value;
|
47
|
+
@include prefixer(box-flex, $value);
|
61
48
|
}
|
62
49
|
|
63
|
-
@mixin box-flex-group($
|
64
|
-
|
65
|
-
-moz-box-flex-group: $integer;
|
66
|
-
box-flex-group: $integer;
|
50
|
+
@mixin box-flex-group($int: 1) {
|
51
|
+
@include prefixer(box-flex-group, $int);
|
67
52
|
}
|