jekyll-bonsai 0.0.3

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 (177) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +674 -0
  3. data/README.md +11 -0
  4. data/_config.yml +155 -0
  5. data/_entries/digital-garden.bonsai.md +36 -0
  6. data/_entries/digital-garden.field-logs.md +10 -0
  7. data/_entries/digital-garden.fork.md +10 -0
  8. data/_entries/digital-garden.md +17 -0
  9. data/_entries/digital-garden.path.md +11 -0
  10. data/_entries/digital-garden.plants.md +12 -0
  11. data/_entries/digital-garden.pollinate.md +10 -0
  12. data/_entries/digital-garden.steps.md +10 -0
  13. data/_entries/digital-garden.stream.md +12 -0
  14. data/_entries/digital-garden.sweep.md +12 -0
  15. data/_entries/digital-garden.weather.md +12 -0
  16. data/_entries/features.md +10 -0
  17. data/_entries/features.notes.hover-preview.md +10 -0
  18. data/_entries/features.notes.md +12 -0
  19. data/_entries/features.notes.note-body.md +12 -0
  20. data/_entries/features.notes.note-body.share.md +10 -0
  21. data/_entries/features.notes.note-body.sidenotes.md +52 -0
  22. data/_entries/features.notes.note-foot.links.md +10 -0
  23. data/_entries/features.notes.note-foot.md +11 -0
  24. data/_entries/features.notes.note-foot.posts.md +10 -0
  25. data/_entries/features.notes.note-foot.webmentions.md +10 -0
  26. data/_entries/features.notes.note-head.md +10 -0
  27. data/_entries/features.pages.field-blogs.md +10 -0
  28. data/_entries/features.pages.md +12 -0
  29. data/_entries/features.pages.recent.md +10 -0
  30. data/_entries/features.pages.status-tags.md +10 -0
  31. data/_entries/features.site-nav.graph.links.md +10 -0
  32. data/_entries/features.site-nav.graph.links.namespacing.md +14 -0
  33. data/_entries/features.site-nav.graph.links.wikilinks.md +25 -0
  34. data/_entries/features.site-nav.graph.md +12 -0
  35. data/_entries/features.site-nav.graph.nodes.current-note.md +10 -0
  36. data/_entries/features.site-nav.graph.nodes.md +12 -0
  37. data/_entries/features.site-nav.graph.nodes.mia.missing-note.md +20 -0
  38. data/_entries/features.site-nav.graph.nodes.visited-status.md +10 -0
  39. data/_entries/features.site-nav.graph.toggle-graph.md +13 -0
  40. data/_entries/features.site-nav.graph.type.md +16 -0
  41. data/_entries/features.site-nav.graph.type.net-web.md +10 -0
  42. data/_entries/features.site-nav.graph.type.tree.md +12 -0
  43. data/_entries/features.site-nav.md +10 -0
  44. data/_entries/features.site-nav.visited.md +14 -0
  45. data/_entries/features.tags.md +13 -0
  46. data/_entries/features.themes.dark.md +12 -0
  47. data/_entries/features.themes.light.md +10 -0
  48. data/_entries/features.themes.md +12 -0
  49. data/_entries/features.visited.delete-data.md +10 -0
  50. data/_entries/features.visited.md +12 -0
  51. data/_entries/features.visitor-preferences.md +27 -0
  52. data/_entries/feedback.md +10 -0
  53. data/_entries/people.creator.md +12 -0
  54. data/_entries/people.md +13 -0
  55. data/_entries/people.visitors.md +12 -0
  56. data/_entries/plugins.jekyll-wikilinks.md +10 -0
  57. data/_entries/plugins.md +10 -0
  58. data/_entries/root.md +26 -0
  59. data/_includes/anchor-headings.html +152 -0
  60. data/_includes/connect.html +44 -0
  61. data/_includes/entry-attrs.html +27 -0
  62. data/_includes/head.html +23 -0
  63. data/_includes/hover-preview.html +84 -0
  64. data/_includes/img/bullet-ancestor.svg +5 -0
  65. data/_includes/img/bullet-net-web.svg +9 -0
  66. data/_includes/img/bullet-tree.svg +9 -0
  67. data/_includes/metrics.html +10 -0
  68. data/_includes/share.html +45 -0
  69. data/_includes/site-nav.html +48 -0
  70. data/_includes/styles.scss.liquid +3 -0
  71. data/_layouts/default.html +39 -0
  72. data/_layouts/entry.html +124 -0
  73. data/_layouts/post.html +29 -0
  74. data/_layouts/state.html +59 -0
  75. data/_layouts/table-wrappers.html +7 -0
  76. data/_layouts/vendor/compress.html +10 -0
  77. data/_pages/about.md +7 -0
  78. data/_pages/posts.html +19 -0
  79. data/_pages/recent.html +48 -0
  80. data/_plugins/doc_filters.rb +44 -0
  81. data/_plugins/prep_entry.rb +43 -0
  82. data/_plugins/sidenote.rb +123 -0
  83. data/_plugins/tags.rb +52 -0
  84. data/_sass/base/_layout.scss +54 -0
  85. data/_sass/base/_main.scss +203 -0
  86. data/_sass/base/_typography.scss +75 -0
  87. data/_sass/base/base.scss +3 -0
  88. data/_sass/color/dark.scss +58 -0
  89. data/_sass/color/light.scss +58 -0
  90. data/_sass/includes/_btn.scss +106 -0
  91. data/_sass/includes/_graph.scss +69 -0
  92. data/_sass/includes/_nav.scss +89 -0
  93. data/_sass/includes/_site_nav.scss +221 -0
  94. data/_sass/includes/_tooltip.scss +29 -0
  95. data/_sass/includes/includes.scss +9 -0
  96. data/_sass/markdown/_code.scss +340 -0
  97. data/_sass/markdown/_content.scss +400 -0
  98. data/_sass/markdown/_tables.scss +60 -0
  99. data/_sass/markdown/markdown.scss +7 -0
  100. data/_sass/modules.scss +14 -0
  101. data/_sass/pages/_index.scss +72 -0
  102. data/_sass/pages/_posts.scss +17 -0
  103. data/_sass/pages/_recent.scss +26 -0
  104. data/_sass/pages/_state.scss +72 -0
  105. data/_sass/pages/pages.scss +4 -0
  106. data/_sass/support/_functions.scss +9 -0
  107. data/_sass/support/_variables.scss +179 -0
  108. data/_sass/support/mixins/_buttons.scss +27 -0
  109. data/_sass/support/mixins/_layout.scss +56 -0
  110. data/_sass/support/mixins/_typography.scss +84 -0
  111. data/_sass/support/mixins/mixins.scss +3 -0
  112. data/_sass/support/support.scss +3 -0
  113. data/_sass/vendor/normalize.scss/README.md +7 -0
  114. data/_sass/vendor/normalize.scss/normalize.scss +349 -0
  115. data/_states/bamboo.md +8 -0
  116. data/_states/berry.md +8 -0
  117. data/_states/bloom.md +8 -0
  118. data/_states/bud.md +6 -0
  119. data/_states/fruit.md +8 -0
  120. data/_states/melon.md +8 -0
  121. data/_states/pot-bamboo.md +8 -0
  122. data/_states/seed.md +8 -0
  123. data/_states/sprout.md +8 -0
  124. data/_states/tags.md +8 -0
  125. data/_states/tea.md +8 -0
  126. data/assets/css/styles-dark.scss +3 -0
  127. data/assets/css/styles-light.scss +3 -0
  128. data/assets/css/styles.scss +8 -0
  129. data/assets/font/Cutive_Mono/CutiveMono-Regular.ttf +0 -0
  130. data/assets/font/Cutive_Mono/OFL.txt +93 -0
  131. data/assets/font/Old_Standard_TT/OFL.txt +93 -0
  132. data/assets/font/Old_Standard_TT/OldStandardTT-Bold.ttf +0 -0
  133. data/assets/font/Old_Standard_TT/OldStandardTT-Italic.ttf +0 -0
  134. data/assets/font/Old_Standard_TT/OldStandardTT-Regular.ttf +0 -0
  135. data/assets/font/exo2/Exo2-Italic-VariableFont_wght.ttf +0 -0
  136. data/assets/font/exo2/Exo2-VariableFont_wght.ttf +0 -0
  137. data/assets/font/exo2/OFL.txt +93 -0
  138. data/assets/font/exo2/README.txt +81 -0
  139. data/assets/font/exo2/static/Exo2-Black.ttf +0 -0
  140. data/assets/font/exo2/static/Exo2-BlackItalic.ttf +0 -0
  141. data/assets/font/exo2/static/Exo2-Bold.ttf +0 -0
  142. data/assets/font/exo2/static/Exo2-BoldItalic.ttf +0 -0
  143. data/assets/font/exo2/static/Exo2-ExtraBold.ttf +0 -0
  144. data/assets/font/exo2/static/Exo2-ExtraBoldItalic.ttf +0 -0
  145. data/assets/font/exo2/static/Exo2-ExtraLight.ttf +0 -0
  146. data/assets/font/exo2/static/Exo2-ExtraLightItalic.ttf +0 -0
  147. data/assets/font/exo2/static/Exo2-Italic.ttf +0 -0
  148. data/assets/font/exo2/static/Exo2-Light.ttf +0 -0
  149. data/assets/font/exo2/static/Exo2-LightItalic.ttf +0 -0
  150. data/assets/font/exo2/static/Exo2-Medium.ttf +0 -0
  151. data/assets/font/exo2/static/Exo2-MediumItalic.ttf +0 -0
  152. data/assets/font/exo2/static/Exo2-Regular.ttf +0 -0
  153. data/assets/font/exo2/static/Exo2-SemiBold.ttf +0 -0
  154. data/assets/font/exo2/static/Exo2-SemiBoldItalic.ttf +0 -0
  155. data/assets/font/exo2/static/Exo2-Thin.ttf +0 -0
  156. data/assets/font/exo2/static/Exo2-ThinItalic.ttf +0 -0
  157. data/assets/img/bonsai-dark.png +0 -0
  158. data/assets/img/bonsai-dark.svg +106 -0
  159. data/assets/img/bonsai-light.png +0 -0
  160. data/assets/img/bonsai-light.svg +81 -0
  161. data/assets/img/favicon-dark.png +0 -0
  162. data/assets/img/favicon-light.png +0 -0
  163. data/assets/img/nav-base-dark.svg +1 -0
  164. data/assets/img/nav-base-light.svg +1 -0
  165. data/assets/img/nav-bonsai-dark.svg +1 -0
  166. data/assets/img/nav-bonsai-light.svg +1 -0
  167. data/assets/img/nav-dot-dark.svg +1 -0
  168. data/assets/img/nav-dot-light.svg +1 -0
  169. data/assets/img/nav-wiki-links-dark.svg +1 -0
  170. data/assets/img/nav-wiki-links-light.svg +1 -0
  171. data/assets/js/entry.js +102 -0
  172. data/assets/js/graph.js +552 -0
  173. data/assets/js/scripts.js +80 -0
  174. data/assets/js/site-nav.js +132 -0
  175. data/assets/js/theme-colors.js +71 -0
  176. data/index.html +82 -0
  177. metadata +360 -0
@@ -0,0 +1,400 @@
1
+ @charset "UTF-8";
2
+
3
+ //
4
+ // Styles for rendered markdown in the .main-content container
5
+ //
6
+ // stylelint-disable selector-no-type, max-nesting-depth, selector-max-compound-selectors, selector-max-type
7
+
8
+ .main-content {
9
+ flex: 1 0 auto;
10
+
11
+ line-height: $content-line-height;
12
+ counter-reset: sidenote-counter;
13
+
14
+ ol,
15
+ ul,
16
+ dl,
17
+ pre,
18
+ address,
19
+ blockquote,
20
+ .table-wrapper {
21
+ margin-top: 0.5em;
22
+ }
23
+
24
+ a {
25
+ overflow: hidden;
26
+ text-overflow: ellipsis;
27
+ white-space: nowrap;
28
+
29
+ &:not(.wiki-link):not(.wiki-link-embed-link):not(.sem-tag):not(.stat-tag):not(.anchor-heading):not(.footnote):not(.reversefootnote):after {
30
+ @include fs-3;
31
+ font-family: $mono-font-family;
32
+ position: relative;
33
+ top: -0.5em; // sass variable not working here
34
+ content: "↗";
35
+ color: #aaaaaa;
36
+ }
37
+ }
38
+
39
+ ul,
40
+ ol {
41
+ padding-left: 1.5em;
42
+ }
43
+
44
+ li {
45
+ .highlight {
46
+ margin-top: $sp-1;
47
+ }
48
+ }
49
+
50
+ ol {
51
+ list-style-type: none;
52
+ counter-reset: step-counter;
53
+
54
+ > li {
55
+ position: relative;
56
+
57
+ &::before {
58
+ position: absolute;
59
+ top: 0.2em;
60
+ left: -1.6em;
61
+ color: $grey-dk-000;
62
+ content: counter(step-counter);
63
+ counter-increment: step-counter;
64
+ @include fs-3;
65
+
66
+ @include mq(sm) {
67
+ top: 0.11em;
68
+ }
69
+ }
70
+
71
+ ol {
72
+ counter-reset: sub-counter;
73
+
74
+ li {
75
+ &::before {
76
+ content: counter(sub-counter, lower-alpha);
77
+ counter-increment: sub-counter;
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+
84
+ ul {
85
+ list-style: none;
86
+
87
+ > li {
88
+ &::before {
89
+ position: absolute;
90
+ margin-left: -1.4em;
91
+ color: $grey-dk-000;
92
+ content: "•";
93
+ }
94
+ }
95
+ }
96
+
97
+ .task-list {
98
+ padding-left: 0;
99
+ }
100
+
101
+ .task-list-item {
102
+ display: flex;
103
+ align-items: center;
104
+
105
+ &::before {
106
+ content: "";
107
+ }
108
+ }
109
+
110
+ .task-list-item-checkbox {
111
+ margin-right: 0.6em;
112
+ }
113
+
114
+ hr {
115
+ background-color: $separator-color;
116
+
117
+ + * {
118
+ margin-top: 0;
119
+ }
120
+ }
121
+
122
+ dl {
123
+ display: grid;
124
+ grid-template: auto / 10em 1fr;
125
+ }
126
+
127
+ dt,
128
+ dd {
129
+ margin: 0.25em 0;
130
+ }
131
+
132
+ dt {
133
+ grid-column: 1;
134
+ font-weight: 500;
135
+ text-align: right;
136
+ &::after {
137
+ content: ":";
138
+ }
139
+ }
140
+
141
+ dd {
142
+ grid-column: 2;
143
+ margin-bottom: 0;
144
+ margin-left: 1em;
145
+ blockquote,
146
+ div,
147
+ dl,
148
+ dt,
149
+ h1,
150
+ h2,
151
+ h3,
152
+ h4,
153
+ h5,
154
+ h6,
155
+ li,
156
+ ol,
157
+ p,
158
+ pre,
159
+ table,
160
+ ul,
161
+ .table-wrapper {
162
+ &:first-child {
163
+ margin-top: 0;
164
+ }
165
+ }
166
+ }
167
+
168
+ dd,
169
+ ol,
170
+ ul {
171
+ dl:first-child {
172
+ dt:first-child,
173
+ dd:nth-child(2) {
174
+ margin-top: 0;
175
+ }
176
+ }
177
+ }
178
+
179
+ .anchor-heading {
180
+ position: absolute;
181
+ right: -$sp-4;
182
+ width: $sp-5;
183
+ height: 100%;
184
+ padding-right: $sp-1;
185
+ padding-left: $sp-1;
186
+ overflow: visible;
187
+
188
+ @include mq(md) {
189
+ right: auto;
190
+ left: -$sp-5;
191
+ }
192
+
193
+ .anchor-tag {
194
+ @include fs-3;
195
+ display: flex;
196
+ opacity: 0;
197
+
198
+ &:hover {
199
+ filter: drop-shadow(0 0 0.7mm $drop-shadow-yellow);
200
+ }
201
+ }
202
+ }
203
+
204
+ .anchor-heading:hover,
205
+ h1:hover > .anchor-heading,
206
+ h2:hover > .anchor-heading,
207
+ h3:hover > .anchor-heading,
208
+ h4:hover > .anchor-heading,
209
+ h5:hover > .anchor-heading,
210
+ h6:hover > .anchor-heading {
211
+ .anchor-tag {
212
+ opacity: 1;
213
+ }
214
+ }
215
+
216
+ summary {
217
+ cursor: pointer;
218
+ }
219
+
220
+ h1,
221
+ h2,
222
+ h3,
223
+ h4,
224
+ h5,
225
+ h6 {
226
+ position: relative;
227
+ margin-top: 0.25em;
228
+ margin-bottom: 0.25em;
229
+
230
+ &:first-child {
231
+ margin-top: $sp-2;
232
+ }
233
+
234
+ + table,
235
+ + .table-wrapper,
236
+ + .code-example,
237
+ + .highlighter-rouge {
238
+ margin-top: 1em;
239
+ }
240
+
241
+ + p {
242
+ margin-top: 0;
243
+ }
244
+ }
245
+
246
+ // from:
247
+ // - https://codepen.io/jimmycow/pen/LmjVaz
248
+ // - https://codepen.io/JoeHastings/pen/MOdRVm
249
+ blockquote {
250
+ @include fs-3;
251
+ font-family: 'Special Elite', cursive;
252
+ max-width: $content-width;
253
+ // line-height: 1.4;
254
+ position: relative;
255
+ margin: 0;
256
+ padding: $sp-2;
257
+
258
+ border-left: $sp-1 solid $blockquote-border-color;
259
+
260
+ & p {
261
+ padding-left: $sp-6;
262
+ }
263
+
264
+ &:before {
265
+ @include fs-10;
266
+ font-family: 'Special Elite', cursive;
267
+ position: absolute;
268
+ color: $blockquote-quote-color;
269
+ width: 4rem;
270
+ height: 4rem;
271
+
272
+ font-family: 'Special Elite', cursive;
273
+ content: '“';
274
+ }
275
+ }
276
+
277
+ .footnotes {
278
+ border-top: double $separator-color;
279
+ }
280
+
281
+ .footnote, .reversefootnote {
282
+ color: $wiki-link-color;
283
+ }
284
+
285
+ // Sidenotes
286
+ // more on sidenote implementation: https://www.gwern.net/Sidenotes
287
+
288
+ // right-sidenote
289
+ .rsn {
290
+ @include sidenote-container;
291
+ display: none;
292
+ word-wrap: break-word;
293
+
294
+ @include mq(lg) {
295
+ display: block;
296
+ float: right;
297
+ clear: right;
298
+
299
+ margin-right: -$content-sidenote-width;
300
+ width: $content-sidenote-width;
301
+ margin-top: $sp-1;
302
+ margin-bottom: 0;
303
+ font-size: $font-size-2;
304
+ // line-height: 1.3;
305
+ vertical-align: baseline;
306
+ position: relative;
307
+ }
308
+ }
309
+
310
+ // left-sidenote
311
+ .lsn {
312
+ @include sidenote-container;
313
+ display: none;
314
+ word-wrap: break-word;
315
+
316
+ @include mq(lg) {
317
+ display: block;
318
+ float: left;
319
+ clear: left;
320
+
321
+ margin-left: -$content-sidenote-width;
322
+ width: $content-sidenote-width;
323
+ margin-top: $sp-1;
324
+ margin-bottom: 0;
325
+ font-size: $font-size-2;
326
+ // line-height: 1.3;
327
+ vertical-align: baseline;
328
+ position: relative;
329
+ }
330
+ }
331
+
332
+ // all sidenotes
333
+ .sidenote-toggle:checked + .rsn,
334
+ .sidenote-toggle:checked + .lsn {
335
+ display: block;
336
+ float: left;
337
+ left: 1rem;
338
+ clear: both;
339
+ width: 95%;
340
+ margin: 1rem 2.5%;
341
+ vertical-align: baseline;
342
+ position: relative;
343
+ }
344
+
345
+ label.sidenote-toggle:not(.sidenote-number) {
346
+ display: inline;
347
+ }
348
+
349
+ .sidenote-number {
350
+ counter-increment: sidenote-counter;
351
+ }
352
+
353
+ input.sidenote-toggle {
354
+ display: none;
355
+ }
356
+
357
+ label.sidenote-number {
358
+ display: inline;
359
+ }
360
+
361
+ label.sidenote-toggle:not(.sidenote-number) {
362
+ display: none;
363
+ }
364
+
365
+ .sidenote-number:after,
366
+ .rsn:before,
367
+ .lsn:before {
368
+ position: relative;
369
+ vertical-align: baseline;
370
+ }
371
+
372
+ .sidenote-number:after {
373
+ content: counter(sidenote-counter);
374
+ color: $wiki-link-color;
375
+ cursor: pointer;
376
+ font-size: $font-size-2;
377
+ top: -$sp-1-75;
378
+ left: $sp-0-75;
379
+ padding-right: $sp-0-75;
380
+ }
381
+
382
+ .rsn:before,
383
+ .lsn:before {
384
+ content: counter(sidenote-counter) " ";
385
+ font-size: $font-size-2;
386
+ top: -$sp-2;
387
+ }
388
+
389
+ // blockquote .rsn,
390
+ // blockquote .lsn {
391
+ // margin-right: -82%;
392
+ // min-width: 59%;
393
+ // text-align: left;
394
+ // }
395
+
396
+ .rsn > code,
397
+ .lsn > code {
398
+ font-size: $font-size-2;
399
+ }
400
+ }
@@ -0,0 +1,60 @@
1
+ //
2
+ // Tables
3
+ //
4
+ // stylelint-disable max-nesting-depth, selector-no-type, selector-max-type
5
+
6
+ .table-wrapper {
7
+ display: block;
8
+ min-width: $content-width;
9
+ max-width: $content-width + $content-sidenote-width;
10
+ margin-right: -$content-sidenote-width;
11
+ margin-bottom: $sp-5;
12
+ overflow-x: auto;
13
+ border-radius: $border-radius;
14
+ box-shadow: 0 1px 2px rgba($box-shadow-color, 0.12), 0 3px 10px rgba($box-shadow-color, 0.08);
15
+ font-family: $click-font-family;
16
+ }
17
+
18
+ table {
19
+ display: table;
20
+ width: 100%;
21
+ border-collapse: separate;
22
+ }
23
+
24
+ th,
25
+ td {
26
+ @include fs-3;
27
+ min-width: 120px;
28
+ padding-top: $sp-2;
29
+ padding-right: $sp-3;
30
+ padding-bottom: $sp-2;
31
+ padding-left: $sp-3;
32
+ background-color: $table-background-color;
33
+ border-bottom: $border rgba($border-color, 0.5);
34
+ border-left: $border $border-color;
35
+
36
+ &:first-of-type {
37
+ border-left: 0;
38
+ }
39
+ }
40
+
41
+ tbody {
42
+ tr {
43
+ &:last-of-type {
44
+ th,
45
+ td {
46
+ border-bottom: 0;
47
+ }
48
+
49
+ td {
50
+ padding-bottom: $sp-3;
51
+ }
52
+ }
53
+ }
54
+ }
55
+
56
+ thead {
57
+ th {
58
+ border-bottom: $border $border-color;
59
+ }
60
+ }