minimal-mistakes-jekyll 4.5.2 → 4.6.0

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