dendron-jekyll 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +68 -0
  4. data/Rakefile +1 -0
  5. data/_includes/active.html +8 -0
  6. data/_includes/archive-single.html +33 -0
  7. data/_includes/crumbs.html +15 -0
  8. data/_includes/css/custom.scss.liquid +1 -0
  9. data/_includes/css/just-the-docs.scss.liquid +7 -0
  10. data/_includes/documents-collection.html +25 -0
  11. data/_includes/figure +9 -0
  12. data/_includes/head.html +40 -0
  13. data/_includes/head_custom.html +0 -0
  14. data/_includes/js/custom.js +0 -0
  15. data/_includes/nav.html +37 -0
  16. data/_includes/sidebar.html +19 -0
  17. data/_includes/title.html +5 -0
  18. data/_includes/toc +7 -0
  19. data/_includes/toc-mm.html +96 -0
  20. data/_includes/toc.html +16 -0
  21. data/_includes/vendor/anchor_headings.html +100 -0
  22. data/_layouts/about.html +5 -0
  23. data/_layouts/archive.html +30 -0
  24. data/_layouts/default.html +160 -0
  25. data/_layouts/home.html +5 -0
  26. data/_layouts/page.html +5 -0
  27. data/_layouts/post.html +5 -0
  28. data/_layouts/single.html +97 -0
  29. data/_layouts/table_wrappers.html +7 -0
  30. data/_layouts/vendor/compress.html +10 -0
  31. data/_sass/base.scss +108 -0
  32. data/_sass/buttons.scss +118 -0
  33. data/_sass/code.scss +261 -0
  34. data/_sass/color_schemes/dark.scss +17 -0
  35. data/_sass/color_schemes/light.scss +0 -0
  36. data/_sass/content.scss +196 -0
  37. data/_sass/custom/custom.scss +0 -0
  38. data/_sass/labels.scss +37 -0
  39. data/_sass/layout.scss +205 -0
  40. data/_sass/minimal-mistakes/_animations.scss +21 -0
  41. data/_sass/minimal-mistakes/_archive.scss +455 -0
  42. data/_sass/minimal-mistakes/_base.scss +357 -0
  43. data/_sass/minimal-mistakes/_buttons.scss +97 -0
  44. data/_sass/minimal-mistakes/_footer.scss +86 -0
  45. data/_sass/minimal-mistakes/_forms.scss +393 -0
  46. data/_sass/minimal-mistakes/_masthead.scss +93 -0
  47. data/_sass/minimal-mistakes/_mixins.scss +92 -0
  48. data/_sass/minimal-mistakes/_navigation.scss +566 -0
  49. data/_sass/minimal-mistakes/_notices.scss +105 -0
  50. data/_sass/minimal-mistakes/_page.scss +553 -0
  51. data/_sass/minimal-mistakes/_print.scss +252 -0
  52. data/_sass/minimal-mistakes/_reset.scss +187 -0
  53. data/_sass/minimal-mistakes/_search.scss +132 -0
  54. data/_sass/minimal-mistakes/_sidebar.scss +347 -0
  55. data/_sass/minimal-mistakes/_syntax.scss +324 -0
  56. data/_sass/minimal-mistakes/_tables.scss +39 -0
  57. data/_sass/minimal-mistakes/_utilities.scss +593 -0
  58. data/_sass/minimal-mistakes/_variables.scss +169 -0
  59. data/_sass/minimal-mistakes/skins/_air.scss +23 -0
  60. data/_sass/minimal-mistakes/skins/_aqua.scss +30 -0
  61. data/_sass/minimal-mistakes/skins/_contrast.scss +51 -0
  62. data/_sass/minimal-mistakes/skins/_dark.scss +28 -0
  63. data/_sass/minimal-mistakes/skins/_default.scss +5 -0
  64. data/_sass/minimal-mistakes/skins/_dirt.scss +33 -0
  65. data/_sass/minimal-mistakes/skins/_mint.scss +23 -0
  66. data/_sass/minimal-mistakes/skins/_neon.scss +57 -0
  67. data/_sass/minimal-mistakes/skins/_plum.scss +64 -0
  68. data/_sass/minimal-mistakes/skins/_sunrise.scss +44 -0
  69. data/_sass/minimal-mistakes/vendor/breakpoint/_breakpoint.scss +114 -0
  70. data/_sass/minimal-mistakes/vendor/breakpoint/_context.scss +95 -0
  71. data/_sass/minimal-mistakes/vendor/breakpoint/_helpers.scss +151 -0
  72. data/_sass/minimal-mistakes/vendor/breakpoint/_legacy-settings.scss +50 -0
  73. data/_sass/minimal-mistakes/vendor/breakpoint/_no-query.scss +15 -0
  74. data/_sass/minimal-mistakes/vendor/breakpoint/_parsers.scss +215 -0
  75. data/_sass/minimal-mistakes/vendor/breakpoint/_respond-to.scss +82 -0
  76. data/_sass/minimal-mistakes/vendor/breakpoint/_settings.scss +71 -0
  77. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss +33 -0
  78. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_query.scss +82 -0
  79. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_resolution.scss +31 -0
  80. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_single.scss +26 -0
  81. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_triple.scss +36 -0
  82. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default-pair.scss +21 -0
  83. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default.scss +22 -0
  84. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_double-string.scss +22 -0
  85. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -0
  86. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/single/_default.scss +13 -0
  87. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/triple/_default.scss +18 -0
  88. data/_sass/minimal-mistakes/vendor/magnific-popup/_magnific-popup.scss +649 -0
  89. data/_sass/minimal-mistakes/vendor/magnific-popup/_settings.scss +46 -0
  90. data/_sass/minimal-mistakes/vendor/susy/_su.scss +4 -0
  91. data/_sass/minimal-mistakes/vendor/susy/_susy-prefix.scss +13 -0
  92. data/_sass/minimal-mistakes/vendor/susy/_susy.scss +5 -0
  93. data/_sass/minimal-mistakes/vendor/susy/plugins/_svg-grid.scss +5 -0
  94. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_prefix.scss +7 -0
  95. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-api.scss +114 -0
  96. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-grid-math.scss +67 -0
  97. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-settings.scss +14 -0
  98. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-unprefix.scss +18 -0
  99. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-utilities.scss +133 -0
  100. data/_sass/minimal-mistakes/vendor/susy/susy/_api.scss +318 -0
  101. data/_sass/minimal-mistakes/vendor/susy/susy/_normalize.scss +261 -0
  102. data/_sass/minimal-mistakes/vendor/susy/susy/_parse.scss +163 -0
  103. data/_sass/minimal-mistakes/vendor/susy/susy/_settings.scss +329 -0
  104. data/_sass/minimal-mistakes/vendor/susy/susy/_su-math.scss +441 -0
  105. data/_sass/minimal-mistakes/vendor/susy/susy/_su-validate.scss +213 -0
  106. data/_sass/minimal-mistakes/vendor/susy/susy/_syntax-helpers.scss +191 -0
  107. data/_sass/minimal-mistakes/vendor/susy/susy/_unprefix.scss +56 -0
  108. data/_sass/minimal-mistakes/vendor/susy/susy/_utilities.scss +167 -0
  109. data/_sass/modules.scss +25 -0
  110. data/_sass/navigation.scss +196 -0
  111. data/_sass/print.scss +40 -0
  112. data/_sass/search.scss +323 -0
  113. data/_sass/support/_functions.scss +9 -0
  114. data/_sass/support/_variables.scss +135 -0
  115. data/_sass/support/mixins/_buttons.scss +27 -0
  116. data/_sass/support/mixins/_layout.scss +34 -0
  117. data/_sass/support/mixins/_typography.scss +86 -0
  118. data/_sass/support/mixins/mixins.scss +3 -0
  119. data/_sass/support/support.scss +3 -0
  120. data/_sass/tables.scss +58 -0
  121. data/_sass/typography.scss +60 -0
  122. data/_sass/utilities/_colors.scss +239 -0
  123. data/_sass/utilities/_layout.scss +95 -0
  124. data/_sass/utilities/_lists.scss +17 -0
  125. data/_sass/utilities/_spacing.scss +165 -0
  126. data/_sass/utilities/_typography.scss +91 -0
  127. data/_sass/utilities/utilities.scss +5 -0
  128. data/_sass/vendor/normalize.scss/README.md +78 -0
  129. data/_sass/vendor/normalize.scss/normalize.scss +427 -0
  130. data/_sass/vendor/normalize.scss/package.json +70 -0
  131. data/assets/css/just-the-docs-dark.scss +3 -0
  132. data/assets/css/just-the-docs-default.scss +8 -0
  133. data/assets/css/just-the-docs-light.scss +3 -0
  134. data/assets/images/just-the-docs.png +0 -0
  135. data/assets/images/search.svg +1 -0
  136. data/assets/js/just-the-docs.js +473 -0
  137. data/assets/js/vendor/lunr.min.js +6 -0
  138. data/assets/js/zzzz-search-data.json +60 -0
  139. data/bin/just-the-docs +16 -0
  140. data/lib/tasks/search.rake +74 -0
  141. metadata +245 -0
@@ -0,0 +1,93 @@
1
+ /* ==========================================================================
2
+ MASTHEAD
3
+ ========================================================================== */
4
+
5
+ .masthead {
6
+ position: relative;
7
+ border-bottom: 1px solid $border-color;
8
+ -webkit-animation: $intro-transition;
9
+ animation: $intro-transition;
10
+ -webkit-animation-delay: 0.15s;
11
+ animation-delay: 0.15s;
12
+ z-index: 20;
13
+
14
+ &__inner-wrap {
15
+ @include clearfix;
16
+ margin-left: auto;
17
+ margin-right: auto;
18
+ padding: 1em;
19
+ max-width: 100%;
20
+ display: -webkit-box;
21
+ display: -ms-flexbox;
22
+ display: flex;
23
+ -webkit-box-pack: justify;
24
+ -ms-flex-pack: justify;
25
+ justify-content: space-between;
26
+ font-family: $sans-serif-narrow;
27
+
28
+ @include breakpoint($x-large) {
29
+ max-width: $max-width;
30
+ }
31
+
32
+ nav {
33
+ z-index: 10;
34
+ }
35
+
36
+ a {
37
+ text-decoration: none;
38
+ }
39
+ }
40
+ }
41
+
42
+ .site-logo img {
43
+ max-height: 2rem;
44
+ }
45
+
46
+ .site-title {
47
+ display: -webkit-box;
48
+ display: -ms-flexbox;
49
+ display: flex;
50
+ -ms-flex-item-align: center;
51
+ align-self: center;
52
+ font-weight: bold;
53
+ // z-index: 20;
54
+ }
55
+
56
+ .site-subtitle {
57
+ display: block;
58
+ font-size: $type-size-8;
59
+ }
60
+
61
+ .masthead__menu {
62
+ float: left;
63
+ margin-left: 0;
64
+ margin-right: 0;
65
+ width: 100%;
66
+ clear: both;
67
+
68
+ .site-nav {
69
+ margin-left: 0;
70
+
71
+ @include breakpoint($small) {
72
+ float: right;
73
+ }
74
+ }
75
+
76
+ ul {
77
+ margin: 0;
78
+ padding: 0;
79
+ clear: both;
80
+ list-style-type: none;
81
+ }
82
+ }
83
+
84
+ .masthead__menu-item {
85
+ display: block;
86
+ list-style-type: none;
87
+ white-space: nowrap;
88
+
89
+ &--lg {
90
+ padding-right: 2em;
91
+ font-weight: 700;
92
+ }
93
+ }
@@ -0,0 +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);
92
+ }
@@ -0,0 +1,566 @@
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-logo {
193
+ margin-left: 0;
194
+ margin-right: 0.5rem;
195
+ }
196
+
197
+ &.site-title {
198
+ margin-left: 0;
199
+ }
200
+ }
201
+
202
+ &__toggle {
203
+ -ms-flex-item-align: center;
204
+ align-self: center;
205
+ height: $nav-toggle-height;
206
+ border: 0;
207
+ outline: none;
208
+ background-color: transparent;
209
+ cursor: pointer;
210
+ }
211
+
212
+ .visible-links {
213
+ display: -webkit-box;
214
+ display: -ms-flexbox;
215
+ display: flex;
216
+ -webkit-box-pack: end;
217
+ -ms-flex-pack: end;
218
+ justify-content: flex-end;
219
+ -webkit-box-flex: 1;
220
+ -ms-flex: 1;
221
+ flex: 1;
222
+ overflow: hidden;
223
+
224
+ li {
225
+ -webkit-box-flex: 0;
226
+ -ms-flex: none;
227
+ flex: none;
228
+ }
229
+
230
+ a {
231
+ position: relative;
232
+
233
+ &:before {
234
+ content: "";
235
+ position: absolute;
236
+ left: 0;
237
+ bottom: 0;
238
+ height: 4px;
239
+ background: $primary-color;
240
+ width: 100%;
241
+ -webkit-transition: $global-transition;
242
+ transition: $global-transition;
243
+ -webkit-transform: scaleX(0) translate3d(0, 0, 0);
244
+ transform: scaleX(0) translate3d(0, 0, 0); // hide
245
+ }
246
+
247
+ &:hover:before {
248
+ -webkit-transform: scaleX(1);
249
+ -ms-transform: scaleX(1);
250
+ transform: scaleX(1); // reveal
251
+ }
252
+ }
253
+ }
254
+
255
+ .hidden-links {
256
+ position: absolute;
257
+ top: 100%;
258
+ right: 0;
259
+ margin-top: 15px;
260
+ padding: 5px;
261
+ border: 1px solid $border-color;
262
+ border-radius: $border-radius;
263
+ background: $background-color;
264
+ -webkit-box-shadow: 0 2px 4px 0 rgba(#000, 0.16),
265
+ 0 2px 10px 0 rgba(#000, 0.12);
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: $background-color 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
+ .no-js {
321
+ .greedy-nav {
322
+ .visible-links {
323
+ -ms-flex-wrap: wrap;
324
+ flex-wrap: wrap;
325
+ overflow: visible;
326
+ }
327
+ }
328
+ }
329
+
330
+ /*
331
+ Navigation list
332
+ ========================================================================== */
333
+
334
+ .nav__list {
335
+ margin-bottom: 1.5em;
336
+
337
+ input[type="checkbox"],
338
+ label {
339
+ display: none;
340
+ }
341
+
342
+ @include breakpoint(max-width $large - 1px) {
343
+ label {
344
+ position: relative;
345
+ display: inline-block;
346
+ padding: 0.5em 2.5em 0.5em 1em;
347
+ color: $gray;
348
+ font-size: $type-size-6;
349
+ font-weight: bold;
350
+ border: 1px solid $light-gray;
351
+ border-radius: $border-radius;
352
+ z-index: 20;
353
+ -webkit-transition: 0.2s ease-out;
354
+ transition: 0.2s ease-out;
355
+ cursor: pointer;
356
+
357
+ &:before,
358
+ &:after {
359
+ content: "";
360
+ position: absolute;
361
+ right: 1em;
362
+ top: 1.25em;
363
+ width: 0.75em;
364
+ height: 0.125em;
365
+ line-height: 1;
366
+ background-color: $gray;
367
+ -webkit-transition: 0.2s ease-out;
368
+ transition: 0.2s ease-out;
369
+ }
370
+
371
+ &:after {
372
+ -webkit-transform: rotate(90deg);
373
+ -ms-transform: rotate(90deg);
374
+ transform: rotate(90deg);
375
+ }
376
+
377
+ &:hover {
378
+ color: #fff;
379
+ border-color: $gray;
380
+ background-color: mix(white, #000, 20%);
381
+
382
+ &:before,
383
+ &:after {
384
+ background-color: #fff;
385
+ }
386
+ }
387
+ }
388
+
389
+ /* selected*/
390
+ input:checked + label {
391
+ color: white;
392
+ background-color: mix(white, #000, 20%);
393
+
394
+ &:before,
395
+ &:after {
396
+ background-color: #fff;
397
+ }
398
+ }
399
+
400
+ /* on hover show expand*/
401
+ label:hover:after {
402
+ -webkit-transform: rotate(90deg);
403
+ -ms-transform: rotate(90deg);
404
+ transform: rotate(90deg);
405
+ }
406
+
407
+ input:checked + label:hover:after {
408
+ -webkit-transform: rotate(0);
409
+ -ms-transform: rotate(0);
410
+ transform: rotate(0);
411
+ }
412
+
413
+ ul {
414
+ margin-bottom: 1em;
415
+ }
416
+
417
+ a {
418
+ display: block;
419
+ padding: 0.25em 0;
420
+
421
+ @include breakpoint($large) {
422
+ padding-top: 0.125em;
423
+ padding-bottom: 0.125em;
424
+ }
425
+
426
+ &:hover {
427
+ text-decoration: underline;
428
+ }
429
+ }
430
+ }
431
+ }
432
+
433
+ .nav__list .nav__items {
434
+ margin: 0;
435
+ font-size: 1.25rem;
436
+
437
+ a {
438
+ color: inherit;
439
+ }
440
+
441
+ .active {
442
+ margin-left: -0.5em;
443
+ padding-left: 0.5em;
444
+ padding-right: 0.5em;
445
+ font-weight: bold;
446
+ }
447
+
448
+ @include breakpoint(max-width $large - 1px) {
449
+ position: relative;
450
+ max-height: 0;
451
+ opacity: 0%;
452
+ overflow: hidden;
453
+ z-index: 10;
454
+ -webkit-transition: 0.3s ease-in-out;
455
+ transition: 0.3s ease-in-out;
456
+ -webkit-transform: translate(0, 10%);
457
+ -ms-transform: translate(0, 10%);
458
+ transform: translate(0, 10%);
459
+ }
460
+ }
461
+
462
+ @include breakpoint(max-width $large - 1px) {
463
+ .nav__list input:checked ~ .nav__items {
464
+ -webkit-transition: 0.5s ease-in-out;
465
+ transition: 0.5s ease-in-out;
466
+ max-height: 9999px; /* exaggerate max-height to accommodate tall lists*/
467
+ overflow: visible;
468
+ opacity: 1;
469
+ margin-top: 1em;
470
+ -webkit-transform: translate(0, 0);
471
+ -ms-transform: translate(0, 0);
472
+ transform: translate(0, 0);
473
+ }
474
+ }
475
+
476
+ .nav__title {
477
+ margin: 0;
478
+ padding: 0.5rem 0.75rem;
479
+ font-family: $sans-serif-narrow;
480
+ font-size: $type-size-5;
481
+ font-weight: bold;
482
+ }
483
+
484
+ .nav__sub-title {
485
+ display: block;
486
+ margin: 0.5rem 0;
487
+ padding: 0.25rem 0;
488
+ font-family: $sans-serif-narrow;
489
+ font-size: $type-size-6;
490
+ font-weight: bold;
491
+ text-transform: uppercase;
492
+ border-bottom: 1px solid $border-color;
493
+ }
494
+
495
+ /*
496
+ Table of contents navigation
497
+ ========================================================================== */
498
+
499
+ .toc {
500
+ font-family: $sans-serif-narrow;
501
+ color: $gray;
502
+ background-color: $background-color;
503
+ border: 1px solid $border-color;
504
+ border-radius: $border-radius;
505
+ -webkit-box-shadow: $box-shadow;
506
+ box-shadow: $box-shadow;
507
+
508
+ .nav__title {
509
+ color: #fff;
510
+ font-size: $type-size-6;
511
+ background: $primary-color;
512
+ border-top-left-radius: $border-radius;
513
+ border-top-right-radius: $border-radius;
514
+ }
515
+
516
+ // Scrollspy marks toc items as .active when they are in focus
517
+ .active a {
518
+ @include yiq-contrasted($active-color);
519
+ }
520
+ }
521
+
522
+ .toc__menu {
523
+ margin: 0;
524
+ padding: 0;
525
+ width: 100%;
526
+ list-style: none;
527
+ font-size: $type-size-6;
528
+
529
+ @include breakpoint($large) {
530
+ font-size: $type-size-7;
531
+ }
532
+
533
+ a {
534
+ display: block;
535
+ padding: 0.25rem 0.75rem;
536
+ color: $muted-text-color;
537
+ font-weight: bold;
538
+ line-height: 1.5;
539
+ border-bottom: 1px solid $border-color;
540
+
541
+ &:hover {
542
+ color: $text-color;
543
+ }
544
+ }
545
+
546
+ li ul > li a {
547
+ padding-left: 1.25rem;
548
+ font-weight: normal;
549
+ }
550
+
551
+ li ul li ul > li a {
552
+ padding-left: 1.75rem;
553
+ }
554
+
555
+ li ul li ul li ul > li a {
556
+ padding-left: 2.25rem;
557
+ }
558
+
559
+ li ul li ul li ul li ul > li a {
560
+ padding-left: 2.75rem;
561
+ }
562
+
563
+ li ul li ul li ul li ul li ul > li a {
564
+ padding-left: 3.25rem
565
+ }
566
+ }