hot_docs 0.0.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.
- checksums.yaml +7 -0
- data/.rubocop.yml +8 -0
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +12 -0
- data/lib/hot_docs/version.rb +5 -0
- data/lib/hot_docs.rb +8 -0
- data/sig/hot_docs.rbs +4 -0
- data/website/.dockerignore +51 -0
- data/website/.gitattributes +9 -0
- data/website/.github/dependabot.yml +12 -0
- data/website/.github/images/hot_docs.svg +17 -0
- data/website/.github/workflows/ci.yml +90 -0
- data/website/.gitignore +37 -0
- data/website/.kamal/hooks/docker-setup.sample +3 -0
- data/website/.kamal/hooks/post-deploy.sample +14 -0
- data/website/.kamal/hooks/post-proxy-reboot.sample +3 -0
- data/website/.kamal/hooks/pre-build.sample +51 -0
- data/website/.kamal/hooks/pre-connect.sample +47 -0
- data/website/.kamal/hooks/pre-deploy.sample +109 -0
- data/website/.kamal/hooks/pre-proxy-reboot.sample +3 -0
- data/website/.kamal/secrets +17 -0
- data/website/.rubocop.yml +8 -0
- data/website/.ruby-version +1 -0
- data/website/Dockerfile +72 -0
- data/website/Gemfile +65 -0
- data/website/Gemfile.lock +394 -0
- data/website/LICENSE.txt +21 -0
- data/website/README.md +49 -0
- data/website/Rakefile +6 -0
- data/website/app/assets/images/.keep +0 -0
- data/website/app/assets/images/hot_docs_components_desktop.png +0 -0
- data/website/app/assets/images/hot_docs_components_mobile.png +0 -0
- data/website/app/assets/stylesheets/hot_docs.css +999 -0
- data/website/app/assets/stylesheets/website.css +245 -0
- data/website/app/controllers/application_controller.rb +4 -0
- data/website/app/controllers/concerns/.keep +0 -0
- data/website/app/controllers/hot_docs_controller.rb +3 -0
- data/website/app/helpers/application_helper.rb +25 -0
- data/website/app/helpers/hot_docs_helper.rb +99 -0
- data/website/app/javascript/application.js +3 -0
- data/website/app/javascript/controllers/accordion_controller.js +36 -0
- data/website/app/javascript/controllers/application.js +9 -0
- data/website/app/javascript/controllers/index.js +4 -0
- data/website/app/javascript/controllers/sidenav_controller.js +39 -0
- data/website/app/javascript/controllers/toc_controller.js +91 -0
- data/website/app/javascript/controllers/typewriter_controller.js +59 -0
- data/website/app/jobs/application_job.rb +7 -0
- data/website/app/mailers/application_mailer.rb +4 -0
- data/website/app/models/application_record.rb +3 -0
- data/website/app/models/concerns/.keep +0 -0
- data/website/app/views/hot_docs/_menu_row.html.erb +11 -0
- data/website/app/views/hot_docs/components.html.mderb +32 -0
- data/website/app/views/hot_docs/embedded.html.mderb +12 -0
- data/website/app/views/hot_docs/footer.html.mderb +13 -0
- data/website/app/views/hot_docs/helpers.html.mderb +33 -0
- data/website/app/views/hot_docs/index.html.erb +143 -0
- data/website/app/views/hot_docs/light_dark.html.mderb +29 -0
- data/website/app/views/hot_docs/markdown.html.mderb +27 -0
- data/website/app/views/hot_docs/nav.html.mderb +15 -0
- data/website/app/views/hot_docs/quickstart.html.mderb +11 -0
- data/website/app/views/hot_docs/search.html.mderb +7 -0
- data/website/app/views/hot_docs/standalone.html.mderb +11 -0
- data/website/app/views/hot_docs/static_export.html.mderb +7 -0
- data/website/app/views/hot_docs/toc.html.mderb +11 -0
- data/website/app/views/layouts/hot_docs.html.erb +175 -0
- data/website/app/views/layouts/mailer.html.erb +13 -0
- data/website/app/views/layouts/mailer.text.erb +1 -0
- data/website/app/views/layouts/website.html.erb +175 -0
- data/website/app/views/pwa/manifest.json.erb +22 -0
- data/website/app/views/pwa/service-worker.js +26 -0
- data/website/bin/brakeman +7 -0
- data/website/bin/bundle +109 -0
- data/website/bin/dev +2 -0
- data/website/bin/docker-entrypoint +14 -0
- data/website/bin/embed_hot_docs +33 -0
- data/website/bin/importmap +4 -0
- data/website/bin/jobs +6 -0
- data/website/bin/kamal +27 -0
- data/website/bin/rails +4 -0
- data/website/bin/rake +4 -0
- data/website/bin/rubocop +8 -0
- data/website/bin/setup +34 -0
- data/website/bin/thrust +5 -0
- data/website/config/application.rb +27 -0
- data/website/config/boot.rb +4 -0
- data/website/config/cable.yml +17 -0
- data/website/config/cache.yml +16 -0
- data/website/config/credentials.yml.enc +1 -0
- data/website/config/database.yml +41 -0
- data/website/config/deploy.yml +116 -0
- data/website/config/environment.rb +5 -0
- data/website/config/environments/development.rb +72 -0
- data/website/config/environments/production.rb +90 -0
- data/website/config/environments/test.rb +53 -0
- data/website/config/importmap.rb +7 -0
- data/website/config/initializers/assets.rb +7 -0
- data/website/config/initializers/content_security_policy.rb +25 -0
- data/website/config/initializers/filter_parameter_logging.rb +8 -0
- data/website/config/initializers/inflections.rb +16 -0
- data/website/config/initializers/markdown.mjs +26 -0
- data/website/config/initializers/markdown.rb +35 -0
- data/website/config/locales/en.yml +31 -0
- data/website/config/puma.rb +41 -0
- data/website/config/queue.yml +18 -0
- data/website/config/recurring.yml +10 -0
- data/website/config/routes.rb +28 -0
- data/website/config/storage.yml +34 -0
- data/website/config.ru +6 -0
- data/website/db/cable_schema.rb +11 -0
- data/website/db/cache_schema.rb +14 -0
- data/website/db/queue_schema.rb +129 -0
- data/website/db/seeds.rb +9 -0
- data/website/lib/tasks/.keep +0 -0
- data/website/log/.keep +0 -0
- data/website/public/400.html +114 -0
- data/website/public/404.html +114 -0
- data/website/public/406-unsupported-browser.html +114 -0
- data/website/public/422.html +114 -0
- data/website/public/500.html +114 -0
- data/website/public/apple-touch-icon.png +0 -0
- data/website/public/favicon.ico +0 -0
- data/website/public/hot_docs.svg +17 -0
- data/website/public/robots.txt +1 -0
- data/website/script/.keep +0 -0
- data/website/storage/.keep +0 -0
- data/website/test/application_system_test_case.rb +5 -0
- data/website/test/controllers/.keep +0 -0
- data/website/test/fixtures/files/.keep +0 -0
- data/website/test/helpers/.keep +0 -0
- data/website/test/helpers/hot_docs_helper_test.rb +94 -0
- data/website/test/integration/.keep +0 -0
- data/website/test/mailers/.keep +0 -0
- data/website/test/models/.keep +0 -0
- data/website/test/system/.keep +0 -0
- data/website/test/test_helper.rb +15 -0
- data/website/tmp/.keep +0 -0
- data/website/tmp/pids/.keep +0 -0
- data/website/tmp/storage/.keep +0 -0
- data/website/vendor/.keep +0 -0
- data/website/vendor/javascript/.keep +0 -0
- metadata +183 -0
@@ -0,0 +1,999 @@
|
|
1
|
+
/* CSS: RESET */
|
2
|
+
|
3
|
+
/* https://unpkg.com/tailwindcss@3.4.17/src/css/preflight.css */
|
4
|
+
|
5
|
+
/*
|
6
|
+
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
7
|
+
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
|
8
|
+
*/
|
9
|
+
|
10
|
+
*,
|
11
|
+
::before,
|
12
|
+
::after {
|
13
|
+
box-sizing: border-box; /* 1 */
|
14
|
+
border-width: 0; /* 2 */
|
15
|
+
border-style: solid; /* 2 */
|
16
|
+
border-color: currentColor; /* 2 */
|
17
|
+
}
|
18
|
+
|
19
|
+
::before,
|
20
|
+
::after {
|
21
|
+
--tw-content: '';
|
22
|
+
}
|
23
|
+
|
24
|
+
/*
|
25
|
+
1. Use a consistent sensible line-height in all browsers.
|
26
|
+
2. Prevent adjustments of font size after orientation changes in iOS.
|
27
|
+
3. Use a more readable tab size.
|
28
|
+
4. Use the user's configured `sans` font-family by default.
|
29
|
+
5. Use the user's configured `sans` font-feature-settings by default.
|
30
|
+
6. Use the user's configured `sans` font-variation-settings by default.
|
31
|
+
7. Disable tap highlights on iOS
|
32
|
+
*/
|
33
|
+
|
34
|
+
html,
|
35
|
+
:host {
|
36
|
+
line-height: 1.5; /* 1 */
|
37
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
38
|
+
-moz-tab-size: 4; /* 3 */
|
39
|
+
tab-size: 4; /* 3 */
|
40
|
+
font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
|
41
|
+
font-feature-settings: normal; /* 5 */
|
42
|
+
font-variation-settings: normal; /* 6 */
|
43
|
+
-webkit-tap-highlight-color: transparent; /* 7 */
|
44
|
+
}
|
45
|
+
|
46
|
+
/*
|
47
|
+
1. Remove the margin in all browsers.
|
48
|
+
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
|
49
|
+
*/
|
50
|
+
|
51
|
+
body {
|
52
|
+
margin: 0; /* 1 */
|
53
|
+
line-height: inherit; /* 2 */
|
54
|
+
}
|
55
|
+
|
56
|
+
/*
|
57
|
+
1. Add the correct height in Firefox.
|
58
|
+
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
59
|
+
3. Ensure horizontal rules are visible by default.
|
60
|
+
*/
|
61
|
+
|
62
|
+
hr {
|
63
|
+
height: 0; /* 1 */
|
64
|
+
color: inherit; /* 2 */
|
65
|
+
border-top-width: 1px; /* 3 */
|
66
|
+
}
|
67
|
+
|
68
|
+
/*
|
69
|
+
Add the correct text decoration in Chrome, Edge, and Safari.
|
70
|
+
*/
|
71
|
+
|
72
|
+
abbr:where([title]) {
|
73
|
+
text-decoration: underline dotted;
|
74
|
+
}
|
75
|
+
|
76
|
+
/*
|
77
|
+
Remove the default font size and weight for headings.
|
78
|
+
*/
|
79
|
+
|
80
|
+
h1,
|
81
|
+
h2,
|
82
|
+
h3,
|
83
|
+
h4,
|
84
|
+
h5,
|
85
|
+
h6 {
|
86
|
+
font-size: inherit;
|
87
|
+
font-weight: inherit;
|
88
|
+
}
|
89
|
+
|
90
|
+
/*
|
91
|
+
Reset links to optimize for opt-in styling instead of opt-out.
|
92
|
+
*/
|
93
|
+
|
94
|
+
a {
|
95
|
+
color: inherit;
|
96
|
+
text-decoration: inherit;
|
97
|
+
}
|
98
|
+
|
99
|
+
/*
|
100
|
+
Add the correct font weight in Edge and Safari.
|
101
|
+
*/
|
102
|
+
|
103
|
+
b,
|
104
|
+
strong {
|
105
|
+
font-weight: bolder;
|
106
|
+
}
|
107
|
+
|
108
|
+
/*
|
109
|
+
1. Use the user's configured `mono` font-family by default.
|
110
|
+
2. Use the user's configured `mono` font-feature-settings by default.
|
111
|
+
3. Use the user's configured `mono` font-variation-settings by default.
|
112
|
+
4. Correct the odd `em` font sizing in all browsers.
|
113
|
+
*/
|
114
|
+
|
115
|
+
code,
|
116
|
+
kbd,
|
117
|
+
samp,
|
118
|
+
pre {
|
119
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
|
120
|
+
font-feature-settings: normal; /* 2 */
|
121
|
+
font-variation-settings: normal; /* 3 */
|
122
|
+
font-size: 1em; /* 4 */
|
123
|
+
}
|
124
|
+
|
125
|
+
/*
|
126
|
+
Add the correct font size in all browsers.
|
127
|
+
*/
|
128
|
+
|
129
|
+
small {
|
130
|
+
font-size: 80%;
|
131
|
+
}
|
132
|
+
|
133
|
+
/*
|
134
|
+
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
|
135
|
+
*/
|
136
|
+
|
137
|
+
sub,
|
138
|
+
sup {
|
139
|
+
font-size: 75%;
|
140
|
+
line-height: 0;
|
141
|
+
position: relative;
|
142
|
+
vertical-align: baseline;
|
143
|
+
}
|
144
|
+
|
145
|
+
sub {
|
146
|
+
bottom: -0.25em;
|
147
|
+
}
|
148
|
+
|
149
|
+
sup {
|
150
|
+
top: -0.5em;
|
151
|
+
}
|
152
|
+
|
153
|
+
/*
|
154
|
+
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
|
155
|
+
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
156
|
+
3. Remove gaps between table borders by default.
|
157
|
+
*/
|
158
|
+
|
159
|
+
table {
|
160
|
+
text-indent: 0; /* 1 */
|
161
|
+
border-color: inherit; /* 2 */
|
162
|
+
border-collapse: collapse; /* 3 */
|
163
|
+
}
|
164
|
+
|
165
|
+
/*
|
166
|
+
1. Change the font styles in all browsers.
|
167
|
+
2. Remove the margin in Firefox and Safari.
|
168
|
+
3. Remove default padding in all browsers.
|
169
|
+
*/
|
170
|
+
|
171
|
+
button,
|
172
|
+
input,
|
173
|
+
optgroup,
|
174
|
+
select,
|
175
|
+
textarea {
|
176
|
+
font-family: inherit; /* 1 */
|
177
|
+
font-feature-settings: inherit; /* 1 */
|
178
|
+
font-variation-settings: inherit; /* 1 */
|
179
|
+
font-size: 100%; /* 1 */
|
180
|
+
font-weight: inherit; /* 1 */
|
181
|
+
line-height: inherit; /* 1 */
|
182
|
+
letter-spacing: inherit; /* 1 */
|
183
|
+
color: inherit; /* 1 */
|
184
|
+
margin: 0; /* 2 */
|
185
|
+
padding: 0; /* 3 */
|
186
|
+
}
|
187
|
+
|
188
|
+
/*
|
189
|
+
Remove the inheritance of text transform in Edge and Firefox.
|
190
|
+
*/
|
191
|
+
|
192
|
+
button,
|
193
|
+
select {
|
194
|
+
text-transform: none;
|
195
|
+
}
|
196
|
+
|
197
|
+
/*
|
198
|
+
1. Correct the inability to style clickable types in iOS and Safari.
|
199
|
+
2. Remove default button styles.
|
200
|
+
*/
|
201
|
+
|
202
|
+
button,
|
203
|
+
input:where([type='button']),
|
204
|
+
input:where([type='reset']),
|
205
|
+
input:where([type='submit']) {
|
206
|
+
-webkit-appearance: button; /* 1 */
|
207
|
+
background-color: transparent; /* 2 */
|
208
|
+
background-image: none; /* 2 */
|
209
|
+
}
|
210
|
+
|
211
|
+
/*
|
212
|
+
Use the modern Firefox focus style for all focusable elements.
|
213
|
+
*/
|
214
|
+
|
215
|
+
:-moz-focusring {
|
216
|
+
outline: auto;
|
217
|
+
}
|
218
|
+
|
219
|
+
/*
|
220
|
+
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
221
|
+
*/
|
222
|
+
|
223
|
+
:-moz-ui-invalid {
|
224
|
+
box-shadow: none;
|
225
|
+
}
|
226
|
+
|
227
|
+
/*
|
228
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
229
|
+
*/
|
230
|
+
|
231
|
+
progress {
|
232
|
+
vertical-align: baseline;
|
233
|
+
}
|
234
|
+
|
235
|
+
/*
|
236
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
237
|
+
*/
|
238
|
+
|
239
|
+
::-webkit-inner-spin-button,
|
240
|
+
::-webkit-outer-spin-button {
|
241
|
+
height: auto;
|
242
|
+
}
|
243
|
+
|
244
|
+
/*
|
245
|
+
1. Correct the odd appearance in Chrome and Safari.
|
246
|
+
2. Correct the outline style in Safari.
|
247
|
+
*/
|
248
|
+
|
249
|
+
[type='search'] {
|
250
|
+
-webkit-appearance: textfield; /* 1 */
|
251
|
+
outline-offset: -2px; /* 2 */
|
252
|
+
}
|
253
|
+
|
254
|
+
/*
|
255
|
+
Remove the inner padding in Chrome and Safari on macOS.
|
256
|
+
*/
|
257
|
+
|
258
|
+
::-webkit-search-decoration {
|
259
|
+
-webkit-appearance: none;
|
260
|
+
}
|
261
|
+
|
262
|
+
/*
|
263
|
+
1. Correct the inability to style clickable types in iOS and Safari.
|
264
|
+
2. Change font properties to `inherit` in Safari.
|
265
|
+
*/
|
266
|
+
|
267
|
+
::-webkit-file-upload-button {
|
268
|
+
-webkit-appearance: button; /* 1 */
|
269
|
+
font: inherit; /* 2 */
|
270
|
+
}
|
271
|
+
|
272
|
+
/*
|
273
|
+
Add the correct display in Chrome and Safari.
|
274
|
+
*/
|
275
|
+
|
276
|
+
summary {
|
277
|
+
display: list-item;
|
278
|
+
}
|
279
|
+
|
280
|
+
/*
|
281
|
+
Removes the default spacing and border for appropriate elements.
|
282
|
+
*/
|
283
|
+
|
284
|
+
blockquote,
|
285
|
+
dl,
|
286
|
+
dd,
|
287
|
+
h1,
|
288
|
+
h2,
|
289
|
+
h3,
|
290
|
+
h4,
|
291
|
+
h5,
|
292
|
+
h6,
|
293
|
+
hr,
|
294
|
+
figure,
|
295
|
+
p,
|
296
|
+
pre {
|
297
|
+
margin: 0;
|
298
|
+
}
|
299
|
+
|
300
|
+
fieldset {
|
301
|
+
margin: 0;
|
302
|
+
padding: 0;
|
303
|
+
}
|
304
|
+
|
305
|
+
legend {
|
306
|
+
padding: 0;
|
307
|
+
}
|
308
|
+
|
309
|
+
ol,
|
310
|
+
ul,
|
311
|
+
menu {
|
312
|
+
list-style: none;
|
313
|
+
margin: 0;
|
314
|
+
padding: 0;
|
315
|
+
}
|
316
|
+
|
317
|
+
/*
|
318
|
+
Reset default styling for dialogs.
|
319
|
+
*/
|
320
|
+
dialog {
|
321
|
+
padding: 0;
|
322
|
+
}
|
323
|
+
|
324
|
+
/*
|
325
|
+
Prevent resizing textareas horizontally by default.
|
326
|
+
*/
|
327
|
+
|
328
|
+
textarea {
|
329
|
+
resize: vertical;
|
330
|
+
}
|
331
|
+
|
332
|
+
/*
|
333
|
+
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
334
|
+
2. Set the default placeholder color to the user's configured gray 400 color.
|
335
|
+
*/
|
336
|
+
|
337
|
+
input::placeholder,
|
338
|
+
textarea::placeholder {
|
339
|
+
opacity: 1; /* 1 */
|
340
|
+
color: #9ca3af; /* 2 */
|
341
|
+
}
|
342
|
+
|
343
|
+
/*
|
344
|
+
Set the default cursor for buttons.
|
345
|
+
*/
|
346
|
+
|
347
|
+
button,
|
348
|
+
[role="button"] {
|
349
|
+
cursor: pointer;
|
350
|
+
}
|
351
|
+
|
352
|
+
/*
|
353
|
+
Make sure disabled buttons don't get the pointer cursor.
|
354
|
+
*/
|
355
|
+
:disabled {
|
356
|
+
cursor: default;
|
357
|
+
}
|
358
|
+
|
359
|
+
/*
|
360
|
+
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
361
|
+
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
362
|
+
This can trigger a poorly considered lint error in some tools but is included by design.
|
363
|
+
*/
|
364
|
+
|
365
|
+
img,
|
366
|
+
svg,
|
367
|
+
video,
|
368
|
+
canvas,
|
369
|
+
audio,
|
370
|
+
iframe,
|
371
|
+
embed,
|
372
|
+
object {
|
373
|
+
display: block; /* 1 */
|
374
|
+
vertical-align: middle; /* 2 */
|
375
|
+
}
|
376
|
+
|
377
|
+
/*
|
378
|
+
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
379
|
+
*/
|
380
|
+
|
381
|
+
img,
|
382
|
+
video {
|
383
|
+
max-width: 100%;
|
384
|
+
height: auto;
|
385
|
+
}
|
386
|
+
|
387
|
+
/* Make elements with the HTML hidden attribute stay hidden by default */
|
388
|
+
[hidden]:where(:not([hidden="until-found"])) {
|
389
|
+
display: none;
|
390
|
+
}
|
391
|
+
|
392
|
+
/* CSS: UNRESET */
|
393
|
+
|
394
|
+
.article * {
|
395
|
+
all: revert-layer; /* With rever svg path is unset */
|
396
|
+
}
|
397
|
+
|
398
|
+
/* CSS: GLOBAL */
|
399
|
+
|
400
|
+
:root {
|
401
|
+
--background-color: white;
|
402
|
+
--column-border-color: #dadada;
|
403
|
+
--content-padding-bottom: 2rem;
|
404
|
+
--link-active-color: black;
|
405
|
+
--link-color: #707070;
|
406
|
+
--nav-height: 3.75rem;
|
407
|
+
--text-color: #1c1e21;
|
408
|
+
}
|
409
|
+
|
410
|
+
[data-theme=dark]:root {
|
411
|
+
--background-color: #1b1b1d;
|
412
|
+
--column-border-color: #535353;
|
413
|
+
--link-active-color: white;
|
414
|
+
--link-color: #909090;
|
415
|
+
--text-color: #e3e1de;
|
416
|
+
}
|
417
|
+
|
418
|
+
html {
|
419
|
+
-webkit-font-smoothing: antialiased;
|
420
|
+
background-color: var(--background-color);
|
421
|
+
color: var(--text-color);
|
422
|
+
scroll-padding-top: calc(var(--nav-height) + 0.2rem);
|
423
|
+
text-rendering: optimizelegibility;
|
424
|
+
}
|
425
|
+
|
426
|
+
/* Sticky footer */
|
427
|
+
|
428
|
+
html, body {
|
429
|
+
min-height: 100vh;
|
430
|
+
}
|
431
|
+
|
432
|
+
body {
|
433
|
+
display: flex;
|
434
|
+
flex-direction: column;
|
435
|
+
}
|
436
|
+
|
437
|
+
/* CSS: NAV */
|
438
|
+
|
439
|
+
:root {
|
440
|
+
--nav-background-color: white;
|
441
|
+
--nav-link-active-color: var(--link-active-color);
|
442
|
+
--nav-link-color: var(--link-color);
|
443
|
+
--nav-padding-horizontal: 1rem;
|
444
|
+
--nav-padding-vertical: 0.5rem;
|
445
|
+
--nav-shadow: 0 1px 2px 0 #0000001a;
|
446
|
+
--nav-title-color: #1c1e21;
|
447
|
+
--nav-toggle-color: rgb(28, 30, 33);
|
448
|
+
--sidenav-padding-horizontal: 0.75rem;
|
449
|
+
}
|
450
|
+
|
451
|
+
[data-theme=dark]:root {
|
452
|
+
--nav-background-color: #242526;
|
453
|
+
--nav-link-active-color: var(--link-active-color);
|
454
|
+
--nav-link-color: var(--link-color);
|
455
|
+
--nav-title-color: #e3e1de;
|
456
|
+
--nav-toggle-color: rgb(227, 225, 222);
|
457
|
+
}
|
458
|
+
|
459
|
+
/* Added to <body> */
|
460
|
+
.sidenav--open {
|
461
|
+
overflow: hidden;
|
462
|
+
}
|
463
|
+
|
464
|
+
.nav {
|
465
|
+
align-items: center;
|
466
|
+
background-color: var(--nav-background-color);
|
467
|
+
box-shadow: var(--nav-shadow);
|
468
|
+
display: flex;
|
469
|
+
flex: 0 0 auto;
|
470
|
+
height: var(--nav-height);
|
471
|
+
justify-content: space-between;
|
472
|
+
padding: var(--nav-padding-vertical) var(--nav-padding-horizontal);
|
473
|
+
position: sticky;
|
474
|
+
top: 0;
|
475
|
+
z-index: 10;
|
476
|
+
}
|
477
|
+
|
478
|
+
.nav__section {
|
479
|
+
align-items: center;
|
480
|
+
display: flex;
|
481
|
+
gap: 1.5rem;
|
482
|
+
}
|
483
|
+
|
484
|
+
.nav__links {
|
485
|
+
display: none;
|
486
|
+
|
487
|
+
@media (min-width: 64rem) {
|
488
|
+
align-items: center;
|
489
|
+
display: flex;
|
490
|
+
gap: 1.5rem;
|
491
|
+
}
|
492
|
+
}
|
493
|
+
|
494
|
+
.nav__link {
|
495
|
+
color: var(--nav-link-color);
|
496
|
+
|
497
|
+
&.active {
|
498
|
+
color: var(--nav-link-active-color);
|
499
|
+
}
|
500
|
+
|
501
|
+
&:hover {
|
502
|
+
color: var(--nav-link-active-color);
|
503
|
+
}
|
504
|
+
}
|
505
|
+
|
506
|
+
.nav__brand {
|
507
|
+
align-items: center;
|
508
|
+
display: flex;
|
509
|
+
gap: 0.5rem;
|
510
|
+
}
|
511
|
+
|
512
|
+
.nav__logo-wrapper {
|
513
|
+
height: 2rem;
|
514
|
+
width: 2rem;
|
515
|
+
}
|
516
|
+
|
517
|
+
.nav__logo {
|
518
|
+
height: 100%;
|
519
|
+
width: 100%;
|
520
|
+
}
|
521
|
+
|
522
|
+
.nav__title {
|
523
|
+
color: var(--nav-title-color);
|
524
|
+
font-weight: bold;
|
525
|
+
}
|
526
|
+
|
527
|
+
.nav__toggle {
|
528
|
+
color: var(--nav-toggle-color);
|
529
|
+
height: 1.5rem;
|
530
|
+
width: 1.5rem;
|
531
|
+
|
532
|
+
@media (min-width: 64rem) {
|
533
|
+
display: none;
|
534
|
+
}
|
535
|
+
}
|
536
|
+
|
537
|
+
.sidenav-backdrop {
|
538
|
+
background-color: rgba(0, 0, 0, .6);
|
539
|
+
inset: 0;
|
540
|
+
opacity: 0;
|
541
|
+
position: fixed;
|
542
|
+
transition-duration: 0.2s;
|
543
|
+
transition-property: visibility, opacity;
|
544
|
+
transition-timing-function: ease-in-out;
|
545
|
+
visibility: hidden;
|
546
|
+
}
|
547
|
+
|
548
|
+
.sidenav--open .sidenav-backdrop {
|
549
|
+
opacity: 1;
|
550
|
+
visibility: visible;
|
551
|
+
}
|
552
|
+
|
553
|
+
.sidenav {
|
554
|
+
background-color: var(--nav-background-color);
|
555
|
+
bottom: 0;
|
556
|
+
left: 0;
|
557
|
+
opacity: 0;
|
558
|
+
overflow-x: hidden;
|
559
|
+
position: fixed;
|
560
|
+
top: 0;
|
561
|
+
transform: translate(-100%);
|
562
|
+
transition-duration: 0.2s;
|
563
|
+
transition-property: transform, visibility, opacity;
|
564
|
+
transition-timing-function: ease-in-out;
|
565
|
+
visibility: hidden;
|
566
|
+
width: 85vw;
|
567
|
+
}
|
568
|
+
|
569
|
+
.sidenav--open .sidenav {
|
570
|
+
opacity: 1;
|
571
|
+
transform: translate(0, 0);
|
572
|
+
visibility: visible;
|
573
|
+
}
|
574
|
+
|
575
|
+
.sidenav__header {
|
576
|
+
align-items: center;
|
577
|
+
background-color: var(--nav-background-color);
|
578
|
+
box-shadow: var(--nav-shadow);
|
579
|
+
display: flex;
|
580
|
+
height: var(--nav-height);
|
581
|
+
justify-content: space-between;
|
582
|
+
padding: var(--nav-padding-vertical) var(--nav-padding-horizontal);
|
583
|
+
position: sticky;
|
584
|
+
top: 0;
|
585
|
+
z-index: 10;
|
586
|
+
}
|
587
|
+
|
588
|
+
.sidenav__toggle {
|
589
|
+
color: var(--nav-toggle-color);
|
590
|
+
height: 1rem;
|
591
|
+
width: 1rem;
|
592
|
+
}
|
593
|
+
|
594
|
+
.sidenav__sections {
|
595
|
+
display: flex;
|
596
|
+
transform: translate(-85vw);
|
597
|
+
transition-duration: 0.2s;
|
598
|
+
transition-property: transform;
|
599
|
+
transition-timing-function: ease-in-out;
|
600
|
+
}
|
601
|
+
|
602
|
+
.sidenav__sections--main {
|
603
|
+
transform: translate(0);
|
604
|
+
}
|
605
|
+
|
606
|
+
.sidenav__section {
|
607
|
+
flex-shrink: 0;
|
608
|
+
padding: 0.5rem;
|
609
|
+
width: 85vw;
|
610
|
+
}
|
611
|
+
|
612
|
+
.sidenav__back-button {
|
613
|
+
font-weight: bold;
|
614
|
+
}
|
615
|
+
|
616
|
+
/* CSS: MENU */
|
617
|
+
|
618
|
+
:root {
|
619
|
+
--menu-accordion-color: #7f7f7f;
|
620
|
+
--menu-border-color: var(--column-border-color);
|
621
|
+
--menu-link-active-color: var(--link-active-color);
|
622
|
+
--menu-link-hover-background-color: rgba(0, 0, 0, .05);
|
623
|
+
--menu-link-color: var(--link-color);
|
624
|
+
}
|
625
|
+
|
626
|
+
[data-theme=dark]:root {
|
627
|
+
--menu-accordion-color: #a0a0a0;
|
628
|
+
--menu-link-active-color: var(--link-active-color);
|
629
|
+
--menu-link-hover-background-color: rgba(255, 255, 255, .05);
|
630
|
+
--menu-link-color: var(--link-color);
|
631
|
+
}
|
632
|
+
|
633
|
+
.menu {
|
634
|
+
border-right: 1px solid var(--menu-border-color);
|
635
|
+
display: none;
|
636
|
+
width: 20rem;
|
637
|
+
|
638
|
+
@media (min-width: 64rem) {
|
639
|
+
display: initial;
|
640
|
+
}
|
641
|
+
}
|
642
|
+
|
643
|
+
.menu__sections {
|
644
|
+
padding-bottom: var(--content-padding-bottom);
|
645
|
+
position: sticky;
|
646
|
+
top: var(--nav-height);
|
647
|
+
}
|
648
|
+
|
649
|
+
.menu__section {
|
650
|
+
padding: 0.5rem;
|
651
|
+
}
|
652
|
+
|
653
|
+
.menu__section .menu__section {
|
654
|
+
display: none;
|
655
|
+
padding: 0;
|
656
|
+
padding-left: 1.5rem;
|
657
|
+
}
|
658
|
+
|
659
|
+
.menu__row--expanded ~ .menu__section {
|
660
|
+
display: revert;
|
661
|
+
}
|
662
|
+
|
663
|
+
.menu__row {
|
664
|
+
align-items: center;
|
665
|
+
display: flex;
|
666
|
+
height: 2.5rem;
|
667
|
+
justify-content: space-between;
|
668
|
+
}
|
669
|
+
|
670
|
+
.menu__link {
|
671
|
+
border-radius: 0.25rem;
|
672
|
+
color: var(--menu-link-color);
|
673
|
+
display: inline-block;
|
674
|
+
flex: 1 0 0;
|
675
|
+
overflow: hidden;
|
676
|
+
padding: 0.375rem 1rem;
|
677
|
+
text-overflow: ellipsis;
|
678
|
+
white-space: nowrap;
|
679
|
+
|
680
|
+
&.active {
|
681
|
+
color: var(--menu-link-active-color);
|
682
|
+
}
|
683
|
+
|
684
|
+
&:hover {
|
685
|
+
background-color: var(--menu-link-hover-background-color);
|
686
|
+
}
|
687
|
+
}
|
688
|
+
|
689
|
+
.menu__toggle {
|
690
|
+
align-items: center;
|
691
|
+
align-self: stretch;
|
692
|
+
border-radius: 0.25rem;
|
693
|
+
display: flex;
|
694
|
+
flex: 0 0 auto;
|
695
|
+
justify-content: center;
|
696
|
+
|
697
|
+
&:hover {
|
698
|
+
background-color: var(--menu-link-hover-background-color);
|
699
|
+
}
|
700
|
+
}
|
701
|
+
|
702
|
+
/* Do not display the toggle... */
|
703
|
+
.menu__toggle {
|
704
|
+
display: none;
|
705
|
+
}
|
706
|
+
|
707
|
+
/* ...unless it has a sibling section. */
|
708
|
+
.menu__row:has(~ .menu__section) .menu__toggle {
|
709
|
+
display: revert;
|
710
|
+
}
|
711
|
+
|
712
|
+
.menu__toggle-icon {
|
713
|
+
color: var(--menu-accordion-color);
|
714
|
+
transform: rotate(90deg);
|
715
|
+
height: 2rem;
|
716
|
+
width: 2rem;
|
717
|
+
}
|
718
|
+
|
719
|
+
.menu__row--expanded .menu__toggle-icon {
|
720
|
+
transform: rotate(180deg);
|
721
|
+
}
|
722
|
+
|
723
|
+
/* CSS: CONTENT */
|
724
|
+
|
725
|
+
.content {
|
726
|
+
display: flex;
|
727
|
+
flex: 1 0 auto;
|
728
|
+
}
|
729
|
+
|
730
|
+
.main {
|
731
|
+
display: flex;
|
732
|
+
flex-grow: 1;
|
733
|
+
max-width: 100%;
|
734
|
+
padding-bottom: var(--content-padding-bottom);
|
735
|
+
|
736
|
+
@media (min-width: 64rem) {
|
737
|
+
width: calc(100% - 20rem);
|
738
|
+
}
|
739
|
+
}
|
740
|
+
|
741
|
+
.central {
|
742
|
+
flex-grow: 1;
|
743
|
+
max-width: 100%;
|
744
|
+
padding-inline: var(--nav-padding-horizontal);
|
745
|
+
|
746
|
+
@media (min-width: 64rem) {
|
747
|
+
padding-inline: 2rem;
|
748
|
+
width: 75%;
|
749
|
+
}
|
750
|
+
}
|
751
|
+
|
752
|
+
/* CSS: TOC */
|
753
|
+
|
754
|
+
:root {
|
755
|
+
--sidetoc-code-background-color: var(--toc-code-background-color);
|
756
|
+
--sidetoc-code-border-color: var(--toc-code-border-color);
|
757
|
+
--sidetoc-link-color: var(--link-color);
|
758
|
+
--sidetoc-link-active-color: var(--link-active-color);
|
759
|
+
--toc-background-color: #e9e9e9;
|
760
|
+
--toc-code-background-color: #eee;
|
761
|
+
--toc-code-border-color: #00000022;
|
762
|
+
--toc-divider-color: #b0b0b0;
|
763
|
+
--toc-link-active-color: black;
|
764
|
+
--toc-link-color: #606060;
|
765
|
+
}
|
766
|
+
|
767
|
+
[data-theme=dark]:root {
|
768
|
+
--sidetoc-code-background-color: var(--toc-code-background-color);
|
769
|
+
--sidetoc-code-border-color: var(--toc-code-border-color);
|
770
|
+
--sidetoc-link-color: var(--link-color);
|
771
|
+
--sidetoc-link-active-color: var(--link-active-color);
|
772
|
+
--toc-background-color: #444444;
|
773
|
+
--toc-code-background-color: #2b2b2b;
|
774
|
+
--toc-code-border-color: #ffffff22;
|
775
|
+
--toc-divider-color: #909090;
|
776
|
+
--toc-link-active-color: white;
|
777
|
+
--toc-link-color: #c0c0c0;
|
778
|
+
}
|
779
|
+
|
780
|
+
.toc {
|
781
|
+
background-color: var(--toc-background-color);
|
782
|
+
border-radius: 5px;
|
783
|
+
cursor: pointer;
|
784
|
+
margin-block: 1rem;
|
785
|
+
user-select: none;
|
786
|
+
|
787
|
+
@media (min-width: 85rem) {
|
788
|
+
display: none;
|
789
|
+
}
|
790
|
+
|
791
|
+
&::details-content {
|
792
|
+
height: 0;
|
793
|
+
overflow: hidden;
|
794
|
+
transition-property: height, content-visibility;
|
795
|
+
transition-duration: 0.5s;
|
796
|
+
transition-behavior: allow-discrete;
|
797
|
+
}
|
798
|
+
|
799
|
+
&[open]::details-content {
|
800
|
+
height: auto;
|
801
|
+
/* On supported browsers, allow transition to height: auto; */
|
802
|
+
height: calc-size(auto, size);
|
803
|
+
}
|
804
|
+
}
|
805
|
+
|
806
|
+
.toc__label {
|
807
|
+
padding: 0.3rem 0.6rem;
|
808
|
+
}
|
809
|
+
|
810
|
+
.toc__entries {
|
811
|
+
border-top: 1px solid var(--toc-divider-color);
|
812
|
+
display: flex;
|
813
|
+
flex-direction: column;
|
814
|
+
font-size: 0.9rem;
|
815
|
+
padding: 0.5rem 0.6rem;
|
816
|
+
gap: 0.4rem;
|
817
|
+
}
|
818
|
+
|
819
|
+
.toc__link {
|
820
|
+
color: var(--toc-link-color);
|
821
|
+
display: inline-block;
|
822
|
+
|
823
|
+
&.h2 {
|
824
|
+
margin-left: 1rem;
|
825
|
+
}
|
826
|
+
|
827
|
+
&.h3 {
|
828
|
+
margin-left: 2rem;
|
829
|
+
}
|
830
|
+
|
831
|
+
&.h4 {
|
832
|
+
margin-left: 3rem;
|
833
|
+
}
|
834
|
+
|
835
|
+
&.h5 {
|
836
|
+
margin-left: 4rem;
|
837
|
+
}
|
838
|
+
|
839
|
+
&.h6 {
|
840
|
+
margin-left: 5rem;
|
841
|
+
}
|
842
|
+
|
843
|
+
&.active {
|
844
|
+
color: var(--toc-link-active-color);
|
845
|
+
}
|
846
|
+
|
847
|
+
&:hover {
|
848
|
+
color: var(--toc-link-active-color);
|
849
|
+
}
|
850
|
+
|
851
|
+
code {
|
852
|
+
background: var(--toc-code-background-color);
|
853
|
+
border-radius: 5px;
|
854
|
+
border: .1rem solid var(--toc-code-border-color);
|
855
|
+
padding: 0.1rem 0.2rem;
|
856
|
+
word-break: break-all;
|
857
|
+
}
|
858
|
+
}
|
859
|
+
|
860
|
+
.sidetoc {
|
861
|
+
display: none;
|
862
|
+
flex: 0 0 25%;
|
863
|
+
max-width: 25%;
|
864
|
+
|
865
|
+
@media (min-width: 85rem) {
|
866
|
+
display: initial;
|
867
|
+
}
|
868
|
+
}
|
869
|
+
|
870
|
+
.sidetoc__entries {
|
871
|
+
border-left: 1px solid var(--column-border-color);
|
872
|
+
display: flex;
|
873
|
+
flex-direction: column;
|
874
|
+
font-size: 0.9rem;
|
875
|
+
gap: 0.4rem;
|
876
|
+
padding: 0 1.5rem;
|
877
|
+
position: sticky;
|
878
|
+
top: calc(var(--nav-height) + 0.5rem + 0.375rem); /* Align with menu */
|
879
|
+
}
|
880
|
+
|
881
|
+
.sidetoc__link {
|
882
|
+
color: var(--sidetoc-link-color);
|
883
|
+
display: inline-block;
|
884
|
+
|
885
|
+
&.h2 {
|
886
|
+
margin-left: 1rem;
|
887
|
+
}
|
888
|
+
|
889
|
+
&.h3 {
|
890
|
+
margin-left: 2rem;
|
891
|
+
}
|
892
|
+
|
893
|
+
&.h4 {
|
894
|
+
margin-left: 3rem;
|
895
|
+
}
|
896
|
+
|
897
|
+
&.h5 {
|
898
|
+
margin-left: 4rem;
|
899
|
+
}
|
900
|
+
|
901
|
+
&.h6 {
|
902
|
+
margin-left: 5rem;
|
903
|
+
}
|
904
|
+
|
905
|
+
&.active {
|
906
|
+
color: var(--sidetoc-link-active-color);
|
907
|
+
}
|
908
|
+
|
909
|
+
&:hover {
|
910
|
+
color: var(--sidetoc-link-active-color);
|
911
|
+
}
|
912
|
+
|
913
|
+
code {
|
914
|
+
background: var(--sidetoc-code-background-color);
|
915
|
+
border-radius: 5px;
|
916
|
+
border: .1rem solid var(--sidetoc-code-border-color);
|
917
|
+
padding: 0.1rem 0.2rem;
|
918
|
+
word-break: break-all;
|
919
|
+
}
|
920
|
+
}
|
921
|
+
|
922
|
+
/* CSS: FOOTER */
|
923
|
+
|
924
|
+
:root {
|
925
|
+
--footer-background-color: #e9e9e9;
|
926
|
+
}
|
927
|
+
|
928
|
+
[data-theme=dark]:root {
|
929
|
+
--footer-background-color: #444444;
|
930
|
+
}
|
931
|
+
|
932
|
+
.footer {
|
933
|
+
background-color: var(--footer-background-color);
|
934
|
+
flex: 0 0 auto;
|
935
|
+
padding: 4rem 1rem;
|
936
|
+
}
|
937
|
+
|
938
|
+
.footer__sections {
|
939
|
+
display: grid;
|
940
|
+
gap: 1.5rem;
|
941
|
+
grid-template-columns: 1fr;
|
942
|
+
max-width: 1200px;
|
943
|
+
margin: auto;
|
944
|
+
|
945
|
+
@media (min-width: 40rem) {
|
946
|
+
grid-template-columns: repeat(2, 1fr);
|
947
|
+
}
|
948
|
+
|
949
|
+
@media (min-width: 64rem) {
|
950
|
+
grid-template-columns: repeat(4, 1fr);
|
951
|
+
}
|
952
|
+
}
|
953
|
+
|
954
|
+
.footer__section {
|
955
|
+
flex: 1 1 0;
|
956
|
+
}
|
957
|
+
|
958
|
+
.footer__heading {
|
959
|
+
font-weight: bold;
|
960
|
+
}
|
961
|
+
|
962
|
+
.footer__link:hover {
|
963
|
+
text-decoration: underline;
|
964
|
+
}
|
965
|
+
|
966
|
+
.footer__logo {
|
967
|
+
margin: 3rem auto;
|
968
|
+
height: 8rem;
|
969
|
+
width: 8rem;
|
970
|
+
}
|
971
|
+
|
972
|
+
.credits {
|
973
|
+
text-align: center;
|
974
|
+
}
|
975
|
+
|
976
|
+
.credits__link {
|
977
|
+
text-decoration: underline;
|
978
|
+
}
|
979
|
+
|
980
|
+
.credits__logo {
|
981
|
+
display: inline-block;
|
982
|
+
height: 2rem;
|
983
|
+
margin-left: 0.8rem;
|
984
|
+
width: 2rem;
|
985
|
+
}
|
986
|
+
|
987
|
+
/* CSS: HELPERS */
|
988
|
+
|
989
|
+
.external-link {
|
990
|
+
align-items: center;
|
991
|
+
display: inline-flex;
|
992
|
+
gap: 0.3rem;
|
993
|
+
margin-right: 0.5ch;
|
994
|
+
}
|
995
|
+
|
996
|
+
.external-link__icon {
|
997
|
+
height: 0.6rem;
|
998
|
+
width: 0.6rem;
|
999
|
+
}
|