jekyll-theme-basically-basic 1.3.1 → 1.4.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 +18 -0
- data/README.md +150 -42
- data/_includes/author +30 -30
- data/_includes/contact-list.html +27 -27
- data/_includes/cv/awards.html +23 -23
- data/_includes/cv/basics.html +68 -68
- data/_includes/cv/education.html +36 -36
- data/_includes/cv/interests.html +19 -19
- data/_includes/cv/intro.html +18 -18
- data/_includes/cv/languages.html +19 -19
- data/_includes/cv/publications.html +29 -29
- data/_includes/cv/references.html +23 -23
- data/_includes/cv/volunteer.html +46 -46
- data/_includes/cv/work.html +46 -46
- data/_includes/disqus_comments.html +16 -16
- data/_includes/documents-collection.html +19 -0
- data/_includes/entry.html +37 -29
- data/_includes/footer.html +11 -9
- data/_includes/google-analytics.html +8 -8
- data/_includes/head.html +35 -35
- data/_includes/icon-bitbucket.html +4 -4
- data/_includes/icon-codepen.html +4 -4
- data/_includes/icon-dribbble.html +4 -4
- data/_includes/icon-facebook.html +4 -4
- data/_includes/icon-flickr.html +4 -4
- data/_includes/icon-github.html +4 -4
- data/_includes/icon-gitlab.html +4 -4
- data/_includes/icon-googleplus.html +4 -4
- data/_includes/icon-instagram.html +4 -4
- data/_includes/icon-lastfm.html +4 -4
- data/_includes/icon-linkedin.html +4 -4
- data/_includes/icon-pinterest.html +4 -4
- data/_includes/icon-soundcloud.html +4 -4
- data/_includes/icon-stackoverflow.html +4 -4
- data/_includes/icon-tumblr.html +4 -4
- data/_includes/icon-twitter.html +4 -4
- data/_includes/icon-xing.html +4 -4
- data/_includes/icon-youtube.html +4 -4
- data/_includes/masthead.html +27 -27
- data/_includes/navigation.html +25 -25
- data/_includes/page-intro.html +42 -42
- data/_includes/page-tags.html +14 -0
- data/_includes/posts-all.html +2 -2
- data/_includes/posts-category.html +3 -0
- data/_includes/posts-paginated.html +15 -15
- data/_includes/posts-tag.html +3 -0
- data/_includes/read-time.html +13 -13
- data/_includes/search-form.html +14 -13
- data/_includes/search/algolia-search-scripts.html +52 -52
- data/_includes/search/lunr-search-scripts.html +1 -1
- data/_includes/skip-links.html +8 -8
- data/_layouts/about.html +0 -2
- data/_layouts/categories.html +48 -0
- data/_layouts/category.html +9 -0
- data/_layouts/collection.html +9 -0
- data/_layouts/cv.html +28 -28
- data/_layouts/default.html +2 -1
- data/_layouts/home.html +28 -30
- data/_layouts/page.html +15 -17
- data/_layouts/post.html +18 -20
- data/_layouts/posts.html +29 -0
- data/_layouts/tag.html +9 -0
- data/_layouts/tags.html +48 -0
- data/_sass/basically-basic.scss +1 -1
- data/_sass/basically-basic/_base.scss +116 -118
- data/_sass/basically-basic/_contact-lists.scss +11 -11
- data/_sass/basically-basic/_entries.scss +230 -152
- data/_sass/basically-basic/_footer.scss +37 -13
- data/_sass/basically-basic/_functions.scss +2 -2
- data/_sass/basically-basic/_global.scss +116 -42
- data/_sass/basically-basic/_icons.scss +43 -43
- data/_sass/basically-basic/_intro.scss +3 -1
- data/_sass/basically-basic/_layout.scss +188 -188
- data/_sass/basically-basic/_mixins.scss +5 -5
- data/_sass/basically-basic/_navicons.scss +148 -148
- data/_sass/basically-basic/_navigation.scss +66 -66
- data/_sass/basically-basic/_print.scss +252 -252
- data/_sass/basically-basic/_reset.scss +522 -522
- data/_sass/basically-basic/_responsive-embed.scss +70 -70
- data/_sass/basically-basic/_search.scss +101 -101
- data/_sass/basically-basic/_sidebar.scss +166 -166
- data/_sass/basically-basic/_tables.scss +34 -34
- data/_sass/basically-basic/_utilities.scss +6 -6
- data/_sass/basically-basic/_variables.scss +3 -0
- data/_sass/basically-basic/functions/_color.scss +21 -21
- data/_sass/basically-basic/functions/_fluid-type.scss +33 -33
- data/_sass/basically-basic/mixins/_clearfix.scss +11 -11
- data/_sass/basically-basic/mixins/_float.scss +15 -15
- data/_sass/basically-basic/mixins/_image.scss +38 -38
- data/_sass/basically-basic/mixins/_lists.scss +9 -9
- data/_sass/basically-basic/mixins/_text-truncate.scss +10 -10
- data/_sass/basically-basic/themes/_default.scss +5 -5
- data/_sass/basically-basic/themes/_night.scss +12 -12
- data/_sass/basically-basic/themes/_plum.scss +12 -12
- data/_sass/basically-basic/themes/_sea.scss +12 -12
- data/_sass/basically-basic/utilities/_accessibility.scss +43 -43
- data/_sass/basically-basic/utilities/_align.scss +62 -62
- data/_sass/basically-basic/utilities/_clearfix.scss +7 -7
- data/_sass/basically-basic/utilities/_float.scss +7 -7
- data/_sass/basically-basic/utilities/_text.scss +28 -28
- data/_sass/basically-basic/utilities/_visibility.scss +32 -32
- data/_sass/basically-basic/vendor/breakpoint/_breakpoint.scss +114 -114
- data/_sass/basically-basic/vendor/breakpoint/_context.scss +94 -94
- data/_sass/basically-basic/vendor/breakpoint/_helpers.scss +151 -151
- data/_sass/basically-basic/vendor/breakpoint/_legacy-settings.scss +49 -49
- data/_sass/basically-basic/vendor/breakpoint/_no-query.scss +15 -15
- data/_sass/basically-basic/vendor/breakpoint/_parsers.scss +215 -215
- data/_sass/basically-basic/vendor/breakpoint/_respond-to.scss +82 -82
- data/_sass/basically-basic/vendor/breakpoint/_settings.scss +70 -70
- data/_sass/basically-basic/vendor/breakpoint/parsers/_double.scss +33 -33
- data/_sass/basically-basic/vendor/breakpoint/parsers/_query.scss +82 -82
- data/_sass/basically-basic/vendor/breakpoint/parsers/_resolution.scss +31 -31
- data/_sass/basically-basic/vendor/breakpoint/parsers/_single.scss +26 -26
- data/_sass/basically-basic/vendor/breakpoint/parsers/_triple.scss +36 -36
- data/_sass/basically-basic/vendor/breakpoint/parsers/double/_default-pair.scss +21 -21
- data/_sass/basically-basic/vendor/breakpoint/parsers/double/_default.scss +22 -22
- data/_sass/basically-basic/vendor/breakpoint/parsers/double/_double-string.scss +21 -21
- data/_sass/basically-basic/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -60
- data/_sass/basically-basic/vendor/breakpoint/parsers/single/_default.scss +13 -13
- data/_sass/basically-basic/vendor/breakpoint/parsers/triple/_default.scss +18 -18
- data/_sass/basically-basic/vendor/susy/_su.scss +4 -4
- data/_sass/basically-basic/vendor/susy/_susy-prefix.scss +13 -13
- data/_sass/basically-basic/vendor/susy/_susy.scss +5 -5
- data/_sass/basically-basic/vendor/susy/plugins/_svg-grid.scss +5 -5
- data/_sass/basically-basic/vendor/susy/plugins/svg-grid/_prefix.scss +7 -7
- data/_sass/basically-basic/vendor/susy/plugins/svg-grid/_svg-api.scss +114 -114
- data/_sass/basically-basic/vendor/susy/plugins/svg-grid/_svg-grid-math.scss +67 -67
- data/_sass/basically-basic/vendor/susy/plugins/svg-grid/_svg-settings.scss +14 -14
- data/_sass/basically-basic/vendor/susy/plugins/svg-grid/_svg-unprefix.scss +18 -18
- data/_sass/basically-basic/vendor/susy/plugins/svg-grid/_svg-utilities.scss +133 -133
- data/_sass/basically-basic/vendor/susy/susy/_api.scss +318 -318
- data/_sass/basically-basic/vendor/susy/susy/_normalize.scss +261 -261
- data/_sass/basically-basic/vendor/susy/susy/_parse.scss +163 -163
- data/_sass/basically-basic/vendor/susy/susy/_settings.scss +329 -329
- data/_sass/basically-basic/vendor/susy/susy/_su-math.scss +441 -441
- data/_sass/basically-basic/vendor/susy/susy/_su-validate.scss +213 -213
- data/_sass/basically-basic/vendor/susy/susy/_syntax-helpers.scss +191 -191
- data/_sass/basically-basic/vendor/susy/susy/_unprefix.scss +56 -56
- data/_sass/basically-basic/vendor/susy/susy/_utilities.scss +167 -167
- data/assets/javascripts/lunr/lunr.da.min.js +17 -17
- data/assets/javascripts/lunr/lunr.de.min.js +17 -17
- data/assets/javascripts/lunr/lunr.du.min.js +17 -17
- data/assets/javascripts/lunr/lunr.es.min.js +17 -17
- data/assets/javascripts/lunr/lunr.fi.min.js +17 -17
- data/assets/javascripts/lunr/lunr.fr.min.js +17 -17
- data/assets/javascripts/lunr/lunr.hu.min.js +17 -17
- data/assets/javascripts/lunr/lunr.it.min.js +17 -17
- data/assets/javascripts/lunr/lunr.jp.min.js +1 -1
- data/assets/javascripts/lunr/lunr.min.js +6 -6
- data/assets/javascripts/lunr/lunr.no.min.js +17 -17
- data/assets/javascripts/lunr/lunr.pt.min.js +17 -17
- data/assets/javascripts/lunr/lunr.ro.min.js +17 -17
- data/assets/javascripts/lunr/lunr.ru.min.js +17 -17
- data/assets/javascripts/lunr/lunr.sv.min.js +17 -17
- data/assets/javascripts/lunr/lunr.tr.min.js +17 -17
- data/assets/javascripts/main.js +12 -12
- data/assets/javascripts/search-data.json +43 -27
- data/assets/stylesheets/main.scss +9 -9
- metadata +21 -5
@@ -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
|
+
}
|
@@ -1,18 +1,18 @@
|
|
1
|
-
/*!
|
2
|
-
* Lunr languages, `Danish` language
|
3
|
-
* https://github.com/MihaiValentin/lunr-languages
|
4
|
-
*
|
5
|
-
* Copyright 2014, Mihai Valentin
|
6
|
-
* http://www.mozilla.org/MPL/
|
7
|
-
*/
|
8
|
-
/*!
|
9
|
-
* based on
|
10
|
-
* Snowball JavaScript Library v0.3
|
11
|
-
* http://code.google.com/p/urim/
|
12
|
-
* http://snowball.tartarus.org/
|
13
|
-
*
|
14
|
-
* Copyright 2010, Oleg Mazko
|
15
|
-
* http://www.mozilla.org/MPL/
|
16
|
-
*/
|
17
|
-
|
1
|
+
/*!
|
2
|
+
* Lunr languages, `Danish` language
|
3
|
+
* https://github.com/MihaiValentin/lunr-languages
|
4
|
+
*
|
5
|
+
* Copyright 2014, Mihai Valentin
|
6
|
+
* http://www.mozilla.org/MPL/
|
7
|
+
*/
|
8
|
+
/*!
|
9
|
+
* based on
|
10
|
+
* Snowball JavaScript Library v0.3
|
11
|
+
* http://code.google.com/p/urim/
|
12
|
+
* http://snowball.tartarus.org/
|
13
|
+
*
|
14
|
+
* Copyright 2010, Oleg Mazko
|
15
|
+
* http://www.mozilla.org/MPL/
|
16
|
+
*/
|
17
|
+
|
18
18
|
!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if("undefined"==typeof e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if("undefined"==typeof e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.da=function(){this.pipeline.reset(),this.pipeline.add(e.da.trimmer,e.da.stopWordFilter,e.da.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.da.stemmer))},e.da.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",e.da.trimmer=e.trimmerSupport.generateTrimmer(e.da.wordCharacters),e.Pipeline.registerFunction(e.da.trimmer,"trimmer-da"),e.da.stemmer=function(){var r=e.stemmerSupport.Among,i=e.stemmerSupport.SnowballProgram,n=new function(){function e(){var e,r=p.cursor+3;if(d=p.limit,0<=r&&r<=p.limit){for(a=r;;){if(e=p.cursor,p.in_grouping(w,97,248)){p.cursor=e;break}if(p.cursor=e,e>=p.limit)return;p.cursor++}for(;!p.out_grouping(w,97,248);){if(p.cursor>=p.limit)return;p.cursor++}d=p.cursor,d<a&&(d=a)}}function n(){var e,r;if(p.cursor>=d&&(r=p.limit_backward,p.limit_backward=d,p.ket=p.cursor,e=p.find_among_b(c,32),p.limit_backward=r,e))switch(p.bra=p.cursor,e){case 1:p.slice_del();break;case 2:p.in_grouping_b(f,97,229)&&p.slice_del()}}function t(){var e,r=p.limit-p.cursor;p.cursor>=d&&(e=p.limit_backward,p.limit_backward=d,p.ket=p.cursor,p.find_among_b(l,4)?(p.bra=p.cursor,p.limit_backward=e,p.cursor=p.limit-r,p.cursor>p.limit_backward&&(p.cursor--,p.bra=p.cursor,p.slice_del())):p.limit_backward=e)}function s(){var e,r,i,n=p.limit-p.cursor;if(p.ket=p.cursor,p.eq_s_b(2,"st")&&(p.bra=p.cursor,p.eq_s_b(2,"ig")&&p.slice_del()),p.cursor=p.limit-n,p.cursor>=d&&(r=p.limit_backward,p.limit_backward=d,p.ket=p.cursor,e=p.find_among_b(m,5),p.limit_backward=r,e))switch(p.bra=p.cursor,e){case 1:p.slice_del(),i=p.limit-p.cursor,t(),p.cursor=p.limit-i;break;case 2:p.slice_from("løs")}}function o(){var e;p.cursor>=d&&(e=p.limit_backward,p.limit_backward=d,p.ket=p.cursor,p.out_grouping_b(w,97,248)?(p.bra=p.cursor,u=p.slice_to(u),p.limit_backward=e,p.eq_v_b(u)&&p.slice_del()):p.limit_backward=e)}var a,d,u,c=[new r("hed",-1,1),new r("ethed",0,1),new r("ered",-1,1),new r("e",-1,1),new r("erede",3,1),new r("ende",3,1),new r("erende",5,1),new r("ene",3,1),new r("erne",3,1),new r("ere",3,1),new r("en",-1,1),new r("heden",10,1),new r("eren",10,1),new r("er",-1,1),new r("heder",13,1),new r("erer",13,1),new r("s",-1,2),new r("heds",16,1),new r("es",16,1),new r("endes",18,1),new r("erendes",19,1),new r("enes",18,1),new r("ernes",18,1),new r("eres",18,1),new r("ens",16,1),new r("hedens",24,1),new r("erens",24,1),new r("ers",16,1),new r("ets",16,1),new r("erets",28,1),new r("et",-1,1),new r("eret",30,1)],l=[new r("gd",-1,-1),new r("dt",-1,-1),new r("gt",-1,-1),new r("kt",-1,-1)],m=[new r("ig",-1,1),new r("lig",0,1),new r("elig",1,1),new r("els",-1,1),new r("løst",-1,2)],w=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,48,0,128],f=[239,254,42,3,0,0,0,0,0,0,0,0,0,0,0,0,16],p=new i;this.setCurrent=function(e){p.setCurrent(e)},this.getCurrent=function(){return p.getCurrent()},this.stem=function(){var r=p.cursor;return e(),p.limit_backward=r,p.cursor=p.limit,n(),p.cursor=p.limit,t(),p.cursor=p.limit,s(),p.cursor=p.limit,o(),!0}};return function(e){return"function"==typeof e.update?e.update(function(e){return n.setCurrent(e),n.stem(),n.getCurrent()}):(n.setCurrent(e),n.stem(),n.getCurrent())}}(),e.Pipeline.registerFunction(e.da.stemmer,"stemmer-da"),e.da.stopWordFilter=e.generateStopWordFilter("ad af alle alt anden at blev blive bliver da de dem den denne der deres det dette dig din disse dog du efter eller en end er et for fra ham han hans har havde have hende hendes her hos hun hvad hvis hvor i ikke ind jeg jer jo kunne man mange med meget men mig min mine mit mod ned noget nogle nu når og også om op os over på selv sig sin sine sit skal skulle som sådan thi til ud under var vi vil ville vor være været".split(" ")),e.Pipeline.registerFunction(e.da.stopWordFilter,"stopWordFilter-da")}});
|