minimal-mistakes-jekyll 4.6.0 → 4.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -0
- data/LICENSE.txt +59 -21
- data/README.md +217 -160
- data/_data/navigation.yml +11 -11
- data/_data/ui-text.yml +931 -888
- data/_includes/analytics-providers/custom.html +2 -2
- data/_includes/analytics-providers/google-universal.html +9 -9
- data/_includes/analytics-providers/google.html +10 -10
- data/_includes/analytics.html +11 -11
- data/_includes/archive-single.html +37 -37
- data/_includes/author-profile-custom-links.html +6 -6
- data/_includes/author-profile.html +249 -249
- data/_includes/base_path +4 -4
- data/_includes/breadcrumbs.html +39 -39
- data/_includes/browser-upgrade.html +2 -2
- data/_includes/category-list.html +25 -25
- data/_includes/comment.html +22 -22
- data/_includes/comments-providers/custom.html +2 -2
- data/_includes/comments-providers/discourse.html +13 -13
- data/_includes/comments-providers/facebook.html +7 -7
- data/_includes/comments-providers/google-plus.html +1 -1
- data/_includes/comments-providers/scripts.html +17 -15
- data/_includes/comments-providers/staticman.html +41 -41
- data/_includes/comments-providers/staticman_v2.html +42 -0
- data/_includes/comments.html +168 -96
- data/_includes/feature_row +49 -49
- data/_includes/figure +12 -12
- data/_includes/footer.html +25 -25
- data/_includes/footer/custom.html +2 -2
- data/_includes/gallery +46 -46
- data/_includes/group-by-array +46 -46
- data/_includes/head.html +42 -42
- data/_includes/head/custom.html +4 -4
- data/_includes/masthead.html +23 -20
- data/_includes/nav_list +46 -46
- data/_includes/page__hero_video.html +4 -4
- data/_includes/page__taxonomy.html +6 -6
- data/_includes/paginator.html +69 -69
- data/_includes/post_pagination.html +13 -13
- data/_includes/read-time.html +14 -14
- data/_includes/scripts.html +15 -15
- data/_includes/seo.html +162 -147
- data/_includes/sidebar.html +22 -22
- data/_includes/social-share.html +13 -13
- data/_includes/tag-list.html +25 -25
- data/_includes/toc +6 -6
- data/_includes/toc.html +75 -0
- data/_includes/video +11 -11
- data/_layouts/archive-taxonomy.html +14 -14
- data/_layouts/archive.html +25 -25
- data/_layouts/compress.html +10 -10
- data/_layouts/default.html +1 -1
- data/_layouts/home.html +11 -11
- data/_layouts/single.html +92 -84
- data/_layouts/splash.html +21 -21
- data/_sass/minimal-mistakes.scss +1 -1
- data/_sass/minimal-mistakes/_animations.scss +20 -20
- data/_sass/minimal-mistakes/_archive.scss +317 -317
- data/_sass/minimal-mistakes/_base.scss +315 -315
- data/_sass/minimal-mistakes/_buttons.scss +97 -97
- data/_sass/minimal-mistakes/_footer.scss +82 -82
- data/_sass/minimal-mistakes/_forms.scss +399 -389
- data/_sass/minimal-mistakes/_masthead.scss +82 -82
- data/_sass/minimal-mistakes/_mixins.scss +91 -91
- data/_sass/minimal-mistakes/_navigation.scss +552 -552
- data/_sass/minimal-mistakes/_notices.scss +99 -99
- data/_sass/minimal-mistakes/_page.scss +430 -430
- data/_sass/minimal-mistakes/_reset.scss +186 -186
- data/_sass/minimal-mistakes/_sidebar.scss +262 -262
- data/_sass/minimal-mistakes/_syntax.scss +286 -146
- data/_sass/minimal-mistakes/_tables.scss +36 -36
- data/_sass/minimal-mistakes/_utilities.scss +519 -519
- data/_sass/minimal-mistakes/_variables.scss +137 -137
- data/_sass/minimal-mistakes/skins/_air.scss +22 -22
- data/_sass/minimal-mistakes/skins/_aqua.scss +30 -0
- data/_sass/minimal-mistakes/skins/_contrast.scss +33 -33
- data/_sass/minimal-mistakes/skins/_dark.scss +23 -23
- data/_sass/minimal-mistakes/skins/_default.scss +5 -5
- data/_sass/minimal-mistakes/skins/_dirt.scss +14 -14
- data/_sass/minimal-mistakes/skins/_mint.scss +22 -22
- data/_sass/minimal-mistakes/skins/_neon.scss +35 -0
- data/_sass/minimal-mistakes/skins/_plum.scss +42 -0
- data/_sass/minimal-mistakes/skins/_sunrise.scss +25 -25
- data/_sass/minimal-mistakes/vendor/breakpoint/_breakpoint.scss +114 -114
- data/_sass/minimal-mistakes/vendor/breakpoint/_context.scss +94 -94
- data/_sass/minimal-mistakes/vendor/breakpoint/_helpers.scss +151 -151
- data/_sass/minimal-mistakes/vendor/breakpoint/_legacy-settings.scss +49 -49
- data/_sass/minimal-mistakes/vendor/breakpoint/_no-query.scss +15 -15
- data/_sass/minimal-mistakes/vendor/breakpoint/_parsers.scss +215 -215
- data/_sass/minimal-mistakes/vendor/breakpoint/_respond-to.scss +82 -82
- data/_sass/minimal-mistakes/vendor/breakpoint/_settings.scss +70 -70
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss +33 -33
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_query.scss +82 -82
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_resolution.scss +31 -31
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_single.scss +26 -26
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_triple.scss +36 -36
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default-pair.scss +21 -21
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default.scss +22 -22
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_double-string.scss +21 -21
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -60
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/single/_default.scss +13 -13
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/triple/_default.scss +18 -18
- data/_sass/minimal-mistakes/vendor/font-awesome/_animated.scss +34 -34
- data/_sass/minimal-mistakes/vendor/font-awesome/_bordered-pulled.scss +25 -25
- data/_sass/minimal-mistakes/vendor/font-awesome/_core.scss +12 -12
- data/_sass/minimal-mistakes/vendor/font-awesome/_fixed-width.scss +6 -6
- data/_sass/minimal-mistakes/vendor/font-awesome/_font-awesome.scss +18 -18
- data/_sass/minimal-mistakes/vendor/font-awesome/_icons.scss +789 -789
- data/_sass/minimal-mistakes/vendor/font-awesome/_larger.scss +13 -13
- data/_sass/minimal-mistakes/vendor/font-awesome/_list.scss +19 -19
- data/_sass/minimal-mistakes/vendor/font-awesome/_mixins.scss +60 -60
- data/_sass/minimal-mistakes/vendor/font-awesome/_path.scss +15 -15
- data/_sass/minimal-mistakes/vendor/font-awesome/_rotated-flipped.scss +20 -20
- data/_sass/minimal-mistakes/vendor/font-awesome/_screen-reader.scss +5 -5
- data/_sass/minimal-mistakes/vendor/font-awesome/_stacked.scss +20 -20
- data/_sass/minimal-mistakes/vendor/font-awesome/_variables.scss +800 -800
- data/_sass/minimal-mistakes/vendor/magnific-popup/_magnific-popup.scss +649 -649
- data/_sass/minimal-mistakes/vendor/magnific-popup/_settings.scss +45 -45
- data/_sass/minimal-mistakes/vendor/susy/_susy-prefix.scss +13 -13
- data/_sass/minimal-mistakes/vendor/susy/_susy.scss +5 -5
- data/_sass/minimal-mistakes/vendor/susy/plugins/_svg-grid.scss +5 -5
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_prefix.scss +7 -7
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-api.scss +114 -114
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-grid-math.scss +67 -67
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-settings.scss +14 -14
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-unprefix.scss +18 -18
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-utilities.scss +133 -133
- data/_sass/minimal-mistakes/vendor/susy/susy/_api.scss +318 -318
- data/_sass/minimal-mistakes/vendor/susy/susy/_normalize.scss +261 -261
- data/_sass/minimal-mistakes/vendor/susy/susy/_parse.scss +163 -163
- data/_sass/minimal-mistakes/vendor/susy/susy/_settings.scss +329 -329
- data/_sass/minimal-mistakes/vendor/susy/susy/_su-math.scss +441 -441
- data/_sass/minimal-mistakes/vendor/susy/susy/_su-validate.scss +213 -213
- data/_sass/minimal-mistakes/vendor/susy/susy/_syntax-helpers.scss +191 -191
- data/_sass/minimal-mistakes/vendor/susy/susy/_unprefix.scss +56 -56
- data/_sass/minimal-mistakes/vendor/susy/susy/_utilities.scss +167 -167
- data/assets/css/main.scss +7 -7
- data/assets/fonts/fontawesome-webfont.svg +2671 -2671
- data/assets/js/_main.js +72 -72
- data/assets/js/main.min.js +1 -1
- data/assets/js/plugins/jquery.fitvids.js +81 -81
- data/assets/js/plugins/jquery.greedy-navigation.js +77 -77
- metadata +8 -3
@@ -1,56 +1,56 @@
|
|
1
|
-
// Unprefix Susy
|
2
|
-
// =============
|
3
|
-
|
4
|
-
|
5
|
-
// Span
|
6
|
-
// ----
|
7
|
-
/// Un-prefixed alias for `susy-span`
|
8
|
-
/// (available by default)
|
9
|
-
///
|
10
|
-
/// @group api
|
11
|
-
/// @alias susy-span
|
12
|
-
///
|
13
|
-
/// @param {list} $span
|
14
|
-
/// @param {map} $config [()]
|
15
|
-
@function span(
|
16
|
-
$span,
|
17
|
-
$config: ()
|
18
|
-
) {
|
19
|
-
@return susy-span($span, $config);
|
20
|
-
}
|
21
|
-
|
22
|
-
|
23
|
-
// Gutter
|
24
|
-
// ------
|
25
|
-
/// Un-prefixed alias for `susy-gutter`
|
26
|
-
/// (available by default)
|
27
|
-
///
|
28
|
-
/// @group api
|
29
|
-
/// @alias susy-gutter
|
30
|
-
///
|
31
|
-
/// @param {integer | list} $context [null] -
|
32
|
-
/// @param {map} $config [()]
|
33
|
-
@function gutter(
|
34
|
-
$context: susy-get('columns'),
|
35
|
-
$config: ()
|
36
|
-
) {
|
37
|
-
@return susy-gutter($context, $config);
|
38
|
-
}
|
39
|
-
|
40
|
-
|
41
|
-
// Slice
|
42
|
-
// -----
|
43
|
-
/// Un-prefixed alias for `susy-slice`
|
44
|
-
/// (available by default)
|
45
|
-
///
|
46
|
-
/// @group api
|
47
|
-
/// @alias susy-slice
|
48
|
-
///
|
49
|
-
/// @param {list} $span
|
50
|
-
/// @param {map} $config [()]
|
51
|
-
@function slice(
|
52
|
-
$span,
|
53
|
-
$config: ()
|
54
|
-
) {
|
55
|
-
@return susy-slice($span, $config);
|
56
|
-
}
|
1
|
+
// Unprefix Susy
|
2
|
+
// =============
|
3
|
+
|
4
|
+
|
5
|
+
// Span
|
6
|
+
// ----
|
7
|
+
/// Un-prefixed alias for `susy-span`
|
8
|
+
/// (available by default)
|
9
|
+
///
|
10
|
+
/// @group api
|
11
|
+
/// @alias susy-span
|
12
|
+
///
|
13
|
+
/// @param {list} $span
|
14
|
+
/// @param {map} $config [()]
|
15
|
+
@function span(
|
16
|
+
$span,
|
17
|
+
$config: ()
|
18
|
+
) {
|
19
|
+
@return susy-span($span, $config);
|
20
|
+
}
|
21
|
+
|
22
|
+
|
23
|
+
// Gutter
|
24
|
+
// ------
|
25
|
+
/// Un-prefixed alias for `susy-gutter`
|
26
|
+
/// (available by default)
|
27
|
+
///
|
28
|
+
/// @group api
|
29
|
+
/// @alias susy-gutter
|
30
|
+
///
|
31
|
+
/// @param {integer | list} $context [null] -
|
32
|
+
/// @param {map} $config [()]
|
33
|
+
@function gutter(
|
34
|
+
$context: susy-get('columns'),
|
35
|
+
$config: ()
|
36
|
+
) {
|
37
|
+
@return susy-gutter($context, $config);
|
38
|
+
}
|
39
|
+
|
40
|
+
|
41
|
+
// Slice
|
42
|
+
// -----
|
43
|
+
/// Un-prefixed alias for `susy-slice`
|
44
|
+
/// (available by default)
|
45
|
+
///
|
46
|
+
/// @group api
|
47
|
+
/// @alias susy-slice
|
48
|
+
///
|
49
|
+
/// @param {list} $span
|
50
|
+
/// @param {map} $config [()]
|
51
|
+
@function slice(
|
52
|
+
$span,
|
53
|
+
$config: ()
|
54
|
+
) {
|
55
|
+
@return susy-slice($span, $config);
|
56
|
+
}
|
@@ -1,167 +1,167 @@
|
|
1
|
-
// Sass Utilities
|
2
|
-
// ==============
|
3
|
-
// - Susy Error Output Override [variable]
|
4
|
-
// - Susy Error [function]
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
// Susy Error Output Override
|
9
|
-
// --------------------------
|
10
|
-
/// Turn off error output for testing
|
11
|
-
/// @group x-utility
|
12
|
-
/// @access private
|
13
|
-
$_susy-error-output-override: false !default;
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
// Susy Error
|
18
|
-
// ----------
|
19
|
-
/// Optionally return error messages without failing,
|
20
|
-
/// as a way to test error cases
|
21
|
-
///
|
22
|
-
/// @group x-utility
|
23
|
-
/// @access private
|
24
|
-
///
|
25
|
-
/// @param {string} $message -
|
26
|
-
/// A useful error message, explaining the problem
|
27
|
-
/// @param {string} $source -
|
28
|
-
/// The original source of the error for debugging
|
29
|
-
/// @param {bool} $override [$_susy-error-output-override] -
|
30
|
-
/// Optionally return the error rather than failing
|
31
|
-
/// @return {string} -
|
32
|
-
/// Combined error with source and message
|
33
|
-
/// @throws When `$override == true`
|
34
|
-
@function _susy-error(
|
35
|
-
$message,
|
36
|
-
$source,
|
37
|
-
$override: $_susy-error-output-override
|
38
|
-
) {
|
39
|
-
@if $override {
|
40
|
-
@return 'ERROR [#{$source}] #{$message}';
|
41
|
-
}
|
42
|
-
|
43
|
-
@error '[#{$source}] #{$message}';
|
44
|
-
}
|
45
|
-
|
46
|
-
|
47
|
-
// Su Is Comparable
|
48
|
-
// ----------------
|
49
|
-
/// Check that the units in a grid are comparable
|
50
|
-
///
|
51
|
-
/// @group x-validation
|
52
|
-
/// @access private
|
53
|
-
///
|
54
|
-
/// @param {numbers} $lengths… -
|
55
|
-
/// Arglist of all the number values to compare
|
56
|
-
/// (columns, gutters, span, etc)
|
57
|
-
///
|
58
|
-
/// @return {'fluid' | 'static' | false} -
|
59
|
-
/// The type of span (fluid or static) when units match,
|
60
|
-
/// or `false` for mismatched units
|
61
|
-
@function _su-is-comparable(
|
62
|
-
$lengths...
|
63
|
-
) {
|
64
|
-
$first: nth($lengths, 1);
|
65
|
-
|
66
|
-
@if (length($lengths) == 1) {
|
67
|
-
@return if(unitless($first), 'fluid', 'static');
|
68
|
-
}
|
69
|
-
|
70
|
-
@for $i from 2 through length($lengths) {
|
71
|
-
$comp: nth($lengths, $i);
|
72
|
-
|
73
|
-
$fail: not comparable($first, $comp);
|
74
|
-
$fail: $fail or (unitless($first) and not unitless($comp));
|
75
|
-
$fail: $fail or (unitless($comp) and not unitless($first));
|
76
|
-
|
77
|
-
@if $fail {
|
78
|
-
@return false;
|
79
|
-
}
|
80
|
-
}
|
81
|
-
|
82
|
-
@return if(unitless($first), 'fluid', 'static');
|
83
|
-
}
|
84
|
-
|
85
|
-
|
86
|
-
// Su Map Add Units
|
87
|
-
// ----------------
|
88
|
-
/// The calc features use a map of units and values
|
89
|
-
/// to compile the proper algorythm.
|
90
|
-
/// This function adds a new value to any comparable existing unit/value,
|
91
|
-
/// or adds a new unit/value pair to the map
|
92
|
-
///
|
93
|
-
/// @group x-utility
|
94
|
-
/// @access private
|
95
|
-
///
|
96
|
-
/// @param {map} $map -
|
97
|
-
/// A map of unit/value pairs, e.g. ('px': 120px)
|
98
|
-
/// @param {length} $value -
|
99
|
-
/// A new length to be added to the map
|
100
|
-
/// @return {map} -
|
101
|
-
/// The updated map, with new value added
|
102
|
-
///
|
103
|
-
/// @example scss -
|
104
|
-
/// $map: (0px: 120px);
|
105
|
-
/// $map: _su-map-add-units($map, 1in); // add a comparable unit
|
106
|
-
/// $map: _su-map-add-units($map, 3vw); // add a new unit
|
107
|
-
///
|
108
|
-
/// @each $units, $value in $map {
|
109
|
-
/// /* #{$units}: #{$value} */
|
110
|
-
/// }
|
111
|
-
@function _su-map-add-units(
|
112
|
-
$map,
|
113
|
-
$value
|
114
|
-
) {
|
115
|
-
$unit: $value * 0;
|
116
|
-
$has: map-get($map, $unit) or 0;
|
117
|
-
|
118
|
-
@if ($has == 0) {
|
119
|
-
@each $try, $could in $map {
|
120
|
-
$match: comparable($try, $value);
|
121
|
-
$unit: if($match, $try, $unit);
|
122
|
-
$has: if($match, $could, $has);
|
123
|
-
}
|
124
|
-
}
|
125
|
-
|
126
|
-
@return map-merge($map, ($unit: $has + $value));
|
127
|
-
}
|
128
|
-
|
129
|
-
|
130
|
-
// Susy Flatten
|
131
|
-
// ------------
|
132
|
-
/// Flatten a multidimensional list
|
133
|
-
///
|
134
|
-
/// @group x-utility
|
135
|
-
/// @access private
|
136
|
-
///
|
137
|
-
/// @param {list} $list -
|
138
|
-
/// The list to be flattened
|
139
|
-
/// @return {list} -
|
140
|
-
/// The flattened list
|
141
|
-
///
|
142
|
-
/// @example scss -
|
143
|
-
/// $list: 120px (30em 30em) 120px;
|
144
|
-
/// /* #{_susy-flatten($list)} */
|
145
|
-
@function _susy-flatten(
|
146
|
-
$list
|
147
|
-
) {
|
148
|
-
$flat: ();
|
149
|
-
|
150
|
-
// Don't iterate over maps
|
151
|
-
@if (type-of($list) == 'map') {
|
152
|
-
@return $list;
|
153
|
-
}
|
154
|
-
|
155
|
-
// Iterate over lists (or single items)
|
156
|
-
@each $item in $list {
|
157
|
-
@if (type-of($item) == 'list') {
|
158
|
-
$item: _susy-flatten($item);
|
159
|
-
$flat: join($flat, $item);
|
160
|
-
} @else {
|
161
|
-
$flat: append($flat, $item);
|
162
|
-
}
|
163
|
-
}
|
164
|
-
|
165
|
-
// Return flattened list
|
166
|
-
@return $flat;
|
167
|
-
}
|
1
|
+
// Sass Utilities
|
2
|
+
// ==============
|
3
|
+
// - Susy Error Output Override [variable]
|
4
|
+
// - Susy Error [function]
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
// Susy Error Output Override
|
9
|
+
// --------------------------
|
10
|
+
/// Turn off error output for testing
|
11
|
+
/// @group x-utility
|
12
|
+
/// @access private
|
13
|
+
$_susy-error-output-override: false !default;
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
// Susy Error
|
18
|
+
// ----------
|
19
|
+
/// Optionally return error messages without failing,
|
20
|
+
/// as a way to test error cases
|
21
|
+
///
|
22
|
+
/// @group x-utility
|
23
|
+
/// @access private
|
24
|
+
///
|
25
|
+
/// @param {string} $message -
|
26
|
+
/// A useful error message, explaining the problem
|
27
|
+
/// @param {string} $source -
|
28
|
+
/// The original source of the error for debugging
|
29
|
+
/// @param {bool} $override [$_susy-error-output-override] -
|
30
|
+
/// Optionally return the error rather than failing
|
31
|
+
/// @return {string} -
|
32
|
+
/// Combined error with source and message
|
33
|
+
/// @throws When `$override == true`
|
34
|
+
@function _susy-error(
|
35
|
+
$message,
|
36
|
+
$source,
|
37
|
+
$override: $_susy-error-output-override
|
38
|
+
) {
|
39
|
+
@if $override {
|
40
|
+
@return 'ERROR [#{$source}] #{$message}';
|
41
|
+
}
|
42
|
+
|
43
|
+
@error '[#{$source}] #{$message}';
|
44
|
+
}
|
45
|
+
|
46
|
+
|
47
|
+
// Su Is Comparable
|
48
|
+
// ----------------
|
49
|
+
/// Check that the units in a grid are comparable
|
50
|
+
///
|
51
|
+
/// @group x-validation
|
52
|
+
/// @access private
|
53
|
+
///
|
54
|
+
/// @param {numbers} $lengths… -
|
55
|
+
/// Arglist of all the number values to compare
|
56
|
+
/// (columns, gutters, span, etc)
|
57
|
+
///
|
58
|
+
/// @return {'fluid' | 'static' | false} -
|
59
|
+
/// The type of span (fluid or static) when units match,
|
60
|
+
/// or `false` for mismatched units
|
61
|
+
@function _su-is-comparable(
|
62
|
+
$lengths...
|
63
|
+
) {
|
64
|
+
$first: nth($lengths, 1);
|
65
|
+
|
66
|
+
@if (length($lengths) == 1) {
|
67
|
+
@return if(unitless($first), 'fluid', 'static');
|
68
|
+
}
|
69
|
+
|
70
|
+
@for $i from 2 through length($lengths) {
|
71
|
+
$comp: nth($lengths, $i);
|
72
|
+
|
73
|
+
$fail: not comparable($first, $comp);
|
74
|
+
$fail: $fail or (unitless($first) and not unitless($comp));
|
75
|
+
$fail: $fail or (unitless($comp) and not unitless($first));
|
76
|
+
|
77
|
+
@if $fail {
|
78
|
+
@return false;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
@return if(unitless($first), 'fluid', 'static');
|
83
|
+
}
|
84
|
+
|
85
|
+
|
86
|
+
// Su Map Add Units
|
87
|
+
// ----------------
|
88
|
+
/// The calc features use a map of units and values
|
89
|
+
/// to compile the proper algorythm.
|
90
|
+
/// This function adds a new value to any comparable existing unit/value,
|
91
|
+
/// or adds a new unit/value pair to the map
|
92
|
+
///
|
93
|
+
/// @group x-utility
|
94
|
+
/// @access private
|
95
|
+
///
|
96
|
+
/// @param {map} $map -
|
97
|
+
/// A map of unit/value pairs, e.g. ('px': 120px)
|
98
|
+
/// @param {length} $value -
|
99
|
+
/// A new length to be added to the map
|
100
|
+
/// @return {map} -
|
101
|
+
/// The updated map, with new value added
|
102
|
+
///
|
103
|
+
/// @example scss -
|
104
|
+
/// $map: (0px: 120px);
|
105
|
+
/// $map: _su-map-add-units($map, 1in); // add a comparable unit
|
106
|
+
/// $map: _su-map-add-units($map, 3vw); // add a new unit
|
107
|
+
///
|
108
|
+
/// @each $units, $value in $map {
|
109
|
+
/// /* #{$units}: #{$value} */
|
110
|
+
/// }
|
111
|
+
@function _su-map-add-units(
|
112
|
+
$map,
|
113
|
+
$value
|
114
|
+
) {
|
115
|
+
$unit: $value * 0;
|
116
|
+
$has: map-get($map, $unit) or 0;
|
117
|
+
|
118
|
+
@if ($has == 0) {
|
119
|
+
@each $try, $could in $map {
|
120
|
+
$match: comparable($try, $value);
|
121
|
+
$unit: if($match, $try, $unit);
|
122
|
+
$has: if($match, $could, $has);
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
@return map-merge($map, ($unit: $has + $value));
|
127
|
+
}
|
128
|
+
|
129
|
+
|
130
|
+
// Susy Flatten
|
131
|
+
// ------------
|
132
|
+
/// Flatten a multidimensional list
|
133
|
+
///
|
134
|
+
/// @group x-utility
|
135
|
+
/// @access private
|
136
|
+
///
|
137
|
+
/// @param {list} $list -
|
138
|
+
/// The list to be flattened
|
139
|
+
/// @return {list} -
|
140
|
+
/// The flattened list
|
141
|
+
///
|
142
|
+
/// @example scss -
|
143
|
+
/// $list: 120px (30em 30em) 120px;
|
144
|
+
/// /* #{_susy-flatten($list)} */
|
145
|
+
@function _susy-flatten(
|
146
|
+
$list
|
147
|
+
) {
|
148
|
+
$flat: ();
|
149
|
+
|
150
|
+
// Don't iterate over maps
|
151
|
+
@if (type-of($list) == 'map') {
|
152
|
+
@return $list;
|
153
|
+
}
|
154
|
+
|
155
|
+
// Iterate over lists (or single items)
|
156
|
+
@each $item in $list {
|
157
|
+
@if (type-of($item) == 'list') {
|
158
|
+
$item: _susy-flatten($item);
|
159
|
+
$flat: join($flat, $item);
|
160
|
+
} @else {
|
161
|
+
$flat: append($flat, $item);
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
165
|
+
// Return flattened list
|
166
|
+
@return $flat;
|
167
|
+
}
|
data/assets/css/main.scss
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
---
|
2
|
-
# Only the main Sass file needs front matter (the dashes are enough)
|
3
|
-
---
|
4
|
-
|
5
|
-
@charset "utf-8";
|
6
|
-
|
7
|
-
@import "minimal-mistakes/skins/{{ site.minimal_mistakes_skin | default: 'default' }}"; // skin
|
1
|
+
---
|
2
|
+
# Only the main Sass file needs front matter (the dashes are enough)
|
3
|
+
---
|
4
|
+
|
5
|
+
@charset "utf-8";
|
6
|
+
|
7
|
+
@import "minimal-mistakes/skins/{{ site.minimal_mistakes_skin | default: 'default' }}"; // skin
|
8
8
|
@import "minimal-mistakes"; // main partials
|