creek-jekyll-theme 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +81 -0
- data/_config.yml +306 -0
- data/_data/README.md +3 -0
- data/_data/navigation/docs.yml +56 -0
- data/_data/navigation/main.yml +12 -0
- data/_data/navigation.yml +68 -0
- data/_data/ui-text.yml +2024 -0
- data/_includes/analytics-providers/custom.html +3 -0
- data/_includes/analytics-providers/google-gtag.html +9 -0
- data/_includes/analytics-providers/google-universal.html +7 -0
- data/_includes/analytics-providers/google.html +14 -0
- data/_includes/analytics.html +14 -0
- data/_includes/archive-single.html +30 -0
- data/_includes/author-profile-custom-links.html +7 -0
- data/_includes/author-profile.html +246 -0
- data/_includes/breadcrumbs.html +40 -0
- data/_includes/browser-upgrade.html +2 -0
- data/_includes/category-list.html +19 -0
- data/_includes/comment.html +22 -0
- data/_includes/comments-providers/custom.html +3 -0
- data/_includes/comments-providers/custom_scripts.html +3 -0
- data/_includes/comments-providers/discourse.html +13 -0
- data/_includes/comments-providers/disqus.html +15 -0
- data/_includes/comments-providers/facebook.html +8 -0
- data/_includes/comments-providers/giscus.html +24 -0
- data/_includes/comments-providers/scripts.html +20 -0
- data/_includes/comments-providers/staticman.html +40 -0
- data/_includes/comments-providers/staticman_v2.html +40 -0
- data/_includes/comments-providers/utterances.html +21 -0
- data/_includes/comments.html +180 -0
- data/_includes/documents-collection.html +15 -0
- data/_includes/feature_row +41 -0
- data/_includes/figure +9 -0
- data/_includes/footer/custom.html +3 -0
- data/_includes/footer.html +21 -0
- data/_includes/gallery +35 -0
- data/_includes/group-by-array +47 -0
- data/_includes/head/custom.html +15 -0
- data/_includes/head.html +25 -0
- data/_includes/masthead.html +35 -0
- data/_includes/nav_list +26 -0
- data/_includes/page__date.html +6 -0
- data/_includes/page__hero.html +55 -0
- data/_includes/page__hero_video.html +2 -0
- data/_includes/page__meta.html +31 -0
- data/_includes/page__taxonomy.html +7 -0
- data/_includes/paginator.html +69 -0
- data/_includes/post_pagination.html +14 -0
- data/_includes/posts-category.html +5 -0
- data/_includes/posts-tag.html +5 -0
- data/_includes/scripts.html +28 -0
- data/_includes/search/algolia-search-scripts.html +62 -0
- data/_includes/search/google-search-scripts.html +30 -0
- data/_includes/search/lunr-search-scripts.html +10 -0
- data/_includes/search/search_form.html +26 -0
- data/_includes/seo.html +158 -0
- data/_includes/sidebar.html +19 -0
- data/_includes/skip-links.html +7 -0
- data/_includes/social-share.html +11 -0
- data/_includes/tag-list.html +19 -0
- data/_includes/toc +7 -0
- data/_includes/toc.html +182 -0
- data/_includes/video +24 -0
- data/_layouts/archive-taxonomy.html +29 -0
- data/_layouts/archive.html +26 -0
- data/_layouts/categories.html +43 -0
- data/_layouts/category.html +10 -0
- data/_layouts/collection.html +10 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/default.html +41 -0
- data/_layouts/home.html +22 -0
- data/_layouts/posts.html +30 -0
- data/_layouts/search.html +42 -0
- data/_layouts/single.html +95 -0
- data/_layouts/splash.html +22 -0
- data/_layouts/tag.html +10 -0
- data/_layouts/tags.html +43 -0
- data/_pages/404.html +26 -0
- data/_sass/minimal-mistakes/_animations.scss +21 -0
- data/_sass/minimal-mistakes/_archive.scss +463 -0
- data/_sass/minimal-mistakes/_base.scss +339 -0
- data/_sass/minimal-mistakes/_buttons.scss +97 -0
- data/_sass/minimal-mistakes/_footer.scss +85 -0
- data/_sass/minimal-mistakes/_forms.scss +359 -0
- data/_sass/minimal-mistakes/_masthead.scss +93 -0
- data/_sass/minimal-mistakes/_mixins.scss +92 -0
- data/_sass/minimal-mistakes/_navigation.scss +573 -0
- data/_sass/minimal-mistakes/_notices.scss +109 -0
- data/_sass/minimal-mistakes/_page.scss +578 -0
- data/_sass/minimal-mistakes/_print.scss +252 -0
- data/_sass/minimal-mistakes/_reset.scss +187 -0
- data/_sass/minimal-mistakes/_search.scss +132 -0
- data/_sass/minimal-mistakes/_sidebar.scss +353 -0
- data/_sass/minimal-mistakes/_syntax.scss +324 -0
- data/_sass/minimal-mistakes/_tables.scss +39 -0
- data/_sass/minimal-mistakes/_utilities.scss +593 -0
- data/_sass/minimal-mistakes/_variables.scss +173 -0
- data/_sass/minimal-mistakes/skins/_air.scss +23 -0
- data/_sass/minimal-mistakes/skins/_aqua.scss +34 -0
- data/_sass/minimal-mistakes/skins/_contrast.scss +52 -0
- data/_sass/minimal-mistakes/skins/_dark.scss +30 -0
- data/_sass/minimal-mistakes/skins/_default.scss +5 -0
- data/_sass/minimal-mistakes/skins/_dirt.scss +33 -0
- data/_sass/minimal-mistakes/skins/_mint.scss +24 -0
- data/_sass/minimal-mistakes/skins/_neon.scss +63 -0
- data/_sass/minimal-mistakes/skins/_plum.scss +70 -0
- data/_sass/minimal-mistakes/skins/_sunrise.scss +49 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_breakpoint.scss +114 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_context.scss +95 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_helpers.scss +151 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_legacy-settings.scss +50 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_no-query.scss +15 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_parsers.scss +215 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_respond-to.scss +82 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_settings.scss +71 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss +33 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_query.scss +82 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_resolution.scss +31 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_single.scss +26 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_triple.scss +36 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default-pair.scss +21 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default.scss +22 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_double-string.scss +22 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/single/_default.scss +13 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/triple/_default.scss +18 -0
- data/_sass/minimal-mistakes/vendor/magnific-popup/_magnific-popup.scss +649 -0
- data/_sass/minimal-mistakes/vendor/magnific-popup/_settings.scss +46 -0
- data/_sass/minimal-mistakes/vendor/susy/_su.scss +4 -0
- data/_sass/minimal-mistakes/vendor/susy/_susy-prefix.scss +13 -0
- data/_sass/minimal-mistakes/vendor/susy/_susy.scss +5 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/_svg-grid.scss +5 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_prefix.scss +7 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-api.scss +114 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-grid-math.scss +67 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-settings.scss +14 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-unprefix.scss +18 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-utilities.scss +133 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_api.scss +318 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_normalize.scss +261 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_parse.scss +163 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_settings.scss +329 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_su-math.scss +441 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_su-validate.scss +213 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_syntax-helpers.scss +191 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_unprefix.scss +56 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_utilities.scss +167 -0
- data/_sass/minimal-mistakes.scss +40 -0
- data/assets/css/main.scss +9 -0
- data/assets/images/android-chrome-192x192.png +0 -0
- data/assets/images/android-chrome-512x512.png +0 -0
- data/assets/images/apple-touch-icon.png +0 -0
- data/assets/images/browserconfig.xml +9 -0
- data/assets/images/creek-logo.png +0 -0
- data/assets/images/favicon-16x16.png +0 -0
- data/assets/images/favicon-32x32.png +0 -0
- data/assets/images/favicon.ico +0 -0
- data/assets/images/mstile-150x150.png +0 -0
- data/assets/images/safari-pinned-tab.svg +48 -0
- data/assets/images/site-under-construction.png +0 -0
- data/assets/images/site.webmanifest +19 -0
- data/assets/js/_main.js +136 -0
- data/assets/js/lunr/lunr-en.js +73 -0
- data/assets/js/lunr/lunr-gr.js +526 -0
- data/assets/js/lunr/lunr-store.js +84 -0
- data/assets/js/lunr/lunr.js +3475 -0
- data/assets/js/lunr/lunr.min.js +6 -0
- data/assets/js/main.min.js +6 -0
- data/assets/js/plugins/gumshoe.js +484 -0
- data/assets/js/plugins/jquery.ba-throttle-debounce.js +252 -0
- data/assets/js/plugins/jquery.fitvids.js +82 -0
- data/assets/js/plugins/jquery.greedy-navigation.js +127 -0
- data/assets/js/plugins/jquery.magnific-popup.js +1860 -0
- data/assets/js/plugins/smooth-scroll.js +650 -0
- data/assets/js/vendor/jquery/jquery-3.6.0.js +10881 -0
- metadata +233 -0
@@ -0,0 +1,329 @@
|
|
1
|
+
/// Susy3 Configuration
|
2
|
+
/// ===================
|
3
|
+
/// Susy3 has 4 core settings, in a single settings map.
|
4
|
+
/// You'll notice a few differences from Susy2:
|
5
|
+
///
|
6
|
+
/// **Columns** no longer accept a single number, like `12`,
|
7
|
+
/// but use a syntax more similar to the new
|
8
|
+
/// CSS [grid-template-columns][columns] –
|
9
|
+
/// a list of relative sizes for each column on the grid.
|
10
|
+
/// Unitless numbers in Susy act very similar to `fr` units in CSS,
|
11
|
+
/// and the `susy-repeat()` function (similar to the css `repeat()`)
|
12
|
+
/// helps quickly establish equal-width columns.
|
13
|
+
///
|
14
|
+
/// [columns]: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns
|
15
|
+
///
|
16
|
+
/// - `susy-repeat(12)` will create 12 fluid, equal-width columns
|
17
|
+
/// - `susy-repeat(6, 120px)` will create 6 equal `120px`-wide columns
|
18
|
+
/// - `120px susy-repeat(4) 120px` will create 6 columns,
|
19
|
+
/// the first and last are `120px`,
|
20
|
+
/// while the middle 4 are equal fractions of the remainder.
|
21
|
+
/// Susy will output `calc()` values in order to achieve this.
|
22
|
+
///
|
23
|
+
/// **Gutters** haven't changed –
|
24
|
+
/// a single fraction or explicit width –
|
25
|
+
/// but the `calc()` output feature
|
26
|
+
/// means you can now use any combination of units and fractions
|
27
|
+
/// to create static-gutters on a fluid grid, etc.
|
28
|
+
///
|
29
|
+
/// **Spread** existed in the Susy2 API as a span option,
|
30
|
+
/// and was otherwise handled behind the scenes.
|
31
|
+
/// Now we're giving you full control over all spread issues.
|
32
|
+
/// You can find a more [detailed explanation of spread on the blog][spread].
|
33
|
+
///
|
34
|
+
/// [spread]: http://oddbird.net/2017/06/13/susy-spread/
|
35
|
+
///
|
36
|
+
/// You can access your global settings at any time
|
37
|
+
/// with the `susy-settings()` function,
|
38
|
+
/// or grab a single setting from the global scope
|
39
|
+
/// with `susy-get('columns')`, `susy-get('gutters')` etc.
|
40
|
+
///
|
41
|
+
/// @group a-config
|
42
|
+
/// @link http://oddbird.net/2017/06/13/susy-spread/
|
43
|
+
/// Article: Understanding Spread in Susy3
|
44
|
+
///
|
45
|
+
/// @see $susy
|
46
|
+
/// @see susy-settings
|
47
|
+
/// @see susy-get
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
// Susy
|
52
|
+
// ----
|
53
|
+
/// The grid is defined in a single map variable,
|
54
|
+
/// with four initial properties:
|
55
|
+
/// `columns`, `gutters`, `spread` and `container-spread`.
|
56
|
+
/// Anything you put in the root `$susy` variable map
|
57
|
+
/// will be treated as a global project default.
|
58
|
+
/// You can create similar configuration maps
|
59
|
+
/// under different variable names,
|
60
|
+
/// to override the defaults as-needed.
|
61
|
+
///
|
62
|
+
/// @group a-config
|
63
|
+
/// @type Map
|
64
|
+
///
|
65
|
+
/// @see $_susy-defaults
|
66
|
+
/// @see {function} susy-repeat
|
67
|
+
/// @link
|
68
|
+
/// https://codepen.io/mirisuzanne/pen/EgmJJp?editors=1100
|
69
|
+
/// Spread examples on CodePen
|
70
|
+
///
|
71
|
+
/// @prop {list} columns -
|
72
|
+
/// Columns are described by a list of numbers,
|
73
|
+
/// representing the relative width of each column.
|
74
|
+
/// The syntax is a simplified version of CSS native
|
75
|
+
/// `grid-template-columns`,
|
76
|
+
/// expecting a list of grid-column widths.
|
77
|
+
/// Unitless numbers create fractional fluid columns
|
78
|
+
/// (similar to the CSS-native `fr` unit),
|
79
|
+
/// while length values (united numbers)
|
80
|
+
/// are used to define static columns.
|
81
|
+
/// You can mix-and match units and fractions,
|
82
|
+
/// to create a mixed grid.
|
83
|
+
/// Susy will generate `calc()` values when necessary,
|
84
|
+
/// to make all your units work together.
|
85
|
+
///
|
86
|
+
/// Use the `susy-repeat($count, $value)` function
|
87
|
+
/// to more easily repetative columns,
|
88
|
+
/// similar to the CSS-native `repeat()`.
|
89
|
+
///
|
90
|
+
/// - `susy-repeat(8)`:
|
91
|
+
/// an 8-column, symmetrical, fluid grid.
|
92
|
+
/// <br />Identical to `(1 1 1 1 1 1 1 1)`.
|
93
|
+
/// - `susy-repeat(6, 8em)`:
|
94
|
+
/// a 6-column, symmetrical, em-based grid.
|
95
|
+
/// <br />Identical to `(8em 8em 8em 8em 8em 8em)`.
|
96
|
+
/// - `(300px susy-repeat(4) 300px)`:
|
97
|
+
/// a 6-column, asymmetrical, mixed fluid/static grid
|
98
|
+
/// using `calc()` output.
|
99
|
+
/// <br />Identical to `(300px 1 1 1 1 300px)`.
|
100
|
+
///
|
101
|
+
/// **NOTE** that `12` is no longer a valid 12-column grid definition,
|
102
|
+
/// and you must list all the columns individually
|
103
|
+
/// (or by using the `susy-repeat()` function).
|
104
|
+
///
|
105
|
+
/// @prop {number} gutters -
|
106
|
+
/// Gutters are defined as a single width,
|
107
|
+
/// or fluid ratio, similar to the native-CSS
|
108
|
+
/// `grid-column-gap` syntax.
|
109
|
+
/// Similar to columns,
|
110
|
+
/// gutters can use any valid CSS length unit,
|
111
|
+
/// or unitless numbers to define a relative fraction.
|
112
|
+
///
|
113
|
+
/// - `0.5`:
|
114
|
+
/// a fluid gutter, half the size of a single-fraction column.
|
115
|
+
/// - `1em`:
|
116
|
+
/// a static gutter, `1em` wide.
|
117
|
+
///
|
118
|
+
/// Mix static gutters with fluid columns, or vice versa,
|
119
|
+
/// and Susy will generate the required `calc()` to make it work.
|
120
|
+
///
|
121
|
+
/// @prop {string} spread [narrow] -
|
122
|
+
/// Spread of an element across adjacent gutters:
|
123
|
+
/// either `narrow` (none), `wide` (one), or `wider` (two)
|
124
|
+
///
|
125
|
+
/// - Both spread settings default to `narrow`,
|
126
|
+
/// the most common use-case.
|
127
|
+
/// A `narrow` spread only has gutters *between* columns
|
128
|
+
/// (one less gutter than columns).
|
129
|
+
/// This is how all css-native grids work,
|
130
|
+
/// and most margin-based grid systems.
|
131
|
+
/// - A `wide` spread includes the same number of gutters as columns,
|
132
|
+
/// spanning across a single side-gutter.
|
133
|
+
/// This is how most padding-based grid systems often work,
|
134
|
+
/// and is also useful for pushing and pulling elements into place.
|
135
|
+
/// - The rare `wider` spread includes gutters
|
136
|
+
/// on both sides of the column-span
|
137
|
+
/// (one more gutters than columns).
|
138
|
+
///
|
139
|
+
/// @prop {string} container-spread [narrow] -
|
140
|
+
/// Spread of a container around adjacent gutters:
|
141
|
+
/// either `narrow` (none), `wide` (one), or `wider` (two).
|
142
|
+
/// See `spread` property for details.
|
143
|
+
///
|
144
|
+
/// @since 3.0.0-beta.1 -
|
145
|
+
/// `columns` setting no longer accepts numbers
|
146
|
+
/// (e.g. `12`) for symmetrical fluid grids,
|
147
|
+
/// or the initial `12 x 120px` syntax for
|
148
|
+
/// symmetrical fixed-unit grids.
|
149
|
+
/// Use `susy-repeat(12)` or `susy-repeat(12, 120px)` instead.
|
150
|
+
///
|
151
|
+
/// @example scss - default values
|
152
|
+
/// // 4 symmetrical, fluid columns
|
153
|
+
/// // gutters are 1/4 the size of a column
|
154
|
+
/// // elements span 1 less gutter than columns
|
155
|
+
/// // containers span 1 less gutter as well
|
156
|
+
/// $susy: (
|
157
|
+
/// 'columns': susy-repeat(4),
|
158
|
+
/// 'gutters': 0.25,
|
159
|
+
/// 'spread': 'narrow',
|
160
|
+
/// 'container-spread': 'narrow',
|
161
|
+
/// );
|
162
|
+
///
|
163
|
+
/// @example scss - inside-static gutters
|
164
|
+
/// // 6 symmetrical, fluid columns…
|
165
|
+
/// // gutters are static, triggering calc()…
|
166
|
+
/// // elements span equal columns & gutters…
|
167
|
+
/// // containers span equal columns & gutters…
|
168
|
+
/// $susy: (
|
169
|
+
/// 'columns': susy-repeat(6),
|
170
|
+
/// 'gutters': 0.5em,
|
171
|
+
/// 'spread': 'wide',
|
172
|
+
/// 'container-spread': 'wide',
|
173
|
+
/// );
|
174
|
+
$susy: () !default;
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
// Susy Repeat
|
179
|
+
// -----------
|
180
|
+
/// Similar to the `repeat(<count>, <value>)` function
|
181
|
+
/// that is available in native CSS Grid templates,
|
182
|
+
/// the `susy-repeat()` function helps generate repetative layouts
|
183
|
+
/// by repeating any value a given number of times.
|
184
|
+
/// Where Susy previously allowed `8` as a column definition
|
185
|
+
/// for 8 equal columns, you should now use `susy-repeat(8)`.
|
186
|
+
///
|
187
|
+
/// @group a-config
|
188
|
+
///
|
189
|
+
/// @param {integer} $count -
|
190
|
+
/// The number of repetitions, e.g. `12` for a 12-column grid.
|
191
|
+
/// @param {*} $value [1] -
|
192
|
+
/// The value to be repeated.
|
193
|
+
/// Technically any value can be repeated here,
|
194
|
+
/// but the function exists to repeat column-width descriptions:
|
195
|
+
/// e.g. the default `1` for single-fraction fluid columns,
|
196
|
+
/// `5em` for a static column,
|
197
|
+
/// or even `5em 120px` if you are alternating column widths.
|
198
|
+
///
|
199
|
+
/// @return {list} -
|
200
|
+
/// List of repeated values
|
201
|
+
///
|
202
|
+
/// @example scss
|
203
|
+
/// // 12 column grid, with 5em columns
|
204
|
+
/// $susy: (
|
205
|
+
/// columns: susy-repeat(12, 5em),
|
206
|
+
/// );
|
207
|
+
///
|
208
|
+
/// @example scss
|
209
|
+
/// // asymmetrical 5-column grid
|
210
|
+
/// $susy: (
|
211
|
+
/// columns: 20px susy-repeat(3, 100px) 20px,
|
212
|
+
/// );
|
213
|
+
///
|
214
|
+
/// /* result: #{susy-get('columns')} */
|
215
|
+
@function susy-repeat(
|
216
|
+
$count,
|
217
|
+
$value: 1
|
218
|
+
) {
|
219
|
+
$return: ();
|
220
|
+
|
221
|
+
@for $i from 1 through $count {
|
222
|
+
$return: join($return, $value);
|
223
|
+
}
|
224
|
+
|
225
|
+
@return $return;
|
226
|
+
}
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
// Susy Defaults
|
231
|
+
// -------------
|
232
|
+
/// Configuration map of Susy factory defaults.
|
233
|
+
/// Do not override this map directly –
|
234
|
+
/// use `$susy` for user and project setting overrides.
|
235
|
+
///
|
236
|
+
/// @access private
|
237
|
+
/// @type Map
|
238
|
+
///
|
239
|
+
/// @see $susy
|
240
|
+
///
|
241
|
+
/// @prop {number | list} columns [susy-repeat(4)]
|
242
|
+
/// @prop {number} gutters [0.25]
|
243
|
+
/// @prop {string} spread ['narrow']
|
244
|
+
/// @prop {string} container-spread ['narrow']
|
245
|
+
$_susy-defaults: (
|
246
|
+
'columns': susy-repeat(4),
|
247
|
+
'gutters': 0.25,
|
248
|
+
'spread': 'narrow',
|
249
|
+
'container-spread': 'narrow',
|
250
|
+
);
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
// Susy Settings
|
255
|
+
// -------------
|
256
|
+
/// Return a combined map of Susy settings,
|
257
|
+
/// based on the factory defaults (`$_susy-defaults`),
|
258
|
+
/// user-defined project configuration (`$susy`),
|
259
|
+
/// and any local overrides required –
|
260
|
+
/// such as a configuration map passed into a function.
|
261
|
+
///
|
262
|
+
/// @group a-config
|
263
|
+
///
|
264
|
+
/// @param {maps} $overrides… -
|
265
|
+
/// Optional map override of global configuration settings.
|
266
|
+
/// See `$susy` above for properties.
|
267
|
+
///
|
268
|
+
/// @return {map} -
|
269
|
+
/// Combined map of Susy configuration settings,
|
270
|
+
/// in order of specificity:
|
271
|
+
/// any `$overrides...`,
|
272
|
+
/// then `$susy` project settings,
|
273
|
+
/// and finally the `$_susy-defaults`
|
274
|
+
///
|
275
|
+
/// @example scss - global settings
|
276
|
+
/// @each $key, $value in susy-settings() {
|
277
|
+
/// /* #{$key}: #{$value} */
|
278
|
+
/// }
|
279
|
+
///
|
280
|
+
/// @example scss - local settings
|
281
|
+
/// $local: ('columns': 1 2 3 5 8);
|
282
|
+
///
|
283
|
+
/// @each $key, $value in susy-settings($local) {
|
284
|
+
/// /* #{$key}: #{$value} */
|
285
|
+
/// }
|
286
|
+
@function susy-settings(
|
287
|
+
$overrides...
|
288
|
+
) {
|
289
|
+
$settings: map-merge($_susy-defaults, $susy);
|
290
|
+
|
291
|
+
@each $config in $overrides {
|
292
|
+
$settings: map-merge($settings, $config);
|
293
|
+
}
|
294
|
+
|
295
|
+
@return $settings;
|
296
|
+
}
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
// Susy Get
|
301
|
+
// --------
|
302
|
+
/// Return the current global value of any Susy setting
|
303
|
+
///
|
304
|
+
/// @group a-config
|
305
|
+
///
|
306
|
+
/// @param {string} $key -
|
307
|
+
/// Setting to retrieve from the configuration.
|
308
|
+
///
|
309
|
+
/// @return {*} -
|
310
|
+
/// Value mapped to `$key` in the configuration maps,
|
311
|
+
/// in order of specificity:
|
312
|
+
/// `$susy`, then `$_susy-defaults`
|
313
|
+
///
|
314
|
+
/// @example scss -
|
315
|
+
/// /* columns: #{susy-get('columns')} */
|
316
|
+
/// /* gutters: #{susy-get('gutters')} */
|
317
|
+
@function susy-get(
|
318
|
+
$key
|
319
|
+
) {
|
320
|
+
$settings: susy-settings();
|
321
|
+
|
322
|
+
@if not map-has-key($settings, $key) {
|
323
|
+
@return _susy-error(
|
324
|
+
'There is no Susy setting called `#{$key}`',
|
325
|
+
'susy-get');
|
326
|
+
}
|
327
|
+
|
328
|
+
@return map-get($settings, $key);
|
329
|
+
}
|