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,34 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Provides a quick method for targeting `padding` on specific sides of a
|
4
|
+
/// box. Use a `null` value to “skip” a side.
|
5
|
+
///
|
6
|
+
/// @argument {arglist} $values
|
7
|
+
/// List of padding values, defined as CSS shorthand.
|
8
|
+
///
|
9
|
+
/// @example scss
|
10
|
+
/// .element-one {
|
11
|
+
/// @include padding(null 1rem);
|
12
|
+
/// }
|
13
|
+
///
|
14
|
+
/// .element-two {
|
15
|
+
/// @include padding(10vh null 10px 5%);
|
16
|
+
/// }
|
17
|
+
///
|
18
|
+
/// @example css
|
19
|
+
/// .element-one {
|
20
|
+
/// padding-left: 1rem;
|
21
|
+
/// padding-right: 1rem;
|
22
|
+
/// }
|
23
|
+
///
|
24
|
+
/// .element-two {
|
25
|
+
/// padding-bottom: 10px;
|
26
|
+
/// padding-left: 5%;
|
27
|
+
/// padding-top: 10vh;
|
28
|
+
/// }
|
29
|
+
///
|
30
|
+
/// @require {mixin} _directional-property
|
31
|
+
|
32
|
+
@mixin padding($values...) {
|
33
|
+
@include _directional-property(padding, false, $values...);
|
34
|
+
}
|
@@ -1,47 +1,53 @@
|
|
1
1
|
@charset "UTF-8";
|
2
2
|
|
3
|
-
/// Provides a quick method for setting an element’s position. Use a `null`
|
3
|
+
/// Provides a quick method for setting an element’s position. Use a `null`
|
4
|
+
/// value to “skip” a side.
|
4
5
|
///
|
5
|
-
/// @
|
6
|
-
/// A CSS position value
|
6
|
+
/// @argument {string} $position [relative]
|
7
|
+
/// A CSS position value.
|
7
8
|
///
|
8
|
-
/// @
|
9
|
-
/// List of
|
9
|
+
/// @argument {arglist} $coordinates [null]
|
10
|
+
/// List of lengths, defined as CSS shorthand.
|
10
11
|
///
|
11
|
-
/// @example scss
|
12
|
+
/// @example scss
|
12
13
|
/// .element {
|
13
14
|
/// @include position(absolute, 0 null null 10em);
|
14
15
|
/// }
|
15
16
|
///
|
16
|
-
/// @example css
|
17
|
+
/// @example css
|
17
18
|
/// .element {
|
18
19
|
/// left: 10em;
|
19
20
|
/// position: absolute;
|
20
21
|
/// top: 0;
|
21
22
|
/// }
|
22
23
|
///
|
23
|
-
/// @require {function}
|
24
|
-
///
|
24
|
+
/// @require {function} _is-length
|
25
|
+
///
|
26
|
+
/// @require {function} _unpack
|
27
|
+
|
28
|
+
@mixin position(
|
29
|
+
$position: relative,
|
30
|
+
$coordinates: null
|
31
|
+
) {
|
25
32
|
|
26
|
-
@mixin position($position: relative, $coordinates: null null null null) {
|
27
33
|
@if type-of($position) == list {
|
28
34
|
$coordinates: $position;
|
29
35
|
$position: relative;
|
30
36
|
}
|
31
37
|
|
32
|
-
$coordinates:
|
38
|
+
$coordinates: _unpack($coordinates);
|
33
39
|
|
34
40
|
$offsets: (
|
35
41
|
top: nth($coordinates, 1),
|
36
42
|
right: nth($coordinates, 2),
|
37
43
|
bottom: nth($coordinates, 3),
|
38
|
-
left: nth($coordinates, 4)
|
44
|
+
left: nth($coordinates, 4),
|
39
45
|
);
|
40
46
|
|
41
47
|
position: $position;
|
42
48
|
|
43
49
|
@each $offset, $value in $offsets {
|
44
|
-
@if
|
50
|
+
@if _is-length($value) {
|
45
51
|
#{$offset}: $value;
|
46
52
|
}
|
47
53
|
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Generates vendor prefixes.
|
4
|
+
///
|
5
|
+
/// @argument {string} $property
|
6
|
+
/// Property to prefix.
|
7
|
+
///
|
8
|
+
/// @argument {string} $value
|
9
|
+
/// Value to use.
|
10
|
+
///
|
11
|
+
/// @argument {list} $prefixes
|
12
|
+
/// Vendor prefixes to output.
|
13
|
+
///
|
14
|
+
/// @example scss
|
15
|
+
/// .element {
|
16
|
+
/// @include prefixer(appearance, none, ("webkit", "moz"));
|
17
|
+
/// }
|
18
|
+
///
|
19
|
+
/// @example css
|
20
|
+
/// .element {
|
21
|
+
/// -webkit-appearance: none;
|
22
|
+
/// -moz-appearance: none;
|
23
|
+
/// appearance: none;
|
24
|
+
/// }
|
25
|
+
///
|
26
|
+
/// @author Hugo Giraudel
|
27
|
+
|
28
|
+
@mixin prefixer(
|
29
|
+
$property,
|
30
|
+
$value,
|
31
|
+
$prefixes: ()
|
32
|
+
) {
|
33
|
+
|
34
|
+
@each $prefix in $prefixes {
|
35
|
+
#{"-" + $prefix + "-" + $property}: $value;
|
36
|
+
}
|
37
|
+
#{$property}: $value;
|
38
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Mixes a color with black.
|
4
|
+
///
|
5
|
+
/// @argument {color} $color
|
6
|
+
///
|
7
|
+
/// @argument {number (percentage)} $percent
|
8
|
+
/// The amount of black to be mixed in.
|
9
|
+
///
|
10
|
+
/// @return {color}
|
11
|
+
///
|
12
|
+
/// @example scss
|
13
|
+
/// .element {
|
14
|
+
/// background-color: shade(#ffbb52, 60%);
|
15
|
+
/// }
|
16
|
+
///
|
17
|
+
/// @example css
|
18
|
+
/// .element {
|
19
|
+
/// background-color: #664a20;
|
20
|
+
/// }
|
21
|
+
|
22
|
+
@function shade(
|
23
|
+
$color,
|
24
|
+
$percent
|
25
|
+
) {
|
26
|
+
|
27
|
+
@if not _is-color($color) {
|
28
|
+
@error "`#{$color}` is not a valid color for the `$color` argument in " +
|
29
|
+
"the `shade` mixin.";
|
30
|
+
} @else {
|
31
|
+
@return mix(#000, $color, $percent);
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Sets the `width` and `height` of the element in one statement.
|
4
|
+
///
|
5
|
+
/// @argument {number (with unit) | string} $width
|
6
|
+
///
|
7
|
+
/// @argument {number (with unit) | string} $height [$width]
|
8
|
+
///
|
9
|
+
/// @example scss
|
10
|
+
/// .first-element {
|
11
|
+
/// @include size(2em);
|
12
|
+
/// }
|
13
|
+
///
|
14
|
+
/// .second-element {
|
15
|
+
/// @include size(auto, 10em);
|
16
|
+
/// }
|
17
|
+
///
|
18
|
+
/// @example css
|
19
|
+
/// .first-element {
|
20
|
+
/// width: 2em;
|
21
|
+
/// height: 2em;
|
22
|
+
/// }
|
23
|
+
///
|
24
|
+
/// .second-element {
|
25
|
+
/// width: auto;
|
26
|
+
/// height: 10em;
|
27
|
+
/// }
|
28
|
+
///
|
29
|
+
/// @require {function} _is-size
|
30
|
+
|
31
|
+
@mixin size(
|
32
|
+
$width,
|
33
|
+
$height: $width
|
34
|
+
) {
|
35
|
+
|
36
|
+
@if _is-size($height) {
|
37
|
+
height: $height;
|
38
|
+
} @else {
|
39
|
+
@error "`#{$height}` is not a valid length for the `$height` argument " +
|
40
|
+
"in the `size` mixin.";
|
41
|
+
}
|
42
|
+
|
43
|
+
@if _is-size($width) {
|
44
|
+
width: $width;
|
45
|
+
} @else {
|
46
|
+
@error "`#{$width}` is not a valid length for the `$width` argument " +
|
47
|
+
"in the `size` mixin.";
|
48
|
+
}
|
49
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Strips the unit from a number.
|
4
|
+
///
|
5
|
+
/// @argument {number} $value
|
6
|
+
///
|
7
|
+
/// @return {number (unitless)}
|
8
|
+
///
|
9
|
+
/// @example scss
|
10
|
+
/// $dimension: strip-unit(10em);
|
11
|
+
///
|
12
|
+
/// @example css
|
13
|
+
/// $dimension: 10;
|
14
|
+
|
15
|
+
@function strip-unit($value) {
|
16
|
+
@return ($value / ($value * 0 + 1));
|
17
|
+
}
|
@@ -0,0 +1,163 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
////
|
4
|
+
/// @type list
|
5
|
+
///
|
6
|
+
/// @require {function} _assign-inputs
|
7
|
+
///
|
8
|
+
/// @require {variable} $_text-inputs-list
|
9
|
+
////
|
10
|
+
|
11
|
+
/// A list of all _text-based_ HTML inputs. Please note that you must
|
12
|
+
/// interpolate the variable (`#{}`) to use it as a selector.
|
13
|
+
///
|
14
|
+
/// @example scss
|
15
|
+
/// #{$all-text-inputs} {
|
16
|
+
/// border: 1px solid #ccc;
|
17
|
+
/// }
|
18
|
+
///
|
19
|
+
/// @example css
|
20
|
+
/// [type='color'],
|
21
|
+
/// [type='date'],
|
22
|
+
/// [type='datetime'],
|
23
|
+
/// [type='datetime-local'],
|
24
|
+
/// [type='email'],
|
25
|
+
/// [type='month'],
|
26
|
+
/// [type='number'],
|
27
|
+
/// [type='password'],
|
28
|
+
/// [type='search'],
|
29
|
+
/// [type='tel'],
|
30
|
+
/// [type='text'],
|
31
|
+
/// [type='time'],
|
32
|
+
/// [type='url'],
|
33
|
+
/// [type='week'],
|
34
|
+
/// input:not([type]),
|
35
|
+
/// textarea {
|
36
|
+
/// border: 1px solid #ccc;
|
37
|
+
/// }
|
38
|
+
|
39
|
+
$all-text-inputs: _assign-inputs($_text-inputs-list);
|
40
|
+
|
41
|
+
/// A list of all _text-based_ HTML inputs with the `:active` pseudo-class
|
42
|
+
/// applied. Please note that you must interpolate the variable (`#{}`) to use
|
43
|
+
/// it as a selector.
|
44
|
+
///
|
45
|
+
/// @example scss
|
46
|
+
/// #{$all-text-inputs-active} {
|
47
|
+
/// border: 1px solid #aaa;
|
48
|
+
/// }
|
49
|
+
///
|
50
|
+
/// @example css
|
51
|
+
/// [type='color']:active,
|
52
|
+
/// [type='date']:active,
|
53
|
+
/// [type='datetime']:active,
|
54
|
+
/// [type='datetime-local']:active,
|
55
|
+
/// [type='email']:active,
|
56
|
+
/// [type='month']:active,
|
57
|
+
/// [type='number']:active,
|
58
|
+
/// [type='password']:active,
|
59
|
+
/// [type='search']:active,
|
60
|
+
/// [type='tel']:active,
|
61
|
+
/// [type='text']:active,
|
62
|
+
/// [type='time']:active,
|
63
|
+
/// [type='url']:active,
|
64
|
+
/// [type='week']:active,
|
65
|
+
/// input:not([type]):active,
|
66
|
+
/// textarea:active {
|
67
|
+
/// border: 1px solid #aaa;
|
68
|
+
/// }
|
69
|
+
|
70
|
+
$all-text-inputs-active: _assign-inputs($_text-inputs-list, active);
|
71
|
+
|
72
|
+
/// A list of all _text-based_ HTML inputs with the `:focus` pseudo-class
|
73
|
+
/// applied. Please note that you must interpolate the variable (`#{}`) to use
|
74
|
+
/// it as a selector.
|
75
|
+
///
|
76
|
+
/// @example scss
|
77
|
+
/// #{$all-text-inputs-focus} {
|
78
|
+
/// border: 1px solid #1565c0;
|
79
|
+
/// }
|
80
|
+
///
|
81
|
+
/// @example css
|
82
|
+
/// [type='color']:focus,
|
83
|
+
/// [type='date']:focus,
|
84
|
+
/// [type='datetime']:focus,
|
85
|
+
/// [type='datetime-local']:focus,
|
86
|
+
/// [type='email']:focus,
|
87
|
+
/// [type='month']:focus,
|
88
|
+
/// [type='number']:focus,
|
89
|
+
/// [type='password']:focus,
|
90
|
+
/// [type='search']:focus,
|
91
|
+
/// [type='tel']:focus,
|
92
|
+
/// [type='text']:focus,
|
93
|
+
/// [type='time']:focus,
|
94
|
+
/// [type='url']:focus,
|
95
|
+
/// [type='week']:focus,
|
96
|
+
/// input:not([type]):focus,
|
97
|
+
/// textarea:focus {
|
98
|
+
/// border: 1px solid #1565c0;
|
99
|
+
/// }
|
100
|
+
|
101
|
+
$all-text-inputs-focus: _assign-inputs($_text-inputs-list, focus);
|
102
|
+
|
103
|
+
/// A list of all _text-based_ HTML inputs with the `:hover` pseudo-class
|
104
|
+
/// applied. Please note that you must interpolate the variable (`#{}`) to use
|
105
|
+
/// it as a selector.
|
106
|
+
///
|
107
|
+
/// @example scss
|
108
|
+
/// #{$all-text-inputs-hover} {
|
109
|
+
/// border: 1px solid #aaa;
|
110
|
+
/// }
|
111
|
+
///
|
112
|
+
/// @example css
|
113
|
+
/// [type='color']:hover,
|
114
|
+
/// [type='date']:hover,
|
115
|
+
/// [type='datetime']:hover,
|
116
|
+
/// [type='datetime-local']:hover,
|
117
|
+
/// [type='email']:hover,
|
118
|
+
/// [type='month']:hover,
|
119
|
+
/// [type='number']:hover,
|
120
|
+
/// [type='password']:hover,
|
121
|
+
/// [type='search']:hover,
|
122
|
+
/// [type='tel']:hover,
|
123
|
+
/// [type='text']:hover,
|
124
|
+
/// [type='time']:hover,
|
125
|
+
/// [type='url']:hover,
|
126
|
+
/// [type='week']:hover,
|
127
|
+
/// input:not([type]):hover,
|
128
|
+
/// textarea:hover {
|
129
|
+
/// border: 1px solid #aaa;
|
130
|
+
/// }
|
131
|
+
|
132
|
+
$all-text-inputs-hover: _assign-inputs($_text-inputs-list, hover);
|
133
|
+
|
134
|
+
/// A list of all _text-based_ HTML inputs with the `:invalid` pseudo-class
|
135
|
+
/// applied. Please note that you must interpolate the variable (`#{}`) to use
|
136
|
+
/// it as a selector.
|
137
|
+
///
|
138
|
+
/// @example scss
|
139
|
+
/// #{$all-text-inputs-invalid} {
|
140
|
+
/// border: 1px solid #00f;
|
141
|
+
/// }
|
142
|
+
///
|
143
|
+
/// @example css
|
144
|
+
/// [type='color']:invalid,
|
145
|
+
/// [type='date']:invalid,
|
146
|
+
/// [type='datetime']:invalid,
|
147
|
+
/// [type='datetime-local']:invalid,
|
148
|
+
/// [type='email']:invalid,
|
149
|
+
/// [type='month']:invalid,
|
150
|
+
/// [type='number']:invalid,
|
151
|
+
/// [type='password']:invalid,
|
152
|
+
/// [type='search']:invalid,
|
153
|
+
/// [type='tel']:invalid,
|
154
|
+
/// [type='text']:invalid,
|
155
|
+
/// [type='time']:invalid,
|
156
|
+
/// [type='url']:invalid,
|
157
|
+
/// [type='week']:invalid,
|
158
|
+
/// input:not([type]):invalid,
|
159
|
+
/// textarea:invalid {
|
160
|
+
/// border: 1px solid #00f;
|
161
|
+
/// }
|
162
|
+
|
163
|
+
$all-text-inputs-invalid: _assign-inputs($_text-inputs-list, invalid);
|
@@ -1,10 +1,14 @@
|
|
1
1
|
@charset "UTF-8";
|
2
2
|
|
3
|
-
|
3
|
+
// scss-lint:disable SpaceAfterComma, UnnecessaryMantissa, TrailingZero
|
4
|
+
|
5
|
+
////
|
6
|
+
/// CSS cubic-bezier timing functions.
|
4
7
|
///
|
5
|
-
///
|
8
|
+
/// @link http://goo.gl/p8u6SK
|
6
9
|
///
|
7
|
-
/// @type
|
10
|
+
/// @type string
|
11
|
+
////
|
8
12
|
|
9
13
|
$ease-in-quad: cubic-bezier(0.550, 0.085, 0.680, 0.530);
|
10
14
|
$ease-in-cubic: cubic-bezier(0.550, 0.055, 0.675, 0.190);
|
@@ -0,0 +1,33 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Mixes a color with white.
|
4
|
+
///
|
5
|
+
/// @argument {color} $color
|
6
|
+
///
|
7
|
+
/// @argument {number (percentage)} $percent
|
8
|
+
/// The amount of white to be mixed in.
|
9
|
+
///
|
10
|
+
/// @return {color}
|
11
|
+
///
|
12
|
+
/// @example scss
|
13
|
+
/// .element {
|
14
|
+
/// background-color: tint(#6ecaa6, 40%);
|
15
|
+
/// }
|
16
|
+
///
|
17
|
+
/// @example css
|
18
|
+
/// .element {
|
19
|
+
/// background-color: #a8dfc9;
|
20
|
+
/// }
|
21
|
+
|
22
|
+
@function tint(
|
23
|
+
$color,
|
24
|
+
$percent
|
25
|
+
) {
|
26
|
+
|
27
|
+
@if not _is-color($color) {
|
28
|
+
@error "`#{$color}` is not a valid color for the `$color` argument in " +
|
29
|
+
"the `tint` mixin.";
|
30
|
+
} @else {
|
31
|
+
@return mix(#fff, $color, $percent);
|
32
|
+
}
|
33
|
+
}
|