docula 0.3.7 → 0.4.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 (181) hide show
  1. package/README.md +108 -39
  2. package/bin/docula.mjs +8 -0
  3. package/dist/builder.d.ts +34 -0
  4. package/dist/builder.js +182 -0
  5. package/dist/console.d.ts +22 -0
  6. package/dist/console.js +120 -0
  7. package/dist/docula.d.ts +22 -22
  8. package/dist/docula.js +125 -174
  9. package/dist/github.d.ts +22 -0
  10. package/dist/github.js +74 -0
  11. package/dist/helpers/markdown.d.ts +10 -0
  12. package/dist/helpers/markdown.js +24 -0
  13. package/dist/helpers.d.ts +7 -0
  14. package/dist/helpers.js +58 -0
  15. package/dist/options.d.ts +12 -0
  16. package/dist/options.js +47 -0
  17. package/init/docula.config.cjs +10 -0
  18. package/init/favicon.ico +0 -0
  19. package/init/logo.png +0 -0
  20. package/init/variables.css +30 -0
  21. package/package.json +58 -91
  22. package/{templates/default/assets/css/styles → template/css}/home.css +20 -18
  23. package/{init/_includes/assets/css/styles → template/css}/index.css +7 -0
  24. package/template/includes/footer.hbs +10 -0
  25. package/template/includes/header.hbs +17 -0
  26. package/template/includes/landing/content.hbs +63 -0
  27. package/template/includes/landing/hero.hbs +3 -0
  28. package/template/includes/scripts.hbs +4 -0
  29. package/template/index.hbs +16 -0
  30. package/template/releases.hbs +45 -0
  31. package/bin/docula.js +0 -7
  32. package/dist/config.d.ts +0 -21
  33. package/dist/config.d.ts.map +0 -1
  34. package/dist/config.js +0 -78
  35. package/dist/config.js.map +0 -1
  36. package/dist/docula-plugin.d.ts +0 -9
  37. package/dist/docula-plugin.d.ts.map +0 -1
  38. package/dist/docula-plugin.js +0 -2
  39. package/dist/docula-plugin.js.map +0 -1
  40. package/dist/docula.d.ts.map +0 -1
  41. package/dist/docula.js.map +0 -1
  42. package/dist/eleventy/filters.d.ts +0 -2
  43. package/dist/eleventy/filters.d.ts.map +0 -1
  44. package/dist/eleventy/filters.js +0 -10
  45. package/dist/eleventy/filters.js.map +0 -1
  46. package/dist/eleventy/global-data.d.ts +0 -3
  47. package/dist/eleventy/global-data.d.ts.map +0 -1
  48. package/dist/eleventy/global-data.js +0 -2
  49. package/dist/eleventy/global-data.js.map +0 -1
  50. package/dist/eleventy/shortcodes.d.ts +0 -4
  51. package/dist/eleventy/shortcodes.d.ts.map +0 -1
  52. package/dist/eleventy/shortcodes.js +0 -18
  53. package/dist/eleventy/shortcodes.js.map +0 -1
  54. package/dist/eleventy.d.ts +0 -24
  55. package/dist/eleventy.d.ts.map +0 -1
  56. package/dist/eleventy.js +0 -82
  57. package/dist/eleventy.js.map +0 -1
  58. package/dist/index.d.ts +0 -9
  59. package/dist/index.d.ts.map +0 -1
  60. package/dist/index.js +0 -67
  61. package/dist/index.js.map +0 -1
  62. package/dist/logger.d.ts +0 -4
  63. package/dist/logger.d.ts.map +0 -1
  64. package/dist/logger.js +0 -20
  65. package/dist/logger.js.map +0 -1
  66. package/dist/plugins/algolia.d.ts +0 -21
  67. package/dist/plugins/algolia.d.ts.map +0 -1
  68. package/dist/plugins/algolia.js +0 -54
  69. package/dist/plugins/algolia.js.map +0 -1
  70. package/dist/plugins/github.d.ts +0 -16
  71. package/dist/plugins/github.d.ts.map +0 -1
  72. package/dist/plugins/github.js +0 -68
  73. package/dist/plugins/github.js.map +0 -1
  74. package/dist/plugins/index.d.ts +0 -18
  75. package/dist/plugins/index.d.ts.map +0 -1
  76. package/dist/plugins/index.js +0 -16
  77. package/dist/plugins/index.js.map +0 -1
  78. package/dist/plugins/npm.d.ts +0 -14
  79. package/dist/plugins/npm.d.ts.map +0 -1
  80. package/dist/plugins/npm.js +0 -36
  81. package/dist/plugins/npm.js.map +0 -1
  82. package/dist/plugins/pagefind.d.ts +0 -10
  83. package/dist/plugins/pagefind.d.ts.map +0 -1
  84. package/dist/plugins/pagefind.js +0 -22
  85. package/dist/plugins/pagefind.js.map +0 -1
  86. package/dist/plugins/robots.d.ts +0 -14
  87. package/dist/plugins/robots.d.ts.map +0 -1
  88. package/dist/plugins/robots.js +0 -34
  89. package/dist/plugins/robots.js.map +0 -1
  90. package/dist/plugins/sitemap.d.ts +0 -11
  91. package/dist/plugins/sitemap.d.ts.map +0 -1
  92. package/dist/plugins/sitemap.js +0 -27
  93. package/dist/plugins/sitemap.js.map +0 -1
  94. package/dist/schemas.d.ts +0 -21
  95. package/dist/schemas.d.ts.map +0 -1
  96. package/dist/schemas.js +0 -25
  97. package/dist/schemas.js.map +0 -1
  98. package/dist/tools/__mocks__/inquirer-prompt.d.ts +0 -20
  99. package/dist/tools/__mocks__/inquirer-prompt.d.ts.map +0 -1
  100. package/dist/tools/__mocks__/inquirer-prompt.js +0 -19
  101. package/dist/tools/__mocks__/inquirer-prompt.js.map +0 -1
  102. package/dist/tools/__mocks__/path.d.ts +0 -5
  103. package/dist/tools/__mocks__/path.d.ts.map +0 -1
  104. package/dist/tools/__mocks__/path.js +0 -7
  105. package/dist/tools/__mocks__/path.js.map +0 -1
  106. package/dist/tools/inquirer-prompt.d.ts +0 -11
  107. package/dist/tools/inquirer-prompt.d.ts.map +0 -1
  108. package/dist/tools/inquirer-prompt.js +0 -139
  109. package/dist/tools/inquirer-prompt.js.map +0 -1
  110. package/dist/tools/path.d.ts +0 -4
  111. package/dist/tools/path.d.ts.map +0 -1
  112. package/dist/tools/path.js +0 -6
  113. package/dist/tools/path.js.map +0 -1
  114. package/dist/tools/tools.d.ts +0 -3
  115. package/dist/tools/tools.d.ts.map +0 -1
  116. package/dist/tools/tools.js +0 -10
  117. package/dist/tools/tools.js.map +0 -1
  118. package/dist/types/config.d.ts +0 -8
  119. package/dist/types/config.d.ts.map +0 -1
  120. package/dist/types/config.js +0 -2
  121. package/dist/types/config.js.map +0 -1
  122. package/init/_data/site.json +0 -5
  123. package/init/_includes/assets/css/styles/home.css +0 -305
  124. package/init/_includes/assets/css/styles/search/algolia.css +0 -125
  125. package/init/_includes/assets/css/styles/search/pagefind.css +0 -60
  126. package/init/_includes/assets/css/styles/variables.css +0 -30
  127. package/init/_includes/assets/images/docula-logo-horizontal.webp +0 -0
  128. package/init/_includes/assets/images/logo.svg +0 -10
  129. package/init/_includes/doc.njk +0 -22
  130. package/init/_includes/landing/landingHero.njk +0 -8
  131. package/init/_includes/landing/singlePage.njk +0 -24
  132. package/init/_includes/multipage/header.njk +0 -23
  133. package/init/_includes/multipage/homeHeader.njk +0 -20
  134. package/init/_includes/multipage/main.njk +0 -47
  135. package/init/_includes/multipage/scripts.njk +0 -47
  136. package/init/_includes/multipage/searchEngine.njk +0 -5
  137. package/init/_includes/multipage/searchModal.njk +0 -19
  138. package/init/_includes/multipage/sidebar.njk +0 -50
  139. package/init/_includes/search/algolia.njk +0 -98
  140. package/init/_includes/search/pagefind.njk +0 -66
  141. package/init/_includes/shared/footer.njk +0 -4
  142. package/init/_includes/shared/head.njk +0 -15
  143. package/init/_includes/shared/highlightScript.njk +0 -6
  144. package/init/_includes/shared/homeData.njk +0 -49
  145. package/init/api/Readme.md +0 -3
  146. package/init/docs/Readme.md +0 -83
  147. package/init/docs/docs.json +0 -13
  148. package/init/index.njk +0 -28
  149. package/init/releases.njk +0 -38
  150. package/init/search-index.md +0 -14
  151. package/init/versions.njk +0 -40
  152. package/templates/default/assets/css/highlight/highlight.min.js +0 -1433
  153. package/templates/default/assets/css/highlight/styles/base16/dracula.min.css +0 -7
  154. package/templates/default/assets/css/styles/index.css +0 -912
  155. package/templates/default/assets/css/styles/search/algolia.css +0 -125
  156. package/templates/default/assets/css/styles/search/pagefind.css +0 -60
  157. package/templates/default/assets/css/styles/variables.css +0 -30
  158. package/templates/default/assets/images/docula-logo-horizontal.webp +0 -0
  159. package/templates/default/assets/images/logo.svg +0 -10
  160. package/templates/default/doc.njk +0 -22
  161. package/templates/default/index.njk +0 -28
  162. package/templates/default/landing/landingHero.njk +0 -8
  163. package/templates/default/landing/singlePage.njk +0 -24
  164. package/templates/default/multipage/header.njk +0 -23
  165. package/templates/default/multipage/homeHeader.njk +0 -20
  166. package/templates/default/multipage/main.njk +0 -47
  167. package/templates/default/multipage/scripts.njk +0 -47
  168. package/templates/default/multipage/searchEngine.njk +0 -5
  169. package/templates/default/multipage/searchModal.njk +0 -19
  170. package/templates/default/multipage/sidebar.njk +0 -50
  171. package/templates/default/releases.njk +0 -38
  172. package/templates/default/search/algolia.njk +0 -98
  173. package/templates/default/search/pagefind.njk +0 -66
  174. package/templates/default/search-index.md +0 -14
  175. package/templates/default/shared/footer.njk +0 -4
  176. package/templates/default/shared/head.njk +0 -15
  177. package/templates/default/shared/highlightScript.njk +0 -6
  178. package/templates/default/shared/homeData.njk +0 -49
  179. package/templates/default/versions.njk +0 -40
  180. /package/{init/_includes/assets → template}/css/highlight/highlight.min.js +0 -0
  181. /package/{init/_includes/assets → template}/css/highlight/styles/base16/dracula.min.css +0 -0
@@ -1,912 +0,0 @@
1
- * {
2
- margin:0;
3
- box-sizing: border-box;
4
- }
5
-
6
- .hidden {
7
- display: none;
8
- }
9
-
10
- .fixed {
11
- position: fixed;
12
- top: 0;
13
- width: 100%;
14
- }
15
-
16
- .icon {
17
- background-color: transparent;
18
- border: none;
19
- cursor: pointer;
20
- }
21
-
22
- body {
23
- position: relative;
24
- font-family: var(--font-family);
25
- color: var(--color-text);
26
- font-size: 16px;
27
- background-color: var(--background);
28
- }
29
-
30
- a {
31
- text-decoration: none;
32
- color: inherit;
33
- }
34
-
35
- header {
36
- z-index: 2;
37
- width: 100%;
38
- top: 0;
39
- position: relative;
40
- background: var(--header-background);
41
- }
42
-
43
- button {
44
- font-family: var(--font-family);
45
- font-size: 14px;
46
- }
47
-
48
- .nav {
49
- padding-left: 16px;
50
- padding-right: 16px;
51
- height: 72px;
52
- display: flex;
53
- justify-content: space-between;
54
- align-items: center;
55
- width: 100%;
56
- border-bottom: 1px solid var(--border);
57
- z-index: 3;
58
- white-space: nowrap;
59
- flex-grow: 1;
60
- }
61
-
62
- .menu-btn {
63
- margin-right: 22px;
64
- }
65
-
66
- .menu-btn svg {
67
- width: 20px;
68
- height: 20px;
69
- margin-right: 8px;
70
- }
71
-
72
- .menu-btn span {
73
- text-transform: uppercase;
74
- font-size: 10px;
75
- vertical-align: super;
76
- color: var(--color-text);
77
- }
78
-
79
- .nav-list {
80
- padding-left: 0;
81
- }
82
-
83
- .nav-list li {
84
- margin-top: 24px;
85
- color: var(--sidebar-text);
86
- list-style: none;
87
- }
88
-
89
- .nav-list .active {
90
- color: var(--sidebar-text-active);
91
- }
92
-
93
- .child-list li {
94
- color: var(--sidebar-text);
95
- opacity: 0.8;
96
- }
97
-
98
- .search-btn {
99
- transition-duration: .3s;
100
- transition-timing-function: cubic-bezier(.4,0,.2,1);
101
- transition-property: all;
102
- width: 100%;
103
- outline: none;
104
- height: 48px;
105
- display: flex;
106
- justify-content: flex-start;
107
- align-items: center;
108
- color: var(--color-text);
109
- }
110
-
111
-
112
- .search-text {
113
- margin-top: 4px;
114
- margin-left: 16px;
115
- line-height: 1;
116
- text-overflow: ellipsis;
117
- white-space: nowrap;
118
- overflow: hidden;
119
- }
120
-
121
- .search-btn svg {
122
- width: 18px;
123
- height: 22px;
124
- opacity: .75;
125
- fill: var(--color-text);
126
- }
127
-
128
- .sidebar {
129
- background: var(--sidebar-background);
130
- z-index: 4;
131
- width: 100%;
132
- top: 0;
133
- height: 100vh;
134
- flex-direction: column;
135
- flex-shrink: 0;
136
- position: fixed;
137
- font-family: var(--font-family);
138
- border-right: 1px solid var(--border);
139
- }
140
-
141
- .sidebar-container {
142
- overflow-y: auto;
143
- width: inherit;
144
- flex-grow: 1;
145
- position: relative;
146
- }
147
-
148
- .sidebar-content {
149
- padding: 48px 40px 24px;
150
- overflow-y: auto;
151
- font-size: 14px;
152
- height: 90vh;
153
- }
154
-
155
- .close-btn {
156
- transition: all .2s ease-out;
157
- color: var(--sidebar-text);
158
- margin-top: 48px;
159
- display: flex;
160
- align-items: center;
161
- position: absolute;
162
- right: 0;
163
- top: 0;
164
- margin-right: 40px;
165
- }
166
-
167
- .close-btn svg {
168
- width: 16px;
169
- height: 16px;
170
- fill: currentColor;
171
- margin-right: 16px;
172
- }
173
-
174
- .main-container {
175
- width: 100%;
176
- overflow-x: hidden;
177
- padding-top: 100px;
178
- }
179
-
180
- .main-content {
181
- padding: 0 24px;
182
- display: flex;
183
- }
184
-
185
-
186
- .header-search {
187
- overflow: hidden;
188
- }
189
-
190
- .header {
191
- height: 72px;
192
- position: fixed;
193
- top: 0;
194
- }
195
-
196
- .sidebar-logo {
197
- display: none;
198
- }
199
-
200
- .bottom {
201
- z-index: -12;
202
- }
203
-
204
- .content {
205
- width: 100%;
206
- }
207
-
208
- .content h1 {
209
- letter-spacing: -.5px;
210
- font-weight: 700;
211
- font-size: 24px;
212
- line-height: 48px;
213
- }
214
-
215
- .content a > code , code {
216
- padding: 4px 8px;
217
- border-radius: 2px;
218
- background-color: var(--code);
219
- }
220
-
221
- .content table {
222
- margin: 16px 0;
223
- display: block;
224
- overflow-x: auto;
225
- white-space: nowrap;
226
- }
227
-
228
- .content table thead {
229
- color: var(--color-primary);
230
- }
231
-
232
- .content table, tr, td {
233
- border: none;
234
- }
235
-
236
- .content tr {
237
- border-bottom: 1px;
238
- border-color: rgba(90,94,154,.1);
239
- border-style: solid;
240
- }
241
-
242
- .content tr td, .content tr th {
243
- vertical-align: middle;
244
- text-align: left;
245
- }
246
-
247
- .content tr th {
248
- padding: 16px;
249
- }
250
-
251
- .content tr td {
252
- padding: 16px;
253
- }
254
-
255
- .content tr th:first-child, .content tr td:first-child {
256
- padding-left: 0;
257
- }
258
-
259
- .content table tbody tr td:first-child {
260
- width: 98px;
261
- }
262
-
263
- .items-start {
264
- display: flex;
265
- justify-content: space-between;
266
- align-items: flex-start;
267
- margin-bottom: 4px;
268
- }
269
-
270
- .breadcrumb {
271
- line-height: 16px;
272
- font-size: 10px;
273
- letter-spacing: 1.5px;
274
- text-transform: uppercase;
275
- font-weight: 600;
276
- }
277
-
278
- .content h2 {
279
- font-size: 20px;
280
- line-height: 32px;
281
- padding-top: 68px;
282
- margin-bottom: 0;
283
- font-weight: 600;
284
- }
285
-
286
- .content h3 {
287
- font-size: 18px;
288
- line-height: 24px;
289
- padding-top: 48px;
290
- margin-bottom: 0;
291
- font-weight: 600;
292
- }
293
-
294
- .content h4, .content h5, .content h6 {
295
- padding-top: 30px;
296
- }
297
-
298
- .content h4, .content h5, .content h6 {
299
- font-weight: 600;
300
- }
301
-
302
- .content > ul, .content > ol {
303
- margin-top: 12px;
304
- padding-left: 16px;
305
- }
306
-
307
- .content > ul {
308
- list-style: none;
309
- }
310
-
311
- .content > ul li, .content > ol li {
312
- margin: 8px 0;
313
- }
314
- .content > ul li::before {
315
- content: "\2022";
316
- text-indent: -16px;
317
- display: inline-block;
318
- color: var(--color-secondary);
319
- float: left;
320
- }
321
-
322
- .content li {
323
- line-height: 1.5;
324
- }
325
-
326
- .content pre {
327
- margin-top: 22px;
328
- margin-bottom: 32px;
329
- }
330
-
331
- .content p {
332
- margin-top: 16px;
333
- line-height: 24px;
334
- }
335
-
336
- .sidebar-footer {
337
- padding: 16px 40px;
338
- display: flex;
339
- align-items: center;
340
- flex-wrap: wrap;
341
- font-size: 14px;
342
- border-top: 1px solid var(--border);
343
- justify-content: space-between;
344
- position: absolute;
345
- bottom: 0;
346
- background-color: var(--sidebar-background);
347
- width: 100%;
348
- }
349
-
350
- .sidebar-footer a {
351
- font-size: 12px;
352
- color: var(--sidebar-text);
353
- }
354
-
355
- .sidebar-footer a:first-child {
356
- margin-right: 32px
357
- }
358
-
359
- .on-page-container {
360
- padding-top: 28px;
361
- padding-bottom: 28px;
362
- }
363
-
364
- .on-page-container h5 {
365
- text-transform: uppercase;
366
- letter-spacing: 1.5px;
367
- margin-bottom: 16px;
368
- font-size: 10px;
369
- font-weight: 600;
370
- color: var(--color-secondary);
371
- }
372
-
373
- .on-page-container .toc {
374
- list-style: none;
375
- line-height: 24px;
376
- padding-left: 0;
377
- width: 100%;
378
- font-size: 14px;
379
- }
380
-
381
- .on-page-container ol {
382
- padding-left: 0;
383
- list-style: none;
384
- width: 100%;
385
- }
386
-
387
- .on-page-container ol > li {
388
- display: flex;
389
- align-items: baseline;
390
- position: relative;
391
- }
392
-
393
- .on-page-container ol > li > a {
394
- transition: all .2s ease-out;
395
- color: var(--color-secondary);
396
- padding: 8px 0;
397
- display: flex;
398
- align-items: center;
399
- justify-content: space-between;
400
- width: 100%;
401
- overflow: hidden;
402
- text-overflow: ellipsis;
403
- white-space: initial;
404
- }
405
-
406
- .on-page-container ol > li:hover > a {
407
- transform: translateX(4px);
408
- }
409
-
410
- .on-page-main ol > li > a::after {
411
- position: absolute;
412
- right: 0;
413
- content: '';
414
- display: inline-block;
415
- width: 4px;
416
- height: 4px;
417
- border-right: 1px solid var(--color-secondary);
418
- border-bottom: 1px solid var(--color-secondary);
419
- transform: rotate(-45deg);
420
- }
421
-
422
- .on-page-list {
423
- margin-left: 8px;
424
- font-size: 12px;
425
- }
426
-
427
- .header-menu {
428
- display: flex;
429
- align-items: center;
430
- }
431
-
432
- .header-logo {
433
- flex-shrink: 0;
434
- margin-right: 24px;
435
- display: block;
436
- }
437
-
438
- .header-logo img {
439
- width: 48px;
440
- height: 48px;
441
- }
442
-
443
- .child-list {
444
- padding-left: 18px;
445
- }
446
-
447
-
448
- .breadcrumb a:hover {
449
- text-decoration: underline;
450
- }
451
-
452
- details > summary {
453
- cursor: pointer;
454
- list-style: none;
455
- }
456
-
457
- /*search-modal*/
458
- .search-modal {
459
- position: fixed;
460
- top: 0;
461
- left: 0;
462
- width: 100%;
463
- height: 100%;
464
- background: rgba(0,0,0,.4);
465
- display: none;
466
- overflow-y: auto;
467
- transition: all 0.3s linear;
468
- z-index: 999;
469
- }
470
-
471
- .show-modal {
472
- display: flex;
473
- z-index: 100;
474
- }
475
-
476
- .search-container {
477
- width: 100%;
478
- height: 100%;
479
- background-color: transparent;
480
- }
481
-
482
- .search-box {
483
- height: 72px;
484
- box-shadow: 0 8px 22px 0 rgb(37 44 97 / 15%), 0 4px 6px 0 rgb(93 100 148 / 20%);
485
- position: fixed;
486
- top: 0;
487
- width: 100%;
488
- }
489
-
490
- .close-modal-btn {
491
- opacity: .3;
492
- display: flex;
493
- align-items: center;
494
- justify-content: center;
495
- border-radius: 50%;
496
- border: 1px solid var(--color-text);
497
- position: absolute;
498
- right: 22px;
499
- top: 50%;
500
- transform: translateY(-50%);
501
- z-index: 8;
502
- width: 24px;
503
- height: 24px;
504
- cursor: pointer;
505
- }
506
-
507
- .close-modal-btn svg {
508
- width: 10px;
509
- height: 10px;
510
- fill: currentColor;
511
- }
512
-
513
-
514
- .search-box .ais-SearchBox-form {
515
- height: 100%;
516
- background-color: transparent;
517
- }
518
-
519
- .ais-Hits-item, .ais-InfiniteHits-item {
520
- background: var(--search-input-background) !important;
521
- }
522
-
523
- .search-box input {
524
- height: 72px !important;
525
- width: 100%;
526
- padding-left: 48px;
527
- padding-right: 16px;
528
- outline: none;
529
- display: flex;
530
- justify-content: flex-start;
531
- align-items: center;
532
- color: var(--color-text);
533
- background-color: var(--search-input-background);
534
- border-bottom-left-radius: 0 !important;
535
- border-bottom-right-radius: 0 !important;
536
- }
537
-
538
- .search-content {
539
- background-color: var(--search-input-background);
540
- }
541
-
542
- .search-box input::placeholder {
543
- opacity: 0.8;
544
- }
545
-
546
- .search-results {
547
- margin-top: 72px;
548
- }
549
-
550
- .search-content {
551
- height: 100%;
552
- width: 100%;
553
- }
554
-
555
- .search-result {
556
- padding: 24px 0;
557
- }
558
-
559
- .search-result h2 {
560
- padding-bottom: 32px;
561
- color: var(--color-secondary);
562
- }
563
-
564
- .ais-Hits--empty {
565
- padding-top: 32px;
566
- text-align: center;
567
- word-break: break-word;
568
- }
569
-
570
- .ais-Highlight-highlighted, .ais-Snippet-highlighted {
571
- background-color: var(--background-search-highlight) !important;
572
- color: var(--color-search-highlight) !important;
573
- }
574
-
575
- .content table td {
576
- max-width: 200px;
577
- min-width: 120px;
578
- white-space: initial;
579
- overflow-wrap: break-word;
580
- word-wrap: break-word;
581
- word-break: break-word;
582
- }
583
-
584
- @media screen and (min-width: 576px) {
585
- .date {
586
- display: flex;
587
- position: relative;
588
- text-transform: uppercase;
589
- letter-spacing: 1.5px;
590
- color: var(--color-secondary);
591
- font-size: 10px;
592
- font-weight: 600;
593
- }
594
-
595
- .date span::before {
596
- position: absolute;
597
- content: '';
598
- background-image: url("data:image/svg+xml,%3Csvg class='block h-full' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 22A11 11 0 1 1 22 11 11 11 0 0 1 11 22ZM11 2a9 9 0 1 0 9 9A9 9 0 0 0 11 2Z'%3E%3C/path%3E%3Cpath d='M15 14a.93.93 0 0 1-.45-.11l-4-2A1 1 0 0 1 10 11V5a1 1 0 0 1 2 0v5.38l3.45 1.73a1 1 0 0 1 .44 1.34A1 1 0 0 1 15 14Z'%3E%3C/path%3E%3C/svg%3E");
599
- left: -24px;
600
- width: 12px;
601
- height: 12px;
602
- }
603
-
604
- .content h2 {
605
- font-size: 24px;
606
- }
607
-
608
- .nav {
609
- padding-left: 32px;
610
- padding-right: 32px;
611
- }
612
- }
613
-
614
-
615
- @media screen and (min-width: 768px) {
616
- .main-content {
617
- padding: 0 56px 24px;
618
- }
619
-
620
- .main-container {
621
- padding-top: 120px;
622
- }
623
-
624
- .nav {
625
- padding-left: 56px;
626
- padding-right: 56px;
627
- }
628
-
629
- .content h1 {
630
- font-size: 30px;
631
- }
632
-
633
- .search-text {
634
- display: inline;
635
- }
636
- }
637
-
638
- @media screen and (min-width: 992px) {
639
- .hide-d {
640
- display: none;
641
- }
642
-
643
- .nav {
644
- height: auto;
645
- box-shadow: none;
646
- padding-right: 16px;
647
- z-index: 30;
648
- }
649
-
650
- .sidebar {
651
- width: 324px;
652
- display: flex;
653
- height: 100%;
654
- z-index: 20;
655
- }
656
-
657
- .close-btn {
658
- display: none;
659
- }
660
-
661
- .sidebar-content {
662
- padding-top: 24px;
663
- height: 100%;
664
- }
665
-
666
- .nav-list {
667
- margin-top: 0;
668
- }
669
-
670
- .main-container {
671
- margin-top: 48px;
672
- padding-top: 0;
673
- }
674
-
675
- .header-link {
676
- margin-top: 20px;
677
- }
678
-
679
- .header-link img {
680
- width: 180px;
681
- }
682
-
683
- .layout {
684
- display: grid;
685
- grid-template-columns: 324px 1fr;
686
- grid-template-rows: 72px 1fr;
687
- grid-gap: 0;
688
- }
689
-
690
- .header {
691
- grid-area: 1 / 2 / 2 / 3;
692
- z-index: 40;
693
- left: 324px;
694
- background-color: var(--search-input-background)
695
- }
696
-
697
- aside {
698
- grid-area: 1 / 1 / 3 / 2;
699
- position: fixed;
700
- top: 200px;
701
- left: 0;
702
- z-index: 40;
703
- height: 100%;
704
- width: 324px;
705
- }
706
-
707
- .main-container {
708
- grid-area: 2 / 2 / 3 / 3;
709
- }
710
-
711
- .sidebar-logo {
712
- position: sticky;
713
- top: 0;
714
- left: 0;
715
- z-index: 80;
716
- width: 324px;
717
- background-color: var(--sidebar-background);
718
- display: flex;
719
- align-items: center;
720
- justify-content: center;
721
- border-right: 1px solid var(--border);
722
- }
723
-
724
-
725
- .sidebar-logo svg {
726
- width: 32px;
727
- height: 32px;
728
- }
729
-
730
- .header-content {
731
- display: flex;
732
- height: 100%;
733
- }
734
-
735
- .nav {
736
- justify-content: flex-start;
737
- padding-left: 56px;
738
- z-index: 30;
739
- }
740
-
741
- .nav-list {
742
- padding-left: 0;
743
- }
744
-
745
- .content h1 {
746
- font-size: 30px;
747
- }
748
-
749
- .on-page--desktop ~ .on-page-list {
750
- margin-left: 0;
751
- }
752
-
753
- .search-box, .search-box input {
754
- border: none;
755
- font-size: 24px;
756
- }
757
-
758
- .search-box {
759
- border-bottom: 1px solid rgba(119,122,175,.1);
760
- box-shadow: none;
761
- }
762
-
763
- .search-box .ais-SearchBox-form {
764
- border-top-right-radius: 8px;
765
- border-top-left-radius: 8px;
766
- }
767
-
768
- .search-container {
769
- height: 580px;
770
- width: 780px;
771
- position: absolute;
772
- top: 50%;
773
- left: 50%;
774
- transform: translate(-50%, -50%);
775
- display: flex;
776
- flex-direction: column;
777
- }
778
-
779
- .search-content {
780
- border-radius: 8px;
781
- }
782
-
783
- .search-matches {
784
- max-height: 580px;
785
- overflow-y: auto;
786
- border-radius: 8px;
787
- }
788
-
789
- .content > ul, .content > ol {
790
- padding-left: 32px;
791
- }
792
-
793
- .content table td {
794
- max-width: 380px;
795
- }
796
-
797
- .sidebar-footer {
798
- position: sticky;
799
- }
800
-
801
- }
802
-
803
- @media screen and (min-width: 1200px) {
804
- .search-container {
805
- max-width: 1040px;
806
- }
807
- }
808
-
809
- @media screen and (min-width: 1458px) {
810
- .on-page--desktop ol {
811
- font-size: 12px;
812
- }
813
-
814
- .on-page--desktop ol li a {
815
- padding: 4px 0;
816
- }
817
-
818
- .on-page--desktop {
819
- width: 100%;
820
- position: relative;
821
- transition: all .3s ease-in;
822
- display: flex;
823
- justify-content: flex-end;
824
- }
825
-
826
- .on-page-fixed {
827
- position: fixed;
828
- max-width: 200px
829
- }
830
-
831
- .content {
832
- max-width: 750px;
833
- }
834
-
835
- .main-content {
836
- padding: 0 56px 24px;
837
-
838
- }
839
- }
840
-
841
- @media screen and (min-width: 1600px) {
842
- .layout {
843
- grid-template-columns: 380px 1fr;
844
- }
845
-
846
- .header {
847
- left: 380px;
848
- }
849
-
850
- .sidebar, aside, .sidebar-logo {
851
- width: 380px;
852
- }
853
-
854
- .sidebar-logo, .sidebar-content, .sidebar-footer {
855
- padding-left: 54px;
856
- padding-right: 54px;
857
- }
858
-
859
- .main-content {
860
- padding-left: 72px;
861
- padding-right: 72px;
862
- }
863
-
864
- .on-page--desktop {
865
- justify-content: center;
866
- }
867
-
868
- }
869
-
870
- @media screen and (min-width: 1800px) {
871
- .layout {
872
- grid-template-columns: 460px 1fr;
873
- }
874
-
875
- .header {
876
- left: 460px;
877
- }
878
-
879
- .sidebar, aside, .sidebar-logo {
880
- width: 460px;
881
- }
882
-
883
- .sidebar-logo, .sidebar-content, .sidebar-footer {
884
- padding-left: 88px;
885
- padding-right: 88px;
886
- }
887
-
888
- }
889
-
890
-
891
- @media screen and (min-width: 2400px) {
892
- .layout {
893
- grid-template-columns: 600px 1fr;
894
- }
895
-
896
- .header {
897
- left: 600px;
898
- }
899
-
900
- .sidebar, aside, .sidebar-logo {
901
- width: 600px;
902
- }
903
-
904
- .sidebar-logo, .sidebar-content, .sidebar-footer {
905
- padding-left: 120px;
906
- padding-right: 120px;
907
- }
908
-
909
- .content {
910
- max-width: 880px;
911
- }
912
- }