minimal-mistakes-jekyll 4.5.0 → 4.5.1

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