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,31 +0,0 @@
|
|
|
1
|
-
@mixin retina-image($filename, $background-size, $extension: png, $retina-filename: null, $retina-suffix: _2x, $asset-pipeline: $asset-pipeline) {
|
|
2
|
-
@if $asset-pipeline {
|
|
3
|
-
background-image: image-url("#{$filename}.#{$extension}");
|
|
4
|
-
}
|
|
5
|
-
@else {
|
|
6
|
-
background-image: url("#{$filename}.#{$extension}");
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@include hidpi {
|
|
10
|
-
@if $asset-pipeline {
|
|
11
|
-
@if $retina-filename {
|
|
12
|
-
background-image: image-url("#{$retina-filename}.#{$extension}");
|
|
13
|
-
}
|
|
14
|
-
@else {
|
|
15
|
-
background-image: image-url("#{$filename}#{$retina-suffix}.#{$extension}");
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@else {
|
|
20
|
-
@if $retina-filename {
|
|
21
|
-
background-image: url("#{$retina-filename}.#{$extension}");
|
|
22
|
-
}
|
|
23
|
-
@else {
|
|
24
|
-
background-image: url("#{$filename}#{$retina-suffix}.#{$extension}");
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
background-size: $background-size;
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
}
|
data/dist/addons/_size.scss
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
@mixin size($size) {
|
|
2
|
-
$height: nth($size, 1);
|
|
3
|
-
$width: $height;
|
|
4
|
-
|
|
5
|
-
@if length($size) > 1 {
|
|
6
|
-
$height: nth($size, 2);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@if $height == auto or (type-of($height) == number and not unitless($height)) {
|
|
10
|
-
height: $height;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@if $width == auto or (type-of($width) == number and not unitless($width)) {
|
|
14
|
-
width: $width;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// CSS cubic-bezier timing functions. Timing functions courtesy of jquery.easie (github.com/jaukia/easie)
|
|
2
|
-
// Timing functions are the same as demo'ed here: http://jqueryui.com/resources/demos/effect/easing.html
|
|
3
|
-
|
|
4
|
-
// EASE IN
|
|
5
|
-
$ease-in-quad: cubic-bezier(0.550, 0.085, 0.680, 0.530);
|
|
6
|
-
$ease-in-cubic: cubic-bezier(0.550, 0.055, 0.675, 0.190);
|
|
7
|
-
$ease-in-quart: cubic-bezier(0.895, 0.030, 0.685, 0.220);
|
|
8
|
-
$ease-in-quint: cubic-bezier(0.755, 0.050, 0.855, 0.060);
|
|
9
|
-
$ease-in-sine: cubic-bezier(0.470, 0.000, 0.745, 0.715);
|
|
10
|
-
$ease-in-expo: cubic-bezier(0.950, 0.050, 0.795, 0.035);
|
|
11
|
-
$ease-in-circ: cubic-bezier(0.600, 0.040, 0.980, 0.335);
|
|
12
|
-
$ease-in-back: cubic-bezier(0.600, -0.280, 0.735, 0.045);
|
|
13
|
-
|
|
14
|
-
// EASE OUT
|
|
15
|
-
$ease-out-quad: cubic-bezier(0.250, 0.460, 0.450, 0.940);
|
|
16
|
-
$ease-out-cubic: cubic-bezier(0.215, 0.610, 0.355, 1.000);
|
|
17
|
-
$ease-out-quart: cubic-bezier(0.165, 0.840, 0.440, 1.000);
|
|
18
|
-
$ease-out-quint: cubic-bezier(0.230, 1.000, 0.320, 1.000);
|
|
19
|
-
$ease-out-sine: cubic-bezier(0.390, 0.575, 0.565, 1.000);
|
|
20
|
-
$ease-out-expo: cubic-bezier(0.190, 1.000, 0.220, 1.000);
|
|
21
|
-
$ease-out-circ: cubic-bezier(0.075, 0.820, 0.165, 1.000);
|
|
22
|
-
$ease-out-back: cubic-bezier(0.175, 0.885, 0.320, 1.275);
|
|
23
|
-
|
|
24
|
-
// EASE IN OUT
|
|
25
|
-
$ease-in-out-quad: cubic-bezier(0.455, 0.030, 0.515, 0.955);
|
|
26
|
-
$ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
|
27
|
-
$ease-in-out-quart: cubic-bezier(0.770, 0.000, 0.175, 1.000);
|
|
28
|
-
$ease-in-out-quint: cubic-bezier(0.860, 0.000, 0.070, 1.000);
|
|
29
|
-
$ease-in-out-sine: cubic-bezier(0.445, 0.050, 0.550, 0.950);
|
|
30
|
-
$ease-in-out-expo: cubic-bezier(1.000, 0.000, 0.000, 1.000);
|
|
31
|
-
$ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.150, 0.860);
|
|
32
|
-
$ease-in-out-back: cubic-bezier(0.680, -0.550, 0.265, 1.550);
|
data/dist/addons/_triangle.scss
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
@mixin triangle ($size, $color, $direction) {
|
|
2
|
-
height: 0;
|
|
3
|
-
width: 0;
|
|
4
|
-
|
|
5
|
-
$width: nth($size, 1);
|
|
6
|
-
$height: nth($size, length($size));
|
|
7
|
-
|
|
8
|
-
$foreground-color: nth($color, 1);
|
|
9
|
-
$background-color: if(length($color) == 2, nth($color, 2), transparent);
|
|
10
|
-
|
|
11
|
-
@if ($direction == up) or ($direction == down) or ($direction == right) or ($direction == left) {
|
|
12
|
-
|
|
13
|
-
$width: $width / 2;
|
|
14
|
-
$height: if(length($size) > 1, $height, $height/2);
|
|
15
|
-
|
|
16
|
-
@if $direction == up {
|
|
17
|
-
border-left: $width solid $background-color;
|
|
18
|
-
border-right: $width solid $background-color;
|
|
19
|
-
border-bottom: $height solid $foreground-color;
|
|
20
|
-
|
|
21
|
-
} @else if $direction == right {
|
|
22
|
-
border-top: $width solid $background-color;
|
|
23
|
-
border-bottom: $width solid $background-color;
|
|
24
|
-
border-left: $height solid $foreground-color;
|
|
25
|
-
|
|
26
|
-
} @else if $direction == down {
|
|
27
|
-
border-left: $width solid $background-color;
|
|
28
|
-
border-right: $width solid $background-color;
|
|
29
|
-
border-top: $height solid $foreground-color;
|
|
30
|
-
|
|
31
|
-
} @else if $direction == left {
|
|
32
|
-
border-top: $width solid $background-color;
|
|
33
|
-
border-bottom: $width solid $background-color;
|
|
34
|
-
border-right: $height solid $foreground-color;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@else if ($direction == up-right) or ($direction == up-left) {
|
|
39
|
-
border-top: $height solid $foreground-color;
|
|
40
|
-
|
|
41
|
-
@if $direction == up-right {
|
|
42
|
-
border-left: $width solid $background-color;
|
|
43
|
-
|
|
44
|
-
} @else if $direction == up-left {
|
|
45
|
-
border-right: $width solid $background-color;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@else if ($direction == down-right) or ($direction == down-left) {
|
|
50
|
-
border-bottom: $height solid $foreground-color;
|
|
51
|
-
|
|
52
|
-
@if $direction == down-right {
|
|
53
|
-
border-left: $width solid $background-color;
|
|
54
|
-
|
|
55
|
-
} @else if $direction == down-left {
|
|
56
|
-
border-right: $width solid $background-color;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@else if ($direction == inset-up) {
|
|
61
|
-
border-width: $height $width;
|
|
62
|
-
border-style: solid;
|
|
63
|
-
border-color: $background-color $background-color $foreground-color;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@else if ($direction == inset-down) {
|
|
67
|
-
border-width: $height $width;
|
|
68
|
-
border-style: solid;
|
|
69
|
-
border-color: $foreground-color $background-color $background-color;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
@else if ($direction == inset-right) {
|
|
73
|
-
border-width: $width $height;
|
|
74
|
-
border-style: solid;
|
|
75
|
-
border-color: $background-color $background-color $background-color $foreground-color;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@else if ($direction == inset-left) {
|
|
79
|
-
border-width: $width $height;
|
|
80
|
-
border-style: solid;
|
|
81
|
-
border-color: $background-color $foreground-color $background-color $background-color;
|
|
82
|
-
}
|
|
83
|
-
}
|
data/dist/addons/_word-wrap.scss
DELETED
data/dist/css3/_animation.scss
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
// http://www.w3.org/TR/css3-animations/#the-animation-name-property-
|
|
2
|
-
// Each of these mixins support comma separated lists of values, which allows different transitions for individual properties to be described in a single style rule. Each value in the list corresponds to the value at that same position in the other properties.
|
|
3
|
-
|
|
4
|
-
// Official animation shorthand property.
|
|
5
|
-
@mixin animation ($animations...) {
|
|
6
|
-
@include prefixer(animation, $animations, webkit moz spec);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
// Individual Animation Properties
|
|
10
|
-
@mixin animation-name ($names...) {
|
|
11
|
-
@include prefixer(animation-name, $names, webkit moz spec);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
@mixin animation-duration ($times...) {
|
|
16
|
-
@include prefixer(animation-duration, $times, webkit moz spec);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
@mixin animation-timing-function ($motions...) {
|
|
21
|
-
// ease | linear | ease-in | ease-out | ease-in-out
|
|
22
|
-
@include prefixer(animation-timing-function, $motions, webkit moz spec);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
@mixin animation-iteration-count ($values...) {
|
|
27
|
-
// infinite | <number>
|
|
28
|
-
@include prefixer(animation-iteration-count, $values, webkit moz spec);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
@mixin animation-direction ($directions...) {
|
|
33
|
-
// normal | alternate
|
|
34
|
-
@include prefixer(animation-direction, $directions, webkit moz spec);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
@mixin animation-play-state ($states...) {
|
|
39
|
-
// running | paused
|
|
40
|
-
@include prefixer(animation-play-state, $states, webkit moz spec);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
@mixin animation-delay ($times...) {
|
|
45
|
-
@include prefixer(animation-delay, $times, webkit moz spec);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
@mixin animation-fill-mode ($modes...) {
|
|
50
|
-
// none | forwards | backwards | both
|
|
51
|
-
@include prefixer(animation-fill-mode, $modes, webkit moz spec);
|
|
52
|
-
}
|
data/dist/css3/_appearance.scss
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
//************************************************************************//
|
|
2
|
-
// Backface-visibility mixin
|
|
3
|
-
//************************************************************************//
|
|
4
|
-
@mixin backface-visibility($visibility) {
|
|
5
|
-
@include prefixer(backface-visibility, $visibility, webkit spec);
|
|
6
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
//************************************************************************//
|
|
2
|
-
// Background-image property for adding multiple background images with
|
|
3
|
-
// gradients, or for stringing multiple gradients together.
|
|
4
|
-
//************************************************************************//
|
|
5
|
-
|
|
6
|
-
@mixin background-image($images...) {
|
|
7
|
-
$webkit-images: ();
|
|
8
|
-
$spec-images: ();
|
|
9
|
-
|
|
10
|
-
@each $image in $images {
|
|
11
|
-
$webkit-image: ();
|
|
12
|
-
$spec-image: ();
|
|
13
|
-
|
|
14
|
-
@if (type-of($image) == string) {
|
|
15
|
-
$url-str: str-slice($image, 0, 3);
|
|
16
|
-
$gradient-type: str-slice($image, 0, 6);
|
|
17
|
-
|
|
18
|
-
@if $url-str == "url" {
|
|
19
|
-
$webkit-image: $image;
|
|
20
|
-
$spec-image: $image;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@else if $gradient-type == "linear" {
|
|
24
|
-
$gradients: _linear-gradient-parser($image);
|
|
25
|
-
$webkit-image: map-get($gradients, webkit-image);
|
|
26
|
-
$spec-image: map-get($gradients, spec-image);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@else if $gradient-type == "radial" {
|
|
30
|
-
$gradients: _radial-gradient-parser($image);
|
|
31
|
-
$webkit-image: map-get($gradients, webkit-image);
|
|
32
|
-
$spec-image: map-get($gradients, spec-image);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
$webkit-images: append($webkit-images, $webkit-image, comma);
|
|
37
|
-
$spec-images: append($spec-images, $spec-image, comma);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
background-image: $webkit-images;
|
|
41
|
-
background-image: $spec-images;
|
|
42
|
-
}
|
data/dist/css3/_background.scss
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
//************************************************************************//
|
|
2
|
-
// Background property for adding multiple backgrounds using shorthand
|
|
3
|
-
// notation.
|
|
4
|
-
//************************************************************************//
|
|
5
|
-
|
|
6
|
-
@mixin background($backgrounds...) {
|
|
7
|
-
$webkit-backgrounds: ();
|
|
8
|
-
$spec-backgrounds: ();
|
|
9
|
-
|
|
10
|
-
@each $background in $backgrounds {
|
|
11
|
-
$webkit-background: ();
|
|
12
|
-
$spec-background: ();
|
|
13
|
-
$background-type: type-of($background);
|
|
14
|
-
|
|
15
|
-
@if $background-type == string or list {
|
|
16
|
-
$background-str: if($background-type == list, nth($background, 1), $background);
|
|
17
|
-
|
|
18
|
-
$url-str: str-slice($background-str, 0, 3);
|
|
19
|
-
$gradient-type: str-slice($background-str, 0, 6);
|
|
20
|
-
|
|
21
|
-
@if $url-str == "url" {
|
|
22
|
-
$webkit-background: $background;
|
|
23
|
-
$spec-background: $background;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@else if $gradient-type == "linear" {
|
|
27
|
-
$gradients: _linear-gradient-parser("#{$background}");
|
|
28
|
-
$webkit-background: map-get($gradients, webkit-image);
|
|
29
|
-
$spec-background: map-get($gradients, spec-image);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@else if $gradient-type == "radial" {
|
|
33
|
-
$gradients: _radial-gradient-parser("#{$background}");
|
|
34
|
-
$webkit-background: map-get($gradients, webkit-image);
|
|
35
|
-
$spec-background: map-get($gradients, spec-image);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@else {
|
|
39
|
-
$webkit-background: $background;
|
|
40
|
-
$spec-background: $background;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@else {
|
|
45
|
-
$webkit-background: $background;
|
|
46
|
-
$spec-background: $background;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
$webkit-backgrounds: append($webkit-backgrounds, $webkit-background, comma);
|
|
50
|
-
$spec-backgrounds: append($spec-backgrounds, $spec-background, comma);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
background: $webkit-backgrounds;
|
|
54
|
-
background: $spec-backgrounds;
|
|
55
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
@mixin border-image($borders...) {
|
|
2
|
-
$webkit-borders: ();
|
|
3
|
-
$spec-borders: ();
|
|
4
|
-
|
|
5
|
-
@each $border in $borders {
|
|
6
|
-
$webkit-border: ();
|
|
7
|
-
$spec-border: ();
|
|
8
|
-
$border-type: type-of($border);
|
|
9
|
-
|
|
10
|
-
@if $border-type == string or list {
|
|
11
|
-
$border-str: if($border-type == list, nth($border, 1), $border);
|
|
12
|
-
|
|
13
|
-
$url-str: str-slice($border-str, 0, 3);
|
|
14
|
-
$gradient-type: str-slice($border-str, 0, 6);
|
|
15
|
-
|
|
16
|
-
@if $url-str == "url" {
|
|
17
|
-
$webkit-border: $border;
|
|
18
|
-
$spec-border: $border;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@else if $gradient-type == "linear" {
|
|
22
|
-
$gradients: _linear-gradient-parser("#{$border}");
|
|
23
|
-
$webkit-border: map-get($gradients, webkit-image);
|
|
24
|
-
$spec-border: map-get($gradients, spec-image);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@else if $gradient-type == "radial" {
|
|
28
|
-
$gradients: _radial-gradient-parser("#{$border}");
|
|
29
|
-
$webkit-border: map-get($gradients, webkit-image);
|
|
30
|
-
$spec-border: map-get($gradients, spec-image);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@else {
|
|
34
|
-
$webkit-border: $border;
|
|
35
|
-
$spec-border: $border;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@else {
|
|
40
|
-
$webkit-border: $border;
|
|
41
|
-
$spec-border: $border;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
$webkit-borders: append($webkit-borders, $webkit-border, comma);
|
|
45
|
-
$spec-borders: append($spec-borders, $spec-border, comma);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
-webkit-border-image: $webkit-borders;
|
|
49
|
-
border-image: $spec-borders;
|
|
50
|
-
border-style: solid;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
//Examples:
|
|
54
|
-
// @include border-image(url("image.png"));
|
|
55
|
-
// @include border-image(url("image.png") 20 stretch);
|
|
56
|
-
// @include border-image(linear-gradient(45deg, orange, yellow));
|
|
57
|
-
// @include border-image(linear-gradient(45deg, orange, yellow) stretch);
|
|
58
|
-
// @include border-image(linear-gradient(45deg, orange, yellow) 20 30 40 50 stretch round);
|
|
59
|
-
// @include border-image(radial-gradient(top, cover, orange, yellow, orange));
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
//************************************************************************//
|
|
2
|
-
// Shorthand Border-radius mixins
|
|
3
|
-
//************************************************************************//
|
|
4
|
-
@mixin border-top-radius($radii) {
|
|
5
|
-
@include prefixer(border-top-left-radius, $radii, spec);
|
|
6
|
-
@include prefixer(border-top-right-radius, $radii, spec);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@mixin border-bottom-radius($radii) {
|
|
10
|
-
@include prefixer(border-bottom-left-radius, $radii, spec);
|
|
11
|
-
@include prefixer(border-bottom-right-radius, $radii, spec);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@mixin border-left-radius($radii) {
|
|
15
|
-
@include prefixer(border-top-left-radius, $radii, spec);
|
|
16
|
-
@include prefixer(border-bottom-left-radius, $radii, spec);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@mixin border-right-radius($radii) {
|
|
20
|
-
@include prefixer(border-top-right-radius, $radii, spec);
|
|
21
|
-
@include prefixer(border-bottom-right-radius, $radii, spec);
|
|
22
|
-
}
|
data/dist/css3/_box-sizing.scss
DELETED
data/dist/css3/_calc.scss
DELETED
data/dist/css3/_columns.scss
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
@mixin columns($arg: auto) {
|
|
2
|
-
// <column-count> || <column-width>
|
|
3
|
-
@include prefixer(columns, $arg, webkit moz spec);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
@mixin column-count($int: auto) {
|
|
7
|
-
// auto || integer
|
|
8
|
-
@include prefixer(column-count, $int, webkit moz spec);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@mixin column-gap($length: normal) {
|
|
12
|
-
// normal || length
|
|
13
|
-
@include prefixer(column-gap, $length, webkit moz spec);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@mixin column-fill($arg: auto) {
|
|
17
|
-
// auto || length
|
|
18
|
-
@include prefixer(column-fill, $arg, webkit moz spec);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@mixin column-rule($arg) {
|
|
22
|
-
// <border-width> || <border-style> || <color>
|
|
23
|
-
@include prefixer(column-rule, $arg, webkit moz spec);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@mixin column-rule-color($color) {
|
|
27
|
-
@include prefixer(column-rule-color, $color, webkit moz spec);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@mixin column-rule-style($style: none) {
|
|
31
|
-
// none | hidden | dashed | dotted | double | groove | inset | inset | outset | ridge | solid
|
|
32
|
-
@include prefixer(column-rule-style, $style, webkit moz spec);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@mixin column-rule-width ($width: none) {
|
|
36
|
-
@include prefixer(column-rule-width, $width, webkit moz spec);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@mixin column-span($arg: none) {
|
|
40
|
-
// none || all
|
|
41
|
-
@include prefixer(column-span, $arg, webkit moz spec);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@mixin column-width($length: auto) {
|
|
45
|
-
// auto || length
|
|
46
|
-
@include prefixer(column-width, $length, webkit moz spec);
|
|
47
|
-
}
|