rdoc 6.15.0 → 7.0.2

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 (79) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTING.md +187 -0
  3. data/History.rdoc +1 -1
  4. data/LEGAL.rdoc +6 -0
  5. data/README.md +20 -3
  6. data/lib/rdoc/code_object/any_method.rb +15 -7
  7. data/lib/rdoc/code_object/class_module.rb +18 -3
  8. data/lib/rdoc/code_object/constant.rb +9 -0
  9. data/lib/rdoc/code_object/method_attr.rb +13 -1
  10. data/lib/rdoc/code_object/top_level.rb +31 -18
  11. data/lib/rdoc/comment.rb +190 -8
  12. data/lib/rdoc/generator/aliki.rb +183 -0
  13. data/lib/rdoc/generator/darkfish.rb +8 -2
  14. data/lib/rdoc/generator/template/aliki/_aside_toc.rhtml +8 -0
  15. data/lib/rdoc/generator/template/aliki/_footer.rhtml +23 -0
  16. data/lib/rdoc/generator/template/aliki/_head.rhtml +158 -0
  17. data/lib/rdoc/generator/template/aliki/_header.rhtml +56 -0
  18. data/lib/rdoc/generator/template/aliki/_icons.rhtml +208 -0
  19. data/lib/rdoc/generator/template/aliki/_sidebar_ancestors.rhtml +16 -0
  20. data/lib/rdoc/generator/template/aliki/_sidebar_classes.rhtml +15 -0
  21. data/lib/rdoc/generator/template/aliki/_sidebar_extends.rhtml +25 -0
  22. data/lib/rdoc/generator/template/aliki/_sidebar_includes.rhtml +25 -0
  23. data/lib/rdoc/generator/template/aliki/_sidebar_installed.rhtml +16 -0
  24. data/lib/rdoc/generator/template/aliki/_sidebar_methods.rhtml +41 -0
  25. data/lib/rdoc/generator/template/aliki/_sidebar_pages.rhtml +67 -0
  26. data/lib/rdoc/generator/template/aliki/_sidebar_search.rhtml +15 -0
  27. data/lib/rdoc/generator/template/aliki/_sidebar_sections.rhtml +21 -0
  28. data/lib/rdoc/generator/template/aliki/_sidebar_toggle.rhtml +3 -0
  29. data/lib/rdoc/generator/template/aliki/class.rhtml +218 -0
  30. data/lib/rdoc/generator/template/aliki/css/rdoc.css +1943 -0
  31. data/lib/rdoc/generator/template/aliki/index.rhtml +22 -0
  32. data/lib/rdoc/generator/template/aliki/js/aliki.js +505 -0
  33. data/lib/rdoc/generator/template/aliki/js/c_highlighter.js +299 -0
  34. data/lib/rdoc/generator/template/aliki/js/search_controller.js +129 -0
  35. data/lib/rdoc/generator/template/aliki/js/search_navigation.js +105 -0
  36. data/lib/rdoc/generator/template/aliki/js/search_ranker.js +239 -0
  37. data/lib/rdoc/generator/template/aliki/js/theme-toggle.js +112 -0
  38. data/lib/rdoc/generator/template/aliki/page.rhtml +18 -0
  39. data/lib/rdoc/generator/template/aliki/servlet_not_found.rhtml +14 -0
  40. data/lib/rdoc/generator/template/aliki/servlet_root.rhtml +65 -0
  41. data/lib/rdoc/generator/template/darkfish/_footer.rhtml +3 -3
  42. data/lib/rdoc/generator/template/darkfish/_head.rhtml +14 -19
  43. data/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +8 -8
  44. data/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +8 -8
  45. data/lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +7 -6
  46. data/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +6 -6
  47. data/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +19 -19
  48. data/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +2 -2
  49. data/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +1 -0
  50. data/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +3 -3
  51. data/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +14 -14
  52. data/lib/rdoc/generator/template/darkfish/class.rhtml +68 -68
  53. data/lib/rdoc/generator/template/darkfish/index.rhtml +4 -3
  54. data/lib/rdoc/generator/template/darkfish/page.rhtml +2 -1
  55. data/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +2 -1
  56. data/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +19 -19
  57. data/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +19 -17
  58. data/lib/rdoc/generator/template/json_index/js/searcher.js +43 -6
  59. data/lib/rdoc/generator.rb +1 -0
  60. data/lib/rdoc/markup/pre_process.rb +34 -10
  61. data/lib/rdoc/markup/to_ansi.rb +4 -0
  62. data/lib/rdoc/markup/to_bs.rb +4 -0
  63. data/lib/rdoc/markup/to_html.rb +6 -4
  64. data/lib/rdoc/markup/to_rdoc.rb +11 -3
  65. data/lib/rdoc/options.rb +21 -10
  66. data/lib/rdoc/parser/c.rb +15 -46
  67. data/lib/rdoc/parser/prism_ruby.rb +121 -113
  68. data/lib/rdoc/parser/ruby.rb +8 -8
  69. data/lib/rdoc/parser/ruby_tools.rb +5 -7
  70. data/lib/rdoc/parser/simple.rb +4 -21
  71. data/lib/rdoc/rdoc.rb +1 -0
  72. data/lib/rdoc/rubygems_hook.rb +3 -3
  73. data/lib/rdoc/text.rb +1 -1
  74. data/lib/rdoc/token_stream.rb +13 -1
  75. data/lib/rdoc/tom_doc.rb +1 -1
  76. data/lib/rdoc/version.rb +1 -1
  77. data/rdoc.gemspec +1 -1
  78. metadata +33 -5
  79. data/CONTRIBUTING.rdoc +0 -219
@@ -0,0 +1,1943 @@
1
+ /*
2
+ * Aliki Theme Stylesheet
3
+ * Modern RDoc theme by Stan Lo
4
+ *
5
+ * Features:
6
+ * - Three-column responsive layout (navigation, content, table of contents)
7
+ * - Dark mode support with localStorage persistence
8
+ * - Auto-generated right sidebar TOC with scroll spy
9
+ * - Mobile-optimized search modal
10
+ * - Enhanced syntax highlighting for both light and dark themes
11
+ * - Code-copying functionality
12
+ */
13
+
14
+ /* 1. Design System - CSS Variables and Tokens */
15
+
16
+ /* Light Theme (Default) */
17
+ :root {
18
+ /* Color Palette - Primary */
19
+ --color-primary-50: #fdeae9;
20
+ --color-primary-100: #fadad3;
21
+ --color-primary-200: #f8bfbd;
22
+ --color-primary-300: #f5a9a7;
23
+ --color-primary-400: #f07f7b;
24
+ --color-primary-500: #eb544f;
25
+ --color-primary-600: #e62923;
26
+ --color-primary-700: #b8211c;
27
+ --color-primary-800: #8a1915;
28
+ --color-primary-900: #5c100e;
29
+
30
+ /* Color Palette - Neutral */
31
+ --color-neutral-50: #fafaf9;
32
+ --color-neutral-100: #f5f5f4;
33
+ --color-neutral-200: #e7e5e4;
34
+ --color-neutral-300: #d6d3d1;
35
+ --color-neutral-400: #a8a29e;
36
+ --color-neutral-500: #78716c;
37
+ --color-neutral-600: #57534e;
38
+ --color-neutral-700: #44403c;
39
+ --color-neutral-800: #292524;
40
+ --color-neutral-900: #1c1917;
41
+
42
+ /* Code highlighting colors */
43
+ --code-blue: #1d4ed8;
44
+ --code-green: #047857;
45
+ --code-orange: #d97706;
46
+ --code-purple: #7e22ce;
47
+ --code-red: #dc2626;
48
+
49
+ /* C syntax highlighting */
50
+ --c-keyword: #b91c1c;
51
+ --c-type: #0891b2;
52
+ --c-macro: #ea580c;
53
+ --c-function: #7c3aed;
54
+ --c-identifier: #475569;
55
+ --c-operator: #059669;
56
+ --c-preprocessor: #a21caf;
57
+ --c-value: #92400e;
58
+ --c-string: #15803d;
59
+ --c-comment: #78716c;
60
+
61
+ /* Color Palette - Green (for success states) */
62
+ --color-green-400: #4ade80;
63
+ --color-green-500: #22c55e;
64
+ --color-green-600: #16a34a;
65
+
66
+ /* Semantic Colors - Light Theme */
67
+ --color-text-primary: var(--color-neutral-900);
68
+ --color-text-secondary: var(--color-neutral-600);
69
+ --color-text-tertiary: var(--color-neutral-500);
70
+ --color-background-primary: #fff;
71
+ --color-background-secondary: var(--color-neutral-50);
72
+ --color-background-tertiary: var(--color-neutral-100);
73
+ --color-border-default: var(--color-neutral-300);
74
+ --color-border-subtle: var(--color-neutral-200);
75
+ --color-border-emphasis: var(--color-neutral-400);
76
+ --color-link-default: var(--color-text-primary);
77
+ --color-link-hover: var(--color-primary-600);
78
+ --color-accent-primary: var(--color-primary-600);
79
+ --color-accent-hover: var(--color-primary-700);
80
+ --color-accent-subtle: var(--color-primary-50);
81
+ --color-code-bg: #f6f8fa;
82
+ --color-code-border: var(--color-neutral-300);
83
+ --color-nav-bg: #fff;
84
+ --color-nav-text: var(--color-neutral-700);
85
+ --color-th-background: var(--color-neutral-100);
86
+ --color-td-background: var(--color-neutral-50);
87
+
88
+ /* Search Type Badge Colors */
89
+ --color-search-type-class-bg: #e6f0ff;
90
+ --color-search-type-class-text: #0050a0;
91
+ --color-search-type-module-bg: #e6ffe6;
92
+ --color-search-type-module-text: #060;
93
+ --color-search-type-constant-bg: #fff0e6;
94
+ --color-search-type-constant-text: #995200;
95
+ --color-search-type-method-bg: #f0e6ff;
96
+ --color-search-type-method-text: #5200a0;
97
+
98
+ /* RGBA Colors (theme-agnostic) */
99
+ --color-overlay: rgb(0 0 0 / 50%);
100
+ --color-emphasis-bg: rgb(255 111 97 / 10%);
101
+ --color-emphasis-decoration: rgb(52 48 64 / 25%);
102
+ --color-search-highlight-bg: rgb(224 108 117 / 10%);
103
+ --color-success-bg: rgb(34 197 94 / 10%);
104
+
105
+ /* Typography Scale */
106
+ --font-size-xs: 0.75rem; /* 12px */
107
+ --font-size-sm: 0.875rem; /* 14px */
108
+ --font-size-base: 1rem; /* 16px */
109
+ --font-size-lg: 1.125rem; /* 18px */
110
+ --font-size-xl: 1.25rem; /* 20px */
111
+ --font-size-2xl: 1.5rem; /* 24px */
112
+ --font-size-3xl: 1.875rem; /* 30px */
113
+ --font-size-4xl: 2.25rem; /* 36px */
114
+ --font-size-5xl: 3rem; /* 48px */
115
+
116
+ /* Font Families */
117
+ --font-family-base: -apple-system, blinkmacsystemfont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
118
+ --font-family-heading: var(--font-family-base);
119
+ --font-family-mono: ui-monospace, 'SFMono-Regular', 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', monospace;
120
+
121
+ /* Font Weights */
122
+ --font-weight-normal: 400;
123
+ --font-weight-medium: 500;
124
+ --font-weight-semibold: 600;
125
+ --font-weight-bold: 700;
126
+
127
+ /* Font Shortcuts */
128
+ --font-primary: var(--font-family-base);
129
+ --font-heading: var(--font-family-heading);
130
+ --font-code: var(--font-family-mono);
131
+
132
+ /* Line Heights */
133
+ --line-height-tight: 1.25;
134
+ --line-height-normal: 1.5;
135
+ --line-height-relaxed: 1.625;
136
+
137
+ /* Spacing Scale */
138
+ --space-1: 0.25rem; /* 4px */
139
+ --space-2: 0.5rem; /* 8px */
140
+ --space-3: 0.75rem; /* 12px */
141
+ --space-4: 1rem; /* 16px */
142
+ --space-5: 1.25rem; /* 20px */
143
+ --space-6: 1.5rem; /* 24px */
144
+ --space-8: 2rem; /* 32px */
145
+ --space-12: 3rem; /* 48px */
146
+ --space-16: 4rem; /* 64px */
147
+
148
+ /* Border Radius */
149
+ --radius-sm: 0.25rem; /* 4px */
150
+ --radius-md: 0.375rem; /* 6px */
151
+ --radius-lg: 0.5rem; /* 8px */
152
+
153
+ /* Shadows */
154
+ --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
155
+ --shadow-md: 0 2px 8px rgb(0 0 0 / 10%);
156
+ --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%);
157
+ --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 10%), 0 8px 10px -6px rgb(0 0 0 / 10%);
158
+
159
+ /* Layout Dimensions */
160
+ --layout-sidebar-width: 300px;
161
+ --layout-sidebar-width-min: 300px;
162
+ --layout-sidebar-width-max: 15%;
163
+ --layout-toc-width-min: 240px;
164
+ --layout-toc-width-max: 18%;
165
+ --layout-content-max-width: 800px;
166
+ --layout-header-height: 64px;
167
+ --layout-search-width: 400px;
168
+
169
+ /* Transitions */
170
+ --transition-fast: 150ms ease-in-out;
171
+ --transition-base: 200ms ease-in-out;
172
+ --transition-slow: 350ms ease-in-out;
173
+ --ease-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
174
+
175
+ /* Animation Durations */
176
+ --duration-fast: 250ms;
177
+ --duration-base: 300ms;
178
+ --duration-medium: 350ms;
179
+
180
+ /* Z-Index Scale */
181
+ --z-fixed: 300;
182
+ --z-modal: 400;
183
+ --z-popover: 500;
184
+
185
+ }
186
+
187
+ /* Dark Theme */
188
+ [data-theme="dark"] {
189
+ /* Code highlighting colors */
190
+ --code-blue: #93c5fd;
191
+ --code-green: #34d399;
192
+ --code-orange: #fbbf24;
193
+ --code-purple: #c084fc;
194
+ --code-red: #f87171;
195
+
196
+ /* C syntax highlighting */
197
+ --c-keyword: #f87171;
198
+ --c-type: #22d3ee;
199
+ --c-macro: #fb923c;
200
+ --c-function: #a78bfa;
201
+ --c-identifier: #94a3b8;
202
+ --c-operator: #6ee7b7;
203
+ --c-preprocessor: #e879f9;
204
+ --c-value: #fcd34d;
205
+ --c-string: #4ade80;
206
+ --c-comment: #a8a29e;
207
+
208
+ /* Semantic Colors - Dark Theme */
209
+ --color-text-primary: var(--color-neutral-50);
210
+ --color-text-secondary: var(--color-neutral-200);
211
+ --color-text-tertiary: var(--color-neutral-400);
212
+ --color-background-primary: var(--color-neutral-900);
213
+ --color-background-secondary: var(--color-neutral-800);
214
+ --color-background-tertiary: var(--color-neutral-700);
215
+ --color-border-default: var(--color-neutral-600);
216
+ --color-border-subtle: var(--color-neutral-700);
217
+ --color-border-emphasis: var(--color-neutral-300);
218
+ --color-link-default: var(--color-neutral-50);
219
+ --color-link-hover: var(--color-primary-500);
220
+ --color-accent-primary: var(--color-primary-500);
221
+ --color-accent-hover: var(--color-primary-400);
222
+ --color-accent-subtle: rgb(235 84 79 / 10%);
223
+ --color-accent-subtle-hover: rgb(235 84 79 / 20%);
224
+ --color-code-bg: var(--color-neutral-800);
225
+ --color-code-border: var(--color-neutral-700);
226
+ --color-nav-bg: var(--color-neutral-900);
227
+ --color-nav-text: var(--color-neutral-50);
228
+ --color-th-background: var(--color-background-tertiary);
229
+ --color-td-background: var(--color-background-secondary);
230
+
231
+ /* Search Type Badge Colors - Dark Theme */
232
+ --color-search-type-class-bg: #1e3a5f;
233
+ --color-search-type-class-text: #93c5fd;
234
+ --color-search-type-module-bg: #14532d;
235
+ --color-search-type-module-text: #86efac;
236
+ --color-search-type-constant-bg: #451a03;
237
+ --color-search-type-constant-text: #fcd34d;
238
+ --color-search-type-method-bg: #3b0764;
239
+ --color-search-type-method-text: #d8b4fe;
240
+
241
+ /* Dark theme shadows (slightly more subtle) */
242
+ --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 40%), 0 1px 2px -1px rgb(0 0 0 / 40%);
243
+ --shadow-md: 0 2px 8px rgb(0 0 0 / 40%);
244
+ --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 40%), 0 4px 6px -4px rgb(0 0 0 / 40%);
245
+ --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 40%), 0 8px 10px -6px rgb(0 0 0 / 40%);
246
+
247
+ }
248
+
249
+ /* 2. Global Styles & Layout */
250
+ body {
251
+ background: var(--color-background-primary);
252
+ font-family: var(--font-primary);
253
+ font-weight: 400;
254
+ color: var(--color-text-primary);
255
+ line-height: var(--line-height-relaxed);
256
+ margin: 0;
257
+ overflow-wrap: break-word; /* Avoid overflow on mobile */
258
+
259
+ /* Grid layout with header, sidebar, main, and footer */
260
+ display: grid;
261
+ grid-template: "header header" var(--layout-header-height) "nav main" 1fr "nav footer" auto / var(--layout-sidebar-width) 1fr;
262
+ min-height: 100vh;
263
+ }
264
+
265
+ /* Three-column layout when TOC is present */
266
+ body.has-toc {
267
+ grid-template: "header header header" var(--layout-header-height) "nav main toc" 1fr "nav footer toc" auto / var(--layout-sidebar-width) 1fr minmax(var(--layout-toc-width-min), var(--layout-toc-width-max));
268
+ min-height: 100vh;
269
+ }
270
+
271
+ /* Mobile: stack everything vertically */
272
+ @media (width <= 1023px) {
273
+ body,
274
+ body.has-toc {
275
+ display: flex;
276
+ flex-direction: column;
277
+ grid-template: none;
278
+ }
279
+ }
280
+
281
+ /* 3. Typography */
282
+
283
+ /* 4. Links */
284
+ a {
285
+ color: var(--color-link-default);
286
+ transition: color var(--transition-base);
287
+ text-decoration: underline;
288
+ text-underline-offset: 0.2em; /* Make sure it doesn't overlap with underscores in a method name. */
289
+ }
290
+
291
+ /* 5. Code and Pre */
292
+
293
+ /* Code blocks */
294
+ pre {
295
+ font-family: var(--font-code);
296
+ background-color: var(--color-code-bg);
297
+ border: 1px solid var(--color-code-border);
298
+ border-radius: var(--radius-md);
299
+ padding: var(--space-4);
300
+ overflow-x: auto;
301
+ font-size: var(--font-size-sm);
302
+ line-height: var(--line-height-normal);
303
+ margin: var(--space-4) 0;
304
+ position: relative;
305
+ }
306
+
307
+ /* Code block wrapper for copy button */
308
+ .code-block-wrapper {
309
+ position: relative;
310
+ margin: var(--space-4) 0;
311
+ }
312
+
313
+ /* Copy button styling */
314
+ .copy-code-button {
315
+ position: absolute;
316
+ top: var(--space-2);
317
+ right: var(--space-2);
318
+ padding: var(--space-2);
319
+ background: var(--color-background-secondary);
320
+ border: 1px solid var(--color-border-default);
321
+ border-radius: var(--radius-sm);
322
+ cursor: pointer;
323
+ opacity: 0.6;
324
+ transition:
325
+ opacity var(--transition-fast),
326
+ background var(--transition-fast),
327
+ border-color var(--transition-fast),
328
+ transform var(--transition-fast),
329
+ box-shadow var(--transition-fast);
330
+ display: flex;
331
+ align-items: center;
332
+ justify-content: center;
333
+ width: 2rem;
334
+ height: 2rem;
335
+ z-index: 10;
336
+ }
337
+
338
+ .copy-code-button:hover,
339
+ .copy-code-button:focus {
340
+ opacity: 1;
341
+ background: var(--color-background-tertiary);
342
+ border-color: var(--color-border-emphasis);
343
+ transform: translateY(-1px);
344
+ box-shadow: var(--shadow-md);
345
+ }
346
+
347
+ .copy-code-button:focus {
348
+ outline: none;
349
+ box-shadow: 0 0 0 3px var(--color-accent-subtle);
350
+ }
351
+
352
+ .copy-code-button:active {
353
+ transform: scale(0.92);
354
+ box-shadow: none;
355
+ }
356
+
357
+ .copy-code-button svg {
358
+ width: 1rem;
359
+ height: 1rem;
360
+ fill: none;
361
+ stroke: currentcolor;
362
+ stroke-width: 2;
363
+ stroke-linecap: round;
364
+ stroke-linejoin: round;
365
+ color: var(--color-text-secondary);
366
+ transition: color var(--transition-fast), transform var(--transition-base);
367
+ }
368
+
369
+ .copy-code-button:hover svg {
370
+ color: var(--color-text-primary);
371
+ }
372
+
373
+ /* Copied state - subtle green checkmark */
374
+ .copy-code-button.copied {
375
+ background: var(--color-success-bg);
376
+ border-color: var(--color-green-500);
377
+ opacity: 1;
378
+ }
379
+
380
+ .copy-code-button.copied svg {
381
+ color: var(--color-green-600);
382
+ }
383
+
384
+ [data-theme="dark"] .copy-code-button.copied {
385
+ border-color: var(--color-green-400);
386
+ }
387
+
388
+ [data-theme="dark"] .copy-code-button.copied svg {
389
+ color: var(--color-green-400);
390
+ }
391
+
392
+ /* Mobile adjustments */
393
+ @media (hover: none) {
394
+ .copy-code-button {
395
+ opacity: 0.7;
396
+ }
397
+
398
+ .copy-code-button:active {
399
+ opacity: 1;
400
+ }
401
+ }
402
+
403
+ /* Inline code */
404
+ code {
405
+ font-family: var(--font-code);
406
+ background-color: var(--color-code-bg);
407
+ border: 1px solid var(--color-border-subtle);
408
+ padding: 0.125rem 0.375rem;
409
+ border-radius: var(--radius-sm);
410
+ font-size: 0.9em;
411
+ }
412
+
413
+ pre code {
414
+ background: none;
415
+ border: none;
416
+ padding: 0;
417
+ font-size: inherit;
418
+ }
419
+
420
+ a code:hover {
421
+ color: var(--color-link-hover);
422
+ }
423
+
424
+ /* Tables */
425
+ table {
426
+ margin: 0;
427
+ border-spacing: 0;
428
+ border-collapse: collapse;
429
+ }
430
+
431
+ table tr th, table tr td {
432
+ padding: 0.2em 0.4em;
433
+ border: 1px solid var(--color-border-default);
434
+ }
435
+
436
+ table tr th {
437
+ background-color: var(--color-th-background);
438
+ }
439
+
440
+ table tr:nth-child(even) td {
441
+ background-color: var(--color-td-background);
442
+ }
443
+
444
+ /* 6. Header (Top Navbar) */
445
+ header.top-navbar {
446
+ grid-area: header;
447
+ position: sticky;
448
+ top: 0;
449
+ z-index: var(--z-fixed);
450
+ background: var(--color-background-primary);
451
+ border-bottom: 1px solid var(--color-border-default);
452
+ display: flex;
453
+ align-items: center;
454
+ justify-content: flex-start;
455
+ padding: 0 var(--space-6);
456
+ gap: var(--space-8);
457
+ height: var(--layout-header-height);
458
+ box-shadow: var(--shadow-sm);
459
+ }
460
+
461
+ header.top-navbar .navbar-brand {
462
+ font-size: var(--font-size-xl);
463
+ font-weight: var(--font-weight-semibold);
464
+ color: var(--color-text-primary);
465
+ text-decoration: none;
466
+ white-space: nowrap;
467
+ }
468
+
469
+ header.top-navbar .navbar-brand:hover {
470
+ color: var(--color-accent-primary);
471
+ }
472
+
473
+ header.top-navbar .navbar-search {
474
+ position: relative;
475
+ flex: 0 1 auto;
476
+ width: var(--layout-search-width);
477
+ }
478
+
479
+ header.top-navbar .navbar-search form {
480
+ margin: 0;
481
+ padding: 0;
482
+ }
483
+
484
+
485
+
486
+ /* Mobile search icon button (hidden on desktop) */
487
+ .navbar-search-mobile {
488
+ display: none;
489
+ }
490
+
491
+ /* Theme toggle button */
492
+ .theme-toggle {
493
+ display: flex;
494
+ align-items: center;
495
+ justify-content: center;
496
+ padding: var(--space-2);
497
+ margin-left: auto;
498
+ background: transparent;
499
+ border: 1px solid var(--color-border-default);
500
+ border-radius: var(--radius-md);
501
+ color: var(--color-text-primary);
502
+ cursor: pointer;
503
+ transition:
504
+ background var(--transition-fast),
505
+ border-color var(--transition-fast),
506
+ color var(--transition-fast),
507
+ transform var(--transition-fast);
508
+ font-size: var(--font-size-lg);
509
+ line-height: 1;
510
+ width: 2.5rem;
511
+ height: 2.5rem;
512
+ }
513
+
514
+ .theme-toggle:hover {
515
+ background: var(--color-background-secondary);
516
+ border-color: var(--color-accent-primary);
517
+ color: var(--color-accent-primary);
518
+ transform: scale(1.05);
519
+ }
520
+
521
+ .theme-toggle:focus {
522
+ outline: none;
523
+ border-color: var(--color-accent-primary);
524
+ box-shadow: 0 0 0 3px var(--color-accent-subtle);
525
+ }
526
+
527
+ .theme-toggle:active {
528
+ transform: scale(0.95);
529
+ }
530
+
531
+ .theme-toggle-icon {
532
+ display: inline-block;
533
+ transition: transform var(--duration-base) var(--ease-out-smooth);
534
+ }
535
+
536
+ .theme-toggle:hover .theme-toggle-icon {
537
+ transform: rotate(15deg) scale(1.1);
538
+ }
539
+
540
+ /* Mobile navbar */
541
+ @media (width <= 1023px) {
542
+ header.top-navbar {
543
+ display: flex;
544
+ align-items: center;
545
+ padding: 0 var(--space-4);
546
+ gap: var(--space-4);
547
+ }
548
+
549
+ /* Hide desktop search bar on mobile */
550
+ header.top-navbar .navbar-search-desktop {
551
+ display: none;
552
+ }
553
+
554
+ /* Show mobile search icon */
555
+ .navbar-search-mobile {
556
+ display: flex;
557
+ align-items: center;
558
+ justify-content: center;
559
+ padding: 0.5rem;
560
+ background: transparent;
561
+ border: none;
562
+ font-size: 1.25rem;
563
+ color: var(--color-text-primary);
564
+ cursor: pointer;
565
+ transition: color var(--transition-fast);
566
+ }
567
+
568
+ .navbar-search-mobile:hover {
569
+ color: var(--color-accent-primary);
570
+ }
571
+
572
+ /* Brand needs left margin for hamburger button */
573
+ header.top-navbar .navbar-brand {
574
+ margin-left: 2.5rem;
575
+ flex: 1;
576
+ font-size: var(--font-size-lg);
577
+ overflow: hidden;
578
+ text-overflow: ellipsis;
579
+ white-space: nowrap;
580
+ }
581
+ }
582
+
583
+ /* 7. Navigation (Left Sidebar) */
584
+ nav {
585
+ grid-area: nav;
586
+ font-family: var(--font-heading);
587
+ font-size: var(--font-size-base);
588
+ border-right: 1px solid var(--color-border-default);
589
+ background: var(--color-nav-bg);
590
+ color: var(--color-nav-text);
591
+ overflow: hidden auto;
592
+ overscroll-behavior: contain;
593
+ display: flex;
594
+ flex-direction: column;
595
+ position: sticky;
596
+ top: var(--layout-header-height);
597
+ height: calc(100vh - var(--layout-header-height));
598
+ scrollbar-width: thin;
599
+ scrollbar-color: var(--color-border-default) transparent;
600
+ }
601
+
602
+ /* Custom scrollbar for WebKit browsers */
603
+ nav::-webkit-scrollbar {
604
+ width: 6px;
605
+ }
606
+
607
+ nav::-webkit-scrollbar-track {
608
+ background: transparent;
609
+ }
610
+
611
+ nav::-webkit-scrollbar-thumb {
612
+ background: var(--color-border-default);
613
+ border-radius: var(--radius-sm);
614
+ transition: background var(--transition-fast);
615
+ }
616
+
617
+ nav::-webkit-scrollbar-thumb:hover {
618
+ background: var(--color-border-emphasis);
619
+ }
620
+
621
+ /* Mobile navigation */
622
+ @media (width <= 1023px) {
623
+ nav {
624
+ position: fixed;
625
+ top: var(--layout-header-height);
626
+ bottom: 0;
627
+ left: 0;
628
+ width: var(--layout-sidebar-width);
629
+ z-index: calc(var(--z-fixed) - 10); /* Below header */
630
+ box-shadow: var(--shadow-lg);
631
+
632
+ /* Don't set height - let top/bottom define it */
633
+ }
634
+
635
+ nav[hidden] {
636
+ display: none;
637
+ }
638
+
639
+ /* Backdrop for mobile nav */
640
+ body::before {
641
+ content: '';
642
+ position: fixed;
643
+ inset: var(--layout-header-height) 0 0 0;
644
+ background: var(--color-overlay);
645
+ z-index: calc(var(--z-fixed) - 20);
646
+ opacity: 0;
647
+ pointer-events: none;
648
+ transition: opacity var(--transition-base);
649
+ }
650
+
651
+ /* Show backdrop when nav is open */
652
+ body.nav-open::before {
653
+ opacity: 1;
654
+ pointer-events: auto;
655
+ }
656
+ }
657
+
658
+ /* Desktop: hide nav when [hidden] attribute is set */
659
+ @media (width >= 1024px) {
660
+ nav[hidden] {
661
+ display: none;
662
+ }
663
+ }
664
+
665
+ nav .nav-section {
666
+ margin-top: var(--space-6);
667
+ padding: 0 var(--space-6);
668
+ }
669
+
670
+ nav h2, nav h3 {
671
+ font-size: var(--font-size-lg);
672
+ font-weight: var(--font-weight-semibold);
673
+ margin: 0 0 var(--space-4);
674
+ padding: var(--space-2) 0;
675
+ color: var(--color-accent-primary);
676
+ border-bottom: 1px solid var(--color-border-default);
677
+ }
678
+
679
+ nav ul,
680
+ nav dl,
681
+ nav p {
682
+ padding: 0;
683
+ list-style: none;
684
+ margin: var(--space-3) 0;
685
+ }
686
+
687
+ nav ul li {
688
+ margin-bottom: var(--space-2);
689
+ line-height: var(--line-height-relaxed);
690
+ }
691
+
692
+ nav ul li a {
693
+ transition:
694
+ color var(--transition-fast),
695
+ transform var(--transition-fast),
696
+ padding var(--transition-fast);
697
+ }
698
+
699
+ nav ul li a:hover {
700
+ padding-left: var(--space-1);
701
+ }
702
+
703
+ nav ul ul {
704
+ padding-left: var(--space-5);
705
+ margin-top: var(--space-2);
706
+ }
707
+
708
+ nav ul ul ul {
709
+ padding-left: var(--space-5);
710
+ }
711
+
712
+ nav ul ul ul ul {
713
+ padding-left: var(--space-5);
714
+ }
715
+
716
+ nav a {
717
+ text-decoration: none;
718
+ }
719
+
720
+ /* Truncation for direct nav links (not links inside code tags) */
721
+ nav .nav-list > li > a,
722
+ nav .nav-section > ul > li > a,
723
+ nav .nav-section > dl > dd > a {
724
+ display: block;
725
+ max-width: 100%;
726
+ overflow: hidden;
727
+ text-overflow: ellipsis;
728
+ white-space: nowrap;
729
+ }
730
+
731
+ nav footer {
732
+ padding: var(--space-4);
733
+ border-top: 1px solid var(--color-border-default);
734
+ }
735
+
736
+ nav footer a {
737
+ color: var(--color-accent-hover);
738
+ }
739
+
740
+ #navigation-toggle {
741
+ display: none; /* Hidden by default, shown on mobile */
742
+ }
743
+
744
+ /* Mobile toggle button */
745
+ @media (width <= 1023px) {
746
+ #navigation-toggle {
747
+ display: flex;
748
+ align-items: center;
749
+ justify-content: center;
750
+ position: fixed;
751
+ top: calc(var(--layout-header-height) / 2);
752
+ transform: translateY(-50%);
753
+ left: 1rem;
754
+ z-index: var(--z-fixed);
755
+ font-size: 1.5rem;
756
+ background: transparent;
757
+ border: none;
758
+ color: var(--color-text-primary);
759
+ cursor: pointer;
760
+ transition: color var(--transition-fast);
761
+ line-height: 1;
762
+ user-select: none;
763
+ -webkit-user-select: none;
764
+ }
765
+
766
+ #navigation-toggle:hover {
767
+ color: var(--color-accent-primary);
768
+ }
769
+ }
770
+
771
+ /*
772
+ * Shared Collapsible Animation using ::details-content pseudo-element.
773
+ * This is the modern CSS approach for animating <details> elements.
774
+ * Uses block-size animation with interpolate-size for smooth height transitions.
775
+ * Both nav-section-collapsible and nested link-list details share this pattern.
776
+ */
777
+ nav details {
778
+ interpolate-size: allow-keywords;
779
+ }
780
+
781
+ nav details::details-content {
782
+ overflow: hidden;
783
+ block-size: 0;
784
+ transition: block-size 200ms ease, content-visibility 200ms ease allow-discrete;
785
+ }
786
+
787
+ nav details[open]::details-content {
788
+ block-size: auto;
789
+ }
790
+
791
+ /* Collapsible Navigation Section Headers */
792
+
793
+ nav .nav-section-header {
794
+ display: flex;
795
+ align-items: center;
796
+ gap: var(--space-3);
797
+ padding: var(--space-3) 0;
798
+ cursor: pointer;
799
+ list-style: none;
800
+ user-select: none;
801
+ -webkit-user-select: none;
802
+ border-bottom: 1px solid var(--color-border-default);
803
+ margin-bottom: var(--space-3);
804
+ transition: color var(--transition-fast);
805
+ }
806
+
807
+ nav .nav-section-header::-webkit-details-marker {
808
+ display: none;
809
+ }
810
+
811
+ nav .nav-section-header:hover {
812
+ color: var(--color-accent-primary);
813
+ }
814
+
815
+ nav .nav-section-icon {
816
+ display: flex;
817
+ align-items: center;
818
+ justify-content: center;
819
+ width: 1.25rem;
820
+ height: 1.25rem;
821
+ flex-shrink: 0;
822
+ color: var(--color-accent-primary);
823
+ }
824
+
825
+ nav .nav-section-icon svg {
826
+ width: 100%;
827
+ height: 100%;
828
+ }
829
+
830
+ nav .nav-section-title {
831
+ font-size: var(--font-size-base);
832
+ font-weight: var(--font-weight-semibold);
833
+ color: inherit;
834
+ flex: 1;
835
+ min-width: 0;
836
+ overflow: hidden;
837
+ text-overflow: ellipsis;
838
+ white-space: nowrap;
839
+ }
840
+
841
+ nav .nav-section-chevron {
842
+ display: flex;
843
+ align-items: center;
844
+ justify-content: center;
845
+ width: 1rem;
846
+ height: 1rem;
847
+ flex-shrink: 0;
848
+ color: var(--color-text-tertiary);
849
+ transition: transform var(--transition-base);
850
+ }
851
+
852
+ nav .nav-section-chevron svg {
853
+ width: 100%;
854
+ height: 100%;
855
+ }
856
+
857
+ /* Rotate chevron when open */
858
+ nav .nav-section-collapsible[open] > .nav-section-header .nav-section-chevron {
859
+ transform: rotate(90deg);
860
+ }
861
+
862
+ nav .nav-section-collapsible > ul,
863
+ nav .nav-section-collapsible > dl,
864
+ nav .nav-section-collapsible > p {
865
+ margin-top: 0;
866
+ }
867
+
868
+ nav .nav-section-collapsible > .nav-list {
869
+ padding-left: var(--space-5);
870
+ border-left: 1px solid var(--color-border-subtle);
871
+ margin-left: 9px; /* Align with the section icon center */
872
+ }
873
+
874
+ nav .nav-section-collapsible .nav-list .link-list {
875
+ border-left: none;
876
+ margin-left: 0;
877
+ padding-left: var(--space-5);
878
+ }
879
+
880
+ /*
881
+ Improve chevron styling for details under link-list, using SVG chevron that matches nav-section-chevron
882
+ We need to avoid adding the element in class content generation so it doesn't break darkfish styles
883
+ */
884
+ nav li details:has(.link-list) > summary {
885
+ display: inline-flex;
886
+ align-items: center;
887
+ gap: var(--space-2);
888
+ cursor: pointer;
889
+ }
890
+
891
+ nav li details:has(.link-list) > summary::after {
892
+ content: '';
893
+ position: static;
894
+ display: inline-block;
895
+ width: 1rem;
896
+ height: 1rem;
897
+ flex-shrink: 0;
898
+ margin-left: 0;
899
+ background-color: var(--color-text-secondary);
900
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
901
+ mask-size: contain;
902
+ mask-repeat: no-repeat;
903
+ mask-position: center;
904
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
905
+ -webkit-mask-size: contain;
906
+ -webkit-mask-repeat: no-repeat;
907
+ -webkit-mask-position: center;
908
+ transition: transform var(--transition-base), background-color var(--transition-fast);
909
+ }
910
+
911
+ nav li details:has(.link-list) > summary:hover::after {
912
+ background-color: var(--color-accent-primary);
913
+ }
914
+
915
+ nav li details:has(.link-list)[open] > summary::after {
916
+ transform: rotate(90deg);
917
+ background-color: var(--color-accent-primary);
918
+ }
919
+
920
+ /* 8. Main Content (Center Column) */
921
+ main {
922
+ grid-area: main;
923
+ width: 100%;
924
+ max-width: var(--layout-content-max-width);
925
+ margin: 0 auto;
926
+ padding: var(--space-12) var(--space-8);
927
+ font-size: var(--font-size-base);
928
+ line-height: var(--line-height-relaxed);
929
+ color: var(--color-text-primary);
930
+ box-sizing: border-box;
931
+ }
932
+
933
+ /* Desktop: hide hamburger */
934
+ @media (width >= 1024px) {
935
+ #navigation-toggle {
936
+ display: none;
937
+ }
938
+ }
939
+
940
+ /* Mobile: full width with padding */
941
+ @media (width <= 1023px) {
942
+ main {
943
+ padding: var(--space-6) var(--space-4);
944
+ padding-top: var(--space-8);
945
+ width: 100%;
946
+ }
947
+
948
+ footer.site-footer {
949
+ padding: var(--space-8) var(--space-4);
950
+ }
951
+
952
+ footer.site-footer .footer-content {
953
+ grid-template-columns: 1fr;
954
+ gap: var(--space-6);
955
+ }
956
+ }
957
+
958
+ main h1[class] {
959
+ margin-top: 0;
960
+ margin-bottom: 1em;
961
+ font-size: 2.5em;
962
+ color: var(--color-accent-primary);
963
+ }
964
+
965
+ main h1,
966
+ main h2,
967
+ main h3,
968
+ main h4,
969
+ main h5,
970
+ main h6 {
971
+ font-family: var(--font-heading);
972
+ color: var(--color-accent-primary);
973
+ scroll-margin-top: calc(var(--layout-header-height) + 2rem);
974
+ }
975
+
976
+ /* Heading size hierarchy */
977
+ main h1 {
978
+ font-size: var(--font-size-3xl);
979
+ font-weight: var(--font-weight-bold);
980
+ margin-bottom: var(--space-4);
981
+ line-height: var(--line-height-tight);
982
+ }
983
+
984
+ main h2 {
985
+ font-size: var(--font-size-2xl);
986
+ font-weight: var(--font-weight-semibold);
987
+ margin-top: var(--space-8);
988
+ margin-bottom: var(--space-4);
989
+ line-height: var(--line-height-tight);
990
+ }
991
+
992
+ main h3 {
993
+ font-size: var(--font-size-xl);
994
+ font-weight: var(--font-weight-semibold);
995
+ margin-top: var(--space-6);
996
+ margin-bottom: var(--space-3);
997
+ line-height: var(--line-height-tight);
998
+ }
999
+
1000
+ main h4 {
1001
+ font-size: var(--font-size-lg);
1002
+ font-weight: var(--font-weight-medium);
1003
+ margin-top: var(--space-4);
1004
+ margin-bottom: var(--space-2);
1005
+ }
1006
+
1007
+ main h5, main h6 {
1008
+ font-size: var(--font-size-base);
1009
+ font-weight: var(--font-weight-medium);
1010
+ margin-top: var(--space-3);
1011
+ margin-bottom: var(--space-2);
1012
+ }
1013
+
1014
+ /* Heading links */
1015
+ main h1 a,
1016
+ main h2 a,
1017
+ main h3 a,
1018
+ main h4 a,
1019
+ main h5 a,
1020
+ main h6 a {
1021
+ color: inherit;
1022
+ text-decoration: none;
1023
+ }
1024
+
1025
+ main h1 a:hover,
1026
+ main h2 a:hover,
1027
+ main h3 a:hover,
1028
+ main h4 a:hover,
1029
+ main h5 a:hover,
1030
+ main h6 a:hover {
1031
+ text-decoration: underline;
1032
+ }
1033
+
1034
+ /* Syntax Highlighting - Light Theme */
1035
+ .ruby-constant { color: var(--code-orange); }
1036
+ .ruby-keyword { color: var(--code-red); }
1037
+ .ruby-ivar { color: var(--code-orange); }
1038
+ .ruby-operator { color: var(--code-green); }
1039
+ .ruby-identifier { color: var(--code-blue); }
1040
+ .ruby-node { color: var(--code-purple); }
1041
+
1042
+ .ruby-comment {
1043
+ color: var(--color-neutral-500);
1044
+ font-style: italic;
1045
+ }
1046
+ .ruby-regexp { color: var(--code-purple); }
1047
+ .ruby-value { color: var(--code-orange); }
1048
+ .ruby-string { color: var(--code-green); }
1049
+
1050
+ /* Syntax Highlighting - Dark Theme */
1051
+ [data-theme="dark"] .ruby-constant { color: var(--code-orange); }
1052
+ [data-theme="dark"] .ruby-keyword { color: var(--code-red); }
1053
+ [data-theme="dark"] .ruby-ivar { color: var(--code-orange); }
1054
+ [data-theme="dark"] .ruby-operator { color: var(--code-green); }
1055
+ [data-theme="dark"] .ruby-identifier { color: var(--code-blue); }
1056
+ [data-theme="dark"] .ruby-node { color: var(--code-purple); }
1057
+
1058
+ [data-theme="dark"] .ruby-comment {
1059
+ color: var(--color-neutral-400);
1060
+ font-style: italic;
1061
+ }
1062
+ [data-theme="dark"] .ruby-regexp { color: var(--code-purple); }
1063
+ [data-theme="dark"] .ruby-value { color: var(--code-orange); }
1064
+ [data-theme="dark"] .ruby-string { color: var(--code-green); }
1065
+
1066
+ /* C Syntax Highlighting */
1067
+ .c-keyword { color: var(--c-keyword); }
1068
+ .c-type { color: var(--c-type); }
1069
+ .c-macro { color: var(--c-macro); }
1070
+ .c-function { color: var(--c-function); }
1071
+ .c-identifier { color: var(--c-identifier); }
1072
+ .c-operator { color: var(--c-operator); }
1073
+ .c-preprocessor { color: var(--c-preprocessor); }
1074
+ .c-value { color: var(--c-value); }
1075
+ .c-string { color: var(--c-string); }
1076
+
1077
+ .c-comment {
1078
+ color: var(--c-comment);
1079
+ font-style: italic;
1080
+ }
1081
+
1082
+ /* Emphasis */
1083
+ em {
1084
+ text-decoration-color: var(--color-emphasis-decoration);
1085
+ text-decoration-line: underline;
1086
+ text-decoration-style: dotted;
1087
+ }
1088
+
1089
+ strong,
1090
+ em {
1091
+ color: var(--color-accent-primary);
1092
+ background-color: var(--color-emphasis-bg);
1093
+ }
1094
+
1095
+ /* Paragraphs */
1096
+ main p {
1097
+ line-height: var(--line-height-relaxed);
1098
+ font-weight: 400;
1099
+ margin-bottom: var(--space-4);
1100
+ }
1101
+
1102
+ /* Preformatted Text */
1103
+ main pre {
1104
+ margin: 1.2em 0.5em;
1105
+ padding: 1em;
1106
+ font-size: 0.8em;
1107
+ }
1108
+
1109
+ .code-block-wrapper pre {
1110
+ margin: 0;
1111
+ }
1112
+
1113
+ /* Horizontal Rules */
1114
+ main hr {
1115
+ margin: 1.5em 1em;
1116
+ border: 2px solid var(--color-border-default);
1117
+ }
1118
+
1119
+ /* Blockquotes */
1120
+ main blockquote {
1121
+ margin: 0 2em 1.2em 1.2em;
1122
+ padding-left: 0.5em;
1123
+ border-left: 2px solid var(--color-border-default);
1124
+ }
1125
+
1126
+ /* Lists */
1127
+ main li > p {
1128
+ margin: 0.5em;
1129
+ }
1130
+
1131
+ /* Definition Lists */
1132
+ main dl {
1133
+ margin: 1em 0.5em;
1134
+ }
1135
+
1136
+ main dt {
1137
+ line-height: 1.5;
1138
+ font-weight: bold;
1139
+ }
1140
+
1141
+ main dl.note-list dt {
1142
+ margin-right: 1em;
1143
+ float: left;
1144
+ }
1145
+
1146
+ main dl.note-list dt:has(+ dt) {
1147
+ margin-right: 0.25em;
1148
+ }
1149
+
1150
+ main dl.note-list dt:has(+ dt)::after {
1151
+ content: ', ';
1152
+ font-weight: normal;
1153
+ }
1154
+
1155
+ main dd {
1156
+ margin: 0 0 1em 1em;
1157
+ }
1158
+
1159
+ main dd p:first-child {
1160
+ margin-top: 0;
1161
+ }
1162
+
1163
+ /* Headers within Main */
1164
+ main header h2 {
1165
+ margin-top: 2em;
1166
+ border-width: 0;
1167
+ border-top: 4px solid var(--color-border-default);
1168
+ font-size: 130%;
1169
+ }
1170
+
1171
+ main header h3 {
1172
+ margin: 2em 0 1.5em;
1173
+ border-width: 0;
1174
+ border-top: 3px solid var(--color-border-default);
1175
+ font-size: 120%;
1176
+ }
1177
+
1178
+ h1:target,
1179
+ h2:target,
1180
+ h3:target,
1181
+ h4:target,
1182
+ h5:target,
1183
+ h6:target {
1184
+ margin-left: calc(-1 * var(--space-5));
1185
+ padding-left: calc(var(--space-5) / 2);
1186
+ border-left: calc(var(--space-5) / 2) solid var(--color-border-default);
1187
+ }
1188
+
1189
+ main .anchor-link:target {
1190
+ scroll-margin-top: calc(var(--layout-header-height) + 2rem);
1191
+ }
1192
+
1193
+
1194
+ /* Utility Classes */
1195
+ .hide { display: none !important; }
1196
+ .initially-hidden { display: none; }
1197
+
1198
+ /* Screen reader only */
1199
+ .sr-only {
1200
+ position: absolute;
1201
+ width: 1px;
1202
+ height: 1px;
1203
+ padding: 0;
1204
+ margin: -1px;
1205
+ overflow: hidden;
1206
+ clip-path: inset(50%);
1207
+ white-space: nowrap;
1208
+ border-width: 0;
1209
+ }
1210
+
1211
+
1212
+
1213
+ /* Method Details */
1214
+ main .method-source-code {
1215
+ visibility: hidden;
1216
+ max-height: 0;
1217
+ overflow: hidden;
1218
+ opacity: 0;
1219
+ transform: translateY(-8px);
1220
+ transition:
1221
+ max-height var(--duration-medium) var(--ease-out-smooth),
1222
+ visibility var(--duration-medium),
1223
+ opacity var(--duration-fast) ease-out,
1224
+ transform var(--duration-fast) ease-out;
1225
+ }
1226
+
1227
+ main .method-source-code pre {
1228
+ border-color: var(--color-accent-hover);
1229
+ border-left: 3px solid var(--color-accent-primary);
1230
+ width: 100%;
1231
+ box-sizing: border-box;
1232
+ transition: border-color var(--transition-fast);
1233
+ scrollbar-width: thin;
1234
+ scrollbar-color: var(--color-border-default) transparent;
1235
+ }
1236
+
1237
+ main .method-source-code pre::-webkit-scrollbar {
1238
+ width: 6px;
1239
+ height: 6px;
1240
+ }
1241
+
1242
+ main .method-source-code pre::-webkit-scrollbar-track {
1243
+ background: transparent;
1244
+ }
1245
+
1246
+ main .method-source-code pre::-webkit-scrollbar-thumb {
1247
+ background: var(--color-border-default);
1248
+ border-radius: var(--radius-sm);
1249
+ }
1250
+
1251
+ main .method-source-code pre::-webkit-scrollbar-thumb:hover {
1252
+ background: var(--color-border-emphasis);
1253
+ }
1254
+
1255
+ main .method-source-code pre::-webkit-scrollbar-corner {
1256
+ background: transparent;
1257
+ }
1258
+
1259
+ main .method-source-code.active-menu {
1260
+ visibility: visible;
1261
+ max-height: 100vh;
1262
+ overflow: auto;
1263
+ opacity: 1;
1264
+ transform: translateY(0);
1265
+ }
1266
+
1267
+ main .method-description .method-calls-super {
1268
+ color: var(--color-text-primary);
1269
+ font-weight: bold;
1270
+ }
1271
+
1272
+ main .method-detail {
1273
+ margin-bottom: 2.5em;
1274
+ }
1275
+
1276
+ main .method-detail:target {
1277
+ margin-left: calc(-1 * var(--space-5));
1278
+ padding-left: calc(var(--space-5) / 2);
1279
+ border-left: calc(var(--space-5) / 2) solid var(--color-border-default);
1280
+ }
1281
+
1282
+ main .method-header {
1283
+ display: inline-block;
1284
+ max-width: calc(100% - 6em); /* 6em is the width of the source code toggle */
1285
+ }
1286
+
1287
+ main .method-heading {
1288
+ position: relative;
1289
+ font-family: var(--font-code);
1290
+ font-size: var(--font-size-lg);
1291
+ font-weight: var(--font-weight-semibold);
1292
+ margin-bottom: var(--space-3);
1293
+ }
1294
+
1295
+ main .method-heading .method-name {
1296
+ font-weight: var(--font-weight-semibold);
1297
+ }
1298
+
1299
+ main .method-heading .method-args {
1300
+ font-weight: var(--font-weight-normal);
1301
+ }
1302
+
1303
+ main .method-controls {
1304
+ float: right;
1305
+ }
1306
+
1307
+ main .method-controls summary {
1308
+ display: inline-block;
1309
+ line-height: 20px;
1310
+ color: var(--color-accent-primary);
1311
+ cursor: pointer;
1312
+ padding: var(--space-1) var(--space-3);
1313
+ border-radius: var(--radius-sm);
1314
+ font-size: var(--font-size-sm);
1315
+ font-weight: var(--font-weight-medium);
1316
+ background: var(--color-accent-subtle);
1317
+ border: 1px solid transparent;
1318
+ transition:
1319
+ color var(--transition-fast),
1320
+ background var(--transition-fast),
1321
+ border-color var(--transition-fast),
1322
+ transform var(--transition-fast);
1323
+ user-select: none;
1324
+ -webkit-user-select: none;
1325
+ list-style: none;
1326
+ }
1327
+
1328
+ main .method-controls summary::-webkit-details-marker {
1329
+ display: none;
1330
+ }
1331
+
1332
+ main .method-controls summary:hover {
1333
+ background: var(--color-primary-100);
1334
+ border-color: var(--color-primary-300);
1335
+ transform: translateY(-1px);
1336
+ }
1337
+
1338
+ main .method-controls summary:active {
1339
+ transform: scale(0.96);
1340
+ }
1341
+
1342
+ [data-theme="dark"] main .method-controls summary:hover {
1343
+ background: var(--color-accent-subtle-hover);
1344
+ border-color: var(--color-primary-500);
1345
+ }
1346
+
1347
+ main .method-description,
1348
+ main .aliases {
1349
+ margin-top: 0.75em;
1350
+ color: var(--color-text-primary);
1351
+ }
1352
+
1353
+ main .aliases {
1354
+ padding-top: 4px;
1355
+ font-style: italic;
1356
+ cursor: default;
1357
+ }
1358
+
1359
+ main .aliases a {
1360
+ color: var(--color-accent-hover);
1361
+ }
1362
+
1363
+ main .mixin-from {
1364
+ font-size: 80%;
1365
+ font-style: italic;
1366
+ margin-bottom: 0.75em;
1367
+ }
1368
+
1369
+ main .method-description ul {
1370
+ margin-left: 1.5em;
1371
+ }
1372
+
1373
+ main #attribute-method-details .method-detail:hover {
1374
+ background-color: transparent;
1375
+ cursor: default;
1376
+ }
1377
+
1378
+ main .attribute-access-type {
1379
+ text-transform: uppercase;
1380
+ }
1381
+
1382
+ /* Small screen adjustments */
1383
+ @media (width <= 480px) {
1384
+ nav {
1385
+ width: 85%;
1386
+ max-width: 320px;
1387
+ }
1388
+
1389
+ main {
1390
+ margin: 0;
1391
+ padding: var(--space-4);
1392
+ max-width: 100%;
1393
+ }
1394
+
1395
+ table {
1396
+ display: block;
1397
+ overflow-x: auto;
1398
+ white-space: nowrap;
1399
+ }
1400
+
1401
+ main .method-controls {
1402
+ margin-top: 10px;
1403
+ float: none;
1404
+ }
1405
+ }
1406
+
1407
+
1408
+
1409
+ /* 9. Search Modal (Mobile) */
1410
+ .search-modal {
1411
+ position: fixed;
1412
+ inset: 0;
1413
+ z-index: var(--z-modal);
1414
+ display: none;
1415
+ }
1416
+
1417
+ .search-modal:not([hidden]) {
1418
+ display: flex;
1419
+ align-items: flex-start;
1420
+ justify-content: center;
1421
+ padding: var(--space-16) var(--space-4);
1422
+ }
1423
+
1424
+ /* Reduce padding on very small screens */
1425
+ @media (width <= 420px) {
1426
+ .search-modal:not([hidden]) {
1427
+ padding: var(--space-4) var(--space-3);
1428
+ }
1429
+
1430
+ .search-modal-content {
1431
+ border-radius: var(--radius-md);
1432
+ }
1433
+
1434
+ .search-modal-header {
1435
+ padding: var(--space-3);
1436
+ }
1437
+
1438
+ .search-modal-body {
1439
+ padding: var(--space-3);
1440
+ }
1441
+
1442
+ .search-modal-form input {
1443
+ font-size: var(--font-size-base);
1444
+ min-width: 0; /* Allow input to shrink */
1445
+ }
1446
+
1447
+ .search-modal-form {
1448
+ gap: var(--space-2);
1449
+ }
1450
+
1451
+ .search-modal-close {
1452
+ padding: var(--space-1) var(--space-3);
1453
+ font-size: 0.75rem;
1454
+ }
1455
+ }
1456
+
1457
+ .search-modal-backdrop {
1458
+ position: absolute;
1459
+ inset: 0;
1460
+ background: var(--color-overlay);
1461
+ z-index: 1;
1462
+ }
1463
+
1464
+ .search-modal-content {
1465
+ position: relative;
1466
+ z-index: 2;
1467
+ background: var(--color-background-primary);
1468
+ border-radius: var(--radius-lg);
1469
+ box-shadow: var(--shadow-xl);
1470
+ width: 100%;
1471
+ max-width: 600px;
1472
+ max-height: 80vh;
1473
+ display: flex;
1474
+ flex-direction: column;
1475
+ }
1476
+
1477
+ .search-modal-header {
1478
+ padding: var(--space-6);
1479
+ border-bottom: 1px solid var(--color-border-default);
1480
+ }
1481
+
1482
+ .search-modal-form {
1483
+ display: flex;
1484
+ align-items: center;
1485
+ gap: var(--space-3);
1486
+ }
1487
+
1488
+ .search-modal-icon {
1489
+ font-size: 1.5rem;
1490
+ color: var(--color-text-secondary);
1491
+ flex-shrink: 0;
1492
+ }
1493
+
1494
+ .search-modal-form input {
1495
+ flex: 1;
1496
+ border: none;
1497
+ outline: none;
1498
+ background: transparent;
1499
+ font-size: var(--font-size-lg);
1500
+ color: var(--color-text-primary);
1501
+ padding: 0;
1502
+ }
1503
+
1504
+ .search-modal-form input::placeholder {
1505
+ color: var(--color-text-tertiary);
1506
+ }
1507
+
1508
+ .search-modal-close {
1509
+ padding: var(--space-2) var(--space-4);
1510
+ background: var(--color-background-secondary);
1511
+ border: 1px solid var(--color-border-default);
1512
+ border-radius: var(--radius-md);
1513
+ font-size: var(--font-size-sm);
1514
+ color: var(--color-text-secondary);
1515
+ cursor: pointer;
1516
+ transition: background var(--transition-fast), border-color var(--transition-fast);
1517
+ flex-shrink: 0;
1518
+ }
1519
+
1520
+ .search-modal-close:hover {
1521
+ background: var(--color-background-tertiary);
1522
+ border-color: var(--color-border-default);
1523
+ }
1524
+
1525
+ .search-modal-body {
1526
+ padding: var(--space-6);
1527
+ overflow-y: auto;
1528
+ flex: 1;
1529
+ }
1530
+
1531
+ .search-modal-empty {
1532
+ text-align: center;
1533
+ color: var(--color-text-tertiary);
1534
+ padding: var(--space-12) 0;
1535
+ }
1536
+
1537
+ .search-modal-results {
1538
+ list-style: none;
1539
+ margin: 0;
1540
+ padding: 0;
1541
+ }
1542
+
1543
+ .search-modal-results.initially-hidden {
1544
+ display: block !important; /* Override initially-hidden */
1545
+ }
1546
+
1547
+ .search-modal-results li {
1548
+ padding: var(--space-3) var(--space-4);
1549
+ border-radius: var(--radius-md);
1550
+ cursor: pointer;
1551
+ transition: background var(--transition-fast);
1552
+ margin-bottom: var(--space-2);
1553
+ }
1554
+
1555
+ .search-modal-results li:hover {
1556
+ background: var(--color-background-secondary);
1557
+ }
1558
+
1559
+ .search-modal-results a {
1560
+ color: var(--color-text-primary);
1561
+ }
1562
+
1563
+ .search-modal-results .search-match {
1564
+ margin: 0;
1565
+ font-size: var(--font-size-base);
1566
+ }
1567
+
1568
+ .search-modal-results .search-match a {
1569
+ text-decoration: none;
1570
+ }
1571
+
1572
+ .search-modal-results .search-namespace {
1573
+ margin: var(--space-1) 0 0 0;
1574
+ font-size: var(--font-size-sm);
1575
+ color: var(--color-text-secondary);
1576
+ }
1577
+
1578
+ .search-modal-results .search-snippet {
1579
+ margin: var(--space-1) 0 0 0;
1580
+ font-size: var(--font-size-sm);
1581
+ color: var(--color-text-tertiary);
1582
+ }
1583
+
1584
+ /* 10. Right Sidebar - Table of Contents */
1585
+ aside.table-of-contents {
1586
+ grid-area: toc;
1587
+ align-self: start;
1588
+ position: sticky;
1589
+ top: var(--layout-header-height);
1590
+ padding: var(--space-8) var(--space-6);
1591
+ border: none;
1592
+ border-left: 1px solid var(--color-border-default);
1593
+ font-size: var(--font-size-base);
1594
+ }
1595
+
1596
+ aside.table-of-contents * {
1597
+ border-right: none !important;
1598
+ outline: none !important;
1599
+ }
1600
+
1601
+ aside.table-of-contents .toc-sticky {
1602
+ display: flex;
1603
+ flex-direction: column;
1604
+
1605
+ /* Exclude header height and top/bottom padding of aside.table-of-contents */
1606
+ height: calc(100vh - var(--layout-header-height) - var(--space-8) * 2);
1607
+ }
1608
+
1609
+ aside.table-of-contents .toc-sticky nav {
1610
+ height: auto;
1611
+ }
1612
+
1613
+ aside.table-of-contents .toc-list > .toc-h2 {
1614
+ margin-left: var(--space-4);
1615
+ }
1616
+
1617
+ aside.table-of-contents .toc-list > .toc-h3 {
1618
+ margin-left: var(--space-8);
1619
+ }
1620
+
1621
+ /* Hide TOC on mobile/tablet */
1622
+ @media (width <= 1279px) {
1623
+ aside.table-of-contents {
1624
+ display: none;
1625
+ }
1626
+
1627
+ body.has-toc {
1628
+ grid-template-columns: var(--layout-sidebar-width) 1fr;
1629
+ grid-template-areas:
1630
+ "header header"
1631
+ "nav main"
1632
+ "footer footer";
1633
+ }
1634
+ }
1635
+
1636
+ /* Tablet adjustments (between mobile and desktop) */
1637
+ @media (width >= 768px) and (width <= 1023px) {
1638
+ header.top-navbar {
1639
+ padding: 0 var(--space-6);
1640
+ }
1641
+
1642
+ main {
1643
+ padding: var(--space-8) var(--space-6);
1644
+ max-width: 100%;
1645
+ }
1646
+ }
1647
+
1648
+ .table-of-contents h3 {
1649
+ font-size: var(--font-size-lg);
1650
+ font-weight: var(--font-weight-semibold);
1651
+ margin: 0 0 var(--space-5) 0;
1652
+ color: var(--color-text-primary);
1653
+ }
1654
+
1655
+ .table-of-contents ul {
1656
+ margin: 0;
1657
+ padding: 0;
1658
+ list-style: none;
1659
+ }
1660
+
1661
+ .table-of-contents ul ul {
1662
+ margin-top: var(--space-3);
1663
+ margin-left: var(--space-5);
1664
+ border-left: 1px solid var(--color-border-default);
1665
+ padding-left: var(--space-4);
1666
+ }
1667
+
1668
+ .table-of-contents li {
1669
+ margin-bottom: var(--space-3);
1670
+ }
1671
+
1672
+ .table-of-contents a {
1673
+ display: block;
1674
+ color: var(--color-text-secondary);
1675
+ text-decoration: none;
1676
+ transition: color var(--transition-fast);
1677
+ line-height: var(--line-height-relaxed);
1678
+ overflow-wrap: break-word;
1679
+ hyphens: auto;
1680
+ }
1681
+
1682
+ /* Nav hover styles sit here to keep specificity ordering with TOC links */
1683
+ nav a:hover {
1684
+ color: var(--color-link-hover);
1685
+ text-decoration: underline;
1686
+ }
1687
+
1688
+ .table-of-contents a:hover {
1689
+ color: var(--color-link-hover);
1690
+ }
1691
+
1692
+ .table-of-contents a.active {
1693
+ color: var(--color-accent-primary);
1694
+ font-weight: var(--font-weight-medium);
1695
+ }
1696
+
1697
+ ol.breadcrumb {
1698
+ display: flex;
1699
+ padding: 0;
1700
+ margin: 0 0 1em;
1701
+ }
1702
+
1703
+ ol.breadcrumb li {
1704
+ display: block;
1705
+ list-style: none;
1706
+ font-size: 125%;
1707
+ }
1708
+
1709
+ /* 11. Footer */
1710
+ footer.site-footer {
1711
+ grid-area: footer;
1712
+ background: var(--color-background-secondary);
1713
+ border-top: 1px solid var(--color-border-default);
1714
+ padding: var(--space-12) var(--space-6);
1715
+ }
1716
+
1717
+ footer.site-footer .footer-content {
1718
+ max-width: 1200px;
1719
+ margin: 0 auto;
1720
+ display: grid;
1721
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
1722
+ gap: var(--space-8);
1723
+ }
1724
+
1725
+ footer.site-footer h3 {
1726
+ font-size: var(--font-size-sm);
1727
+ font-weight: var(--font-weight-semibold);
1728
+ color: var(--color-text-primary);
1729
+ margin: 0 0 var(--space-4) 0;
1730
+ letter-spacing: 0.05em;
1731
+ }
1732
+
1733
+ footer.site-footer ul {
1734
+ list-style: none;
1735
+ margin: 0;
1736
+ padding: 0;
1737
+ }
1738
+
1739
+ footer.site-footer li {
1740
+ margin-bottom: var(--space-2);
1741
+ }
1742
+
1743
+ footer.site-footer a {
1744
+ color: var(--color-text-secondary);
1745
+ text-decoration: none;
1746
+ font-size: var(--font-size-sm);
1747
+ transition: color var(--transition-fast);
1748
+ }
1749
+
1750
+ footer.site-footer a:hover {
1751
+ color: var(--color-link-hover);
1752
+ }
1753
+
1754
+ footer.site-footer .footer-bottom {
1755
+ margin-top: var(--space-8);
1756
+ padding-top: var(--space-6);
1757
+ border-top: 1px solid var(--color-border-default);
1758
+ text-align: center;
1759
+ font-size: var(--font-size-xs);
1760
+ color: var(--color-text-tertiary);
1761
+ }
1762
+
1763
+ footer.site-footer .footer-bottom:first-child {
1764
+ margin-top: 0;
1765
+ padding-top: 0;
1766
+ border-top: none;
1767
+ }
1768
+
1769
+ /* Search */
1770
+ #search-section {
1771
+ padding: var(--space-6);
1772
+ background-color: var(--color-background-primary);
1773
+ border-bottom: 1px solid var(--color-border-default);
1774
+ }
1775
+
1776
+ #search-field-wrapper {
1777
+ position: relative;
1778
+ display: flex;
1779
+ align-items: center;
1780
+ }
1781
+
1782
+ #search-field {
1783
+ width: 100%;
1784
+ padding: var(--space-2) var(--space-4) var(--space-2) 2.5rem;
1785
+ border: 1px solid var(--color-border-default);
1786
+ border-radius: 1.25rem;
1787
+ font-size: var(--font-size-sm);
1788
+ outline: none;
1789
+ transition: border-color var(--transition-base);
1790
+ color: var(--color-text-primary);
1791
+ }
1792
+
1793
+ #search-field:focus {
1794
+ border-color: var(--color-accent-primary);
1795
+ }
1796
+
1797
+ #search-field::placeholder {
1798
+ color: var(--color-text-primary);
1799
+ }
1800
+
1801
+ #search-field-wrapper::before {
1802
+ content: "\1F50D";
1803
+ position: absolute;
1804
+ left: var(--space-3);
1805
+ top: 50%;
1806
+ transform: translateY(-50%);
1807
+ font-size: var(--font-size-sm);
1808
+ color: var(--color-text-primary);
1809
+ opacity: 0.6;
1810
+ }
1811
+
1812
+ /* Search Results */
1813
+ .search-results {
1814
+ font-family: var(--font-primary);
1815
+ font-weight: 300;
1816
+ }
1817
+
1818
+ .search-results a {
1819
+ color: var(--color-text-primary);
1820
+ }
1821
+
1822
+ .search-results a:hover {
1823
+ color: var(--color-accent-primary);
1824
+ }
1825
+
1826
+ .search-results .search-match {
1827
+ font-family: var(--font-heading);
1828
+ font-weight: normal;
1829
+ }
1830
+
1831
+ .search-results .search-selected {
1832
+ background: var(--color-code-bg);
1833
+ border-bottom: 1px solid transparent;
1834
+ }
1835
+
1836
+ .search-results li {
1837
+ list-style: none;
1838
+ border-bottom: 1px solid var(--color-border-default);
1839
+ margin-bottom: 0.5em;
1840
+ }
1841
+
1842
+ .search-results li:last-child {
1843
+ border-bottom: none;
1844
+ margin-bottom: 0;
1845
+ }
1846
+
1847
+ .search-results li p {
1848
+ padding: 0;
1849
+ margin: 0.5em;
1850
+ }
1851
+
1852
+ .search-results .search-namespace {
1853
+ font-weight: bold;
1854
+ }
1855
+
1856
+ .search-results .search-type {
1857
+ display: inline-block;
1858
+ margin-left: var(--space-2);
1859
+ padding: 0 var(--space-2);
1860
+ font-size: var(--font-size-xs);
1861
+ font-weight: 500;
1862
+ border-radius: var(--radius-sm);
1863
+ vertical-align: middle;
1864
+ background: var(--color-background-tertiary);
1865
+ color: var(--color-text-secondary);
1866
+ }
1867
+
1868
+ .search-results .search-type-class {
1869
+ background: var(--color-search-type-class-bg);
1870
+ color: var(--color-search-type-class-text);
1871
+ }
1872
+
1873
+ .search-results .search-type-module {
1874
+ background: var(--color-search-type-module-bg);
1875
+ color: var(--color-search-type-module-text);
1876
+ }
1877
+
1878
+ .search-results .search-type-constant {
1879
+ background: var(--color-search-type-constant-bg);
1880
+ color: var(--color-search-type-constant-text);
1881
+ }
1882
+
1883
+ .search-results .search-type-instance-method,
1884
+ .search-results .search-type-class-method {
1885
+ background: var(--color-search-type-method-bg);
1886
+ color: var(--color-search-type-method-text);
1887
+ }
1888
+
1889
+ .search-results li em {
1890
+ background-color: var(--color-search-highlight-bg);
1891
+ font-style: normal;
1892
+ }
1893
+
1894
+ .search-results pre {
1895
+ margin: 0.5em;
1896
+ font-family: var(--font-code);
1897
+ }
1898
+
1899
+ header.top-navbar #search-field {
1900
+ width: 100%;
1901
+ padding: var(--space-2) var(--space-4);
1902
+ border: 1px solid var(--color-border-default);
1903
+ border-radius: var(--radius-md);
1904
+ font-size: var(--font-size-base);
1905
+ background: var(--color-background-primary);
1906
+ color: var(--color-text-primary);
1907
+ transition: border-color var(--transition-fast);
1908
+ }
1909
+
1910
+ header.top-navbar #search-field:focus {
1911
+ outline: none;
1912
+ border-color: var(--color-accent-primary);
1913
+ box-shadow: 0 0 0 3px var(--color-accent-subtle);
1914
+ }
1915
+
1916
+ header.top-navbar #search-field::placeholder {
1917
+ color: var(--color-text-tertiary);
1918
+ }
1919
+
1920
+ /* Search results dropdown in navbar */
1921
+ header.top-navbar #search-results-desktop {
1922
+ position: absolute;
1923
+ top: calc(100% + var(--space-2));
1924
+ left: 0;
1925
+ width: var(--layout-search-width);
1926
+ max-height: 60vh;
1927
+ background: var(--color-background-primary);
1928
+ border: 1px solid var(--color-border-default);
1929
+ border-radius: var(--radius-lg);
1930
+ box-shadow: var(--shadow-lg);
1931
+ overflow-y: auto;
1932
+ z-index: var(--z-popover);
1933
+ margin: 0;
1934
+ padding: 0;
1935
+ }
1936
+
1937
+ header.top-navbar #search-results-desktop.initially-hidden {
1938
+ display: none;
1939
+ }
1940
+
1941
+ header.top-navbar #search-results-desktop[aria-expanded="false"] {
1942
+ display: none;
1943
+ }