garth-jekyll-theme 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/footer.html +1 -1
- data/_includes/header.html +22 -6
- data/_includes/pagination.html +16 -12
- data/_includes/posts.html +2 -2
- data/_layouts/default.html +5 -0
- data/_layouts/front.html +3 -5
- data/_layouts/page.html +3 -5
- data/_layouts/post.html +4 -6
- data/_sass/_sassline-base.scss +7 -0
- data/_sass/sassline-base/_layouts.scss +282 -0
- data/_sass/sassline-base/_mixins.scss +420 -0
- data/_sass/sassline-base/_modular-scale.scss +66 -0
- data/_sass/sassline-base/_reset.scss +13 -0
- data/_sass/sassline-base/_typography.scss +363 -0
- data/_sass/sassline-base/_variables.scss +96 -0
- data/_sass/sassline.scss +1 -0
- data/_sass/style.scss +12 -0
- data/_sass/theme.scss +74 -20
- metadata +11 -79
- data/_includes/favicons.html +0 -18
- data/_includes/nav.html +0 -14
- data/_includes/scripts.js +0 -14
- data/_sass/base/_base.scss +0 -14
- data/_sass/base/_buttons.scss +0 -35
- data/_sass/base/_forms.scss +0 -83
- data/_sass/base/_layout.scss +0 -9
- data/_sass/base/_lists.scss +0 -19
- data/_sass/base/_media.scss +0 -9
- data/_sass/base/_tables.scss +0 -24
- data/_sass/base/_typography.scss +0 -42
- data/_sass/base/_variables.scss +0 -46
- data/_sass/bourbon/_bourbon.scss +0 -52
- data/_sass/bourbon/bourbon/helpers/_buttons-list.scss +0 -14
- data/_sass/bourbon/bourbon/helpers/_scales.scss +0 -27
- data/_sass/bourbon/bourbon/helpers/_text-inputs-list.scss +0 -26
- data/_sass/bourbon/bourbon/library/_border-color.scss +0 -25
- data/_sass/bourbon/bourbon/library/_border-radius.scss +0 -85
- data/_sass/bourbon/bourbon/library/_border-style.scss +0 -24
- data/_sass/bourbon/bourbon/library/_border-width.scss +0 -24
- data/_sass/bourbon/bourbon/library/_buttons.scss +0 -84
- data/_sass/bourbon/bourbon/library/_clearfix.scss +0 -25
- data/_sass/bourbon/bourbon/library/_contrast-switch.scss +0 -60
- data/_sass/bourbon/bourbon/library/_ellipsis.scss +0 -37
- data/_sass/bourbon/bourbon/library/_font-face.scss +0 -65
- data/_sass/bourbon/bourbon/library/_font-stacks.scss +0 -87
- data/_sass/bourbon/bourbon/library/_hide-text.scss +0 -24
- data/_sass/bourbon/bourbon/library/_hide-visually.scss +0 -65
- data/_sass/bourbon/bourbon/library/_margin.scss +0 -34
- data/_sass/bourbon/bourbon/library/_modular-scale.scss +0 -113
- data/_sass/bourbon/bourbon/library/_padding.scss +0 -34
- data/_sass/bourbon/bourbon/library/_position.scss +0 -54
- data/_sass/bourbon/bourbon/library/_prefixer.scss +0 -38
- data/_sass/bourbon/bourbon/library/_shade.scss +0 -33
- data/_sass/bourbon/bourbon/library/_size.scss +0 -49
- data/_sass/bourbon/bourbon/library/_strip-unit.scss +0 -17
- data/_sass/bourbon/bourbon/library/_text-inputs.scss +0 -163
- data/_sass/bourbon/bourbon/library/_timing-functions.scss +0 -38
- data/_sass/bourbon/bourbon/library/_tint.scss +0 -33
- data/_sass/bourbon/bourbon/library/_triangle.scss +0 -82
- data/_sass/bourbon/bourbon/library/_value-prefixer.scss +0 -38
- data/_sass/bourbon/bourbon/library/_word-wrap.scss +0 -29
- data/_sass/bourbon/bourbon/settings/_settings.scss +0 -51
- data/_sass/bourbon/bourbon/utilities/_assign-inputs.scss +0 -29
- data/_sass/bourbon/bourbon/utilities/_collapse-directionals.scss +0 -51
- data/_sass/bourbon/bourbon/utilities/_directional-values.scss +0 -58
- data/_sass/bourbon/bourbon/utilities/_font-source-declaration.scss +0 -52
- data/_sass/bourbon/bourbon/utilities/_retrieve-bourbon-setting.scss +0 -16
- data/_sass/bourbon/bourbon/utilities/_unpack.scss +0 -29
- data/_sass/bourbon/bourbon/validators/_contains-falsy.scss +0 -20
- data/_sass/bourbon/bourbon/validators/_contains.scss +0 -27
- data/_sass/bourbon/bourbon/validators/_is-color.scss +0 -13
- data/_sass/bourbon/bourbon/validators/_is-length.scss +0 -15
- data/_sass/bourbon/bourbon/validators/_is-light.scss +0 -23
- data/_sass/bourbon/bourbon/validators/_is-number.scss +0 -15
- data/_sass/bourbon/bourbon/validators/_is-size.scss +0 -18
- data/_sass/neat/_neat-helpers.scss +0 -8
- data/_sass/neat/_neat.scss +0 -23
- data/_sass/neat/functions/_new-breakpoint.scss +0 -49
- data/_sass/neat/functions/_private.scss +0 -114
- data/_sass/neat/grid/_box-sizing.scss +0 -15
- data/_sass/neat/grid/_direction-context.scss +0 -33
- data/_sass/neat/grid/_display-context.scss +0 -28
- data/_sass/neat/grid/_fill-parent.scss +0 -22
- data/_sass/neat/grid/_media.scss +0 -92
- data/_sass/neat/grid/_omega.scss +0 -87
- data/_sass/neat/grid/_outer-container.scss +0 -38
- data/_sass/neat/grid/_pad.scss +0 -25
- data/_sass/neat/grid/_private.scss +0 -35
- data/_sass/neat/grid/_row.scss +0 -52
- data/_sass/neat/grid/_shift.scss +0 -50
- data/_sass/neat/grid/_span-columns.scss +0 -94
- data/_sass/neat/grid/_to-deprecate.scss +0 -97
- data/_sass/neat/grid/_visual-grid.scss +0 -42
- data/_sass/neat/settings/_disable-warnings.scss +0 -13
- data/_sass/neat/settings/_grid.scss +0 -51
- data/_sass/neat/settings/_visual-grid.scss +0 -27
@@ -1,82 +0,0 @@
|
|
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
|
-
}
|
@@ -1,38 +0,0 @@
|
|
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
|
-
}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
@charset "UTF-8";
|
2
|
-
|
3
|
-
/// Provides an easy way to change the `word-wrap` property.
|
4
|
-
///
|
5
|
-
/// @argument {string} $wrap [break-word]
|
6
|
-
/// Value for the `word-break` property.
|
7
|
-
///
|
8
|
-
/// @example scss
|
9
|
-
/// .wrapper {
|
10
|
-
/// @include word-wrap(break-word);
|
11
|
-
/// }
|
12
|
-
///
|
13
|
-
/// @example css
|
14
|
-
/// .wrapper {
|
15
|
-
/// overflow-wrap: break-word;
|
16
|
-
/// word-break: break-all;
|
17
|
-
/// word-wrap: break-word;
|
18
|
-
/// }
|
19
|
-
|
20
|
-
@mixin word-wrap($wrap: break-word) {
|
21
|
-
overflow-wrap: $wrap;
|
22
|
-
word-wrap: $wrap;
|
23
|
-
|
24
|
-
@if $wrap == break-word {
|
25
|
-
word-break: break-all;
|
26
|
-
} @else {
|
27
|
-
word-break: $wrap;
|
28
|
-
}
|
29
|
-
}
|
@@ -1,51 +0,0 @@
|
|
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;
|
@@ -1,29 +0,0 @@
|
|
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
|
-
}
|
@@ -1,51 +0,0 @@
|
|
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
|
-
}
|
@@ -1,58 +0,0 @@
|
|
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,52 +0,0 @@
|
|
1
|
-
@charset "UTF-8";
|
2
|
-
|
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
|
20
|
-
|
21
|
-
@function _font-source-declaration(
|
22
|
-
$font-family,
|
23
|
-
$file-path,
|
24
|
-
$asset-pipeline,
|
25
|
-
$file-formats
|
26
|
-
) {
|
27
|
-
|
28
|
-
$src: ();
|
29
|
-
|
30
|
-
$formats-map: (
|
31
|
-
eot: "#{$file-path}.eot?#iefix" format("embedded-opentype"),
|
32
|
-
woff2: "#{$file-path}.woff2" format("woff2"),
|
33
|
-
woff: "#{$file-path}.woff" format("woff"),
|
34
|
-
ttf: "#{$file-path}.ttf" format("truetype"),
|
35
|
-
svg: "#{$file-path}.svg##{$font-family}" format("svg"),
|
36
|
-
);
|
37
|
-
|
38
|
-
@each $key, $values in $formats-map {
|
39
|
-
@if _contains($file-formats, $key) {
|
40
|
-
$file-path: nth($values, 1);
|
41
|
-
$font-format: nth($values, 2);
|
42
|
-
|
43
|
-
@if $asset-pipeline == true {
|
44
|
-
$src: append($src, font-url($file-path) $font-format, comma);
|
45
|
-
} @else {
|
46
|
-
$src: append($src, url($file-path) $font-format, comma);
|
47
|
-
}
|
48
|
-
}
|
49
|
-
}
|
50
|
-
|
51
|
-
@return $src;
|
52
|
-
}
|
@@ -1,16 +0,0 @@
|
|
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
|
-
}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
@charset "UTF-8";
|
2
|
-
|
3
|
-
/// Converts shorthand to the 4-value syntax.
|
4
|
-
///
|
5
|
-
/// @argument {list} $shorthand
|
6
|
-
///
|
7
|
-
/// @example scss
|
8
|
-
/// .element {
|
9
|
-
/// margin: _unpack(1em 2em);
|
10
|
-
/// }
|
11
|
-
///
|
12
|
-
/// @example css
|
13
|
-
/// .element {
|
14
|
-
/// margin: 1em 2em 1em 2em;
|
15
|
-
/// }
|
16
|
-
///
|
17
|
-
/// @access private
|
18
|
-
|
19
|
-
@function _unpack($shorthand) {
|
20
|
-
@if length($shorthand) == 1 {
|
21
|
-
@return nth($shorthand, 1) nth($shorthand, 1) nth($shorthand, 1) nth($shorthand, 1);
|
22
|
-
} @else if length($shorthand) == 2 {
|
23
|
-
@return nth($shorthand, 1) nth($shorthand, 2) nth($shorthand, 1) nth($shorthand, 2);
|
24
|
-
} @else if length($shorthand) == 3 {
|
25
|
-
@return nth($shorthand, 1) nth($shorthand, 2) nth($shorthand, 3) nth($shorthand, 2);
|
26
|
-
} @else {
|
27
|
-
@return $shorthand;
|
28
|
-
}
|
29
|
-
}
|