garth-jekyll-theme 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_sass/bourbon/_bourbon.scss +45 -80
- data/_sass/bourbon/bourbon/helpers/_buttons-list.scss +14 -0
- data/_sass/bourbon/bourbon/helpers/_scales.scss +27 -0
- data/_sass/bourbon/bourbon/helpers/_text-inputs-list.scss +26 -0
- data/_sass/bourbon/bourbon/library/_border-color.scss +25 -0
- data/_sass/bourbon/bourbon/library/_border-radius.scss +85 -0
- data/_sass/bourbon/bourbon/library/_border-style.scss +24 -0
- data/_sass/bourbon/bourbon/library/_border-width.scss +24 -0
- data/_sass/bourbon/bourbon/library/_buttons.scss +84 -0
- data/_sass/bourbon/{addons → bourbon/library}/_clearfix.scss +5 -5
- data/_sass/bourbon/bourbon/library/_contrast-switch.scss +60 -0
- data/_sass/bourbon/{addons → bourbon/library}/_ellipsis.scss +13 -6
- data/_sass/bourbon/bourbon/library/_font-face.scss +65 -0
- data/_sass/bourbon/bourbon/library/_font-stacks.scss +87 -0
- data/_sass/bourbon/bourbon/library/_hide-text.scss +24 -0
- data/_sass/bourbon/bourbon/library/_hide-visually.scss +65 -0
- data/_sass/bourbon/bourbon/library/_margin.scss +34 -0
- data/_sass/bourbon/bourbon/library/_modular-scale.scss +113 -0
- data/_sass/bourbon/bourbon/library/_padding.scss +34 -0
- data/_sass/bourbon/{addons → bourbon/library}/_position.scss +19 -13
- data/_sass/bourbon/bourbon/library/_prefixer.scss +38 -0
- data/_sass/bourbon/bourbon/library/_shade.scss +33 -0
- data/_sass/bourbon/bourbon/library/_size.scss +49 -0
- data/_sass/bourbon/bourbon/library/_strip-unit.scss +17 -0
- data/_sass/bourbon/bourbon/library/_text-inputs.scss +163 -0
- data/_sass/bourbon/{addons → bourbon/library}/_timing-functions.scss +7 -3
- data/_sass/bourbon/bourbon/library/_tint.scss +33 -0
- data/_sass/bourbon/bourbon/library/_triangle.scss +82 -0
- data/_sass/bourbon/bourbon/library/_value-prefixer.scss +38 -0
- data/_sass/bourbon/{addons → bourbon/library}/_word-wrap.scss +3 -3
- data/_sass/bourbon/bourbon/settings/_settings.scss +51 -0
- data/_sass/bourbon/bourbon/utilities/_assign-inputs.scss +29 -0
- data/_sass/bourbon/bourbon/utilities/_collapse-directionals.scss +51 -0
- data/_sass/bourbon/bourbon/utilities/_directional-values.scss +58 -0
- data/_sass/bourbon/{helpers → bourbon/utilities}/_font-source-declaration.scss +26 -17
- data/_sass/bourbon/bourbon/utilities/_retrieve-bourbon-setting.scss +16 -0
- data/_sass/bourbon/{functions → bourbon/utilities}/_unpack.scss +7 -5
- data/_sass/bourbon/{functions → bourbon/validators}/_contains-falsy.scss +5 -5
- data/_sass/bourbon/{functions → bourbon/validators}/_contains.scss +9 -8
- data/_sass/bourbon/bourbon/validators/_is-color.scss +13 -0
- data/_sass/bourbon/{functions → bourbon/validators}/_is-length.scss +6 -2
- data/_sass/bourbon/{functions → bourbon/validators}/_is-light.scss +7 -5
- data/_sass/bourbon/bourbon/validators/_is-number.scss +15 -0
- data/_sass/bourbon/bourbon/validators/_is-size.scss +18 -0
- data/_sass/neat/_neat-helpers.scss +8 -0
- data/_sass/neat/_neat.scss +23 -0
- data/_sass/neat/functions/_new-breakpoint.scss +49 -0
- data/_sass/neat/functions/_private.scss +114 -0
- data/_sass/neat/grid/_box-sizing.scss +15 -0
- data/_sass/neat/grid/_direction-context.scss +33 -0
- data/_sass/neat/grid/_display-context.scss +28 -0
- data/_sass/neat/grid/_fill-parent.scss +22 -0
- data/_sass/neat/grid/_media.scss +92 -0
- data/_sass/neat/grid/_omega.scss +87 -0
- data/_sass/neat/grid/_outer-container.scss +38 -0
- data/_sass/neat/grid/_pad.scss +25 -0
- data/_sass/neat/grid/_private.scss +35 -0
- data/_sass/neat/grid/_row.scss +52 -0
- data/_sass/neat/grid/_shift.scss +50 -0
- data/_sass/neat/grid/_span-columns.scss +94 -0
- data/_sass/neat/grid/_to-deprecate.scss +97 -0
- data/_sass/neat/grid/_visual-grid.scss +42 -0
- data/_sass/neat/settings/_disable-warnings.scss +13 -0
- data/_sass/neat/settings/_grid.scss +51 -0
- data/_sass/neat/settings/_visual-grid.scss +27 -0
- data/_sass/theme.scss +6 -0
- metadata +66 -79
- data/_sass/bourbon/_bourbon-deprecated-upcoming.scss +0 -411
- data/_sass/bourbon/addons/_border-color.scss +0 -26
- data/_sass/bourbon/addons/_border-radius.scss +0 -48
- data/_sass/bourbon/addons/_border-style.scss +0 -25
- data/_sass/bourbon/addons/_border-width.scss +0 -25
- data/_sass/bourbon/addons/_buttons.scss +0 -64
- data/_sass/bourbon/addons/_font-stacks.scss +0 -31
- data/_sass/bourbon/addons/_hide-text.scss +0 -27
- data/_sass/bourbon/addons/_margin.scss +0 -26
- data/_sass/bourbon/addons/_padding.scss +0 -26
- data/_sass/bourbon/addons/_prefixer.scss +0 -66
- data/_sass/bourbon/addons/_retina-image.scss +0 -25
- data/_sass/bourbon/addons/_size.scss +0 -51
- data/_sass/bourbon/addons/_text-inputs.scss +0 -113
- data/_sass/bourbon/addons/_triangle.scss +0 -63
- data/_sass/bourbon/css3/_animation.scss +0 -43
- data/_sass/bourbon/css3/_appearance.scss +0 -3
- data/_sass/bourbon/css3/_backface-visibility.scss +0 -3
- data/_sass/bourbon/css3/_background-image.scss +0 -42
- data/_sass/bourbon/css3/_background.scss +0 -55
- data/_sass/bourbon/css3/_border-image.scss +0 -59
- data/_sass/bourbon/css3/_calc.scss +0 -4
- data/_sass/bourbon/css3/_columns.scss +0 -47
- data/_sass/bourbon/css3/_filter.scss +0 -4
- data/_sass/bourbon/css3/_flex-box.scss +0 -287
- data/_sass/bourbon/css3/_font-face.scss +0 -24
- data/_sass/bourbon/css3/_font-feature-settings.scss +0 -4
- data/_sass/bourbon/css3/_hidpi-media-query.scss +0 -10
- data/_sass/bourbon/css3/_hyphens.scss +0 -4
- data/_sass/bourbon/css3/_image-rendering.scss +0 -14
- data/_sass/bourbon/css3/_keyframes.scss +0 -36
- data/_sass/bourbon/css3/_linear-gradient.scss +0 -38
- data/_sass/bourbon/css3/_perspective.scss +0 -8
- data/_sass/bourbon/css3/_placeholder.scss +0 -8
- data/_sass/bourbon/css3/_radial-gradient.scss +0 -39
- data/_sass/bourbon/css3/_selection.scss +0 -42
- data/_sass/bourbon/css3/_text-decoration.scss +0 -19
- data/_sass/bourbon/css3/_transform.scss +0 -15
- data/_sass/bourbon/css3/_transition.scss +0 -71
- data/_sass/bourbon/css3/_user-select.scss +0 -3
- data/_sass/bourbon/functions/_assign-inputs.scss +0 -11
- data/_sass/bourbon/functions/_is-number.scss +0 -11
- data/_sass/bourbon/functions/_is-size.scss +0 -13
- data/_sass/bourbon/functions/_modular-scale.scss +0 -69
- data/_sass/bourbon/functions/_px-to-em.scss +0 -13
- data/_sass/bourbon/functions/_px-to-rem.scss +0 -15
- data/_sass/bourbon/functions/_shade.scss +0 -24
- data/_sass/bourbon/functions/_strip-units.scss +0 -17
- data/_sass/bourbon/functions/_tint.scss +0 -24
- data/_sass/bourbon/functions/_transition-property-name.scss +0 -22
- data/_sass/bourbon/helpers/_convert-units.scss +0 -21
- data/_sass/bourbon/helpers/_directional-values.scss +0 -96
- data/_sass/bourbon/helpers/_gradient-positions-parser.scss +0 -13
- data/_sass/bourbon/helpers/_linear-angle-parser.scss +0 -25
- data/_sass/bourbon/helpers/_linear-gradient-parser.scss +0 -41
- data/_sass/bourbon/helpers/_linear-positions-parser.scss +0 -61
- data/_sass/bourbon/helpers/_linear-side-corner-parser.scss +0 -31
- data/_sass/bourbon/helpers/_radial-arg-parser.scss +0 -69
- data/_sass/bourbon/helpers/_radial-gradient-parser.scss +0 -50
- data/_sass/bourbon/helpers/_radial-positions-parser.scss +0 -18
- data/_sass/bourbon/helpers/_render-gradients.scss +0 -26
- data/_sass/bourbon/helpers/_shape-size-stripper.scss +0 -10
- data/_sass/bourbon/helpers/_str-to-num.scss +0 -50
- data/_sass/bourbon/settings/_asset-pipeline.scss +0 -7
- data/_sass/bourbon/settings/_prefixer.scss +0 -9
- data/_sass/bourbon/settings/_px-to-em.scss +0 -1
@@ -0,0 +1,82 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Generates a triangle pointing in a specified direction.
|
4
|
+
///
|
5
|
+
/// @argument {string} $direction [up]
|
6
|
+
/// The direction the triangle should point. Accepts `up`, `up-right`,
|
7
|
+
/// `right`, `down-right`, `down`, `down-left`, `left` or `up-left`.
|
8
|
+
///
|
9
|
+
/// @argument {color} $color [currentColor]
|
10
|
+
/// Color of the triangle.
|
11
|
+
///
|
12
|
+
/// @argument {number (with unit)} $width [1rem]
|
13
|
+
/// Width of the triangle.
|
14
|
+
///
|
15
|
+
/// @argument {number (with unit)} $height [($width / 2)]
|
16
|
+
/// Height of the triangle.
|
17
|
+
///
|
18
|
+
/// @example scss
|
19
|
+
/// .element {
|
20
|
+
/// &::before {
|
21
|
+
/// @include triangle(up, #b25c9c, 2rem);
|
22
|
+
/// content: "";
|
23
|
+
/// }
|
24
|
+
/// }
|
25
|
+
///
|
26
|
+
/// @example css
|
27
|
+
/// .element::before {
|
28
|
+
/// border-style: solid;
|
29
|
+
/// height: 0;
|
30
|
+
/// width: 0;
|
31
|
+
/// border-color: transparent transparent #b25c9c transparent;
|
32
|
+
/// border-width: 0 1rem 1rem;
|
33
|
+
/// content: "";
|
34
|
+
/// }
|
35
|
+
|
36
|
+
@mixin triangle(
|
37
|
+
$direction: up,
|
38
|
+
$color: currentColor,
|
39
|
+
$width: 1rem,
|
40
|
+
$height: ($width / 2)
|
41
|
+
) {
|
42
|
+
@if not index(
|
43
|
+
"up" "up-right" "right" "down-right" "down" "down-left" "left" "up-left",
|
44
|
+
$direction
|
45
|
+
) {
|
46
|
+
@error "Direction must be `up`, `up-right`, `right`, `down-right`, " +
|
47
|
+
"`down`, `down-left`, `left` or `up-left`.";
|
48
|
+
} @else if not _is-color($color) {
|
49
|
+
@error "`#{$color}` is not a valid color for the `$color` argument in " +
|
50
|
+
"the `triangle` mixin.";
|
51
|
+
} @else {
|
52
|
+
border-style: solid;
|
53
|
+
height: 0;
|
54
|
+
width: 0;
|
55
|
+
|
56
|
+
@if $direction == "up" {
|
57
|
+
border-color: transparent transparent $color;
|
58
|
+
border-width: 0 ($width / 2) $height;
|
59
|
+
} @else if $direction == "up-right" {
|
60
|
+
border-color: transparent $color transparent transparent;
|
61
|
+
border-width: 0 $width $width 0;
|
62
|
+
} @else if $direction == "right" {
|
63
|
+
border-color: transparent transparent transparent $color;
|
64
|
+
border-width: ($height / 2) 0 ($height / 2) $width;
|
65
|
+
} @else if $direction == "down-right" {
|
66
|
+
border-color: transparent transparent $color;
|
67
|
+
border-width: 0 0 $width $width;
|
68
|
+
} @else if $direction == "down" {
|
69
|
+
border-color: $color transparent transparent;
|
70
|
+
border-width: $height ($width / 2) 0;
|
71
|
+
} @else if $direction == "down-left" {
|
72
|
+
border-color: transparent transparent transparent $color;
|
73
|
+
border-width: $width 0 0 $width;
|
74
|
+
} @else if $direction == "left" {
|
75
|
+
border-color: transparent $color transparent transparent;
|
76
|
+
border-width: ($height / 2) $width ($height / 2) 0;
|
77
|
+
} @else if $direction == "up-left" {
|
78
|
+
border-color: $color transparent transparent;
|
79
|
+
border-width: $width $width 0 0;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Generates vendor prefixes for values.
|
4
|
+
///
|
5
|
+
/// @argument {string} $property
|
6
|
+
/// Property to use.
|
7
|
+
///
|
8
|
+
/// @argument {string} $value
|
9
|
+
/// Value to prefix.
|
10
|
+
///
|
11
|
+
/// @argument {list} $prefixes
|
12
|
+
/// Vendor prefixes to output.
|
13
|
+
///
|
14
|
+
/// @example scss
|
15
|
+
/// .element {
|
16
|
+
/// @include value-prefixer(cursor, grab, ("webkit", "moz"));
|
17
|
+
/// }
|
18
|
+
///
|
19
|
+
/// @example css
|
20
|
+
/// .element {
|
21
|
+
/// cursor: -webkit-grab;
|
22
|
+
/// cursor: -moz-grab;
|
23
|
+
/// cursor: grab;
|
24
|
+
/// }
|
25
|
+
///
|
26
|
+
/// @author Matthew Tobiasz
|
27
|
+
|
28
|
+
@mixin value-prefixer(
|
29
|
+
$property,
|
30
|
+
$value,
|
31
|
+
$prefixes: ()
|
32
|
+
) {
|
33
|
+
|
34
|
+
@each $prefix in $prefixes {
|
35
|
+
#{$property}: #{"-" + $prefix + "-" + $value};
|
36
|
+
}
|
37
|
+
#{$property}: $value;
|
38
|
+
}
|
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
/// Provides an easy way to change the `word-wrap` property.
|
4
4
|
///
|
5
|
-
/// @
|
5
|
+
/// @argument {string} $wrap [break-word]
|
6
6
|
/// Value for the `word-break` property.
|
7
7
|
///
|
8
|
-
/// @example scss
|
8
|
+
/// @example scss
|
9
9
|
/// .wrapper {
|
10
10
|
/// @include word-wrap(break-word);
|
11
11
|
/// }
|
12
12
|
///
|
13
|
-
/// @example css
|
13
|
+
/// @example css
|
14
14
|
/// .wrapper {
|
15
15
|
/// overflow-wrap: break-word;
|
16
16
|
/// word-break: break-all;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Default Bourbon configuration settings.
|
4
|
+
///
|
5
|
+
/// @type map
|
6
|
+
///
|
7
|
+
/// @property {color} contrast-switch-dark-color [#000]
|
8
|
+
/// Global dark color for the `contrast-switch` function.
|
9
|
+
///
|
10
|
+
/// @property {color} contrast-switch-light-color [#fff]
|
11
|
+
/// Global light color for the `contrast-switch` function.
|
12
|
+
///
|
13
|
+
/// @property {list} global-font-file-formats [("ttf", "woff2", "woff")]
|
14
|
+
/// Global font file formats for the `font-face` mixin.
|
15
|
+
///
|
16
|
+
/// @property {number (with unit)} modular-scale-base [1em]
|
17
|
+
/// Global base value for the `modular-scale` function.
|
18
|
+
///
|
19
|
+
/// @property {number (unitless)} modular-scale-ratio [$major-third (1.25)]
|
20
|
+
/// Global base ratio for the `modular-scale` function.
|
21
|
+
///
|
22
|
+
/// @property {boolean} rails-asset-pipeline [false]
|
23
|
+
/// Enable or disable the `$asset-pipeline` variable for all functions that
|
24
|
+
/// accept it.
|
25
|
+
///
|
26
|
+
/// @access private
|
27
|
+
|
28
|
+
$_bourbon-defaults: (
|
29
|
+
"contrast-switch-dark-color": #000,
|
30
|
+
"contrast-switch-light-color": #fff,
|
31
|
+
"global-font-file-formats": ("ttf", "woff2", "woff"),
|
32
|
+
"modular-scale-base": 1em,
|
33
|
+
"modular-scale-ratio": $major-third,
|
34
|
+
"rails-asset-pipeline": false,
|
35
|
+
);
|
36
|
+
|
37
|
+
/// User overrides of Bourbon configuration settings.
|
38
|
+
///
|
39
|
+
/// @type map
|
40
|
+
///
|
41
|
+
/// @example scss
|
42
|
+
/// $bourbon: (
|
43
|
+
/// "contrast-switch-dark-color": #000,
|
44
|
+
/// "contrast-switch-light-color": #fff,
|
45
|
+
/// "global-font-file-formats": ("ttf", "woff2", "woff"),
|
46
|
+
/// "modular-scale-base": 1em,
|
47
|
+
/// "modular-scale-ratio": $major-third,
|
48
|
+
/// "rails-asset-pipeline": false,
|
49
|
+
/// );
|
50
|
+
|
51
|
+
$bourbon: () !default;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Append pseudo-classes to a selector(s).
|
4
|
+
///
|
5
|
+
/// @argument {list | string} $inputs
|
6
|
+
/// A selector, or list of selectors, to apply the pseudo-class to.
|
7
|
+
///
|
8
|
+
/// @argument {pseudo-class} $pseudo [null]
|
9
|
+
/// The pseudo-class to be appended.
|
10
|
+
///
|
11
|
+
/// @return {list}
|
12
|
+
///
|
13
|
+
/// @access private
|
14
|
+
|
15
|
+
@function _assign-inputs(
|
16
|
+
$inputs,
|
17
|
+
$pseudo: null
|
18
|
+
) {
|
19
|
+
|
20
|
+
$list: ();
|
21
|
+
|
22
|
+
@each $input in $inputs {
|
23
|
+
$input: unquote($input);
|
24
|
+
$input: if($pseudo, $input + ":" + $pseudo, $input);
|
25
|
+
$list: append($list, $input, comma);
|
26
|
+
}
|
27
|
+
|
28
|
+
@return $list;
|
29
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
// scss-lint:disable ElsePlacement
|
4
|
+
|
5
|
+
/// Directional-property mixins are shorthands for writing properties like
|
6
|
+
/// the following.
|
7
|
+
///
|
8
|
+
/// @ignore You can also use `false` instead of `null`.
|
9
|
+
///
|
10
|
+
/// @argument {list} $values
|
11
|
+
/// List of directional values.
|
12
|
+
///
|
13
|
+
/// @example scss - Usage
|
14
|
+
/// .element {
|
15
|
+
/// @include border-style(dotted null);
|
16
|
+
/// @include margin(null 0 10px);
|
17
|
+
/// }
|
18
|
+
///
|
19
|
+
/// @example css - CSS Output
|
20
|
+
/// .element {
|
21
|
+
/// border-bottom-style: dotted;
|
22
|
+
/// border-top-style: dotted;
|
23
|
+
/// margin-bottom: 10px;
|
24
|
+
/// margin-left: 0;
|
25
|
+
/// margin-right: 0;
|
26
|
+
/// }
|
27
|
+
///
|
28
|
+
/// @return {list}
|
29
|
+
///
|
30
|
+
/// @access private
|
31
|
+
|
32
|
+
@function _collapse-directionals($values) {
|
33
|
+
$output: null;
|
34
|
+
|
35
|
+
$a: nth($values, 1);
|
36
|
+
$b: if(length($values) < 2, $a, nth($values, 2));
|
37
|
+
$c: if(length($values) < 3, $a, nth($values, 3));
|
38
|
+
$d: if(length($values) < 2, $a, nth($values, if(length($values) < 4, 2, 4)));
|
39
|
+
|
40
|
+
@if $a == 0 { $a: 0; }
|
41
|
+
@if $b == 0 { $b: 0; }
|
42
|
+
@if $c == 0 { $c: 0; }
|
43
|
+
@if $d == 0 { $d: 0; }
|
44
|
+
|
45
|
+
@if $a == $b and $a == $c and $a == $d { $output: $a; }
|
46
|
+
@else if $a == $c and $b == $d { $output: $a $b; }
|
47
|
+
@else if $b == $d { $output: $a $b $c; }
|
48
|
+
@else { $output: $a $b $c $d; }
|
49
|
+
|
50
|
+
@return $output;
|
51
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
// scss-lint:disable SpaceAroundOperator
|
4
|
+
|
5
|
+
/// Output directional properties, for instance `margin`.
|
6
|
+
///
|
7
|
+
/// @argument {string} $pre
|
8
|
+
/// Prefix to use.
|
9
|
+
///
|
10
|
+
/// @argument {string} $suf
|
11
|
+
/// Suffix to use.
|
12
|
+
///
|
13
|
+
/// @argument {list} $values
|
14
|
+
/// List of values.
|
15
|
+
///
|
16
|
+
/// @require {function} _collapse-directionals
|
17
|
+
///
|
18
|
+
/// @require {function} _contains-falsy
|
19
|
+
///
|
20
|
+
/// @access private
|
21
|
+
|
22
|
+
@mixin _directional-property(
|
23
|
+
$pre,
|
24
|
+
$suf,
|
25
|
+
$values
|
26
|
+
) {
|
27
|
+
|
28
|
+
$top: $pre + "-top" + if($suf, "-#{$suf}", "");
|
29
|
+
$bottom: $pre + "-bottom" + if($suf, "-#{$suf}", "");
|
30
|
+
$left: $pre + "-left" + if($suf, "-#{$suf}", "");
|
31
|
+
$right: $pre + "-right" + if($suf, "-#{$suf}", "");
|
32
|
+
$all: $pre + if($suf, "-#{$suf}", "");
|
33
|
+
|
34
|
+
$values: _collapse-directionals($values);
|
35
|
+
|
36
|
+
@if _contains-falsy($values) {
|
37
|
+
@if nth($values, 1) { #{$top}: nth($values, 1); }
|
38
|
+
|
39
|
+
@if length($values) == 1 {
|
40
|
+
@if nth($values, 1) { #{$right}: nth($values, 1); }
|
41
|
+
} @else {
|
42
|
+
@if nth($values, 2) { #{$right}: nth($values, 2); }
|
43
|
+
}
|
44
|
+
|
45
|
+
@if length($values) == 2 {
|
46
|
+
@if nth($values, 1) { #{$bottom}: nth($values, 1); }
|
47
|
+
@if nth($values, 2) { #{$left}: nth($values, 2); }
|
48
|
+
} @else if length($values) == 3 {
|
49
|
+
@if nth($values, 3) { #{$bottom}: nth($values, 3); }
|
50
|
+
@if nth($values, 2) { #{$left}: nth($values, 2); }
|
51
|
+
} @else if length($values) == 4 {
|
52
|
+
@if nth($values, 3) { #{$bottom}: nth($values, 3); }
|
53
|
+
@if nth($values, 4) { #{$left}: nth($values, 4); }
|
54
|
+
}
|
55
|
+
} @else {
|
56
|
+
#{$all}: $values;
|
57
|
+
}
|
58
|
+
}
|
@@ -1,20 +1,29 @@
|
|
1
|
-
|
2
|
-
// Reference: http://goo.gl/Ru1bKP
|
1
|
+
@charset "UTF-8";
|
3
2
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
}
|
3
|
+
/// Builds the `src` list for an `@font-face` declaration.
|
4
|
+
///
|
5
|
+
/// @link http://goo.gl/Ru1bKP
|
6
|
+
///
|
7
|
+
/// @argument {string} $font-family
|
8
|
+
///
|
9
|
+
/// @argument {string} $file-path
|
10
|
+
///
|
11
|
+
/// @argument {boolean} $asset-pipeline
|
12
|
+
///
|
13
|
+
/// @argument {list} $file-formats
|
14
|
+
///
|
15
|
+
/// @return {list}
|
16
|
+
///
|
17
|
+
/// @require {function} _contains
|
18
|
+
///
|
19
|
+
/// @access private
|
11
20
|
|
12
|
-
@function
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
21
|
+
@function _font-source-declaration(
|
22
|
+
$font-family,
|
23
|
+
$file-path,
|
24
|
+
$asset-pipeline,
|
25
|
+
$file-formats
|
26
|
+
) {
|
18
27
|
|
19
28
|
$src: ();
|
20
29
|
|
@@ -23,11 +32,11 @@
|
|
23
32
|
woff2: "#{$file-path}.woff2" format("woff2"),
|
24
33
|
woff: "#{$file-path}.woff" format("woff"),
|
25
34
|
ttf: "#{$file-path}.ttf" format("truetype"),
|
26
|
-
svg: "#{$file-path}.svg##{$font-family}" format("svg")
|
35
|
+
svg: "#{$file-path}.svg##{$font-family}" format("svg"),
|
27
36
|
);
|
28
37
|
|
29
38
|
@each $key, $values in $formats-map {
|
30
|
-
@if
|
39
|
+
@if _contains($file-formats, $key) {
|
31
40
|
$file-path: nth($values, 1);
|
32
41
|
$font-format: nth($values, 2);
|
33
42
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Return a Bourbon setting.
|
4
|
+
///
|
5
|
+
/// @argument {string} $setting
|
6
|
+
///
|
7
|
+
/// @return {boolean | color | list | number | string}
|
8
|
+
///
|
9
|
+
/// @example scss
|
10
|
+
/// _retrieve-bourbon-setting(rails-asset-pipeline)
|
11
|
+
///
|
12
|
+
/// @access private
|
13
|
+
|
14
|
+
@function _retrieve-bourbon-setting($setting) {
|
15
|
+
@return map-get(map-merge($_bourbon-defaults, $bourbon), $setting);
|
16
|
+
}
|
@@ -2,19 +2,21 @@
|
|
2
2
|
|
3
3
|
/// Converts shorthand to the 4-value syntax.
|
4
4
|
///
|
5
|
-
/// @
|
5
|
+
/// @argument {list} $shorthand
|
6
6
|
///
|
7
|
-
/// @example scss
|
7
|
+
/// @example scss
|
8
8
|
/// .element {
|
9
|
-
/// margin:
|
9
|
+
/// margin: _unpack(1em 2em);
|
10
10
|
/// }
|
11
11
|
///
|
12
|
-
/// @example css
|
12
|
+
/// @example css
|
13
13
|
/// .element {
|
14
14
|
/// margin: 1em 2em 1em 2em;
|
15
15
|
/// }
|
16
|
+
///
|
17
|
+
/// @access private
|
16
18
|
|
17
|
-
@function
|
19
|
+
@function _unpack($shorthand) {
|
18
20
|
@if length($shorthand) == 1 {
|
19
21
|
@return nth($shorthand, 1) nth($shorthand, 1) nth($shorthand, 1) nth($shorthand, 1);
|
20
22
|
} @else if length($shorthand) == 2 {
|
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
/// Checks if a list does not contains a value.
|
4
4
|
///
|
5
|
-
/// @
|
6
|
-
///
|
7
|
-
/// @param {List} $list
|
5
|
+
/// @argument {list} $list
|
8
6
|
/// The list to check against.
|
9
7
|
///
|
10
|
-
/// @return {
|
8
|
+
/// @return {boolean}
|
9
|
+
///
|
10
|
+
/// @access private
|
11
11
|
|
12
|
-
@function
|
12
|
+
@function _contains-falsy($list) {
|
13
13
|
@each $item in $list {
|
14
14
|
@if not $item {
|
15
15
|
@return true;
|