minimal-mistakes-jekyll 4.14.0 → 4.14.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -1
  3. data/LICENSE +20 -20
  4. data/README.md +1 -1
  5. data/_data/ui-text.yml +1176 -1176
  6. data/_includes/analytics-providers/google-gtag.html +9 -9
  7. data/_includes/analytics-providers/google-universal.html +10 -10
  8. data/_includes/analytics-providers/google.html +13 -13
  9. data/_includes/analytics.html +13 -13
  10. data/_includes/author-profile-custom-links.html +6 -6
  11. data/_includes/author-profile.html +271 -271
  12. data/_includes/breadcrumbs.html +39 -39
  13. data/_includes/comments-providers/scripts.html +19 -19
  14. data/_includes/comments-providers/utterances.html +19 -19
  15. data/_includes/comments.html +174 -174
  16. data/_includes/footer.html +19 -19
  17. data/_includes/head.html +41 -41
  18. data/_includes/masthead.html +33 -33
  19. data/_includes/search/algolia-search-scripts.html +54 -54
  20. data/_includes/search/search_form.html +17 -17
  21. data/_includes/seo.html +164 -164
  22. data/_includes/video +13 -13
  23. data/_layouts/default.html +1 -1
  24. data/_layouts/home.html +13 -13
  25. data/_layouts/posts.html +29 -29
  26. data/_layouts/single.html +94 -94
  27. data/_layouts/splash.html +21 -21
  28. data/_layouts/tags.html +42 -42
  29. data/_sass/minimal-mistakes.scss +1 -1
  30. data/_sass/minimal-mistakes/_archive.scss +437 -437
  31. data/_sass/minimal-mistakes/_base.scss +357 -357
  32. data/_sass/minimal-mistakes/_footer.scss +91 -91
  33. data/_sass/minimal-mistakes/_mixins.scss +91 -91
  34. data/_sass/minimal-mistakes/_navigation.scss +556 -556
  35. data/_sass/minimal-mistakes/_search.scss +126 -126
  36. data/_sass/minimal-mistakes/_sidebar.scss +318 -318
  37. data/_sass/minimal-mistakes/_utilities.scss +6 -0
  38. data/_sass/minimal-mistakes/_variables.scss +159 -159
  39. data/_sass/minimal-mistakes/skins/_dark.scss +27 -27
  40. data/_sass/minimal-mistakes/skins/_neon.scss +56 -56
  41. data/_sass/minimal-mistakes/skins/_plum.scss +63 -63
  42. data/assets/js/_main.js +106 -106
  43. data/assets/js/lunr/lunr-store.js +54 -54
  44. data/assets/js/lunr/lunr.js +3483 -3483
  45. data/assets/js/lunr/lunr.min.js +5 -5
  46. data/assets/js/main.min.js +5 -5
  47. metadata +2 -2
@@ -1,91 +1,91 @@
1
- /* ==========================================================================
2
- FOOTER
3
- ========================================================================== */
4
-
5
- .page__footer {
6
- @include clearfix;
7
- float: left;
8
- margin-left: 0;
9
- margin-right: 0;
10
- width: 100%;
11
- clear: both;
12
- /* sticky footer fix start */
13
- position: absolute;
14
- bottom: 0;
15
- height: auto;
16
- /* sticky footer fix end */
17
- margin-top: 3em;
18
- color: $muted-text-color;
19
- -webkit-animation: $intro-transition;
20
- animation: $intro-transition;
21
- -webkit-animation-delay: 0.45s;
22
- animation-delay: 0.45s;
23
- background-color: $footer-background-color;
24
-
25
- footer {
26
- @include clearfix;
27
- margin-left: auto;
28
- margin-right: auto;
29
- margin-top: 2em;
30
- max-width: 100%;
31
- padding: 0 1em 2em;
32
-
33
- @include breakpoint($x-large) {
34
- max-width: $x-large;
35
- }
36
- }
37
-
38
- a {
39
- color: inherit;
40
- text-decoration: none;
41
-
42
- &:hover {
43
- text-decoration: underline;
44
- }
45
- }
46
-
47
- .fas,
48
- .fab,
49
- .far,
50
- .fal {
51
- color: $muted-text-color;
52
- }
53
- }
54
-
55
- .page__footer-copyright {
56
- font-family: $global-font-family;
57
- font-size: $type-size-7;
58
- }
59
-
60
- .page__footer-follow {
61
- ul {
62
- margin: 0;
63
- padding: 0;
64
- list-style-type: none;
65
- }
66
-
67
- li {
68
- display: inline-block;
69
- padding-top: 5px;
70
- padding-bottom: 5px;
71
- font-family: $sans-serif-narrow;
72
- font-size: $type-size-6;
73
- text-transform: uppercase;
74
- }
75
-
76
- li + li:before {
77
- content: "";
78
- padding-right: 5px;
79
- }
80
-
81
- a {
82
- padding-right: 10px;
83
- font-weight: bold;
84
- }
85
-
86
- .social-icons {
87
- a {
88
- white-space: nowrap;
89
- }
90
- }
91
- }
1
+ /* ==========================================================================
2
+ FOOTER
3
+ ========================================================================== */
4
+
5
+ .page__footer {
6
+ @include clearfix;
7
+ float: left;
8
+ margin-left: 0;
9
+ margin-right: 0;
10
+ width: 100%;
11
+ clear: both;
12
+ /* sticky footer fix start */
13
+ position: absolute;
14
+ bottom: 0;
15
+ height: auto;
16
+ /* sticky footer fix end */
17
+ margin-top: 3em;
18
+ color: $muted-text-color;
19
+ -webkit-animation: $intro-transition;
20
+ animation: $intro-transition;
21
+ -webkit-animation-delay: 0.45s;
22
+ animation-delay: 0.45s;
23
+ background-color: $footer-background-color;
24
+
25
+ footer {
26
+ @include clearfix;
27
+ margin-left: auto;
28
+ margin-right: auto;
29
+ margin-top: 2em;
30
+ max-width: 100%;
31
+ padding: 0 1em 2em;
32
+
33
+ @include breakpoint($x-large) {
34
+ max-width: $x-large;
35
+ }
36
+ }
37
+
38
+ a {
39
+ color: inherit;
40
+ text-decoration: none;
41
+
42
+ &:hover {
43
+ text-decoration: underline;
44
+ }
45
+ }
46
+
47
+ .fas,
48
+ .fab,
49
+ .far,
50
+ .fal {
51
+ color: $muted-text-color;
52
+ }
53
+ }
54
+
55
+ .page__footer-copyright {
56
+ font-family: $global-font-family;
57
+ font-size: $type-size-7;
58
+ }
59
+
60
+ .page__footer-follow {
61
+ ul {
62
+ margin: 0;
63
+ padding: 0;
64
+ list-style-type: none;
65
+ }
66
+
67
+ li {
68
+ display: inline-block;
69
+ padding-top: 5px;
70
+ padding-bottom: 5px;
71
+ font-family: $sans-serif-narrow;
72
+ font-size: $type-size-6;
73
+ text-transform: uppercase;
74
+ }
75
+
76
+ li + li:before {
77
+ content: "";
78
+ padding-right: 5px;
79
+ }
80
+
81
+ a {
82
+ padding-right: 10px;
83
+ font-weight: bold;
84
+ }
85
+
86
+ .social-icons {
87
+ a {
88
+ white-space: nowrap;
89
+ }
90
+ }
91
+ }
@@ -1,92 +1,92 @@
1
- /* ==========================================================================
2
- MIXINS
3
- ========================================================================== */
4
-
5
- %tab-focus {
6
- /* Default*/
7
- outline: thin dotted $focus-color;
8
- /* Webkit*/
9
- outline: 5px auto $focus-color;
10
- outline-offset: -2px;
11
- }
12
-
13
- /*
14
- em function
15
- ========================================================================== */
16
-
17
- @function em($target, $context: $doc-font-size) {
18
- @return ($target / $context) * 1em;
19
- }
20
-
21
-
22
- /*
23
- Bourbon clearfix
24
- ========================================================================== */
25
-
26
- /*
27
- * Provides an easy way to include a clearfix for containing floats.
28
- * link http://cssmojo.com/latest_new_clearfix_so_far/
29
- *
30
- * example scss - Usage
31
- *
32
- * .element {
33
- * @include clearfix;
34
- * }
35
- *
36
- * example css - CSS Output
37
- *
38
- * .element::after {
39
- * clear: both;
40
- * content: "";
41
- * display: table;
42
- * }
43
- */
44
-
45
- @mixin clearfix {
46
- clear: both;
47
-
48
- &::after {
49
- clear: both;
50
- content: "";
51
- display: table;
52
- }
53
- }
54
-
55
- /*
56
- Compass YIQ Color Contrast
57
- https://github.com/easy-designs/yiq-color-contrast
58
- ========================================================================== */
59
-
60
- @function yiq-is-light(
61
- $color,
62
- $threshold: $yiq-contrasted-threshold
63
- ) {
64
- $red: red($color);
65
- $green: green($color);
66
- $blue: blue($color);
67
-
68
- $yiq: (($red*299)+($green*587)+($blue*114))/1000;
69
-
70
- @if $yiq-debug { @debug $yiq, $threshold; }
71
-
72
- @return if($yiq >= $threshold, true, false);
73
- }
74
-
75
- @function yiq-contrast-color(
76
- $color,
77
- $dark: $yiq-contrasted-dark-default,
78
- $light: $yiq-contrasted-light-default,
79
- $threshold: $yiq-contrasted-threshold
80
- ) {
81
- @return if(yiq-is-light($color, $threshold), $yiq-contrasted-dark-default, $yiq-contrasted-light-default);
82
- }
83
-
84
- @mixin yiq-contrasted(
85
- $background-color,
86
- $dark: $yiq-contrasted-dark-default,
87
- $light: $yiq-contrasted-light-default,
88
- $threshold: $yiq-contrasted-threshold
89
- ) {
90
- background-color: $background-color;
91
- color: yiq-contrast-color($background-color, $dark, $light, $threshold);
1
+ /* ==========================================================================
2
+ MIXINS
3
+ ========================================================================== */
4
+
5
+ %tab-focus {
6
+ /* Default*/
7
+ outline: thin dotted $focus-color;
8
+ /* Webkit*/
9
+ outline: 5px auto $focus-color;
10
+ outline-offset: -2px;
11
+ }
12
+
13
+ /*
14
+ em function
15
+ ========================================================================== */
16
+
17
+ @function em($target, $context: $doc-font-size) {
18
+ @return ($target / $context) * 1em;
19
+ }
20
+
21
+
22
+ /*
23
+ Bourbon clearfix
24
+ ========================================================================== */
25
+
26
+ /*
27
+ * Provides an easy way to include a clearfix for containing floats.
28
+ * link http://cssmojo.com/latest_new_clearfix_so_far/
29
+ *
30
+ * example scss - Usage
31
+ *
32
+ * .element {
33
+ * @include clearfix;
34
+ * }
35
+ *
36
+ * example css - CSS Output
37
+ *
38
+ * .element::after {
39
+ * clear: both;
40
+ * content: "";
41
+ * display: table;
42
+ * }
43
+ */
44
+
45
+ @mixin clearfix {
46
+ clear: both;
47
+
48
+ &::after {
49
+ clear: both;
50
+ content: "";
51
+ display: table;
52
+ }
53
+ }
54
+
55
+ /*
56
+ Compass YIQ Color Contrast
57
+ https://github.com/easy-designs/yiq-color-contrast
58
+ ========================================================================== */
59
+
60
+ @function yiq-is-light(
61
+ $color,
62
+ $threshold: $yiq-contrasted-threshold
63
+ ) {
64
+ $red: red($color);
65
+ $green: green($color);
66
+ $blue: blue($color);
67
+
68
+ $yiq: (($red*299)+($green*587)+($blue*114))/1000;
69
+
70
+ @if $yiq-debug { @debug $yiq, $threshold; }
71
+
72
+ @return if($yiq >= $threshold, true, false);
73
+ }
74
+
75
+ @function yiq-contrast-color(
76
+ $color,
77
+ $dark: $yiq-contrasted-dark-default,
78
+ $light: $yiq-contrasted-light-default,
79
+ $threshold: $yiq-contrasted-threshold
80
+ ) {
81
+ @return if(yiq-is-light($color, $threshold), $yiq-contrasted-dark-default, $yiq-contrasted-light-default);
82
+ }
83
+
84
+ @mixin yiq-contrasted(
85
+ $background-color,
86
+ $dark: $yiq-contrasted-dark-default,
87
+ $light: $yiq-contrasted-light-default,
88
+ $threshold: $yiq-contrasted-threshold
89
+ ) {
90
+ background-color: $background-color;
91
+ color: yiq-contrast-color($background-color, $dark, $light, $threshold);
92
92
  }
@@ -1,556 +1,556 @@
1
- /* ==========================================================================
2
- NAVIGATION
3
- ========================================================================== */
4
-
5
- /*
6
- Breadcrumb navigation links
7
- ========================================================================== */
8
-
9
- .breadcrumbs {
10
- @include clearfix;
11
- margin: 0 auto;
12
- max-width: 100%;
13
- padding-left: 1em;
14
- padding-right: 1em;
15
- font-family: $sans-serif;
16
- -webkit-animation: $intro-transition;
17
- animation: $intro-transition;
18
- -webkit-animation-delay: 0.3s;
19
- animation-delay: 0.3s;
20
-
21
- @include breakpoint($x-large) {
22
- max-width: $x-large;
23
- }
24
-
25
- ol {
26
- padding: 0;
27
- list-style: none;
28
- font-size: $type-size-6;
29
-
30
- @include breakpoint($large) {
31
- float: right;
32
- width: calc(100% - #{$right-sidebar-width-narrow});
33
- }
34
-
35
- @include breakpoint($x-large) {
36
- width: calc(100% - #{$right-sidebar-width});
37
- }
38
- }
39
-
40
- li {
41
- display: inline;
42
- }
43
-
44
- .current {
45
- font-weight: bold;
46
- }
47
- }
48
-
49
- /*
50
- Post pagination navigation links
51
- ========================================================================== */
52
-
53
- .pagination {
54
- @include clearfix();
55
- float: left;
56
- margin-top: 1em;
57
- padding-top: 1em;
58
- width: 100%;
59
-
60
- ul {
61
- margin: 0;
62
- padding: 0;
63
- list-style-type: none;
64
- font-family: $sans-serif;
65
- }
66
-
67
- li {
68
- display: block;
69
- float: left;
70
- margin-left: -1px;
71
-
72
- a {
73
- display: block;
74
- margin-bottom: 0.25em;
75
- padding: 0.5em 1em;
76
- font-family: $sans-serif;
77
- font-size: 14px;
78
- font-weight: bold;
79
- line-height: 1.5;
80
- text-align: center;
81
- text-decoration: none;
82
- color: $muted-text-color;
83
- border: 1px solid mix(#000, $border-color, 25%);
84
- border-radius: 0;
85
-
86
- &:hover {
87
- color: $link-color-hover;
88
- }
89
-
90
- &.current,
91
- &.current.disabled {
92
- color: #fff;
93
- background: $primary-color;
94
- }
95
-
96
- &.disabled {
97
- color: rgba($muted-text-color, 0.5);
98
- pointer-events: none;
99
- cursor: not-allowed;
100
- }
101
- }
102
-
103
- &:first-child {
104
- margin-left: 0;
105
-
106
- a {
107
- border-top-left-radius: $border-radius;
108
- border-bottom-left-radius: $border-radius;
109
- }
110
- }
111
-
112
- &:last-child {
113
- a {
114
- border-top-right-radius: $border-radius;
115
- border-bottom-right-radius: $border-radius;
116
- }
117
- }
118
- }
119
-
120
- /* next/previous buttons */
121
- &--pager {
122
- display: block;
123
- padding: 1em 2em;
124
- float: left;
125
- width: 50%;
126
- font-family: $sans-serif;
127
- font-size: $type-size-5;
128
- font-weight: bold;
129
- text-align: center;
130
- text-decoration: none;
131
- color: $muted-text-color;
132
- border: 1px solid mix(#000, $border-color, 25%);
133
- border-radius: $border-radius;
134
-
135
- &:hover {
136
- @include yiq-contrasted($muted-text-color);
137
- }
138
-
139
- &:first-child {
140
- border-top-right-radius: 0;
141
- border-bottom-right-radius: 0;
142
- }
143
-
144
- &:last-child {
145
- margin-left: -1px;
146
- border-top-left-radius: 0;
147
- border-bottom-left-radius: 0;
148
- }
149
-
150
- &.disabled {
151
- color: rgba($muted-text-color, 0.5);
152
- pointer-events: none;
153
- cursor: not-allowed;
154
- }
155
- }
156
- }
157
-
158
- .page__content + .pagination,
159
- .page__meta + .pagination,
160
- .page__share + .pagination,
161
- .page__comments + .pagination {
162
- margin-top: 2em;
163
- padding-top: 2em;
164
- border-top: 1px solid $border-color;
165
- }
166
-
167
- /*
168
- Priority plus navigation
169
- ========================================================================== */
170
-
171
- .greedy-nav {
172
- position: relative;
173
- display: -webkit-box;
174
- display: -ms-flexbox;
175
- display: flex;
176
- -webkit-box-align: center;
177
- -ms-flex-align: center;
178
- align-items: center;
179
- min-height: $nav-height;
180
- background: $background-color;
181
-
182
- a {
183
- display: block;
184
- margin: 0 1rem;
185
- color: $masthead-link-color;
186
- text-decoration: none;
187
-
188
- &:hover {
189
- color: $masthead-link-color-hover;
190
- }
191
-
192
- &.site-title {
193
- margin-left: 0;
194
- }
195
- }
196
-
197
- &__toggle {
198
- -ms-flex-item-align: center;
199
- align-self: center;
200
- height: $nav-toggle-height;
201
- border: 0;
202
- outline: none;
203
- background-color: transparent;
204
- cursor: pointer;
205
- }
206
-
207
- .visible-links {
208
- display: -webkit-box;
209
- display: -ms-flexbox;
210
- display: flex;
211
- -webkit-box-pack: end;
212
- -ms-flex-pack: end;
213
- justify-content: flex-end;
214
- -webkit-box-flex: 1;
215
- -ms-flex: 1;
216
- flex: 1;
217
- overflow: hidden;
218
-
219
- li {
220
- -webkit-box-flex: 0;
221
- -ms-flex: none;
222
- flex: none;
223
- }
224
-
225
- a {
226
- position: relative;
227
-
228
- &:before {
229
- content: "";
230
- position: absolute;
231
- left: 0;
232
- bottom: 0;
233
- height: 4px;
234
- background: $primary-color;
235
- width: 100%;
236
- -webkit-transition: $global-transition;
237
- transition: $global-transition;
238
- -webkit-transform: scaleX(0) translate3d(0, 0, 0);
239
- transform: scaleX(0) translate3d(0, 0, 0); // hide
240
- }
241
-
242
- &:hover:before {
243
- -webkit-transform: scaleX(1);
244
- -ms-transform: scaleX(1);
245
- transform: scaleX(1); // reveal
246
- }
247
- }
248
- }
249
-
250
- .hidden-links {
251
- position: absolute;
252
- top: 100%;
253
- right: 0;
254
- margin-top: 15px;
255
- padding: 5px;
256
- border: 1px solid $border-color;
257
- border-radius: $border-radius;
258
- background: $background-color;
259
- -webkit-box-shadow: 0 2px 4px 0 rgba(#000, 0.16),
260
- 0 2px 10px 0 rgba(#000, 0.12);
261
- box-shadow: 0 2px 4px 0 rgba(#000, 0.16), 0 2px 10px 0 rgba(#000, 0.12);
262
-
263
- &.hidden {
264
- display: none;
265
- }
266
-
267
- a {
268
- margin: 0;
269
- padding: 10px 20px;
270
- font-size: $type-size-5;
271
-
272
- &:hover {
273
- color: $masthead-link-color-hover;
274
- background: $navicon-link-color-hover;
275
- }
276
- }
277
-
278
- &:before {
279
- content: "";
280
- position: absolute;
281
- top: -11px;
282
- right: 10px;
283
- width: 0;
284
- border-style: solid;
285
- border-width: 0 10px 10px;
286
- border-color: $border-color transparent;
287
- display: block;
288
- z-index: 0;
289
- }
290
-
291
- &:after {
292
- content: "";
293
- position: absolute;
294
- top: -10px;
295
- right: 10px;
296
- width: 0;
297
- border-style: solid;
298
- border-width: 0 10px 10px;
299
- border-color: $background-color transparent;
300
- display: block;
301
- z-index: 1;
302
- }
303
-
304
- li {
305
- display: block;
306
- border-bottom: 1px solid $border-color;
307
-
308
- &:last-child {
309
- border-bottom: none;
310
- }
311
- }
312
- }
313
- }
314
-
315
- .no-js {
316
- .greedy-nav {
317
- .visible-links {
318
- -ms-flex-wrap: wrap;
319
- flex-wrap: wrap;
320
- overflow: visible;
321
- }
322
- }
323
- }
324
-
325
- /*
326
- Navigation list
327
- ========================================================================== */
328
-
329
- .nav__list {
330
- margin-bottom: 1.5em;
331
-
332
- input[type="checkbox"],
333
- label {
334
- display: none;
335
- }
336
-
337
- @include breakpoint(max-width $large - 1px) {
338
- label {
339
- position: relative;
340
- display: inline-block;
341
- padding: 0.5em 2.5em 0.5em 1em;
342
- color: $gray;
343
- font-size: $type-size-6;
344
- font-weight: bold;
345
- border: 1px solid $light-gray;
346
- border-radius: $border-radius;
347
- z-index: 20;
348
- -webkit-transition: 0.2s ease-out;
349
- transition: 0.2s ease-out;
350
- cursor: pointer;
351
-
352
- &:before,
353
- &:after {
354
- content: "";
355
- position: absolute;
356
- right: 1em;
357
- top: 1.25em;
358
- width: 0.75em;
359
- height: 0.125em;
360
- line-height: 1;
361
- background-color: $gray;
362
- -webkit-transition: 0.2s ease-out;
363
- transition: 0.2s ease-out;
364
- }
365
-
366
- &:after {
367
- -webkit-transform: rotate(90deg);
368
- -ms-transform: rotate(90deg);
369
- transform: rotate(90deg);
370
- }
371
-
372
- &:hover {
373
- color: #fff;
374
- border-color: $gray;
375
- background-color: mix(white, #000, 20%);
376
-
377
- &:before,
378
- &:after {
379
- background-color: #fff;
380
- }
381
- }
382
- }
383
-
384
- /* selected*/
385
- input:checked + label {
386
- color: white;
387
- background-color: mix(white, #000, 20%);
388
-
389
- &:before,
390
- &:after {
391
- background-color: #fff;
392
- }
393
- }
394
-
395
- /* on hover show expand*/
396
- label:hover:after {
397
- -webkit-transform: rotate(90deg);
398
- -ms-transform: rotate(90deg);
399
- transform: rotate(90deg);
400
- }
401
-
402
- input:checked + label:hover:after {
403
- -webkit-transform: rotate(0);
404
- -ms-transform: rotate(0);
405
- transform: rotate(0);
406
- }
407
-
408
- ul {
409
- margin-bottom: 1em;
410
- }
411
-
412
- a {
413
- display: block;
414
- padding: 0.25em 0;
415
-
416
- @include breakpoint($large) {
417
- padding-top: 0.125em;
418
- padding-bottom: 0.125em;
419
- }
420
-
421
- &:hover {
422
- text-decoration: underline;
423
- }
424
- }
425
- }
426
- }
427
-
428
- .nav__list .nav__items {
429
- margin: 0;
430
- font-size: 1.25rem;
431
-
432
- a {
433
- color: inherit;
434
- }
435
-
436
- .active {
437
- margin-left: -0.5em;
438
- padding-left: 0.5em;
439
- padding-right: 0.5em;
440
- font-weight: bold;
441
- }
442
-
443
- @include breakpoint(max-width $large - 1px) {
444
- position: relative;
445
- max-height: 0;
446
- opacity: 0%;
447
- overflow: hidden;
448
- z-index: 10;
449
- -webkit-transition: 0.3s ease-in-out;
450
- transition: 0.3s ease-in-out;
451
- -webkit-transform: translate(0, 10%);
452
- -ms-transform: translate(0, 10%);
453
- transform: translate(0, 10%);
454
- }
455
- }
456
-
457
- @include breakpoint(max-width $large - 1px) {
458
- .nav__list input:checked ~ .nav__items {
459
- -webkit-transition: 0.5s ease-in-out;
460
- transition: 0.5s ease-in-out;
461
- max-height: 9999px; /* exaggerate max-height to accommodate tall lists*/
462
- overflow: visible;
463
- opacity: 1;
464
- margin-top: 1em;
465
- -webkit-transform: translate(0, 0);
466
- -ms-transform: translate(0, 0);
467
- transform: translate(0, 0);
468
- }
469
- }
470
-
471
- .nav__title {
472
- margin: 0;
473
- padding: 0.5rem 0.75rem;
474
- font-family: $sans-serif-narrow;
475
- font-size: $type-size-5;
476
- font-weight: bold;
477
- }
478
-
479
- .nav__sub-title {
480
- display: block;
481
- margin: 0.5rem 0;
482
- padding: 0.25rem 0;
483
- font-family: $sans-serif-narrow;
484
- font-size: $type-size-6;
485
- font-weight: bold;
486
- text-transform: uppercase;
487
- border-bottom: 1px solid $border-color;
488
- }
489
-
490
- /*
491
- Table of contents navigation
492
- ========================================================================== */
493
-
494
- .toc {
495
- font-family: $sans-serif-narrow;
496
- color: $gray;
497
- background-color: $background-color;
498
- border: 1px solid $border-color;
499
- border-radius: $border-radius;
500
- -webkit-box-shadow: $box-shadow;
501
- box-shadow: $box-shadow;
502
-
503
- .nav__title {
504
- color: #fff;
505
- font-size: $type-size-6;
506
- background: $primary-color;
507
- border-top-left-radius: $border-radius;
508
- border-top-right-radius: $border-radius;
509
- }
510
- }
511
-
512
- .toc__menu {
513
- margin: 0;
514
- padding: 0;
515
- width: 100%;
516
- list-style: none;
517
- font-size: $type-size-6;
518
-
519
- @include breakpoint($large) {
520
- font-size: $type-size-7;
521
- }
522
-
523
- a {
524
- display: block;
525
- padding: 0.25rem 0.75rem;
526
- color: $muted-text-color;
527
- font-weight: bold;
528
- line-height: 1.5;
529
- border-bottom: 1px solid $border-color;
530
-
531
- &:hover {
532
- color: $text-color;
533
- }
534
- }
535
-
536
- li ul > li a {
537
- padding-left: 1.25rem;
538
- font-weight: normal;
539
- }
540
-
541
- li ul li ul > li a {
542
- padding-left: 1.75rem;
543
- }
544
-
545
- li ul li ul li ul > li a {
546
- padding-left: 2.25rem;
547
- }
548
-
549
- li ul li ul li ul li ul > li a {
550
- padding-left: 2.75rem;
551
- }
552
-
553
- li ul li ul li ul li ul li ul > li a {
554
- padding-left: 3.25rem
555
- }
556
- }
1
+ /* ==========================================================================
2
+ NAVIGATION
3
+ ========================================================================== */
4
+
5
+ /*
6
+ Breadcrumb navigation links
7
+ ========================================================================== */
8
+
9
+ .breadcrumbs {
10
+ @include clearfix;
11
+ margin: 0 auto;
12
+ max-width: 100%;
13
+ padding-left: 1em;
14
+ padding-right: 1em;
15
+ font-family: $sans-serif;
16
+ -webkit-animation: $intro-transition;
17
+ animation: $intro-transition;
18
+ -webkit-animation-delay: 0.3s;
19
+ animation-delay: 0.3s;
20
+
21
+ @include breakpoint($x-large) {
22
+ max-width: $x-large;
23
+ }
24
+
25
+ ol {
26
+ padding: 0;
27
+ list-style: none;
28
+ font-size: $type-size-6;
29
+
30
+ @include breakpoint($large) {
31
+ float: right;
32
+ width: calc(100% - #{$right-sidebar-width-narrow});
33
+ }
34
+
35
+ @include breakpoint($x-large) {
36
+ width: calc(100% - #{$right-sidebar-width});
37
+ }
38
+ }
39
+
40
+ li {
41
+ display: inline;
42
+ }
43
+
44
+ .current {
45
+ font-weight: bold;
46
+ }
47
+ }
48
+
49
+ /*
50
+ Post pagination navigation links
51
+ ========================================================================== */
52
+
53
+ .pagination {
54
+ @include clearfix();
55
+ float: left;
56
+ margin-top: 1em;
57
+ padding-top: 1em;
58
+ width: 100%;
59
+
60
+ ul {
61
+ margin: 0;
62
+ padding: 0;
63
+ list-style-type: none;
64
+ font-family: $sans-serif;
65
+ }
66
+
67
+ li {
68
+ display: block;
69
+ float: left;
70
+ margin-left: -1px;
71
+
72
+ a {
73
+ display: block;
74
+ margin-bottom: 0.25em;
75
+ padding: 0.5em 1em;
76
+ font-family: $sans-serif;
77
+ font-size: 14px;
78
+ font-weight: bold;
79
+ line-height: 1.5;
80
+ text-align: center;
81
+ text-decoration: none;
82
+ color: $muted-text-color;
83
+ border: 1px solid mix(#000, $border-color, 25%);
84
+ border-radius: 0;
85
+
86
+ &:hover {
87
+ color: $link-color-hover;
88
+ }
89
+
90
+ &.current,
91
+ &.current.disabled {
92
+ color: #fff;
93
+ background: $primary-color;
94
+ }
95
+
96
+ &.disabled {
97
+ color: rgba($muted-text-color, 0.5);
98
+ pointer-events: none;
99
+ cursor: not-allowed;
100
+ }
101
+ }
102
+
103
+ &:first-child {
104
+ margin-left: 0;
105
+
106
+ a {
107
+ border-top-left-radius: $border-radius;
108
+ border-bottom-left-radius: $border-radius;
109
+ }
110
+ }
111
+
112
+ &:last-child {
113
+ a {
114
+ border-top-right-radius: $border-radius;
115
+ border-bottom-right-radius: $border-radius;
116
+ }
117
+ }
118
+ }
119
+
120
+ /* next/previous buttons */
121
+ &--pager {
122
+ display: block;
123
+ padding: 1em 2em;
124
+ float: left;
125
+ width: 50%;
126
+ font-family: $sans-serif;
127
+ font-size: $type-size-5;
128
+ font-weight: bold;
129
+ text-align: center;
130
+ text-decoration: none;
131
+ color: $muted-text-color;
132
+ border: 1px solid mix(#000, $border-color, 25%);
133
+ border-radius: $border-radius;
134
+
135
+ &:hover {
136
+ @include yiq-contrasted($muted-text-color);
137
+ }
138
+
139
+ &:first-child {
140
+ border-top-right-radius: 0;
141
+ border-bottom-right-radius: 0;
142
+ }
143
+
144
+ &:last-child {
145
+ margin-left: -1px;
146
+ border-top-left-radius: 0;
147
+ border-bottom-left-radius: 0;
148
+ }
149
+
150
+ &.disabled {
151
+ color: rgba($muted-text-color, 0.5);
152
+ pointer-events: none;
153
+ cursor: not-allowed;
154
+ }
155
+ }
156
+ }
157
+
158
+ .page__content + .pagination,
159
+ .page__meta + .pagination,
160
+ .page__share + .pagination,
161
+ .page__comments + .pagination {
162
+ margin-top: 2em;
163
+ padding-top: 2em;
164
+ border-top: 1px solid $border-color;
165
+ }
166
+
167
+ /*
168
+ Priority plus navigation
169
+ ========================================================================== */
170
+
171
+ .greedy-nav {
172
+ position: relative;
173
+ display: -webkit-box;
174
+ display: -ms-flexbox;
175
+ display: flex;
176
+ -webkit-box-align: center;
177
+ -ms-flex-align: center;
178
+ align-items: center;
179
+ min-height: $nav-height;
180
+ background: $background-color;
181
+
182
+ a {
183
+ display: block;
184
+ margin: 0 1rem;
185
+ color: $masthead-link-color;
186
+ text-decoration: none;
187
+
188
+ &:hover {
189
+ color: $masthead-link-color-hover;
190
+ }
191
+
192
+ &.site-title {
193
+ margin-left: 0;
194
+ }
195
+ }
196
+
197
+ &__toggle {
198
+ -ms-flex-item-align: center;
199
+ align-self: center;
200
+ height: $nav-toggle-height;
201
+ border: 0;
202
+ outline: none;
203
+ background-color: transparent;
204
+ cursor: pointer;
205
+ }
206
+
207
+ .visible-links {
208
+ display: -webkit-box;
209
+ display: -ms-flexbox;
210
+ display: flex;
211
+ -webkit-box-pack: end;
212
+ -ms-flex-pack: end;
213
+ justify-content: flex-end;
214
+ -webkit-box-flex: 1;
215
+ -ms-flex: 1;
216
+ flex: 1;
217
+ overflow: hidden;
218
+
219
+ li {
220
+ -webkit-box-flex: 0;
221
+ -ms-flex: none;
222
+ flex: none;
223
+ }
224
+
225
+ a {
226
+ position: relative;
227
+
228
+ &:before {
229
+ content: "";
230
+ position: absolute;
231
+ left: 0;
232
+ bottom: 0;
233
+ height: 4px;
234
+ background: $primary-color;
235
+ width: 100%;
236
+ -webkit-transition: $global-transition;
237
+ transition: $global-transition;
238
+ -webkit-transform: scaleX(0) translate3d(0, 0, 0);
239
+ transform: scaleX(0) translate3d(0, 0, 0); // hide
240
+ }
241
+
242
+ &:hover:before {
243
+ -webkit-transform: scaleX(1);
244
+ -ms-transform: scaleX(1);
245
+ transform: scaleX(1); // reveal
246
+ }
247
+ }
248
+ }
249
+
250
+ .hidden-links {
251
+ position: absolute;
252
+ top: 100%;
253
+ right: 0;
254
+ margin-top: 15px;
255
+ padding: 5px;
256
+ border: 1px solid $border-color;
257
+ border-radius: $border-radius;
258
+ background: $background-color;
259
+ -webkit-box-shadow: 0 2px 4px 0 rgba(#000, 0.16),
260
+ 0 2px 10px 0 rgba(#000, 0.12);
261
+ box-shadow: 0 2px 4px 0 rgba(#000, 0.16), 0 2px 10px 0 rgba(#000, 0.12);
262
+
263
+ &.hidden {
264
+ display: none;
265
+ }
266
+
267
+ a {
268
+ margin: 0;
269
+ padding: 10px 20px;
270
+ font-size: $type-size-5;
271
+
272
+ &:hover {
273
+ color: $masthead-link-color-hover;
274
+ background: $navicon-link-color-hover;
275
+ }
276
+ }
277
+
278
+ &:before {
279
+ content: "";
280
+ position: absolute;
281
+ top: -11px;
282
+ right: 10px;
283
+ width: 0;
284
+ border-style: solid;
285
+ border-width: 0 10px 10px;
286
+ border-color: $border-color transparent;
287
+ display: block;
288
+ z-index: 0;
289
+ }
290
+
291
+ &:after {
292
+ content: "";
293
+ position: absolute;
294
+ top: -10px;
295
+ right: 10px;
296
+ width: 0;
297
+ border-style: solid;
298
+ border-width: 0 10px 10px;
299
+ border-color: $background-color transparent;
300
+ display: block;
301
+ z-index: 1;
302
+ }
303
+
304
+ li {
305
+ display: block;
306
+ border-bottom: 1px solid $border-color;
307
+
308
+ &:last-child {
309
+ border-bottom: none;
310
+ }
311
+ }
312
+ }
313
+ }
314
+
315
+ .no-js {
316
+ .greedy-nav {
317
+ .visible-links {
318
+ -ms-flex-wrap: wrap;
319
+ flex-wrap: wrap;
320
+ overflow: visible;
321
+ }
322
+ }
323
+ }
324
+
325
+ /*
326
+ Navigation list
327
+ ========================================================================== */
328
+
329
+ .nav__list {
330
+ margin-bottom: 1.5em;
331
+
332
+ input[type="checkbox"],
333
+ label {
334
+ display: none;
335
+ }
336
+
337
+ @include breakpoint(max-width $large - 1px) {
338
+ label {
339
+ position: relative;
340
+ display: inline-block;
341
+ padding: 0.5em 2.5em 0.5em 1em;
342
+ color: $gray;
343
+ font-size: $type-size-6;
344
+ font-weight: bold;
345
+ border: 1px solid $light-gray;
346
+ border-radius: $border-radius;
347
+ z-index: 20;
348
+ -webkit-transition: 0.2s ease-out;
349
+ transition: 0.2s ease-out;
350
+ cursor: pointer;
351
+
352
+ &:before,
353
+ &:after {
354
+ content: "";
355
+ position: absolute;
356
+ right: 1em;
357
+ top: 1.25em;
358
+ width: 0.75em;
359
+ height: 0.125em;
360
+ line-height: 1;
361
+ background-color: $gray;
362
+ -webkit-transition: 0.2s ease-out;
363
+ transition: 0.2s ease-out;
364
+ }
365
+
366
+ &:after {
367
+ -webkit-transform: rotate(90deg);
368
+ -ms-transform: rotate(90deg);
369
+ transform: rotate(90deg);
370
+ }
371
+
372
+ &:hover {
373
+ color: #fff;
374
+ border-color: $gray;
375
+ background-color: mix(white, #000, 20%);
376
+
377
+ &:before,
378
+ &:after {
379
+ background-color: #fff;
380
+ }
381
+ }
382
+ }
383
+
384
+ /* selected*/
385
+ input:checked + label {
386
+ color: white;
387
+ background-color: mix(white, #000, 20%);
388
+
389
+ &:before,
390
+ &:after {
391
+ background-color: #fff;
392
+ }
393
+ }
394
+
395
+ /* on hover show expand*/
396
+ label:hover:after {
397
+ -webkit-transform: rotate(90deg);
398
+ -ms-transform: rotate(90deg);
399
+ transform: rotate(90deg);
400
+ }
401
+
402
+ input:checked + label:hover:after {
403
+ -webkit-transform: rotate(0);
404
+ -ms-transform: rotate(0);
405
+ transform: rotate(0);
406
+ }
407
+
408
+ ul {
409
+ margin-bottom: 1em;
410
+ }
411
+
412
+ a {
413
+ display: block;
414
+ padding: 0.25em 0;
415
+
416
+ @include breakpoint($large) {
417
+ padding-top: 0.125em;
418
+ padding-bottom: 0.125em;
419
+ }
420
+
421
+ &:hover {
422
+ text-decoration: underline;
423
+ }
424
+ }
425
+ }
426
+ }
427
+
428
+ .nav__list .nav__items {
429
+ margin: 0;
430
+ font-size: 1.25rem;
431
+
432
+ a {
433
+ color: inherit;
434
+ }
435
+
436
+ .active {
437
+ margin-left: -0.5em;
438
+ padding-left: 0.5em;
439
+ padding-right: 0.5em;
440
+ font-weight: bold;
441
+ }
442
+
443
+ @include breakpoint(max-width $large - 1px) {
444
+ position: relative;
445
+ max-height: 0;
446
+ opacity: 0%;
447
+ overflow: hidden;
448
+ z-index: 10;
449
+ -webkit-transition: 0.3s ease-in-out;
450
+ transition: 0.3s ease-in-out;
451
+ -webkit-transform: translate(0, 10%);
452
+ -ms-transform: translate(0, 10%);
453
+ transform: translate(0, 10%);
454
+ }
455
+ }
456
+
457
+ @include breakpoint(max-width $large - 1px) {
458
+ .nav__list input:checked ~ .nav__items {
459
+ -webkit-transition: 0.5s ease-in-out;
460
+ transition: 0.5s ease-in-out;
461
+ max-height: 9999px; /* exaggerate max-height to accommodate tall lists*/
462
+ overflow: visible;
463
+ opacity: 1;
464
+ margin-top: 1em;
465
+ -webkit-transform: translate(0, 0);
466
+ -ms-transform: translate(0, 0);
467
+ transform: translate(0, 0);
468
+ }
469
+ }
470
+
471
+ .nav__title {
472
+ margin: 0;
473
+ padding: 0.5rem 0.75rem;
474
+ font-family: $sans-serif-narrow;
475
+ font-size: $type-size-5;
476
+ font-weight: bold;
477
+ }
478
+
479
+ .nav__sub-title {
480
+ display: block;
481
+ margin: 0.5rem 0;
482
+ padding: 0.25rem 0;
483
+ font-family: $sans-serif-narrow;
484
+ font-size: $type-size-6;
485
+ font-weight: bold;
486
+ text-transform: uppercase;
487
+ border-bottom: 1px solid $border-color;
488
+ }
489
+
490
+ /*
491
+ Table of contents navigation
492
+ ========================================================================== */
493
+
494
+ .toc {
495
+ font-family: $sans-serif-narrow;
496
+ color: $gray;
497
+ background-color: $background-color;
498
+ border: 1px solid $border-color;
499
+ border-radius: $border-radius;
500
+ -webkit-box-shadow: $box-shadow;
501
+ box-shadow: $box-shadow;
502
+
503
+ .nav__title {
504
+ color: #fff;
505
+ font-size: $type-size-6;
506
+ background: $primary-color;
507
+ border-top-left-radius: $border-radius;
508
+ border-top-right-radius: $border-radius;
509
+ }
510
+ }
511
+
512
+ .toc__menu {
513
+ margin: 0;
514
+ padding: 0;
515
+ width: 100%;
516
+ list-style: none;
517
+ font-size: $type-size-6;
518
+
519
+ @include breakpoint($large) {
520
+ font-size: $type-size-7;
521
+ }
522
+
523
+ a {
524
+ display: block;
525
+ padding: 0.25rem 0.75rem;
526
+ color: $muted-text-color;
527
+ font-weight: bold;
528
+ line-height: 1.5;
529
+ border-bottom: 1px solid $border-color;
530
+
531
+ &:hover {
532
+ color: $text-color;
533
+ }
534
+ }
535
+
536
+ li ul > li a {
537
+ padding-left: 1.25rem;
538
+ font-weight: normal;
539
+ }
540
+
541
+ li ul li ul > li a {
542
+ padding-left: 1.75rem;
543
+ }
544
+
545
+ li ul li ul li ul > li a {
546
+ padding-left: 2.25rem;
547
+ }
548
+
549
+ li ul li ul li ul li ul > li a {
550
+ padding-left: 2.75rem;
551
+ }
552
+
553
+ li ul li ul li ul li ul li ul > li a {
554
+ padding-left: 3.25rem
555
+ }
556
+ }