minimal-mistakes-jekyll 4.0.6 → 4.0.7

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