@wastech-mdlint/viewer 0.0.0-stage → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +86 -2
- package/assets/favicon.ico +0 -0
- package/assets/viewer.css +4184 -0
- package/dist/asset-routes.d.ts +4 -0
- package/dist/asset-routes.js +107 -0
- package/dist/blame.d.ts +8 -0
- package/dist/blame.js +54 -0
- package/dist/branch-changes.d.ts +8 -0
- package/dist/branch-changes.js +49 -0
- package/dist/candidate-lint-worker.d.ts +1 -0
- package/dist/candidate-lint-worker.js +67 -0
- package/dist/candidate-lint.d.ts +39 -0
- package/dist/candidate-lint.js +115 -0
- package/dist/change-banner.d.ts +38 -0
- package/dist/change-banner.js +108 -0
- package/dist/change-diff.d.ts +23 -0
- package/dist/change-diff.js +140 -0
- package/dist/change-marks.d.ts +32 -0
- package/dist/change-marks.js +363 -0
- package/dist/changes-article.d.ts +15 -0
- package/dist/changes-article.js +244 -0
- package/dist/changes-routes.d.ts +12 -0
- package/dist/changes-routes.js +271 -0
- package/dist/changes.d.ts +113 -0
- package/dist/changes.js +324 -0
- package/dist/cli-args.d.ts +21 -0
- package/dist/cli-args.js +93 -0
- package/dist/client/banner-height.d.ts +1 -0
- package/dist/client/banner-height.js +33 -0
- package/dist/client/change-marks.d.ts +1 -0
- package/dist/client/change-marks.js +56 -0
- package/dist/client/changes.d.ts +1 -0
- package/dist/client/changes.js +183 -0
- package/dist/client/chart-option.d.ts +3 -0
- package/dist/client/chart-option.js +76 -0
- package/dist/client/charts.d.ts +1 -0
- package/dist/client/charts.js +54 -0
- package/dist/client/clipboard.d.ts +1 -0
- package/dist/client/clipboard.js +43 -0
- package/dist/client/code-copy.d.ts +1 -0
- package/dist/client/code-copy.js +29 -0
- package/dist/client/column-resize.d.ts +1 -0
- package/dist/client/column-resize.js +120 -0
- package/dist/client/config-dom.d.ts +13 -0
- package/dist/client/config-dom.js +47 -0
- package/dist/client/config-draft.d.ts +73 -0
- package/dist/client/config-draft.js +218 -0
- package/dist/client/config-editor.d.ts +3 -0
- package/dist/client/config-editor.js +677 -0
- package/dist/client/config-fields.d.ts +35 -0
- package/dist/client/config-fields.js +339 -0
- package/dist/client/config-json.d.ts +18 -0
- package/dist/client/config-json.js +96 -0
- package/dist/client/config-preview.d.ts +9 -0
- package/dist/client/config-preview.js +91 -0
- package/dist/client/config-rules.d.ts +14 -0
- package/dist/client/config-rules.js +202 -0
- package/dist/client/config-types.d.ts +91 -0
- package/dist/client/config-types.js +4 -0
- package/dist/client/copy-path.d.ts +1 -0
- package/dist/client/copy-path.js +32 -0
- package/dist/client/dashboard-requests.d.ts +11 -0
- package/dist/client/dashboard-requests.js +28 -0
- package/dist/client/dashboard.d.ts +1 -0
- package/dist/client/dashboard.js +119 -0
- package/dist/client/diagnostics.d.ts +1 -0
- package/dist/client/diagnostics.js +164 -0
- package/dist/client/diagrams.d.ts +1 -0
- package/dist/client/diagrams.js +81 -0
- package/dist/client/diff-expand.d.ts +1 -0
- package/dist/client/diff-expand.js +42 -0
- package/dist/client/display-settings-model.d.ts +74 -0
- package/dist/client/display-settings-model.js +229 -0
- package/dist/client/display-settings.d.ts +1 -0
- package/dist/client/display-settings.js +411 -0
- package/dist/client/echarts.d.ts +30 -0
- package/dist/client/echarts.js +14 -0
- package/dist/client/graph-layout.d.ts +88 -0
- package/dist/client/graph-layout.js +198 -0
- package/dist/client/graph.d.ts +2 -0
- package/dist/client/graph.js +566 -0
- package/dist/client/history.d.ts +21 -0
- package/dist/client/history.js +86 -0
- package/dist/client/live-reload-model.d.ts +28 -0
- package/dist/client/live-reload-model.js +52 -0
- package/dist/client/live-reload.d.ts +9 -0
- package/dist/client/live-reload.js +138 -0
- package/dist/client/menu.d.ts +14 -0
- package/dist/client/menu.js +176 -0
- package/dist/client/navigation-feedback.d.ts +1 -0
- package/dist/client/navigation-feedback.js +141 -0
- package/dist/client/open-config.d.ts +1 -0
- package/dist/client/open-config.js +48 -0
- package/dist/client/outline-spy.d.ts +1 -0
- package/dist/client/outline-spy.js +60 -0
- package/dist/client/prompts.d.ts +7 -0
- package/dist/client/prompts.js +65 -0
- package/dist/client/review.d.ts +1 -0
- package/dist/client/review.js +379 -0
- package/dist/client/search.d.ts +1 -0
- package/dist/client/search.js +199 -0
- package/dist/client/segmented.d.ts +13 -0
- package/dist/client/segmented.js +70 -0
- package/dist/client/source-lines.d.ts +16 -0
- package/dist/client/source-lines.js +47 -0
- package/dist/client/theme-toggle.d.ts +10 -0
- package/dist/client/theme-toggle.js +100 -0
- package/dist/client/theme.d.ts +0 -0
- package/dist/client/theme.js +50 -0
- package/dist/client/tree-marks.d.ts +31 -0
- package/dist/client/tree-marks.js +102 -0
- package/dist/client/tree-state.d.ts +0 -0
- package/dist/client/tree-state.js +179 -0
- package/dist/client/viewer.d.ts +1 -0
- package/dist/client/viewer.js +53 -0
- package/dist/config-editor.d.ts +166 -0
- package/dist/config-editor.js +378 -0
- package/dist/config-routes.d.ts +18 -0
- package/dist/config-routes.js +213 -0
- package/dist/context-view.d.ts +41 -0
- package/dist/context-view.js +295 -0
- package/dist/corpus-routes.d.ts +31 -0
- package/dist/corpus-routes.js +258 -0
- package/dist/corpus.d.ts +134 -0
- package/dist/corpus.js +653 -0
- package/dist/dashboard-article.d.ts +14 -0
- package/dist/dashboard-article.js +290 -0
- package/dist/dashboard.d.ts +94 -0
- package/dist/dashboard.js +468 -0
- package/dist/diagnostics.d.ts +23 -0
- package/dist/diagnostics.js +44 -0
- package/dist/document-routes.d.ts +39 -0
- package/dist/document-routes.js +396 -0
- package/dist/event-hub.d.ts +39 -0
- package/dist/event-hub.js +120 -0
- package/dist/findings-panel.d.ts +4 -0
- package/dist/findings-panel.js +74 -0
- package/dist/folder-page.d.ts +8 -0
- package/dist/folder-page.js +74 -0
- package/dist/graph-view.d.ts +66 -0
- package/dist/graph-view.js +236 -0
- package/dist/highlight.d.ts +24 -0
- package/dist/highlight.js +100 -0
- package/dist/http-send.d.ts +9 -0
- package/dist/http-send.js +53 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +72 -0
- package/dist/open-file.d.ts +36 -0
- package/dist/open-file.js +87 -0
- package/dist/page-tree.d.ts +3 -0
- package/dist/page-tree.js +105 -0
- package/dist/page.d.ts +73 -0
- package/dist/page.js +478 -0
- package/dist/prompts.d.ts +25 -0
- package/dist/prompts.js +82 -0
- package/dist/render-cache.d.ts +23 -0
- package/dist/render-cache.js +38 -0
- package/dist/render-document.d.ts +60 -0
- package/dist/render-document.js +440 -0
- package/dist/request-path.d.ts +17 -0
- package/dist/request-path.js +51 -0
- package/dist/review-context.d.ts +24 -0
- package/dist/review-context.js +109 -0
- package/dist/review-queries.d.ts +26 -0
- package/dist/review-queries.js +69 -0
- package/dist/review-state.d.ts +106 -0
- package/dist/review-state.js +251 -0
- package/dist/review-store.d.ts +145 -0
- package/dist/review-store.js +530 -0
- package/dist/router.d.ts +28 -0
- package/dist/router.js +294 -0
- package/dist/search.d.ts +22 -0
- package/dist/search.js +164 -0
- package/dist/security.d.ts +95 -0
- package/dist/security.js +196 -0
- package/dist/server.d.ts +21 -0
- package/dist/server.js +224 -0
- package/dist/speculation-rules.d.ts +4 -0
- package/dist/speculation-rules.js +49 -0
- package/dist/state-dir.d.ts +6 -0
- package/dist/state-dir.js +31 -0
- package/dist/tree-marks.d.ts +49 -0
- package/dist/tree-marks.js +108 -0
- package/dist/viewer-context.d.ts +37 -0
- package/dist/viewer-context.js +74 -0
- package/dist/watch.d.ts +41 -0
- package/dist/watch.js +135 -0
- package/package.json +57 -4
|
@@ -0,0 +1,4184 @@
|
|
|
1
|
+
/* Every color is a token holding both a light and a dark value. `light-dark()` picks one from the
|
|
2
|
+
element's `color-scheme`, which follows the operating system until the header switch pins it with
|
|
3
|
+
`data-theme` on <html> — so one set of tokens serves all three modes, with no duplicated dark
|
|
4
|
+
block to drift out of step with the light one.
|
|
5
|
+
|
|
6
|
+
The palette is the one iOS and macOS draw their own controls in — grouped gray backgrounds, gray
|
|
7
|
+
fills instead of outlines, a green switch — with two deliberate departures: the light theme's blue
|
|
8
|
+
and red are a shade darker than the system's, because the system's own are below 4.5:1 on white
|
|
9
|
+
and here they carry small text (links, rule ids, error counts), not just glyphs. */
|
|
10
|
+
:root {
|
|
11
|
+
color-scheme: light dark;
|
|
12
|
+
--bg: light-dark(#ffffff, #1c1c1e);
|
|
13
|
+
--bg-subtle: light-dark(#f2f2f7, #2c2c2e);
|
|
14
|
+
--bg-sidebar: light-dark(#f5f5f7, #161618);
|
|
15
|
+
/* A panel's own backdrop and the cards laid on it, as a grouped list in Settings is drawn. */
|
|
16
|
+
--bg-grouped: light-dark(#f2f2f7, #111113);
|
|
17
|
+
--bg-card: light-dark(#ffffff, #2c2c2e);
|
|
18
|
+
/* A card inside a card: in the dark theme the subtle and the card shade are the same gray, so a
|
|
19
|
+
nested group needs a third one to stand apart from the group around it. */
|
|
20
|
+
--bg-raised: light-dark(#ffffff, #3a3a3c);
|
|
21
|
+
--fg: light-dark(#1d1d1f, #f5f5f7);
|
|
22
|
+
--fg-muted: light-dark(#6e6e73, #98989d);
|
|
23
|
+
--border: light-dark(#d1d1d6, #38383a);
|
|
24
|
+
--border-subtle: light-dark(#e5e5ea, #2c2c2e);
|
|
25
|
+
/* The accent the reader picked in the display settings, or the blue. Its tint is mixed from it
|
|
26
|
+
rather than held as a color of its own, so every accent gets one without a second table. */
|
|
27
|
+
--accent: var(--reader-accent, light-dark(#0066cc, #0a84ff));
|
|
28
|
+
--accent-bg: light-dark(
|
|
29
|
+
color-mix(in srgb, var(--accent) 10%, transparent),
|
|
30
|
+
color-mix(in srgb, var(--accent) 22%, transparent)
|
|
31
|
+
);
|
|
32
|
+
--danger: light-dark(#d70015, #ff453a);
|
|
33
|
+
--warning: light-dark(#b25000, #ff9f0a);
|
|
34
|
+
/* Only a switch's track: it is never text, so the system green needs no darker variant. */
|
|
35
|
+
--success: light-dark(#34c759, #30d158);
|
|
36
|
+
--code-bg: light-dark(#f5f5f7, #2c2c2e);
|
|
37
|
+
/* Control fills, translucent so one value reads on the page, the sidebar and a card alike. */
|
|
38
|
+
--fill: light-dark(rgb(120 120 128 / 12%), rgb(118 118 128 / 24%));
|
|
39
|
+
--fill-strong: light-dark(rgb(120 120 128 / 20%), rgb(118 118 128 / 36%));
|
|
40
|
+
--segment-thumb: light-dark(#ffffff, #636366);
|
|
41
|
+
--shadow: light-dark(rgb(0 0 0 / 12%), rgb(0 0 0 / 45%));
|
|
42
|
+
--shadow-sm:
|
|
43
|
+
0 1px 3px light-dark(rgb(0 0 0 / 12%), rgb(0 0 0 / 35%)),
|
|
44
|
+
0 1px 1px light-dark(rgb(0 0 0 / 4%), rgb(0 0 0 / 20%));
|
|
45
|
+
--shadow-lg:
|
|
46
|
+
0 12px 32px light-dark(rgb(0 0 0 / 14%), rgb(0 0 0 / 50%)),
|
|
47
|
+
0 0 0 0.5px light-dark(rgb(0 0 0 / 8%), rgb(255 255 255 / 10%));
|
|
48
|
+
/* A bar or a popover over scrolling content: the page shows through, blurred, as it does under a
|
|
49
|
+
navigation bar on iOS, so the reader keeps a sense of what is behind it. */
|
|
50
|
+
--material: color-mix(in srgb, var(--bg) 80%, transparent);
|
|
51
|
+
--material-filter: saturate(180%) blur(20px);
|
|
52
|
+
--focus-ring: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
|
|
53
|
+
/* A hovered row: the text color thinned over whatever is behind it, so it reads on the sidebar's
|
|
54
|
+
own background in both themes, where the subtle background is all but the same shade. */
|
|
55
|
+
--row-hover: color-mix(in srgb, var(--fg) 6%, transparent);
|
|
56
|
+
|
|
57
|
+
/* One scale of spacings, radii and heights for the whole interface, on a 4px grid: a gap that is
|
|
58
|
+
not on it is the visible kind of inconsistency, two neighbors a pixel or two apart. */
|
|
59
|
+
--space-1: 4px;
|
|
60
|
+
--space-2: 8px;
|
|
61
|
+
--space-3: 12px;
|
|
62
|
+
--space-4: 16px;
|
|
63
|
+
--space-5: 20px;
|
|
64
|
+
--space-6: 24px;
|
|
65
|
+
--space-8: 32px;
|
|
66
|
+
--space-12: 48px;
|
|
67
|
+
--radius-xs: 6px;
|
|
68
|
+
--radius-sm: 8px;
|
|
69
|
+
--radius-md: 10px;
|
|
70
|
+
--radius-lg: 14px;
|
|
71
|
+
--control: 32px;
|
|
72
|
+
--control-sm: 28px;
|
|
73
|
+
--control-xs: 24px;
|
|
74
|
+
--ease: cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
75
|
+
--ease-out: cubic-bezier(0.2, 0, 0, 1);
|
|
76
|
+
|
|
77
|
+
/* Glyphs drawn as masks in the text color, rather than as characters: ▶, × or ☀ sit at a
|
|
78
|
+
different height in every font, and the reader picks the font. */
|
|
79
|
+
--icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 3.5 4.5 4.5L6 12.5'/%3E%3C/svg%3E");
|
|
80
|
+
--icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.75'/%3E%3Cpath d='m10.6 10.6 3.4 3.4'/%3E%3C/svg%3E");
|
|
81
|
+
/* A select's up-down chevrons, as a background image, so in a fixed gray that reads in both themes. */
|
|
82
|
+
--icon-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238e8e93' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 6 3-3 3 3M5 10l3 3 3-3'/%3E%3C/svg%3E");
|
|
83
|
+
|
|
84
|
+
--font-sans-system:
|
|
85
|
+
-apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto,
|
|
86
|
+
"Helvetica Neue", Arial, sans-serif;
|
|
87
|
+
--font-mono-system:
|
|
88
|
+
ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
|
|
89
|
+
/* The fonts the whole page reads: the site fonts the reader chose in the display settings, or the
|
|
90
|
+
system's. Kept apart from the system stacks above so a chosen font can fall back to them. */
|
|
91
|
+
--font-sans: var(--reader-site-font, var(--font-sans-system));
|
|
92
|
+
--font-mono: var(--reader-site-mono, var(--font-mono-system));
|
|
93
|
+
--sidebar-width: 280px;
|
|
94
|
+
--rail-width: 248px;
|
|
95
|
+
--topbar-height: 52px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
:root[data-theme="light"] {
|
|
99
|
+
color-scheme: light;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:root[data-theme="dark"] {
|
|
103
|
+
color-scheme: dark;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Shiki writes both themes' colors as variables, so code switches with the page. Only the block takes
|
|
107
|
+
a background: a token span painted with it would cover a selected line's highlight. */
|
|
108
|
+
.shiki {
|
|
109
|
+
color: light-dark(var(--shiki-light), var(--shiki-dark));
|
|
110
|
+
background-color: light-dark(var(--shiki-light-bg), var(--shiki-dark-bg));
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.shiki span {
|
|
114
|
+
color: light-dark(var(--shiki-light), var(--shiki-dark));
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
* {
|
|
118
|
+
box-sizing: border-box;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* The scrollbar's room is kept on every page, whether or not it scrolls, so moving between a long page
|
|
122
|
+
and a short one never shifts the header's right-aligned controls by a scrollbar's width. */
|
|
123
|
+
html {
|
|
124
|
+
scroll-padding-top: calc(var(--topbar-height) + var(--space-4));
|
|
125
|
+
scrollbar-gutter: stable;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* Moving between pages is a full page load. As a cross-document view transition, the old page stays
|
|
129
|
+
on screen until the new one can be drawn, and the new one then replaces it in a single frame.
|
|
130
|
+
Browsers without cross-document transitions load the page as before.
|
|
131
|
+
|
|
132
|
+
Nothing fades. Laid over each other without a fade, the old and the new picture of the bar showed
|
|
133
|
+
wherever they differed — a longer path, which the bar's translucent material also lets through —
|
|
134
|
+
as doubled text for the whole transition; crossfading the article laid two texts over each other;
|
|
135
|
+
and fading the new article in left an empty frame between the two pages, which reads as a blink.
|
|
136
|
+
The new page is drawn with every mark already in place, so what it shows first is what stays. */
|
|
137
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
138
|
+
@view-transition {
|
|
139
|
+
navigation: auto;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
::view-transition-old(*) {
|
|
144
|
+
display: none;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
::view-transition-group(*),
|
|
148
|
+
::view-transition-new(*) {
|
|
149
|
+
animation: none;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
body {
|
|
153
|
+
margin: 0;
|
|
154
|
+
background: var(--bg);
|
|
155
|
+
color: var(--fg);
|
|
156
|
+
font-family: var(--font-sans);
|
|
157
|
+
font-size: 16px;
|
|
158
|
+
line-height: 1.6;
|
|
159
|
+
-webkit-font-smoothing: antialiased;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
a {
|
|
163
|
+
color: var(--accent);
|
|
164
|
+
text-decoration: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
a:hover {
|
|
168
|
+
text-decoration: underline;
|
|
169
|
+
text-underline-offset: 2px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
:focus-visible {
|
|
173
|
+
outline: 2px solid var(--accent);
|
|
174
|
+
outline-offset: 2px;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.skip-link {
|
|
178
|
+
position: absolute;
|
|
179
|
+
left: -9999px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.skip-link:focus {
|
|
183
|
+
left: var(--space-4);
|
|
184
|
+
top: var(--space-2);
|
|
185
|
+
z-index: 10;
|
|
186
|
+
padding: var(--space-1) var(--space-2);
|
|
187
|
+
border-radius: var(--radius-xs);
|
|
188
|
+
background: var(--bg);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.visually-hidden {
|
|
192
|
+
position: absolute;
|
|
193
|
+
width: 1px;
|
|
194
|
+
height: 1px;
|
|
195
|
+
overflow: hidden;
|
|
196
|
+
clip-path: inset(50%);
|
|
197
|
+
white-space: nowrap;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/* ---------------------------------------------------------------------------------------------
|
|
201
|
+
Controls. Every one is a fixed height with its label centered by flex rather than by a line
|
|
202
|
+
height worked out in pixels: the reader can set the whole site in a serif, a monospace or any
|
|
203
|
+
installed font, and a line-height that centers one font's letters leaves another's a pixel or
|
|
204
|
+
two high or low.
|
|
205
|
+
--------------------------------------------------------------------------------------------- */
|
|
206
|
+
|
|
207
|
+
/* Gray: the ordinary button, a fill rather than an outline. */
|
|
208
|
+
.prompt-menu,
|
|
209
|
+
.code-copy,
|
|
210
|
+
.config-open-button,
|
|
211
|
+
.review-reset,
|
|
212
|
+
.config-editor button:not(.segment),
|
|
213
|
+
.filter-actions button,
|
|
214
|
+
.graph-controls button {
|
|
215
|
+
display: inline-flex;
|
|
216
|
+
align-items: center;
|
|
217
|
+
justify-content: center;
|
|
218
|
+
gap: var(--space-1);
|
|
219
|
+
height: var(--control-sm);
|
|
220
|
+
padding: 0 var(--space-3);
|
|
221
|
+
border: 0;
|
|
222
|
+
border-radius: var(--radius-sm);
|
|
223
|
+
background: var(--fill);
|
|
224
|
+
color: var(--fg);
|
|
225
|
+
font: inherit;
|
|
226
|
+
font-size: 13px;
|
|
227
|
+
font-weight: 500;
|
|
228
|
+
line-height: 1;
|
|
229
|
+
white-space: nowrap;
|
|
230
|
+
cursor: pointer;
|
|
231
|
+
transition:
|
|
232
|
+
background-color 120ms var(--ease),
|
|
233
|
+
color 120ms var(--ease);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.prompt-menu:hover,
|
|
237
|
+
.prompt-menu[aria-expanded="true"],
|
|
238
|
+
.code-copy:hover,
|
|
239
|
+
.config-open-button:hover:not(:disabled),
|
|
240
|
+
.review-reset:hover:not(:disabled),
|
|
241
|
+
.config-editor button:not(.segment):hover:not(:disabled),
|
|
242
|
+
.filter-actions button:hover,
|
|
243
|
+
.graph-controls button:hover {
|
|
244
|
+
background: var(--fill-strong);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.config-open-button:disabled,
|
|
248
|
+
.review-reset:disabled,
|
|
249
|
+
.config-editor button:not(.segment):disabled {
|
|
250
|
+
opacity: 0.5;
|
|
251
|
+
cursor: default;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* Plain: an icon or a short mark on no fill until hovered, for the header's quiet controls. */
|
|
255
|
+
.copy-path,
|
|
256
|
+
.settings-toggle,
|
|
257
|
+
.settings-close {
|
|
258
|
+
display: inline-flex;
|
|
259
|
+
flex: none;
|
|
260
|
+
align-items: center;
|
|
261
|
+
justify-content: center;
|
|
262
|
+
padding: 0;
|
|
263
|
+
border: 0;
|
|
264
|
+
border-radius: var(--radius-sm);
|
|
265
|
+
background: none;
|
|
266
|
+
color: var(--fg-muted);
|
|
267
|
+
font: inherit;
|
|
268
|
+
line-height: 1;
|
|
269
|
+
cursor: pointer;
|
|
270
|
+
transition:
|
|
271
|
+
background-color 120ms var(--ease),
|
|
272
|
+
color 120ms var(--ease);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.copy-path:hover,
|
|
276
|
+
.copy-path[aria-expanded="true"],
|
|
277
|
+
.settings-toggle:hover,
|
|
278
|
+
.settings-close:hover {
|
|
279
|
+
background: var(--fill);
|
|
280
|
+
color: var(--fg);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* Fields: a gray fill with no outline, the way iOS draws a text field; focus lifts the field onto
|
|
284
|
+
the page color and rings it. */
|
|
285
|
+
.search input,
|
|
286
|
+
.settings-field input[type="text"],
|
|
287
|
+
.settings-field input[type="number"],
|
|
288
|
+
.dashboard-filters input[type="number"],
|
|
289
|
+
.dashboard-filters input[type="search"],
|
|
290
|
+
.dashboard-filters select,
|
|
291
|
+
.graph-controls select,
|
|
292
|
+
.config-editor input,
|
|
293
|
+
.config-editor select,
|
|
294
|
+
.config-editor textarea {
|
|
295
|
+
min-width: 0;
|
|
296
|
+
max-width: 100%;
|
|
297
|
+
height: var(--control-sm);
|
|
298
|
+
padding: 0 var(--space-2);
|
|
299
|
+
border: 0;
|
|
300
|
+
border-radius: var(--radius-sm);
|
|
301
|
+
background-color: var(--fill);
|
|
302
|
+
color: var(--fg);
|
|
303
|
+
font: inherit;
|
|
304
|
+
font-size: 13px;
|
|
305
|
+
transition:
|
|
306
|
+
background-color 120ms var(--ease),
|
|
307
|
+
box-shadow 120ms var(--ease);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.search input:focus,
|
|
311
|
+
.settings-field input[type="text"]:focus,
|
|
312
|
+
.settings-field input[type="number"]:focus,
|
|
313
|
+
.dashboard-filters input:focus,
|
|
314
|
+
.dashboard-filters select:focus,
|
|
315
|
+
.graph-controls select:focus,
|
|
316
|
+
.config-editor input:focus,
|
|
317
|
+
.config-editor select:focus,
|
|
318
|
+
.config-editor textarea:focus {
|
|
319
|
+
outline: none;
|
|
320
|
+
background-color: var(--bg);
|
|
321
|
+
box-shadow: var(--focus-ring);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
::placeholder {
|
|
325
|
+
color: var(--fg-muted);
|
|
326
|
+
opacity: 1;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/* The browser's own select arrow sits at a different place on every platform; this one lines up
|
|
330
|
+
with the field's padding everywhere. */
|
|
331
|
+
.dashboard-filters select,
|
|
332
|
+
.graph-controls select,
|
|
333
|
+
.config-editor select,
|
|
334
|
+
.settings-field select {
|
|
335
|
+
appearance: none;
|
|
336
|
+
padding-right: var(--space-8);
|
|
337
|
+
background-image: var(--icon-select);
|
|
338
|
+
background-position: right var(--space-2) center;
|
|
339
|
+
background-repeat: no-repeat;
|
|
340
|
+
background-size: 14px 14px;
|
|
341
|
+
cursor: pointer;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/* Segmented control: a gray track with the chosen segment lifted onto a white (in the dark theme,
|
|
345
|
+
gray) thumb. Used wherever one of a few choices is picked — the header's sections, the theme, the
|
|
346
|
+
config's form or text view, an alignment, a severity — so every one-of-few choice looks alike. */
|
|
347
|
+
.segmented {
|
|
348
|
+
display: inline-flex;
|
|
349
|
+
flex: none;
|
|
350
|
+
align-items: stretch;
|
|
351
|
+
gap: 2px;
|
|
352
|
+
height: var(--control);
|
|
353
|
+
padding: 2px;
|
|
354
|
+
border-radius: 9px;
|
|
355
|
+
background: var(--fill);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.segment {
|
|
359
|
+
display: inline-flex;
|
|
360
|
+
flex: 1 1 auto;
|
|
361
|
+
align-items: center;
|
|
362
|
+
justify-content: center;
|
|
363
|
+
gap: 6px;
|
|
364
|
+
min-width: 0;
|
|
365
|
+
padding: 0 var(--space-3);
|
|
366
|
+
border: 0;
|
|
367
|
+
border-radius: 7px;
|
|
368
|
+
background: none;
|
|
369
|
+
color: var(--fg);
|
|
370
|
+
font: inherit;
|
|
371
|
+
font-size: 13px;
|
|
372
|
+
font-weight: 500;
|
|
373
|
+
line-height: 1;
|
|
374
|
+
white-space: nowrap;
|
|
375
|
+
cursor: pointer;
|
|
376
|
+
transition:
|
|
377
|
+
background-color 150ms var(--ease),
|
|
378
|
+
box-shadow 150ms var(--ease);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.segment:hover {
|
|
382
|
+
background: var(--row-hover);
|
|
383
|
+
text-decoration: none;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.segment:focus-visible {
|
|
387
|
+
outline: 2px solid var(--accent);
|
|
388
|
+
outline-offset: 0;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.segment:is(
|
|
392
|
+
[aria-current="page"],
|
|
393
|
+
[aria-pressed="true"],
|
|
394
|
+
[aria-checked="true"]
|
|
395
|
+
) {
|
|
396
|
+
background: var(--segment-thumb);
|
|
397
|
+
box-shadow: var(--shadow-sm);
|
|
398
|
+
cursor: default;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/* Between a click that leaves the page and the next page appearing, the header's section is the one
|
|
402
|
+
the next page belongs to: the segment it leads to is chosen and the page's own is not, as the next
|
|
403
|
+
page will draw them, so the click shows at once that it was taken. */
|
|
404
|
+
.section-nav .segment[data-pending] {
|
|
405
|
+
background: var(--segment-thumb);
|
|
406
|
+
box-shadow: var(--shadow-sm);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.section-nav[data-pending] .segment[aria-current="page"]:not([data-pending]) {
|
|
410
|
+
background: none;
|
|
411
|
+
box-shadow: none;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/* Drawn in full at once: the page is left a frame after the click, and the frame it leaves on screen
|
|
415
|
+
until the next page appears would otherwise hold the choice halfway through its transition. */
|
|
416
|
+
:root[data-navigating] :is(.segment, .tree a) {
|
|
417
|
+
transition: none;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.segment svg {
|
|
421
|
+
flex: none;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/* Inside a form or a panel row: one step smaller, beside fields of that height. */
|
|
425
|
+
.segmented.is-compact {
|
|
426
|
+
height: var(--control-sm);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.segmented.is-compact .segment {
|
|
430
|
+
padding: 0 var(--space-2);
|
|
431
|
+
font-size: 12px;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/* Every segment as wide as the widest, where the choices are views of one thing rather than words
|
|
435
|
+
of different weight: sized to their captions, "Off" beside "Rendered" reads as the lesser
|
|
436
|
+
choice and the track looks lopsided. A grid of equal columns sizes them all by the longest
|
|
437
|
+
caption, whatever font the reader picked, where a fixed width would fit only one font. */
|
|
438
|
+
.segmented.is-even {
|
|
439
|
+
display: inline-grid;
|
|
440
|
+
grid-auto-columns: 1fr;
|
|
441
|
+
grid-auto-flow: column;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/* Switch: an on/off choice that applies at once, drawn as the iOS switch. A checkbox underneath with
|
|
445
|
+
`role="switch"`, so the keyboard, a form and a screen reader treat it as the control it is. */
|
|
446
|
+
.switch {
|
|
447
|
+
appearance: none;
|
|
448
|
+
position: relative;
|
|
449
|
+
flex: none;
|
|
450
|
+
width: 40px;
|
|
451
|
+
height: 24px;
|
|
452
|
+
margin: 0;
|
|
453
|
+
border-radius: 12px;
|
|
454
|
+
background: var(--fill-strong);
|
|
455
|
+
cursor: pointer;
|
|
456
|
+
transition: background-color 200ms var(--ease);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.switch::before {
|
|
460
|
+
content: "";
|
|
461
|
+
position: absolute;
|
|
462
|
+
top: 2px;
|
|
463
|
+
left: 2px;
|
|
464
|
+
width: 20px;
|
|
465
|
+
height: 20px;
|
|
466
|
+
border-radius: 50%;
|
|
467
|
+
background: #ffffff;
|
|
468
|
+
box-shadow:
|
|
469
|
+
0 2px 4px rgb(0 0 0 / 18%),
|
|
470
|
+
0 0 0 0.5px rgb(0 0 0 / 6%);
|
|
471
|
+
transition: transform 200ms var(--ease-out);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.switch:checked {
|
|
475
|
+
background: var(--success);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.switch:checked::before {
|
|
479
|
+
transform: translateX(16px);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.switch:disabled {
|
|
483
|
+
opacity: 0.5;
|
|
484
|
+
cursor: default;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/* A label and its switch on one row, the label first, as a row in Settings reads. */
|
|
488
|
+
.switch-row {
|
|
489
|
+
display: flex;
|
|
490
|
+
align-items: center;
|
|
491
|
+
justify-content: space-between;
|
|
492
|
+
gap: var(--space-3);
|
|
493
|
+
cursor: pointer;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
/* A disclosure chevron, for a summary whose own marker was hidden: it points right and turns down
|
|
497
|
+
when the section opens. */
|
|
498
|
+
.chevron::before,
|
|
499
|
+
.tree summary::before,
|
|
500
|
+
.diagnostics > summary::before,
|
|
501
|
+
.config-rule > summary::before,
|
|
502
|
+
.sidebar-summary::after,
|
|
503
|
+
.markdown-body details > summary::before {
|
|
504
|
+
content: "";
|
|
505
|
+
flex: none;
|
|
506
|
+
width: 12px;
|
|
507
|
+
height: 12px;
|
|
508
|
+
background: currentColor;
|
|
509
|
+
mask: var(--icon-chevron) center / contain no-repeat;
|
|
510
|
+
opacity: 0.6;
|
|
511
|
+
transition: transform 180ms var(--ease-out);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/* ---------------------------------------------------------------------------------------------
|
|
515
|
+
Top bar
|
|
516
|
+
--------------------------------------------------------------------------------------------- */
|
|
517
|
+
.topbar {
|
|
518
|
+
position: sticky;
|
|
519
|
+
top: 0;
|
|
520
|
+
z-index: 5;
|
|
521
|
+
display: flex;
|
|
522
|
+
align-items: center;
|
|
523
|
+
gap: var(--space-3);
|
|
524
|
+
height: var(--topbar-height);
|
|
525
|
+
padding: 0 var(--space-4);
|
|
526
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
527
|
+
background: var(--material);
|
|
528
|
+
backdrop-filter: var(--material-filter);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
/* While the next page takes longer than a moment, a thin bar along the header's lower edge grows
|
|
532
|
+
toward its end, and the pointer says the page is busy. Never shown for the moment a document takes
|
|
533
|
+
to open: a bar that came and went in a tenth of a second would be a blink of its own. It belongs
|
|
534
|
+
to the page being left, so the next page arrives without it. */
|
|
535
|
+
.topbar::after {
|
|
536
|
+
content: "";
|
|
537
|
+
position: absolute;
|
|
538
|
+
right: 0;
|
|
539
|
+
bottom: -1px;
|
|
540
|
+
left: 0;
|
|
541
|
+
height: 2px;
|
|
542
|
+
background: var(--accent);
|
|
543
|
+
opacity: 0;
|
|
544
|
+
transform: scaleX(0);
|
|
545
|
+
transform-origin: left;
|
|
546
|
+
pointer-events: none;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
:root[data-navigating="slow"] .topbar::after {
|
|
550
|
+
opacity: 1;
|
|
551
|
+
animation: navigation-progress 3s var(--ease-out) forwards;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/* It never reaches the end, which only the next page arriving can mean. */
|
|
555
|
+
@keyframes navigation-progress {
|
|
556
|
+
from {
|
|
557
|
+
transform: scaleX(0.08);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
to {
|
|
561
|
+
transform: scaleX(0.9);
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
:root[data-navigating="slow"] :is(body, a, button, summary, .segment) {
|
|
566
|
+
cursor: progress;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.site-name {
|
|
570
|
+
flex: none;
|
|
571
|
+
color: var(--fg);
|
|
572
|
+
font-size: 15px;
|
|
573
|
+
font-weight: 600;
|
|
574
|
+
letter-spacing: -0.01em;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.site-name:hover {
|
|
578
|
+
text-decoration: none;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.current-path {
|
|
582
|
+
min-width: 0;
|
|
583
|
+
overflow: hidden;
|
|
584
|
+
color: var(--fg-muted);
|
|
585
|
+
font-family: var(--font-mono);
|
|
586
|
+
font-size: 12px;
|
|
587
|
+
text-overflow: ellipsis;
|
|
588
|
+
white-space: nowrap;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.copy-path {
|
|
592
|
+
width: var(--control-sm);
|
|
593
|
+
height: var(--control-sm);
|
|
594
|
+
vertical-align: middle;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/* The header's path gives up its width before the copy button beside it does, and the button sits
|
|
598
|
+
close to the path it copies rather than a full gap away. */
|
|
599
|
+
.topbar .current-path + .copy-path {
|
|
600
|
+
margin-left: calc(var(--space-1) - var(--space-3));
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/* Search: an iOS search field, a magnifier inside its left edge, pushed to the right of whatever the
|
|
604
|
+
bar holds. */
|
|
605
|
+
.search {
|
|
606
|
+
position: relative;
|
|
607
|
+
flex: 0 1 320px;
|
|
608
|
+
min-width: 160px;
|
|
609
|
+
margin-left: auto;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.search::before {
|
|
613
|
+
content: "";
|
|
614
|
+
position: absolute;
|
|
615
|
+
top: 50%;
|
|
616
|
+
left: 10px;
|
|
617
|
+
width: 14px;
|
|
618
|
+
height: 14px;
|
|
619
|
+
margin-top: -7px;
|
|
620
|
+
background: var(--fg-muted);
|
|
621
|
+
mask: var(--icon-search) center / contain no-repeat;
|
|
622
|
+
pointer-events: none;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.search input {
|
|
626
|
+
width: 100%;
|
|
627
|
+
height: var(--control);
|
|
628
|
+
padding: 0 64px 0 var(--space-8);
|
|
629
|
+
border-radius: var(--radius-md);
|
|
630
|
+
font-size: 14px;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.search input::-webkit-search-cancel-button {
|
|
634
|
+
display: none;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.search-shortcut {
|
|
638
|
+
position: absolute;
|
|
639
|
+
top: 50%;
|
|
640
|
+
right: 6px;
|
|
641
|
+
display: inline-flex;
|
|
642
|
+
align-items: center;
|
|
643
|
+
height: 20px;
|
|
644
|
+
margin-top: -10px;
|
|
645
|
+
padding: 0 6px;
|
|
646
|
+
border-radius: 5px;
|
|
647
|
+
background: var(--fill);
|
|
648
|
+
color: var(--fg-muted);
|
|
649
|
+
font-family: var(--font-sans);
|
|
650
|
+
font-size: 11px;
|
|
651
|
+
font-weight: 500;
|
|
652
|
+
line-height: 1;
|
|
653
|
+
pointer-events: none;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
.search input:focus + .search-shortcut {
|
|
657
|
+
display: none;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/* Results and menus: an opaque card lifted off the page by its shadow. Not material: the search box
|
|
661
|
+
sits inside the header, whose own backdrop filter makes it the backdrop root, so a blur here would
|
|
662
|
+
sample the header rather than the page and leave the article's text showing through the results. */
|
|
663
|
+
.search-results,
|
|
664
|
+
.menu {
|
|
665
|
+
border: 0;
|
|
666
|
+
background: var(--bg-card);
|
|
667
|
+
box-shadow: var(--shadow-lg);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.search-results {
|
|
671
|
+
position: absolute;
|
|
672
|
+
top: calc(100% + var(--space-2));
|
|
673
|
+
right: 0;
|
|
674
|
+
width: min(560px, calc(100vw - var(--space-8)));
|
|
675
|
+
max-height: min(70vh, 560px);
|
|
676
|
+
margin: 0;
|
|
677
|
+
padding: 6px;
|
|
678
|
+
overflow-y: auto;
|
|
679
|
+
border-radius: var(--radius-lg);
|
|
680
|
+
list-style: none;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.search-results li a {
|
|
684
|
+
display: block;
|
|
685
|
+
padding: var(--space-2) 10px;
|
|
686
|
+
border-radius: var(--radius-sm);
|
|
687
|
+
color: var(--fg);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.search-results li a:hover,
|
|
691
|
+
.search-results li[aria-selected="true"] a {
|
|
692
|
+
background: var(--accent-bg);
|
|
693
|
+
text-decoration: none;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
.search-hit-title {
|
|
697
|
+
display: block;
|
|
698
|
+
font-size: 14px;
|
|
699
|
+
font-weight: 600;
|
|
700
|
+
line-height: 1.4;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.search-hit-path {
|
|
704
|
+
display: block;
|
|
705
|
+
overflow: hidden;
|
|
706
|
+
color: var(--fg-muted);
|
|
707
|
+
font-family: var(--font-mono);
|
|
708
|
+
font-size: 12px;
|
|
709
|
+
line-height: 1.5;
|
|
710
|
+
text-overflow: ellipsis;
|
|
711
|
+
white-space: nowrap;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.search-hit-snippet {
|
|
715
|
+
display: block;
|
|
716
|
+
margin-top: 2px;
|
|
717
|
+
color: var(--fg-muted);
|
|
718
|
+
font-size: 13px;
|
|
719
|
+
line-height: 1.45;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.search-results mark,
|
|
723
|
+
.search-page-results mark {
|
|
724
|
+
border-radius: 3px;
|
|
725
|
+
background: var(--accent-bg);
|
|
726
|
+
color: inherit;
|
|
727
|
+
font-weight: 600;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
.search-empty {
|
|
731
|
+
padding: var(--space-2) 10px;
|
|
732
|
+
color: var(--fg-muted);
|
|
733
|
+
font-size: 14px;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
.search-page-results {
|
|
737
|
+
padding-left: 1.4em;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
.search-page-results li + li {
|
|
741
|
+
margin-top: 1.1em;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.search-page-results .search-hit-title {
|
|
745
|
+
display: inline;
|
|
746
|
+
font-size: 1.05em;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
.search-page-results .search-hit-snippet {
|
|
750
|
+
margin: var(--space-1) 0 0;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/* A folder without a README: its path to climb back up, then its subfolders and documents, each
|
|
754
|
+
document by its title with its file name beside it, as the tree names it. */
|
|
755
|
+
.folder-crumbs {
|
|
756
|
+
color: var(--fg-muted);
|
|
757
|
+
font-family: var(--font-mono);
|
|
758
|
+
font-size: 13px;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
.folder-listing {
|
|
762
|
+
padding-left: 1.4em;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.folder-listing li + li {
|
|
766
|
+
margin-top: var(--space-1);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.folder-entry-folder a {
|
|
770
|
+
font-family: var(--font-mono);
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
.folder-entry-name {
|
|
774
|
+
color: var(--fg-muted);
|
|
775
|
+
font-family: var(--font-mono);
|
|
776
|
+
font-size: 12px;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
/* The header's sections, as one segmented control: the section the page is shows as the chosen
|
|
780
|
+
segment, and a document page, which is none of them, shows none chosen. Plain links underneath, so
|
|
781
|
+
they work without script. */
|
|
782
|
+
.section-nav .segment {
|
|
783
|
+
color: var(--fg);
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
/* Without script the theme and settings controls are hidden, as they could do nothing. With script —
|
|
787
|
+
marked on <html> before the first paint — they are laid out from the first frame, so neither
|
|
788
|
+
appears later and pushes the rest of the bar aside; the module that wires them runs whenever it
|
|
789
|
+
runs. */
|
|
790
|
+
.theme-switch[hidden],
|
|
791
|
+
.settings-toggle[hidden],
|
|
792
|
+
.copy-path[hidden] {
|
|
793
|
+
display: none;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
:root[data-script] .theme-switch[hidden],
|
|
797
|
+
:root[data-script] .settings-toggle[hidden],
|
|
798
|
+
:root[data-script] .copy-path[hidden] {
|
|
799
|
+
display: inline-flex;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
/* The same for the controls in the page that take room: a document's history line, the box the
|
|
803
|
+
local graph is drawn in and its hint, the review checkboxes and buttons, and the prompt buttons.
|
|
804
|
+
Shown only once their module had run, each pushed what was below or beside it aside after the page
|
|
805
|
+
was drawn — the history line the whole article, the graph's box the outline by its height. Each
|
|
806
|
+
module still unhides its own, which then changes nothing; none of them hides one again. A button
|
|
807
|
+
in a corner that takes no room, such as the code block's Copy, is left to appear with its script. */
|
|
808
|
+
:root[data-script] .changes-history[hidden],
|
|
809
|
+
:root[data-script] .local-graph-canvas[hidden],
|
|
810
|
+
:root[data-script] .local-graph-hint[hidden] {
|
|
811
|
+
display: block;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
:root[data-script] .review-toggle[hidden],
|
|
815
|
+
:root[data-script] .review-reset[hidden],
|
|
816
|
+
:root[data-script] .prompt-menu[hidden] {
|
|
817
|
+
display: inline-flex;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
:root[data-script] .section-mark[hidden] {
|
|
821
|
+
display: inline-block;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
/* The theme as three icon segments. Which one is chosen is read from the choice on <html>, which the
|
|
825
|
+
blocking theme script has set before the first paint, so the thumb is in place from the first frame
|
|
826
|
+
rather than moving once the module script marks the chosen button. */
|
|
827
|
+
.theme-switch .segment {
|
|
828
|
+
flex: none;
|
|
829
|
+
width: 32px;
|
|
830
|
+
padding: 0;
|
|
831
|
+
color: var(--fg-muted);
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
.theme-switch .segment:hover {
|
|
835
|
+
color: var(--fg);
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
:root:not([data-theme]) .theme-switch .segment[data-choice="system"],
|
|
839
|
+
:root[data-theme="light"] .theme-switch .segment[data-choice="light"],
|
|
840
|
+
:root[data-theme="dark"] .theme-switch .segment[data-choice="dark"] {
|
|
841
|
+
background: var(--segment-thumb);
|
|
842
|
+
box-shadow: var(--shadow-sm);
|
|
843
|
+
color: var(--fg);
|
|
844
|
+
cursor: default;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
/* "Aa", the usual mark for text settings, set in a serif so it reads as type rather than a word. */
|
|
848
|
+
.settings-toggle {
|
|
849
|
+
width: var(--control);
|
|
850
|
+
height: var(--control);
|
|
851
|
+
color: var(--fg);
|
|
852
|
+
font-family: Georgia, "Times New Roman", serif;
|
|
853
|
+
font-size: 16px;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
.settings-toggle[aria-expanded="true"] {
|
|
857
|
+
background: var(--accent-bg);
|
|
858
|
+
color: var(--accent);
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
/* A dropdown of actions, placed by the script under the button that opened it. */
|
|
862
|
+
.menu {
|
|
863
|
+
position: fixed;
|
|
864
|
+
z-index: 7;
|
|
865
|
+
min-width: 220px;
|
|
866
|
+
max-width: min(520px, calc(100vw - var(--space-4)));
|
|
867
|
+
padding: 5px;
|
|
868
|
+
border-radius: 12px;
|
|
869
|
+
font-size: 13px;
|
|
870
|
+
line-height: 1.4;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
.menu-item {
|
|
874
|
+
display: grid;
|
|
875
|
+
gap: 2px;
|
|
876
|
+
width: 100%;
|
|
877
|
+
min-height: var(--control);
|
|
878
|
+
align-content: center;
|
|
879
|
+
padding: 6px 10px;
|
|
880
|
+
border: 0;
|
|
881
|
+
border-radius: var(--radius-sm);
|
|
882
|
+
background: none;
|
|
883
|
+
color: var(--fg);
|
|
884
|
+
font: inherit;
|
|
885
|
+
text-align: left;
|
|
886
|
+
cursor: pointer;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.menu-item:hover:not(:disabled),
|
|
890
|
+
.menu-item:focus-visible {
|
|
891
|
+
background: var(--accent-bg);
|
|
892
|
+
outline: none;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
.menu-item:disabled {
|
|
896
|
+
color: var(--fg-muted);
|
|
897
|
+
cursor: default;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
.menu-label {
|
|
901
|
+
font-weight: 500;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
.menu-detail {
|
|
905
|
+
overflow: hidden;
|
|
906
|
+
color: var(--fg-muted);
|
|
907
|
+
font-family: var(--font-mono);
|
|
908
|
+
font-size: 12px;
|
|
909
|
+
text-overflow: ellipsis;
|
|
910
|
+
white-space: nowrap;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
.menu-item:disabled .menu-detail {
|
|
914
|
+
font-family: var(--font-sans);
|
|
915
|
+
white-space: normal;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
.menu-note {
|
|
919
|
+
margin: 0;
|
|
920
|
+
padding: 6px 10px;
|
|
921
|
+
color: var(--fg-muted);
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
/* ---------------------------------------------------------------------------------------------
|
|
925
|
+
Display settings: a column that slides in over the right edge, under the header, and leaves the
|
|
926
|
+
article in view beside it so a change is judged on the text it changes. Laid out as a grouped
|
|
927
|
+
list — a small heading over a rounded card of rows — the way Settings lays out its own. Kept laid
|
|
928
|
+
out while closed, off screen and invisible, so opening it can slide rather than appear.
|
|
929
|
+
--------------------------------------------------------------------------------------------- */
|
|
930
|
+
.settings-panel {
|
|
931
|
+
position: fixed;
|
|
932
|
+
top: var(--topbar-height);
|
|
933
|
+
right: 0;
|
|
934
|
+
bottom: 0;
|
|
935
|
+
z-index: 6;
|
|
936
|
+
width: min(340px, 100vw);
|
|
937
|
+
overflow-y: auto;
|
|
938
|
+
padding: 0 var(--space-4) var(--space-6);
|
|
939
|
+
border-left: 1px solid var(--border-subtle);
|
|
940
|
+
background: var(--bg-grouped);
|
|
941
|
+
box-shadow: -12px 0 32px var(--shadow);
|
|
942
|
+
font-size: 14px;
|
|
943
|
+
line-height: 1.4;
|
|
944
|
+
transform: translateX(100%);
|
|
945
|
+
visibility: hidden;
|
|
946
|
+
transition:
|
|
947
|
+
transform 220ms var(--ease-out),
|
|
948
|
+
visibility 0s linear 220ms;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
.settings-panel.is-open {
|
|
952
|
+
transform: none;
|
|
953
|
+
visibility: visible;
|
|
954
|
+
transition: transform 220ms var(--ease-out);
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
/* The head stays at the top while the groups scroll under it. */
|
|
958
|
+
.settings-head {
|
|
959
|
+
position: sticky;
|
|
960
|
+
top: 0;
|
|
961
|
+
z-index: 1;
|
|
962
|
+
display: flex;
|
|
963
|
+
align-items: center;
|
|
964
|
+
justify-content: space-between;
|
|
965
|
+
height: 52px;
|
|
966
|
+
margin: 0 calc(-1 * var(--space-4));
|
|
967
|
+
padding: 0 var(--space-4);
|
|
968
|
+
background: var(--bg-grouped);
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
.settings-head h2 {
|
|
972
|
+
margin: 0;
|
|
973
|
+
font-size: 17px;
|
|
974
|
+
font-weight: 600;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
.settings-close {
|
|
978
|
+
width: var(--control-sm);
|
|
979
|
+
height: var(--control-sm);
|
|
980
|
+
border-radius: 50%;
|
|
981
|
+
background: var(--fill);
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
.settings-form fieldset {
|
|
985
|
+
min-width: 0;
|
|
986
|
+
margin: var(--space-5) 0 0;
|
|
987
|
+
padding: 0;
|
|
988
|
+
border: 0;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
.settings-form fieldset:first-child {
|
|
992
|
+
margin-top: var(--space-1);
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
/* Floated out of the fieldset's border, where a legend is drawn by default, into a heading row of its
|
|
996
|
+
own above the card; the card after it clears it rather than squeezing in beside it. */
|
|
997
|
+
.settings-form legend {
|
|
998
|
+
float: left;
|
|
999
|
+
width: 100%;
|
|
1000
|
+
margin: 0 0 6px;
|
|
1001
|
+
padding: 0 var(--space-4);
|
|
1002
|
+
color: var(--fg-muted);
|
|
1003
|
+
font-size: 12px;
|
|
1004
|
+
font-weight: 500;
|
|
1005
|
+
letter-spacing: 0.02em;
|
|
1006
|
+
text-transform: uppercase;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
.settings-form legend + * {
|
|
1010
|
+
clear: both;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
/* The card: rows separated by hairlines that start where the text starts, not at the card's edge. */
|
|
1014
|
+
.settings-card {
|
|
1015
|
+
padding-left: var(--space-4);
|
|
1016
|
+
border-radius: 12px;
|
|
1017
|
+
background: var(--bg-card);
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
.settings-card > * + * {
|
|
1021
|
+
border-top: 1px solid var(--border-subtle);
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
.settings-field,
|
|
1025
|
+
.settings-switch {
|
|
1026
|
+
min-height: 44px;
|
|
1027
|
+
padding-right: var(--space-4);
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
/* Out-specifies the row layouts below, which would otherwise lay a hidden row out again. */
|
|
1031
|
+
.settings-card > .settings-field[hidden] {
|
|
1032
|
+
display: none;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
/* A row with its value on the right: a select, a font name, a segmented choice. */
|
|
1036
|
+
.settings-field.is-select,
|
|
1037
|
+
.settings-field.is-text,
|
|
1038
|
+
.settings-field.is-segmented {
|
|
1039
|
+
display: flex;
|
|
1040
|
+
align-items: center;
|
|
1041
|
+
justify-content: space-between;
|
|
1042
|
+
gap: var(--space-3);
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
/* The accent colors, one dot each. The chosen one is ringed in its own color, with a gap of the
|
|
1046
|
+
card's color between, as a color is picked in the system's own settings: a ring stays readable on
|
|
1047
|
+
every accent, where a tick laid on the dot would vanish on the light ones. The dots take a line
|
|
1048
|
+
of their own under the label, as a slider does: beside it, the panel's width holds too few of
|
|
1049
|
+
them and the rest would wrap onto a ragged second row. */
|
|
1050
|
+
.settings-field.is-swatches {
|
|
1051
|
+
display: flex;
|
|
1052
|
+
flex-direction: column;
|
|
1053
|
+
align-items: stretch;
|
|
1054
|
+
gap: var(--space-2);
|
|
1055
|
+
padding-top: 10px;
|
|
1056
|
+
padding-bottom: var(--space-3);
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
.accent-swatches {
|
|
1060
|
+
display: flex;
|
|
1061
|
+
flex-wrap: wrap;
|
|
1062
|
+
gap: var(--space-3);
|
|
1063
|
+
padding: 0 var(--space-1);
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
.accent-swatch {
|
|
1067
|
+
width: 22px;
|
|
1068
|
+
height: 22px;
|
|
1069
|
+
padding: 0;
|
|
1070
|
+
border: 0;
|
|
1071
|
+
border-radius: 50%;
|
|
1072
|
+
background: var(--swatch);
|
|
1073
|
+
cursor: pointer;
|
|
1074
|
+
transition: box-shadow 150ms var(--ease);
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
.accent-swatch[aria-checked="true"] {
|
|
1078
|
+
box-shadow:
|
|
1079
|
+
0 0 0 2px var(--bg-card),
|
|
1080
|
+
0 0 0 4px var(--swatch);
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
.accent-swatch:focus-visible {
|
|
1084
|
+
outline: 2px solid var(--fg);
|
|
1085
|
+
outline-offset: 4px;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
.settings-label {
|
|
1089
|
+
display: flex;
|
|
1090
|
+
flex: none;
|
|
1091
|
+
justify-content: space-between;
|
|
1092
|
+
gap: var(--space-2);
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
/* The select sits flush right on the card with no field of its own, as a menu row in Settings does:
|
|
1096
|
+
its value, muted, then the chevrons. */
|
|
1097
|
+
.settings-field select {
|
|
1098
|
+
min-width: 0;
|
|
1099
|
+
max-width: 62%;
|
|
1100
|
+
height: var(--control-sm);
|
|
1101
|
+
padding: 0 22px 0 var(--space-2);
|
|
1102
|
+
border: 0;
|
|
1103
|
+
border-radius: var(--radius-xs);
|
|
1104
|
+
background-color: transparent;
|
|
1105
|
+
background-position: right 2px center;
|
|
1106
|
+
color: var(--fg-muted);
|
|
1107
|
+
font: inherit;
|
|
1108
|
+
text-align: end;
|
|
1109
|
+
text-align-last: end;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
.settings-field select:hover {
|
|
1113
|
+
background-color: var(--row-hover);
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
.settings-field.is-text input[type="text"] {
|
|
1117
|
+
flex: 1;
|
|
1118
|
+
height: var(--control-sm);
|
|
1119
|
+
text-align: end;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
/* A slider row: the label and the value it is at on one line, the slider the full width under it. */
|
|
1123
|
+
.settings-field.is-range {
|
|
1124
|
+
display: grid;
|
|
1125
|
+
gap: 6px;
|
|
1126
|
+
align-content: center;
|
|
1127
|
+
padding-top: 10px;
|
|
1128
|
+
padding-bottom: 10px;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
.settings-label output {
|
|
1132
|
+
color: var(--fg-muted);
|
|
1133
|
+
font-family: var(--font-mono);
|
|
1134
|
+
font-size: 12px;
|
|
1135
|
+
font-variant-numeric: tabular-nums;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
/* The slider as iOS draws it: a thin track filled up to the thumb, and a white round thumb. The fill
|
|
1139
|
+
is `--range-pct`, which the panel's script sets as the value moves; a browser cannot style the two
|
|
1140
|
+
sides of a native track apart. */
|
|
1141
|
+
.settings-field input[type="range"] {
|
|
1142
|
+
--range-pct: 50%;
|
|
1143
|
+
appearance: none;
|
|
1144
|
+
width: 100%;
|
|
1145
|
+
height: 20px;
|
|
1146
|
+
margin: 0;
|
|
1147
|
+
background: none;
|
|
1148
|
+
cursor: pointer;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
.settings-field input[type="range"]::-webkit-slider-runnable-track {
|
|
1152
|
+
height: 4px;
|
|
1153
|
+
border-radius: 2px;
|
|
1154
|
+
background: linear-gradient(
|
|
1155
|
+
to right,
|
|
1156
|
+
var(--accent) var(--range-pct),
|
|
1157
|
+
var(--fill-strong) var(--range-pct)
|
|
1158
|
+
);
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
.settings-field input[type="range"]::-moz-range-track {
|
|
1162
|
+
height: 4px;
|
|
1163
|
+
border-radius: 2px;
|
|
1164
|
+
background: var(--fill-strong);
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
.settings-field input[type="range"]::-moz-range-progress {
|
|
1168
|
+
height: 4px;
|
|
1169
|
+
border-radius: 2px;
|
|
1170
|
+
background: var(--accent);
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
.settings-field input[type="range"]::-webkit-slider-thumb {
|
|
1174
|
+
appearance: none;
|
|
1175
|
+
width: 20px;
|
|
1176
|
+
height: 20px;
|
|
1177
|
+
margin-top: -8px;
|
|
1178
|
+
border: 0;
|
|
1179
|
+
border-radius: 50%;
|
|
1180
|
+
background: #ffffff;
|
|
1181
|
+
box-shadow:
|
|
1182
|
+
0 2px 5px rgb(0 0 0 / 20%),
|
|
1183
|
+
0 0 0 0.5px rgb(0 0 0 / 8%);
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
.settings-field input[type="range"]::-moz-range-thumb {
|
|
1187
|
+
width: 20px;
|
|
1188
|
+
height: 20px;
|
|
1189
|
+
border: 0;
|
|
1190
|
+
border-radius: 50%;
|
|
1191
|
+
background: #ffffff;
|
|
1192
|
+
box-shadow:
|
|
1193
|
+
0 2px 5px rgb(0 0 0 / 20%),
|
|
1194
|
+
0 0 0 0.5px rgb(0 0 0 / 8%);
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
.settings-field input[type="range"]:focus-visible {
|
|
1198
|
+
outline: none;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
.settings-field input[type="range"]:focus-visible::-webkit-slider-thumb {
|
|
1202
|
+
box-shadow: var(--focus-ring);
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.settings-field input[type="range"]:disabled {
|
|
1206
|
+
opacity: 0.4;
|
|
1207
|
+
cursor: default;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
/* The four margins side by side in one row, as the four sides of one box. */
|
|
1211
|
+
.settings-margins .settings-card {
|
|
1212
|
+
display: grid;
|
|
1213
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
1214
|
+
gap: var(--space-2);
|
|
1215
|
+
padding: var(--space-3) var(--space-4);
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
.settings-margins .settings-card > * + * {
|
|
1219
|
+
border-top: 0;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
.settings-margins .settings-field {
|
|
1223
|
+
display: grid;
|
|
1224
|
+
gap: var(--space-1);
|
|
1225
|
+
min-height: 0;
|
|
1226
|
+
padding: 0;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
.settings-margins .settings-label {
|
|
1230
|
+
justify-content: center;
|
|
1231
|
+
color: var(--fg-muted);
|
|
1232
|
+
font-size: 12px;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
.settings-margins input[type="number"] {
|
|
1236
|
+
width: 100%;
|
|
1237
|
+
text-align: center;
|
|
1238
|
+
font-variant-numeric: tabular-nums;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
/* Reset is a row of its own card, in red, as a destructive row in Settings is. */
|
|
1242
|
+
.settings-reset {
|
|
1243
|
+
display: flex;
|
|
1244
|
+
align-items: center;
|
|
1245
|
+
justify-content: center;
|
|
1246
|
+
width: 100%;
|
|
1247
|
+
height: 44px;
|
|
1248
|
+
margin-top: var(--space-6);
|
|
1249
|
+
border: 0;
|
|
1250
|
+
border-radius: 12px;
|
|
1251
|
+
background: var(--bg-card);
|
|
1252
|
+
color: var(--danger);
|
|
1253
|
+
font: inherit;
|
|
1254
|
+
cursor: pointer;
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
.settings-reset:hover {
|
|
1258
|
+
background: color-mix(in srgb, var(--bg-card) 92%, var(--fg));
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
/* ---------------------------------------------------------------------------------------------
|
|
1262
|
+
Layout: tree, article, outline
|
|
1263
|
+
--------------------------------------------------------------------------------------------- */
|
|
1264
|
+
.layout {
|
|
1265
|
+
display: grid;
|
|
1266
|
+
grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--rail-width);
|
|
1267
|
+
align-items: start;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
/* The frame stays put while the tree inside it scrolls, so the width handle on its edge spans the
|
|
1271
|
+
full height wherever the tree is scrolled to. */
|
|
1272
|
+
.sidebar-frame {
|
|
1273
|
+
position: sticky;
|
|
1274
|
+
top: var(--topbar-height);
|
|
1275
|
+
height: calc(100vh - var(--topbar-height));
|
|
1276
|
+
background: var(--bg-sidebar);
|
|
1277
|
+
border-right: 1px solid var(--border-subtle);
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
.sidebar {
|
|
1281
|
+
height: 100%;
|
|
1282
|
+
/* Long names end in an ellipsis rather than scrolling the whole tree sideways. */
|
|
1283
|
+
overflow: hidden auto;
|
|
1284
|
+
padding: var(--space-3) var(--space-2) var(--space-8);
|
|
1285
|
+
font-size: 14px;
|
|
1286
|
+
scrollbar-width: thin;
|
|
1287
|
+
scrollbar-color: var(--border) transparent;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
/* On a wide screen the tree is always shown, so the row that folds it on a phone is not drawn. */
|
|
1291
|
+
.sidebar-summary {
|
|
1292
|
+
display: none;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
/* The rail is framed the same way, with a hairline toward the article that marks the edge its handle
|
|
1296
|
+
sits on. */
|
|
1297
|
+
.rail-frame {
|
|
1298
|
+
position: sticky;
|
|
1299
|
+
top: var(--topbar-height);
|
|
1300
|
+
height: calc(100vh - var(--topbar-height));
|
|
1301
|
+
border-left: 1px solid var(--border-subtle);
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
.rail {
|
|
1305
|
+
height: 100%;
|
|
1306
|
+
overflow-y: auto;
|
|
1307
|
+
padding: var(--space-5) var(--space-3) var(--space-8) var(--space-4);
|
|
1308
|
+
font-size: 13px;
|
|
1309
|
+
scrollbar-width: thin;
|
|
1310
|
+
scrollbar-color: var(--border) transparent;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
/* Width handle: a strip astride a side column's edge toward the article that shows an accent line and
|
|
1314
|
+
a grip while the pointer is over it or it has focus, and follows a drag. */
|
|
1315
|
+
.column-resizer {
|
|
1316
|
+
position: absolute;
|
|
1317
|
+
top: 0;
|
|
1318
|
+
z-index: 3;
|
|
1319
|
+
width: 9px;
|
|
1320
|
+
height: 100%;
|
|
1321
|
+
cursor: col-resize;
|
|
1322
|
+
touch-action: none;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
.sidebar-frame > .column-resizer {
|
|
1326
|
+
right: -5px;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
.rail-frame > .column-resizer {
|
|
1330
|
+
left: -5px;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
.column-resizer::before {
|
|
1334
|
+
content: "";
|
|
1335
|
+
position: absolute;
|
|
1336
|
+
top: 0;
|
|
1337
|
+
bottom: 0;
|
|
1338
|
+
left: 4px;
|
|
1339
|
+
width: 2px;
|
|
1340
|
+
background: var(--accent);
|
|
1341
|
+
opacity: 0;
|
|
1342
|
+
transition: opacity 150ms ease-out;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
.column-resizer::after {
|
|
1346
|
+
content: "";
|
|
1347
|
+
position: absolute;
|
|
1348
|
+
top: 50%;
|
|
1349
|
+
left: -1px;
|
|
1350
|
+
width: 11px;
|
|
1351
|
+
height: 32px;
|
|
1352
|
+
margin-top: -16px;
|
|
1353
|
+
border-radius: 6px;
|
|
1354
|
+
background:
|
|
1355
|
+
radial-gradient(circle, var(--fg-muted) 0.9px, transparent 1.3px) center /
|
|
1356
|
+
4px 5px,
|
|
1357
|
+
var(--bg-card);
|
|
1358
|
+
box-shadow: var(--shadow-sm);
|
|
1359
|
+
opacity: 0;
|
|
1360
|
+
transform: scale(0.85);
|
|
1361
|
+
transition:
|
|
1362
|
+
opacity 150ms ease-out,
|
|
1363
|
+
transform 150ms var(--ease-out);
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
.column-resizer:hover::before,
|
|
1367
|
+
.column-resizer:hover::after,
|
|
1368
|
+
.column-resizer:focus-visible::before,
|
|
1369
|
+
.column-resizer:focus-visible::after,
|
|
1370
|
+
.column-resizer.is-dragging::before,
|
|
1371
|
+
.column-resizer.is-dragging::after {
|
|
1372
|
+
opacity: 1;
|
|
1373
|
+
transform: none;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
/* The line and grip are the focus indicator. */
|
|
1377
|
+
.column-resizer:focus-visible {
|
|
1378
|
+
outline: none;
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
/* While dragging, the pointer keeps the resize cursor over the article and the drag selects nothing. */
|
|
1382
|
+
.is-resizing-column {
|
|
1383
|
+
cursor: col-resize;
|
|
1384
|
+
user-select: none;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
/* Every `--reader-*` property below is a display setting the reader may change, set on <html> only
|
|
1388
|
+
when it differs from the default written here as its fallback (`display-settings-model.ts` makes
|
|
1389
|
+
them; a test holds each fallback equal to the default it computes). */
|
|
1390
|
+
.content {
|
|
1391
|
+
min-width: 0;
|
|
1392
|
+
padding: var(--reader-pad-top, 32px) var(--reader-pad-right, 48px)
|
|
1393
|
+
var(--reader-pad-bottom, 96px) var(--reader-pad-left, 48px);
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
.markdown-body {
|
|
1397
|
+
max-width: var(--reader-width, 860px);
|
|
1398
|
+
margin: 0 auto;
|
|
1399
|
+
font-family: var(--reader-font, var(--font-sans));
|
|
1400
|
+
font-size: var(--reader-font-size, 16px);
|
|
1401
|
+
line-height: var(--reader-line-height, 1.6);
|
|
1402
|
+
letter-spacing: var(--reader-letter-spacing, 0em);
|
|
1403
|
+
text-align: var(--reader-align, start);
|
|
1404
|
+
hyphens: var(--reader-hyphens, manual);
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
/* Source lines: the line each block and list item starts on in the Markdown file, in the article's
|
|
1408
|
+
right margin, level with the block's first line of text. Drawn as generated content, so selecting
|
|
1409
|
+
and copying the article never picks the numbers up. The line height is the body text's, which
|
|
1410
|
+
puts a number on a paragraph's or an item's first line; a heading's taller line keeps its number
|
|
1411
|
+
at its top. */
|
|
1412
|
+
.markdown-body [data-line] {
|
|
1413
|
+
position: relative;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
.markdown-body [data-line]::after {
|
|
1417
|
+
content: attr(data-line);
|
|
1418
|
+
position: absolute;
|
|
1419
|
+
top: 0;
|
|
1420
|
+
left: calc(100% + 14px);
|
|
1421
|
+
color: var(--fg-muted);
|
|
1422
|
+
font-family: var(--font-mono);
|
|
1423
|
+
font-size: 11px;
|
|
1424
|
+
font-weight: 400;
|
|
1425
|
+
font-style: normal;
|
|
1426
|
+
/* The body text's line, so the number sits on a paragraph's or an item's first line whatever size
|
|
1427
|
+
and spacing the reader chose. */
|
|
1428
|
+
line-height: calc(
|
|
1429
|
+
var(--reader-font-size, 16px) * var(--reader-line-height, 1.6)
|
|
1430
|
+
);
|
|
1431
|
+
display: var(--reader-source-lines, block);
|
|
1432
|
+
letter-spacing: 0;
|
|
1433
|
+
white-space: nowrap;
|
|
1434
|
+
opacity: 0.7;
|
|
1435
|
+
pointer-events: none;
|
|
1436
|
+
user-select: none;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
/* ---------------------------------------------------------------------------------------------
|
|
1440
|
+
Document tree. Every row is one line: a folder is a chevron and its name, a file is its name set
|
|
1441
|
+
in line with the folder names above it, and a nested level hangs from a hairline under its
|
|
1442
|
+
folder's chevron, so depth reads at a glance even far down a long tree.
|
|
1443
|
+
--------------------------------------------------------------------------------------------- */
|
|
1444
|
+
.tree {
|
|
1445
|
+
margin: 0;
|
|
1446
|
+
padding: 0;
|
|
1447
|
+
list-style: none;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
.tree .tree {
|
|
1451
|
+
margin-left: 14px;
|
|
1452
|
+
padding-left: var(--space-1);
|
|
1453
|
+
border-left: 1px solid var(--border-subtle);
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
.tree li {
|
|
1457
|
+
margin: 1px 0;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
.tree summary,
|
|
1461
|
+
.tree a {
|
|
1462
|
+
display: flex;
|
|
1463
|
+
align-items: center;
|
|
1464
|
+
gap: 6px;
|
|
1465
|
+
min-height: var(--control-sm);
|
|
1466
|
+
padding: 0 var(--space-2);
|
|
1467
|
+
border-radius: var(--radius-sm);
|
|
1468
|
+
white-space: nowrap;
|
|
1469
|
+
transition:
|
|
1470
|
+
background-color 120ms var(--ease),
|
|
1471
|
+
color 120ms var(--ease);
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
.tree summary {
|
|
1475
|
+
list-style: none;
|
|
1476
|
+
color: var(--fg);
|
|
1477
|
+
font-weight: 500;
|
|
1478
|
+
cursor: pointer;
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
.tree summary::-webkit-details-marker {
|
|
1482
|
+
display: none;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
.tree summary::before {
|
|
1486
|
+
width: 10px;
|
|
1487
|
+
height: 10px;
|
|
1488
|
+
margin: 0 1px 0 1px;
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
.tree details[open] > summary::before {
|
|
1492
|
+
transform: rotate(90deg);
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
.tree a {
|
|
1496
|
+
/* In line with the folder names: the row's padding, the chevron, its margins and the gap after it. */
|
|
1497
|
+
padding-left: 26px;
|
|
1498
|
+
color: var(--fg-muted);
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
.tree-name {
|
|
1502
|
+
flex: 1;
|
|
1503
|
+
min-width: 0;
|
|
1504
|
+
overflow: hidden;
|
|
1505
|
+
text-overflow: ellipsis;
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
.tree summary:hover,
|
|
1509
|
+
.tree a:hover {
|
|
1510
|
+
background: var(--row-hover);
|
|
1511
|
+
color: var(--fg);
|
|
1512
|
+
text-decoration: none;
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
.tree summary:focus-visible,
|
|
1516
|
+
.tree a:focus-visible {
|
|
1517
|
+
outline: 2px solid var(--accent);
|
|
1518
|
+
outline-offset: -2px;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
.tree a[aria-current="page"],
|
|
1522
|
+
.tree a[data-pending] {
|
|
1523
|
+
background: var(--accent-bg);
|
|
1524
|
+
color: var(--accent);
|
|
1525
|
+
font-weight: 600;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
/* The file the next page opens is marked as soon as it is clicked; the page's own is not, while the
|
|
1529
|
+
wait lasts. */
|
|
1530
|
+
.sidebar[data-pending] .tree a[aria-current="page"]:not([data-pending]) {
|
|
1531
|
+
background: none;
|
|
1532
|
+
color: var(--fg-muted);
|
|
1533
|
+
font-weight: inherit;
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
/* "Only files with findings": a switch row over the tree; with it on, every row without a finding
|
|
1537
|
+
below it is hidden. */
|
|
1538
|
+
.tree-filter {
|
|
1539
|
+
min-height: var(--control);
|
|
1540
|
+
margin: 0 0 var(--space-2);
|
|
1541
|
+
padding: 0 var(--space-2);
|
|
1542
|
+
color: var(--fg-muted);
|
|
1543
|
+
font-size: 13px;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
.tree-filter[hidden],
|
|
1547
|
+
.tree-filter-empty[hidden] {
|
|
1548
|
+
display: none;
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
.tree-filter-empty {
|
|
1552
|
+
margin: var(--space-1) 0;
|
|
1553
|
+
padding: 0 var(--space-2);
|
|
1554
|
+
color: var(--fg-muted);
|
|
1555
|
+
font-size: 13px;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
.sidebar.only-findings .tree li:not([data-findings]) {
|
|
1559
|
+
display: none;
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
/* A count of lint findings beside a file in the tree */
|
|
1563
|
+
.tree-badge {
|
|
1564
|
+
display: inline-flex;
|
|
1565
|
+
flex: none;
|
|
1566
|
+
align-items: center;
|
|
1567
|
+
justify-content: center;
|
|
1568
|
+
min-width: 18px;
|
|
1569
|
+
height: 18px;
|
|
1570
|
+
padding: 0 5px;
|
|
1571
|
+
border-radius: 9px;
|
|
1572
|
+
background: color-mix(in srgb, var(--warning) 16%, transparent);
|
|
1573
|
+
color: var(--warning);
|
|
1574
|
+
font-size: 11px;
|
|
1575
|
+
font-weight: 600;
|
|
1576
|
+
font-variant-numeric: tabular-nums;
|
|
1577
|
+
line-height: 1;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
.tree-badge-error {
|
|
1581
|
+
background: color-mix(in srgb, var(--danger) 16%, transparent);
|
|
1582
|
+
color: var(--danger);
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
/* ---------------------------------------------------------------------------------------------
|
|
1586
|
+
Right rail. The small graph of the document's neighbors comes first.
|
|
1587
|
+
--------------------------------------------------------------------------------------------- */
|
|
1588
|
+
.local-graph-canvas {
|
|
1589
|
+
height: 240px;
|
|
1590
|
+
margin: 0 0 var(--space-2);
|
|
1591
|
+
border-radius: var(--radius-md);
|
|
1592
|
+
background: var(--bg-subtle);
|
|
1593
|
+
overflow: hidden;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
.local-graph-hint {
|
|
1597
|
+
margin: 0 0 var(--space-1);
|
|
1598
|
+
color: var(--fg-muted);
|
|
1599
|
+
font-size: 12px;
|
|
1600
|
+
line-height: 1.4;
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
.local-graph-open {
|
|
1604
|
+
display: inline-block;
|
|
1605
|
+
font-size: 13px;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
/* The rail's sections — the local graph, the outline, the backlinks — each start below a hairline,
|
|
1609
|
+
so a heading reads as the start of its own group rather than as one more line of the list above
|
|
1610
|
+
it. A heading is small muted capitals; the entries under it are full-strength text set in from a
|
|
1611
|
+
hairline of their own, the way the tree hangs a folder's files. */
|
|
1612
|
+
.rail > * + * {
|
|
1613
|
+
margin-top: var(--space-5);
|
|
1614
|
+
padding-top: var(--space-5);
|
|
1615
|
+
border-top: 1px solid var(--border-subtle);
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
.rail h2 {
|
|
1619
|
+
margin: 0 0 var(--space-2);
|
|
1620
|
+
color: var(--fg-muted);
|
|
1621
|
+
font-size: 11px;
|
|
1622
|
+
font-weight: 600;
|
|
1623
|
+
letter-spacing: 0.06em;
|
|
1624
|
+
line-height: 1.4;
|
|
1625
|
+
text-transform: uppercase;
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
.rail ul {
|
|
1629
|
+
margin: 0;
|
|
1630
|
+
padding: 0;
|
|
1631
|
+
border-left: 1px solid var(--border-subtle);
|
|
1632
|
+
list-style: none;
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
.rail li {
|
|
1636
|
+
margin: 0;
|
|
1637
|
+
overflow-wrap: anywhere;
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
.rail li a {
|
|
1641
|
+
display: block;
|
|
1642
|
+
margin-left: -1px;
|
|
1643
|
+
padding: 5px var(--space-2) 5px var(--space-3);
|
|
1644
|
+
border-left: 2px solid transparent;
|
|
1645
|
+
border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
|
|
1646
|
+
color: var(--fg);
|
|
1647
|
+
line-height: 1.35;
|
|
1648
|
+
transition:
|
|
1649
|
+
background-color 120ms var(--ease),
|
|
1650
|
+
color 120ms var(--ease),
|
|
1651
|
+
border-color 120ms var(--ease);
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
.rail li.depth-3 a {
|
|
1655
|
+
padding-left: var(--space-6);
|
|
1656
|
+
color: var(--fg-muted);
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
.rail li a:hover {
|
|
1660
|
+
background: var(--row-hover);
|
|
1661
|
+
color: var(--fg);
|
|
1662
|
+
text-decoration: none;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
/* The section being read, marked by the outline's script as the page scrolls. */
|
|
1666
|
+
.rail li a[aria-current="location"] {
|
|
1667
|
+
border-left-color: var(--accent);
|
|
1668
|
+
color: var(--accent);
|
|
1669
|
+
font-weight: 500;
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
/* Backlinks are repository paths, read for their file names. */
|
|
1673
|
+
.backlinks li a {
|
|
1674
|
+
font-family: var(--font-mono);
|
|
1675
|
+
font-size: 12px;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
/* ---------------------------------------------------------------------------------------------
|
|
1679
|
+
Article typography
|
|
1680
|
+
--------------------------------------------------------------------------------------------- */
|
|
1681
|
+
.markdown-body h1,
|
|
1682
|
+
.markdown-body h2,
|
|
1683
|
+
.markdown-body h3,
|
|
1684
|
+
.markdown-body h4,
|
|
1685
|
+
.markdown-body h5,
|
|
1686
|
+
.markdown-body h6 {
|
|
1687
|
+
margin: 1.5em 0 0.5em;
|
|
1688
|
+
font-weight: 600;
|
|
1689
|
+
line-height: 1.3;
|
|
1690
|
+
letter-spacing: -0.01em;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
.markdown-body h1 {
|
|
1694
|
+
margin-top: 0;
|
|
1695
|
+
margin-bottom: 0.6em;
|
|
1696
|
+
font-size: 2em;
|
|
1697
|
+
font-weight: 700;
|
|
1698
|
+
letter-spacing: -0.02em;
|
|
1699
|
+
line-height: 1.2;
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
.markdown-body h2 {
|
|
1703
|
+
margin-top: 1.75em;
|
|
1704
|
+
padding-bottom: 0.3em;
|
|
1705
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
1706
|
+
font-size: 1.5em;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
.markdown-body h3 {
|
|
1710
|
+
font-size: 1.25em;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
.markdown-body p,
|
|
1714
|
+
.markdown-body ul,
|
|
1715
|
+
.markdown-body ol,
|
|
1716
|
+
.markdown-body table,
|
|
1717
|
+
.markdown-body blockquote,
|
|
1718
|
+
.markdown-body pre,
|
|
1719
|
+
.markdown-body details {
|
|
1720
|
+
margin: 0 0 var(--reader-block-gap, 1em);
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
/* The indent is a property of its own so an item's change bar can step out past its bullet to the
|
|
1724
|
+
list's edge, wherever the list sits. */
|
|
1725
|
+
.markdown-body ul,
|
|
1726
|
+
.markdown-body ol {
|
|
1727
|
+
--list-indent: 1.75em;
|
|
1728
|
+
padding-left: var(--list-indent);
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
.markdown-body li + li {
|
|
1732
|
+
margin-top: 0.25em;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
.markdown-body li > ul,
|
|
1736
|
+
.markdown-body li > ol {
|
|
1737
|
+
margin-top: 0.25em;
|
|
1738
|
+
margin-bottom: 0;
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
.markdown-body .contains-task-list {
|
|
1742
|
+
--list-indent: 1.25em;
|
|
1743
|
+
list-style: none;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
.markdown-body .task-list-item input {
|
|
1747
|
+
margin: 0 0.4em 0 -1.25em;
|
|
1748
|
+
vertical-align: middle;
|
|
1749
|
+
accent-color: var(--accent);
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
.markdown-body blockquote {
|
|
1753
|
+
padding: 0 1em;
|
|
1754
|
+
border-left: 3px solid var(--border);
|
|
1755
|
+
border-radius: 2px;
|
|
1756
|
+
color: var(--fg-muted);
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
.markdown-body hr {
|
|
1760
|
+
height: 1px;
|
|
1761
|
+
margin: 2em 0;
|
|
1762
|
+
border: 0;
|
|
1763
|
+
background: var(--border-subtle);
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
.markdown-body img {
|
|
1767
|
+
max-width: 100%;
|
|
1768
|
+
border-radius: var(--radius-xs);
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
/* A table is a rounded card: the outer edge is the table's own border, and the cells draw only the
|
|
1772
|
+
lines between them, since collapsed borders cannot follow a rounded corner. */
|
|
1773
|
+
.markdown-body table {
|
|
1774
|
+
display: block;
|
|
1775
|
+
width: max-content;
|
|
1776
|
+
max-width: 100%;
|
|
1777
|
+
overflow-x: auto;
|
|
1778
|
+
border: 1px solid var(--border-subtle);
|
|
1779
|
+
border-radius: var(--radius-md);
|
|
1780
|
+
border-collapse: separate;
|
|
1781
|
+
border-spacing: 0;
|
|
1782
|
+
/* 15px at the default text size, and scaled with the reader's. */
|
|
1783
|
+
font-size: 0.9375em;
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
.markdown-body th,
|
|
1787
|
+
.markdown-body td {
|
|
1788
|
+
padding: 8px 12px;
|
|
1789
|
+
border: 0;
|
|
1790
|
+
border-right: 1px solid var(--border-subtle);
|
|
1791
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
.markdown-body tr > :last-child {
|
|
1795
|
+
border-right: 0;
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
.markdown-body tbody tr:last-child > *,
|
|
1799
|
+
.markdown-body table > tr:last-child > * {
|
|
1800
|
+
border-bottom: 0;
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
.markdown-body th {
|
|
1804
|
+
background: var(--bg-subtle);
|
|
1805
|
+
font-weight: 600;
|
|
1806
|
+
text-align: start;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
.markdown-body code {
|
|
1810
|
+
/* Code keeps the spacing its font was drawn with: spread out, an identifier reads as separate
|
|
1811
|
+
letters and a monospaced block no longer looks like what an editor shows. */
|
|
1812
|
+
letter-spacing: normal;
|
|
1813
|
+
padding: 0.15em 0.4em;
|
|
1814
|
+
border-radius: 5px;
|
|
1815
|
+
background: var(--code-bg);
|
|
1816
|
+
font-family: var(--reader-code-font, var(--font-mono));
|
|
1817
|
+
font-size: calc(0.875em * var(--reader-code-scale, 1));
|
|
1818
|
+
/* An identifier path such as `a/b/c/d` has no space to break at, and unbroken it ran past the
|
|
1819
|
+
article and made the whole page scroll sideways. Inside a code block it must not break, since
|
|
1820
|
+
the block scrolls on its own and a wrapped line would read as two. */
|
|
1821
|
+
overflow-wrap: anywhere;
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1824
|
+
.markdown-body pre {
|
|
1825
|
+
overflow-x: auto;
|
|
1826
|
+
padding: var(--space-4) 18px;
|
|
1827
|
+
border: 1px solid var(--border-subtle);
|
|
1828
|
+
border-radius: var(--radius-md);
|
|
1829
|
+
background: var(--code-bg);
|
|
1830
|
+
/* 13.5px at the default text size, and scaled with the reader's text and code sizes. */
|
|
1831
|
+
font-size: calc(0.84375em * var(--reader-code-scale, 1));
|
|
1832
|
+
line-height: 1.55;
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
/* A code block and the copy button in its corner. The button shows while the block is hovered or the
|
|
1836
|
+
button has focus — always on a screen without hover — and stays out of a selection of the text,
|
|
1837
|
+
so copying a passage of the article does not pick up the word "Copy". */
|
|
1838
|
+
.code-block {
|
|
1839
|
+
position: relative;
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
.code-copy {
|
|
1843
|
+
position: absolute;
|
|
1844
|
+
top: var(--space-2);
|
|
1845
|
+
right: var(--space-2);
|
|
1846
|
+
z-index: 1;
|
|
1847
|
+
height: var(--control-xs);
|
|
1848
|
+
padding: 0 10px;
|
|
1849
|
+
background: color-mix(in srgb, var(--bg) 85%, transparent);
|
|
1850
|
+
box-shadow: 0 0 0 1px var(--border-subtle);
|
|
1851
|
+
backdrop-filter: blur(8px);
|
|
1852
|
+
color: var(--fg-muted);
|
|
1853
|
+
font-family: var(--font-sans);
|
|
1854
|
+
font-size: 12px;
|
|
1855
|
+
opacity: 0;
|
|
1856
|
+
user-select: none;
|
|
1857
|
+
transition:
|
|
1858
|
+
opacity 120ms var(--ease),
|
|
1859
|
+
color 120ms var(--ease);
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
.code-copy[hidden] {
|
|
1863
|
+
display: none;
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
.code-block:hover .code-copy,
|
|
1867
|
+
.code-copy:focus-visible,
|
|
1868
|
+
.code-copy.is-done {
|
|
1869
|
+
opacity: 1;
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
.code-copy:hover {
|
|
1873
|
+
background: var(--bg);
|
|
1874
|
+
color: var(--fg);
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
.code-copy.is-done {
|
|
1878
|
+
color: var(--accent);
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
@media (hover: none) {
|
|
1882
|
+
.code-copy {
|
|
1883
|
+
opacity: 1;
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
.markdown-body pre code {
|
|
1888
|
+
padding: 0;
|
|
1889
|
+
border-radius: 0;
|
|
1890
|
+
background: none;
|
|
1891
|
+
font-size: inherit;
|
|
1892
|
+
overflow-wrap: normal;
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
/* An author's own `<details>`: a card whose summary carries the same chevron as the tree. Written
|
|
1896
|
+
with `:where()`, so the viewer's own disclosures in the article — the findings panel, a rule in the
|
|
1897
|
+
config editor — restyle it with a plain class selector instead of out-specifying each rule here. */
|
|
1898
|
+
.markdown-body :where(details) {
|
|
1899
|
+
padding: 10px var(--space-4);
|
|
1900
|
+
border: 1px solid var(--border-subtle);
|
|
1901
|
+
border-radius: var(--radius-md);
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
.markdown-body :where(details > summary) {
|
|
1905
|
+
display: flex;
|
|
1906
|
+
align-items: center;
|
|
1907
|
+
gap: var(--space-2);
|
|
1908
|
+
list-style: none;
|
|
1909
|
+
cursor: pointer;
|
|
1910
|
+
font-weight: 600;
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
.markdown-body :where(details > summary)::-webkit-details-marker {
|
|
1914
|
+
display: none;
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
.markdown-body :where(details[open] > summary) {
|
|
1918
|
+
margin-bottom: var(--space-2);
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
.markdown-body :where(details[open] > summary)::before {
|
|
1922
|
+
transform: rotate(90deg);
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
.link-external::after {
|
|
1926
|
+
content: "↗";
|
|
1927
|
+
margin-left: 2px;
|
|
1928
|
+
font-size: 0.75em;
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
.link-missing {
|
|
1932
|
+
color: var(--danger);
|
|
1933
|
+
text-decoration: underline wavy;
|
|
1934
|
+
text-underline-offset: 3px;
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
/* ---------------------------------------------------------------------------------------------
|
|
1938
|
+
Lint findings for this document: a tinted card above the article. Each finding is one row of a
|
|
1939
|
+
grid — severity, rule, message, where, prompt — with every short cell aligned to the message's
|
|
1940
|
+
first line, so a message that wraps does not drag "whole file" and the button to its middle.
|
|
1941
|
+
--------------------------------------------------------------------------------------------- */
|
|
1942
|
+
.markdown-body .diagnostics {
|
|
1943
|
+
--tint: var(--warning);
|
|
1944
|
+
margin: 0 0 var(--space-6);
|
|
1945
|
+
padding: var(--space-3) var(--space-4);
|
|
1946
|
+
border: 1px solid color-mix(in srgb, var(--tint) 28%, transparent);
|
|
1947
|
+
border-radius: 12px;
|
|
1948
|
+
background: color-mix(in srgb, var(--tint) 7%, var(--bg));
|
|
1949
|
+
font-family: var(--font-sans);
|
|
1950
|
+
font-size: 14px;
|
|
1951
|
+
letter-spacing: normal;
|
|
1952
|
+
text-align: start;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
.markdown-body .diagnostics.has-errors {
|
|
1956
|
+
--tint: var(--danger);
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
.markdown-body .diagnostics > summary {
|
|
1960
|
+
display: flex;
|
|
1961
|
+
align-items: center;
|
|
1962
|
+
gap: var(--space-2);
|
|
1963
|
+
min-height: var(--control-sm);
|
|
1964
|
+
margin: 0;
|
|
1965
|
+
list-style: none;
|
|
1966
|
+
cursor: pointer;
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
.diagnostics > summary::-webkit-details-marker {
|
|
1970
|
+
display: none;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
.diagnostics[open] > summary::before {
|
|
1974
|
+
transform: rotate(90deg);
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
.diagnostics-title {
|
|
1978
|
+
flex: 1;
|
|
1979
|
+
font-weight: 600;
|
|
1980
|
+
}
|
|
1981
|
+
|
|
1982
|
+
.diagnostics ul {
|
|
1983
|
+
margin: var(--space-2) 0 0;
|
|
1984
|
+
padding: 0;
|
|
1985
|
+
list-style: none;
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
/* A fixed 24px line for the message, so its first line and every short cell beside it share one
|
|
1989
|
+
height whatever the text font is. */
|
|
1990
|
+
.diagnostic {
|
|
1991
|
+
display: grid;
|
|
1992
|
+
grid-template-columns: auto auto minmax(0, 1fr) auto auto;
|
|
1993
|
+
column-gap: var(--space-3);
|
|
1994
|
+
align-items: start;
|
|
1995
|
+
padding: var(--space-2) 0;
|
|
1996
|
+
line-height: 24px;
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
.markdown-body .diagnostic + .diagnostic {
|
|
2000
|
+
margin: 0;
|
|
2001
|
+
border-top: 1px solid color-mix(in srgb, var(--tint) 18%, transparent);
|
|
2002
|
+
}
|
|
2003
|
+
|
|
2004
|
+
.diagnostic-severity,
|
|
2005
|
+
.diagnostic-rule,
|
|
2006
|
+
.diagnostic-line,
|
|
2007
|
+
.diagnostic .prompt-menu {
|
|
2008
|
+
display: inline-flex;
|
|
2009
|
+
align-items: center;
|
|
2010
|
+
align-self: start;
|
|
2011
|
+
height: var(--control-xs);
|
|
2012
|
+
white-space: nowrap;
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
.diagnostic-severity {
|
|
2016
|
+
justify-self: start;
|
|
2017
|
+
padding: 0 var(--space-2);
|
|
2018
|
+
border-radius: var(--radius-xs);
|
|
2019
|
+
background: color-mix(in srgb, var(--warning) 16%, transparent);
|
|
2020
|
+
color: var(--warning);
|
|
2021
|
+
font-size: 11px;
|
|
2022
|
+
font-weight: 600;
|
|
2023
|
+
letter-spacing: 0.04em;
|
|
2024
|
+
line-height: 1;
|
|
2025
|
+
text-transform: uppercase;
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
.diagnostic-error .diagnostic-severity {
|
|
2029
|
+
background: color-mix(in srgb, var(--danger) 16%, transparent);
|
|
2030
|
+
color: var(--danger);
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
.diagnostic-rule {
|
|
2034
|
+
font-family: var(--font-mono);
|
|
2035
|
+
font-size: 13px;
|
|
2036
|
+
font-weight: 500;
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2039
|
+
.diagnostic-message {
|
|
2040
|
+
min-width: 0;
|
|
2041
|
+
overflow-wrap: anywhere;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
.diagnostic-line {
|
|
2045
|
+
color: var(--fg-muted);
|
|
2046
|
+
font-size: 13px;
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
/* "Prompt": copies a prompt that answers a finding (or, in the panel's summary and on the dashboard,
|
|
2050
|
+
all of a document's findings). Small and quiet, so a list of findings still reads as findings. */
|
|
2051
|
+
.prompt-menu {
|
|
2052
|
+
height: var(--control-xs);
|
|
2053
|
+
padding: 0 10px;
|
|
2054
|
+
font-size: 12px;
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
.prompt-menu[aria-expanded="true"] {
|
|
2058
|
+
color: var(--accent);
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
.prompt-menu[hidden] {
|
|
2062
|
+
display: none;
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
.dashboard-rules .prompt-menu {
|
|
2066
|
+
margin-left: 6px;
|
|
2067
|
+
vertical-align: middle;
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
/* Front matter */
|
|
2071
|
+
.frontmatter {
|
|
2072
|
+
margin: 0 0 var(--space-6);
|
|
2073
|
+
padding: var(--space-3) var(--space-4);
|
|
2074
|
+
border-radius: 12px;
|
|
2075
|
+
background: var(--bg-subtle);
|
|
2076
|
+
font-family: var(--font-sans);
|
|
2077
|
+
font-size: 14px;
|
|
2078
|
+
letter-spacing: normal;
|
|
2079
|
+
text-align: start;
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
.frontmatter dl {
|
|
2083
|
+
display: grid;
|
|
2084
|
+
grid-template-columns: max-content 1fr;
|
|
2085
|
+
gap: 6px var(--space-4);
|
|
2086
|
+
margin: 0;
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2089
|
+
.frontmatter dt {
|
|
2090
|
+
color: var(--fg-muted);
|
|
2091
|
+
font-family: var(--font-mono);
|
|
2092
|
+
font-size: 13px;
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
.frontmatter dd {
|
|
2096
|
+
margin: 0;
|
|
2097
|
+
overflow-wrap: anywhere;
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
.frontmatter pre {
|
|
2101
|
+
margin: 0;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
.frontmatter-invalid {
|
|
2105
|
+
background: color-mix(in srgb, var(--danger) 7%, var(--bg));
|
|
2106
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 35%, transparent);
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
/* Diagrams */
|
|
2110
|
+
.mermaid-diagram {
|
|
2111
|
+
margin: 0 0 1em;
|
|
2112
|
+
overflow-x: auto;
|
|
2113
|
+
text-align: center;
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
.mermaid-diagram[data-state="rendered"] .mermaid-source {
|
|
2117
|
+
display: none;
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
.mermaid-diagram svg {
|
|
2121
|
+
max-width: 100%;
|
|
2122
|
+
height: auto;
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
.mermaid-source {
|
|
2126
|
+
text-align: left;
|
|
2127
|
+
}
|
|
2128
|
+
|
|
2129
|
+
.mermaid-error,
|
|
2130
|
+
.echarts-error {
|
|
2131
|
+
margin: 0 0 var(--space-2);
|
|
2132
|
+
color: var(--danger);
|
|
2133
|
+
font-size: 14px;
|
|
2134
|
+
text-align: left;
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
/* Charts: ECharts sizes its canvas to this box, so the box sets the height. */
|
|
2138
|
+
.echarts-chart {
|
|
2139
|
+
margin: 0 0 1em;
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2142
|
+
.echarts-chart[data-state="rendered"] .echarts-source {
|
|
2143
|
+
display: none;
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
.echarts-canvas {
|
|
2147
|
+
width: 100%;
|
|
2148
|
+
height: 400px;
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
/* ---------------------------------------------------------------------------------------------
|
|
2152
|
+
Link graph: the picture takes the width the article would leave empty.
|
|
2153
|
+
--------------------------------------------------------------------------------------------- */
|
|
2154
|
+
.markdown-body:has(.graph-canvas) {
|
|
2155
|
+
max-width: none;
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
.graph-controls {
|
|
2159
|
+
display: flex;
|
|
2160
|
+
flex-wrap: wrap;
|
|
2161
|
+
gap: var(--space-2) var(--space-3);
|
|
2162
|
+
align-items: center;
|
|
2163
|
+
margin: 0 0 var(--space-2);
|
|
2164
|
+
font-size: 14px;
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
.graph-controls label {
|
|
2168
|
+
display: inline-flex;
|
|
2169
|
+
align-items: center;
|
|
2170
|
+
gap: var(--space-2);
|
|
2171
|
+
color: var(--fg-muted);
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
.graph-controls select {
|
|
2175
|
+
min-width: 14em;
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
.graph-controls button[hidden] {
|
|
2179
|
+
display: none;
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
.graph-summary {
|
|
2183
|
+
margin: 0 0 var(--space-3);
|
|
2184
|
+
color: var(--fg-muted);
|
|
2185
|
+
font-size: 13px;
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
.graph-canvas {
|
|
2189
|
+
height: max(420px, calc(100vh - var(--topbar-height) - 260px));
|
|
2190
|
+
border: 1px solid var(--border-subtle);
|
|
2191
|
+
border-radius: 12px;
|
|
2192
|
+
overflow: hidden;
|
|
2193
|
+
}
|
|
2194
|
+
|
|
2195
|
+
.graph-placeholder {
|
|
2196
|
+
padding: var(--space-4);
|
|
2197
|
+
color: var(--fg-muted);
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
.markdown-body .graph-list {
|
|
2201
|
+
margin-top: var(--space-4);
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
.graph-list ul {
|
|
2205
|
+
font-size: 14px;
|
|
2206
|
+
}
|
|
2207
|
+
|
|
2208
|
+
.graph-list-path,
|
|
2209
|
+
.graph-list-degree {
|
|
2210
|
+
color: var(--fg-muted);
|
|
2211
|
+
font-size: 12px;
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
.graph-list-path {
|
|
2215
|
+
font-family: var(--font-mono);
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
/* ---------------------------------------------------------------------------------------------
|
|
2219
|
+
Dashboard: the filters above, one table row per document below; the table takes the width the
|
|
2220
|
+
article would leave empty, like the graph.
|
|
2221
|
+
--------------------------------------------------------------------------------------------- */
|
|
2222
|
+
.markdown-body:has(.dashboard-filters) {
|
|
2223
|
+
max-width: none;
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
/* The dashboard has no rail, so its table takes the rail's column too rather than leaving it empty.
|
|
2227
|
+
Only where the tree is a column of its own: on a narrow screen the tree folds above the article,
|
|
2228
|
+
and this would bring its column back. */
|
|
2229
|
+
@media (min-width: 801px) {
|
|
2230
|
+
.layout:has(.dashboard-filters) {
|
|
2231
|
+
grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
.dashboard-filters {
|
|
2236
|
+
display: flex;
|
|
2237
|
+
flex-wrap: wrap;
|
|
2238
|
+
gap: var(--space-3);
|
|
2239
|
+
align-items: stretch;
|
|
2240
|
+
margin: 0 0 var(--space-5);
|
|
2241
|
+
font-size: 13px;
|
|
2242
|
+
line-height: 1.4;
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
/* Each group of filters is a card with its name in small capitals inside it, rather than a legend
|
|
2246
|
+
cut into an outline. */
|
|
2247
|
+
.filter-group {
|
|
2248
|
+
min-width: 0;
|
|
2249
|
+
margin: 0;
|
|
2250
|
+
padding: var(--space-3) var(--space-4) 14px;
|
|
2251
|
+
border: 0;
|
|
2252
|
+
border-radius: 12px;
|
|
2253
|
+
background: var(--bg-subtle);
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2256
|
+
.filter-group legend {
|
|
2257
|
+
float: left;
|
|
2258
|
+
width: 100%;
|
|
2259
|
+
margin: 0 0 10px;
|
|
2260
|
+
padding: 0;
|
|
2261
|
+
color: var(--fg-muted);
|
|
2262
|
+
font-size: 11px;
|
|
2263
|
+
font-weight: 600;
|
|
2264
|
+
letter-spacing: 0.06em;
|
|
2265
|
+
text-transform: uppercase;
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
.filter-group legend + * {
|
|
2269
|
+
clear: both;
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
.filter-options {
|
|
2273
|
+
display: flex;
|
|
2274
|
+
flex-wrap: wrap;
|
|
2275
|
+
gap: 6px;
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2278
|
+
.filter-options + .filter-options {
|
|
2279
|
+
margin-top: var(--space-2);
|
|
2280
|
+
}
|
|
2281
|
+
|
|
2282
|
+
.filter-rules {
|
|
2283
|
+
max-width: 440px;
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
.filter-options-column {
|
|
2287
|
+
max-width: 300px;
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
/* A filter that is on or off is a chip: the checkbox stays underneath, invisible but focusable and
|
|
2291
|
+
still sent by the form, and the chip is tinted while it is checked. */
|
|
2292
|
+
.filter-check {
|
|
2293
|
+
position: relative;
|
|
2294
|
+
display: inline-flex;
|
|
2295
|
+
align-items: center;
|
|
2296
|
+
height: var(--control-sm);
|
|
2297
|
+
padding: 0 var(--space-3);
|
|
2298
|
+
border-radius: 14px;
|
|
2299
|
+
background: var(--fill);
|
|
2300
|
+
color: var(--fg);
|
|
2301
|
+
white-space: nowrap;
|
|
2302
|
+
cursor: pointer;
|
|
2303
|
+
transition:
|
|
2304
|
+
background-color 120ms var(--ease),
|
|
2305
|
+
color 120ms var(--ease),
|
|
2306
|
+
box-shadow 120ms var(--ease);
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2309
|
+
.filter-check input {
|
|
2310
|
+
position: absolute;
|
|
2311
|
+
inset: 0;
|
|
2312
|
+
width: 100%;
|
|
2313
|
+
height: 100%;
|
|
2314
|
+
margin: 0;
|
|
2315
|
+
opacity: 0;
|
|
2316
|
+
cursor: pointer;
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
.filter-check:hover {
|
|
2320
|
+
background: var(--fill-strong);
|
|
2321
|
+
}
|
|
2322
|
+
|
|
2323
|
+
.filter-check:has(input:checked) {
|
|
2324
|
+
background: var(--accent-bg);
|
|
2325
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
|
|
2326
|
+
color: var(--accent);
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
.filter-check:has(input:focus-visible) {
|
|
2330
|
+
outline: 2px solid var(--accent);
|
|
2331
|
+
outline-offset: 2px;
|
|
2332
|
+
}
|
|
2333
|
+
|
|
2334
|
+
.filter-check code {
|
|
2335
|
+
font-family: var(--font-mono);
|
|
2336
|
+
font-size: 12px;
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2339
|
+
.filter-range {
|
|
2340
|
+
display: grid;
|
|
2341
|
+
grid-template-columns: 3.5em auto auto auto;
|
|
2342
|
+
gap: 6px;
|
|
2343
|
+
align-items: center;
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
.filter-range + .filter-range {
|
|
2347
|
+
margin-top: 6px;
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
.filter-range-label {
|
|
2351
|
+
color: var(--fg-muted);
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
.filter-range input {
|
|
2355
|
+
width: 6.5em;
|
|
2356
|
+
font-variant-numeric: tabular-nums;
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2359
|
+
.filter-range-dash {
|
|
2360
|
+
color: var(--fg-muted);
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2363
|
+
.filter-field {
|
|
2364
|
+
display: flex;
|
|
2365
|
+
flex-direction: column;
|
|
2366
|
+
gap: var(--space-1);
|
|
2367
|
+
color: var(--fg-muted);
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
.filter-field + .filter-field,
|
|
2371
|
+
.filter-field + .filter-check,
|
|
2372
|
+
.filter-check + .filter-field {
|
|
2373
|
+
margin-top: 10px;
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
.dashboard-filters select,
|
|
2377
|
+
.dashboard-filters input[type="search"] {
|
|
2378
|
+
width: 16em;
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
.filter-actions {
|
|
2382
|
+
display: flex;
|
|
2383
|
+
gap: var(--space-3);
|
|
2384
|
+
align-items: center;
|
|
2385
|
+
align-self: flex-end;
|
|
2386
|
+
padding-bottom: var(--space-3);
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
.filter-actions button[hidden] {
|
|
2390
|
+
display: none;
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2393
|
+
.dashboard-summary {
|
|
2394
|
+
margin: 0 0 var(--space-1);
|
|
2395
|
+
font-size: 15px;
|
|
2396
|
+
font-weight: 600;
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
.dashboard-export,
|
|
2400
|
+
.dashboard-notice {
|
|
2401
|
+
margin: 0 0 var(--space-3);
|
|
2402
|
+
color: var(--fg-muted);
|
|
2403
|
+
font-size: 13px;
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
.dashboard-notice {
|
|
2407
|
+
color: var(--warning);
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
.dashboard-error {
|
|
2411
|
+
color: var(--danger);
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
.dashboard-table-wrap {
|
|
2415
|
+
overflow-x: auto;
|
|
2416
|
+
border: 1px solid var(--border-subtle);
|
|
2417
|
+
border-radius: 12px;
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2420
|
+
/* Inside the card the table needs no border or corners of its own. */
|
|
2421
|
+
.markdown-body .dashboard-table-wrap table {
|
|
2422
|
+
display: table;
|
|
2423
|
+
width: 100%;
|
|
2424
|
+
max-width: none;
|
|
2425
|
+
margin: 0;
|
|
2426
|
+
border: 0;
|
|
2427
|
+
border-radius: 0;
|
|
2428
|
+
font-size: 13px;
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
.markdown-body .dashboard-table-wrap th,
|
|
2432
|
+
.markdown-body .dashboard-table-wrap td {
|
|
2433
|
+
padding: var(--space-2) var(--space-3);
|
|
2434
|
+
border: 0;
|
|
2435
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
2436
|
+
vertical-align: baseline;
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2439
|
+
.markdown-body .dashboard-table-wrap th {
|
|
2440
|
+
color: var(--fg-muted);
|
|
2441
|
+
font-size: 12px;
|
|
2442
|
+
font-weight: 600;
|
|
2443
|
+
text-align: left;
|
|
2444
|
+
white-space: nowrap;
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
.markdown-body .dashboard-table-wrap tbody tr:last-child td {
|
|
2448
|
+
border-bottom: 0;
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
.markdown-body .dashboard-table tbody tr:hover {
|
|
2452
|
+
background: var(--row-hover);
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
.dashboard-table .is-numeric {
|
|
2456
|
+
text-align: right;
|
|
2457
|
+
font-variant-numeric: tabular-nums;
|
|
2458
|
+
white-space: nowrap;
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2461
|
+
.markdown-body .dashboard-table th.is-numeric {
|
|
2462
|
+
text-align: right;
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
.dashboard-sort {
|
|
2466
|
+
color: inherit;
|
|
2467
|
+
text-decoration: none;
|
|
2468
|
+
}
|
|
2469
|
+
|
|
2470
|
+
.dashboard-sort:hover {
|
|
2471
|
+
color: var(--accent);
|
|
2472
|
+
text-decoration: none;
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
.dashboard-table th[aria-sort] .dashboard-sort {
|
|
2476
|
+
color: var(--accent);
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2479
|
+
.dashboard-table th[aria-sort="ascending"] .dashboard-sort::after {
|
|
2480
|
+
content: " ↑";
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
.dashboard-table th[aria-sort="descending"] .dashboard-sort::after {
|
|
2484
|
+
content: " ↓";
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
/* The path takes whatever width the counts leave, so on a wide screen it stays on one line; on a
|
|
2488
|
+
narrow one it breaks rather than pushing the counts out of view. */
|
|
2489
|
+
.markdown-body .dashboard-table th:first-child {
|
|
2490
|
+
width: 100%;
|
|
2491
|
+
}
|
|
2492
|
+
|
|
2493
|
+
.dashboard-path {
|
|
2494
|
+
min-width: 18em;
|
|
2495
|
+
font-family: var(--font-mono);
|
|
2496
|
+
font-size: 12px;
|
|
2497
|
+
overflow-wrap: anywhere;
|
|
2498
|
+
}
|
|
2499
|
+
|
|
2500
|
+
.dashboard-table .has-errors {
|
|
2501
|
+
color: var(--danger);
|
|
2502
|
+
font-weight: 600;
|
|
2503
|
+
}
|
|
2504
|
+
|
|
2505
|
+
.dashboard-table .has-warnings {
|
|
2506
|
+
color: var(--warning);
|
|
2507
|
+
font-weight: 600;
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2510
|
+
.markdown-body .dashboard-rules code {
|
|
2511
|
+
padding: 1px 6px;
|
|
2512
|
+
font-size: 11px;
|
|
2513
|
+
white-space: nowrap;
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2516
|
+
.dashboard-flags {
|
|
2517
|
+
color: var(--fg-muted);
|
|
2518
|
+
white-space: nowrap;
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
.dashboard-empty {
|
|
2522
|
+
padding: var(--space-6) var(--space-3) !important;
|
|
2523
|
+
color: var(--fg-muted);
|
|
2524
|
+
text-align: center;
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
/* ---------------------------------------------------------------------------------------------
|
|
2528
|
+
Config page. The editor is a form of nested cards with a preview under it; every control uses the
|
|
2529
|
+
same field look as the dashboard's filters.
|
|
2530
|
+
--------------------------------------------------------------------------------------------- */
|
|
2531
|
+
.markdown-body:has(.config-editor) {
|
|
2532
|
+
max-width: 980px;
|
|
2533
|
+
}
|
|
2534
|
+
|
|
2535
|
+
.config-file {
|
|
2536
|
+
display: flex;
|
|
2537
|
+
flex-wrap: wrap;
|
|
2538
|
+
align-items: center;
|
|
2539
|
+
gap: var(--space-2);
|
|
2540
|
+
margin: 0 0 var(--space-3);
|
|
2541
|
+
font-size: 14px;
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
.config-save-state {
|
|
2545
|
+
margin: var(--space-3) 0 0;
|
|
2546
|
+
color: var(--fg-muted);
|
|
2547
|
+
font-size: 13px;
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2550
|
+
/* "Show in folder" and "Open in default app", under the config file's name, with what the last one
|
|
2551
|
+
did beside them. */
|
|
2552
|
+
.config-open {
|
|
2553
|
+
display: flex;
|
|
2554
|
+
flex-wrap: wrap;
|
|
2555
|
+
align-items: center;
|
|
2556
|
+
gap: var(--space-2);
|
|
2557
|
+
margin: 0;
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2560
|
+
.config-open[hidden] {
|
|
2561
|
+
display: none;
|
|
2562
|
+
}
|
|
2563
|
+
|
|
2564
|
+
.config-open-status {
|
|
2565
|
+
color: var(--fg-muted);
|
|
2566
|
+
font-size: 13px;
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
.config-editor {
|
|
2570
|
+
margin: var(--space-6) 0 var(--space-8);
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
.config-editor[hidden] {
|
|
2574
|
+
display: none;
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2577
|
+
.config-toolbar {
|
|
2578
|
+
display: flex;
|
|
2579
|
+
flex-wrap: wrap;
|
|
2580
|
+
gap: var(--space-3);
|
|
2581
|
+
align-items: center;
|
|
2582
|
+
margin-bottom: var(--space-4);
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
.config-modes .segment {
|
|
2586
|
+
min-width: 72px;
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
.config-status {
|
|
2590
|
+
margin: 0;
|
|
2591
|
+
color: var(--warning);
|
|
2592
|
+
font-size: 13px;
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
.config-section {
|
|
2596
|
+
margin: 0 0 var(--space-8);
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
.markdown-body .config-section h2,
|
|
2600
|
+
.markdown-body .config-preview h2 {
|
|
2601
|
+
margin: 0 0 2px;
|
|
2602
|
+
padding: 0;
|
|
2603
|
+
border: 0;
|
|
2604
|
+
font-size: 17px;
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
.config-hint {
|
|
2608
|
+
margin: 0 0 var(--space-3);
|
|
2609
|
+
color: var(--fg-muted);
|
|
2610
|
+
font-size: 12px;
|
|
2611
|
+
line-height: 1.45;
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
/* A group of settings is a card. Its children are a grid with one gap between them, and the name is
|
|
2615
|
+
the first row rather than a legend cut into an outline; a group inside a group is drawn a shade
|
|
2616
|
+
lighter, and the one inside that a shade darker again, so nesting stays visible however deep. */
|
|
2617
|
+
.config-group {
|
|
2618
|
+
display: grid;
|
|
2619
|
+
gap: var(--space-2);
|
|
2620
|
+
min-width: 0;
|
|
2621
|
+
margin: 0;
|
|
2622
|
+
padding: var(--space-3) var(--space-4) 14px;
|
|
2623
|
+
border: 0;
|
|
2624
|
+
border-radius: 12px;
|
|
2625
|
+
background: var(--bg-subtle);
|
|
2626
|
+
}
|
|
2627
|
+
|
|
2628
|
+
.config-group .config-group {
|
|
2629
|
+
background: var(--bg-raised);
|
|
2630
|
+
}
|
|
2631
|
+
|
|
2632
|
+
.config-group .config-group .config-group {
|
|
2633
|
+
background: var(--bg-subtle);
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
.config-section > .config-group + .config-group,
|
|
2637
|
+
.config-section > .config-field + .config-group,
|
|
2638
|
+
.config-section > .config-group + .config-field {
|
|
2639
|
+
margin-top: var(--space-3);
|
|
2640
|
+
}
|
|
2641
|
+
|
|
2642
|
+
.config-group legend {
|
|
2643
|
+
float: left;
|
|
2644
|
+
padding: 0;
|
|
2645
|
+
font-family: var(--font-mono);
|
|
2646
|
+
font-size: 12px;
|
|
2647
|
+
font-weight: 600;
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2650
|
+
.config-group > .config-hint {
|
|
2651
|
+
margin: 0;
|
|
2652
|
+
}
|
|
2653
|
+
|
|
2654
|
+
.config-field {
|
|
2655
|
+
display: grid;
|
|
2656
|
+
grid-template-columns: minmax(8em, 12em) minmax(0, 1fr);
|
|
2657
|
+
gap: var(--space-1) var(--space-4);
|
|
2658
|
+
align-items: center;
|
|
2659
|
+
min-height: var(--control-sm);
|
|
2660
|
+
margin: 0;
|
|
2661
|
+
font-size: 13px;
|
|
2662
|
+
}
|
|
2663
|
+
|
|
2664
|
+
.config-section > .config-field {
|
|
2665
|
+
padding: var(--space-2) var(--space-4);
|
|
2666
|
+
border-radius: 12px;
|
|
2667
|
+
background: var(--bg-subtle);
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
.config-field > .config-hint {
|
|
2671
|
+
grid-column: 2;
|
|
2672
|
+
margin: 0;
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
.config-field-name {
|
|
2676
|
+
font-family: var(--font-mono);
|
|
2677
|
+
font-size: 12px;
|
|
2678
|
+
overflow-wrap: anywhere;
|
|
2679
|
+
}
|
|
2680
|
+
|
|
2681
|
+
/* A one-of-few choice in the form keeps to its content's width rather than stretching across. */
|
|
2682
|
+
.config-field > .segmented {
|
|
2683
|
+
justify-self: start;
|
|
2684
|
+
max-width: 100%;
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
.config-editor textarea {
|
|
2688
|
+
height: auto;
|
|
2689
|
+
padding: var(--space-2);
|
|
2690
|
+
line-height: 1.5;
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2693
|
+
/* Modifiers of the gray button, written with `button` so they match its own specificity and, coming
|
|
2694
|
+
after it, win. */
|
|
2695
|
+
.config-editor button.config-primary {
|
|
2696
|
+
background: var(--accent);
|
|
2697
|
+
color: #ffffff;
|
|
2698
|
+
font-weight: 600;
|
|
2699
|
+
}
|
|
2700
|
+
|
|
2701
|
+
.config-editor button.config-primary:hover:not(:disabled) {
|
|
2702
|
+
background: color-mix(in srgb, var(--accent) 88%, #000000);
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2705
|
+
.config-editor button.config-danger,
|
|
2706
|
+
.config-editor button.config-remove {
|
|
2707
|
+
color: var(--danger);
|
|
2708
|
+
}
|
|
2709
|
+
|
|
2710
|
+
/* Adding is a tinted text button, apart from the gray ones that act on what is already there. */
|
|
2711
|
+
.config-editor button.config-add,
|
|
2712
|
+
.config-editor .config-rule-add button {
|
|
2713
|
+
justify-self: start;
|
|
2714
|
+
background: var(--accent-bg);
|
|
2715
|
+
color: var(--accent);
|
|
2716
|
+
}
|
|
2717
|
+
|
|
2718
|
+
.config-editor button.config-add:hover:not(:disabled),
|
|
2719
|
+
.config-editor .config-rule-add button:hover:not(:disabled) {
|
|
2720
|
+
background: color-mix(in srgb, var(--accent) 20%, transparent);
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
.config-editor button.config-add::before {
|
|
2724
|
+
content: "+" / "";
|
|
2725
|
+
font-size: 15px;
|
|
2726
|
+
font-weight: 400;
|
|
2727
|
+
}
|
|
2728
|
+
|
|
2729
|
+
.config-list-items {
|
|
2730
|
+
display: flex;
|
|
2731
|
+
flex-direction: column;
|
|
2732
|
+
gap: 6px;
|
|
2733
|
+
}
|
|
2734
|
+
|
|
2735
|
+
.config-list-items:empty {
|
|
2736
|
+
display: none;
|
|
2737
|
+
}
|
|
2738
|
+
|
|
2739
|
+
.config-list-row {
|
|
2740
|
+
display: flex;
|
|
2741
|
+
gap: var(--space-2);
|
|
2742
|
+
align-items: center;
|
|
2743
|
+
}
|
|
2744
|
+
|
|
2745
|
+
.config-list-row > input,
|
|
2746
|
+
.config-list-row > label {
|
|
2747
|
+
flex: 1;
|
|
2748
|
+
font-family: var(--font-mono);
|
|
2749
|
+
font-size: 12px;
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
.config-list-object {
|
|
2753
|
+
display: flex;
|
|
2754
|
+
gap: var(--space-2);
|
|
2755
|
+
align-items: flex-start;
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
.config-list-object > .config-group {
|
|
2759
|
+
flex: 1;
|
|
2760
|
+
}
|
|
2761
|
+
|
|
2762
|
+
.config-json {
|
|
2763
|
+
width: 100%;
|
|
2764
|
+
min-height: 5em;
|
|
2765
|
+
font-family: var(--font-mono) !important;
|
|
2766
|
+
font-size: 12px !important;
|
|
2767
|
+
}
|
|
2768
|
+
|
|
2769
|
+
.config-json-problem {
|
|
2770
|
+
grid-column: 2;
|
|
2771
|
+
color: var(--danger);
|
|
2772
|
+
font-size: 12px;
|
|
2773
|
+
}
|
|
2774
|
+
|
|
2775
|
+
/* The rules: an inset list of cards, each folding open on its options. */
|
|
2776
|
+
.config-rule-list {
|
|
2777
|
+
display: flex;
|
|
2778
|
+
flex-direction: column;
|
|
2779
|
+
gap: var(--space-2);
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
.markdown-body .config-rule {
|
|
2783
|
+
margin: 0;
|
|
2784
|
+
padding: 0;
|
|
2785
|
+
border: 0;
|
|
2786
|
+
border-radius: 12px;
|
|
2787
|
+
background: var(--bg-subtle);
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2790
|
+
.markdown-body .config-rule > summary {
|
|
2791
|
+
display: flex;
|
|
2792
|
+
gap: var(--space-3);
|
|
2793
|
+
align-items: center;
|
|
2794
|
+
min-height: 44px;
|
|
2795
|
+
margin: 0;
|
|
2796
|
+
padding: 0 var(--space-4);
|
|
2797
|
+
font-size: 13px;
|
|
2798
|
+
font-weight: 400;
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2801
|
+
.config-rule[open] > summary {
|
|
2802
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
2803
|
+
}
|
|
2804
|
+
|
|
2805
|
+
.config-rule[open] > summary::before {
|
|
2806
|
+
transform: rotate(90deg);
|
|
2807
|
+
}
|
|
2808
|
+
|
|
2809
|
+
.markdown-body .config-rule-id {
|
|
2810
|
+
flex: none;
|
|
2811
|
+
padding: 0;
|
|
2812
|
+
background: none;
|
|
2813
|
+
font-size: 12px;
|
|
2814
|
+
font-weight: 600;
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
.config-rule-description {
|
|
2818
|
+
flex: 1;
|
|
2819
|
+
min-width: 0;
|
|
2820
|
+
overflow: hidden;
|
|
2821
|
+
color: var(--fg-muted);
|
|
2822
|
+
text-overflow: ellipsis;
|
|
2823
|
+
white-space: nowrap;
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2826
|
+
/* What the rule is set to, as a pill in its severity's color. */
|
|
2827
|
+
.config-rule-severity {
|
|
2828
|
+
display: inline-flex;
|
|
2829
|
+
flex: none;
|
|
2830
|
+
align-items: center;
|
|
2831
|
+
height: 20px;
|
|
2832
|
+
padding: 0 var(--space-2);
|
|
2833
|
+
border-radius: var(--radius-xs);
|
|
2834
|
+
background: var(--fill);
|
|
2835
|
+
color: var(--fg-muted);
|
|
2836
|
+
font-size: 11px;
|
|
2837
|
+
font-weight: 600;
|
|
2838
|
+
letter-spacing: 0.04em;
|
|
2839
|
+
line-height: 1;
|
|
2840
|
+
text-transform: uppercase;
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
.config-rule-severity[data-severity="error"] {
|
|
2844
|
+
background: color-mix(in srgb, var(--danger) 14%, transparent);
|
|
2845
|
+
color: var(--danger);
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
.config-rule-severity[data-severity="warning"] {
|
|
2849
|
+
background: color-mix(in srgb, var(--warning) 14%, transparent);
|
|
2850
|
+
color: var(--warning);
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
.config-rule-body {
|
|
2854
|
+
display: grid;
|
|
2855
|
+
gap: var(--space-2);
|
|
2856
|
+
padding: var(--space-3) var(--space-4) var(--space-4);
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2859
|
+
/* The rule card is itself the first level, so its groups alternate starting from the raised shade. */
|
|
2860
|
+
.config-rule-body .config-group {
|
|
2861
|
+
background: var(--bg-raised);
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2864
|
+
.config-rule-body .config-group .config-group {
|
|
2865
|
+
background: var(--bg-subtle);
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2868
|
+
.config-rule-body .config-group .config-group .config-group {
|
|
2869
|
+
background: var(--bg-raised);
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2872
|
+
.config-rule-footer {
|
|
2873
|
+
display: flex;
|
|
2874
|
+
gap: var(--space-4);
|
|
2875
|
+
align-items: center;
|
|
2876
|
+
justify-content: space-between;
|
|
2877
|
+
margin-top: var(--space-1);
|
|
2878
|
+
font-size: 13px;
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
.config-rule-add {
|
|
2882
|
+
display: flex;
|
|
2883
|
+
flex-wrap: wrap;
|
|
2884
|
+
gap: var(--space-2);
|
|
2885
|
+
margin-top: var(--space-1);
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2888
|
+
.config-rule-add select {
|
|
2889
|
+
flex: 1;
|
|
2890
|
+
min-width: 0;
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
.config-text-view[hidden],
|
|
2894
|
+
.config-form-view[hidden] {
|
|
2895
|
+
display: none;
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2898
|
+
.config-textarea {
|
|
2899
|
+
width: 100%;
|
|
2900
|
+
min-height: 420px;
|
|
2901
|
+
font-family: var(--font-mono) !important;
|
|
2902
|
+
font-size: 12px !important;
|
|
2903
|
+
line-height: 1.5;
|
|
2904
|
+
tab-size: 2;
|
|
2905
|
+
}
|
|
2906
|
+
|
|
2907
|
+
.config-preview {
|
|
2908
|
+
margin-top: var(--space-5);
|
|
2909
|
+
padding: var(--space-4);
|
|
2910
|
+
border-radius: 12px;
|
|
2911
|
+
background: var(--bg-subtle);
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
.config-preview-body p {
|
|
2915
|
+
margin: var(--space-1) 0;
|
|
2916
|
+
font-size: 14px;
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
.config-summary {
|
|
2920
|
+
font-weight: 600;
|
|
2921
|
+
}
|
|
2922
|
+
|
|
2923
|
+
.config-invalid,
|
|
2924
|
+
.config-errors {
|
|
2925
|
+
color: var(--danger);
|
|
2926
|
+
}
|
|
2927
|
+
|
|
2928
|
+
.config-errors {
|
|
2929
|
+
margin: var(--space-1) 0;
|
|
2930
|
+
font-family: var(--font-mono);
|
|
2931
|
+
font-size: 12px;
|
|
2932
|
+
}
|
|
2933
|
+
|
|
2934
|
+
.config-saved {
|
|
2935
|
+
color: var(--accent);
|
|
2936
|
+
font-weight: 600;
|
|
2937
|
+
}
|
|
2938
|
+
|
|
2939
|
+
.markdown-body .config-by-rule {
|
|
2940
|
+
margin: var(--space-2) 0;
|
|
2941
|
+
font-size: 13px;
|
|
2942
|
+
}
|
|
2943
|
+
|
|
2944
|
+
.markdown-body .config-by-rule th,
|
|
2945
|
+
.markdown-body .config-by-rule td {
|
|
2946
|
+
padding: 4px 10px;
|
|
2947
|
+
}
|
|
2948
|
+
|
|
2949
|
+
.markdown-body .config-findings,
|
|
2950
|
+
.markdown-body .config-result {
|
|
2951
|
+
margin: 6px 0;
|
|
2952
|
+
background: var(--bg-card);
|
|
2953
|
+
}
|
|
2954
|
+
|
|
2955
|
+
.config-findings ul {
|
|
2956
|
+
margin: var(--space-1) 0;
|
|
2957
|
+
padding-left: 18px;
|
|
2958
|
+
font-size: 12px;
|
|
2959
|
+
}
|
|
2960
|
+
|
|
2961
|
+
.config-finding code {
|
|
2962
|
+
font-size: 11px;
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
.config-finding-rule {
|
|
2966
|
+
color: var(--fg-muted);
|
|
2967
|
+
}
|
|
2968
|
+
|
|
2969
|
+
.config-finding-error .config-finding-rule {
|
|
2970
|
+
color: var(--danger);
|
|
2971
|
+
}
|
|
2972
|
+
|
|
2973
|
+
.config-result pre {
|
|
2974
|
+
max-height: 360px;
|
|
2975
|
+
overflow: auto;
|
|
2976
|
+
font-size: 12px;
|
|
2977
|
+
}
|
|
2978
|
+
|
|
2979
|
+
.config-actions {
|
|
2980
|
+
display: flex;
|
|
2981
|
+
flex-wrap: wrap;
|
|
2982
|
+
gap: var(--space-2);
|
|
2983
|
+
align-items: center;
|
|
2984
|
+
}
|
|
2985
|
+
|
|
2986
|
+
.config-list-empty {
|
|
2987
|
+
display: flex;
|
|
2988
|
+
flex-wrap: wrap;
|
|
2989
|
+
gap: var(--space-1) var(--space-3);
|
|
2990
|
+
align-items: center;
|
|
2991
|
+
}
|
|
2992
|
+
|
|
2993
|
+
.config-list-empty[hidden] {
|
|
2994
|
+
display: none;
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
.config-list-empty .config-hint {
|
|
2998
|
+
margin: 0;
|
|
2999
|
+
color: var(--warning);
|
|
3000
|
+
}
|
|
3001
|
+
|
|
3002
|
+
/* Sits after the form and sticks to the bottom of the window while the form is scrolled, then
|
|
3003
|
+
settles above the preview when the reader gets there. Material, so the form stays faintly visible
|
|
3004
|
+
under it. */
|
|
3005
|
+
.config-bar {
|
|
3006
|
+
position: sticky;
|
|
3007
|
+
bottom: var(--space-3);
|
|
3008
|
+
z-index: 4;
|
|
3009
|
+
display: flex;
|
|
3010
|
+
flex-wrap: wrap;
|
|
3011
|
+
gap: var(--space-2) var(--space-4);
|
|
3012
|
+
align-items: center;
|
|
3013
|
+
margin: var(--space-4) 0 0;
|
|
3014
|
+
padding: var(--space-3) var(--space-4);
|
|
3015
|
+
border-radius: var(--radius-lg);
|
|
3016
|
+
background: var(--material);
|
|
3017
|
+
backdrop-filter: var(--material-filter);
|
|
3018
|
+
box-shadow: var(--shadow-lg);
|
|
3019
|
+
}
|
|
3020
|
+
|
|
3021
|
+
.config-bar[hidden] {
|
|
3022
|
+
display: none;
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
.config-bar-text {
|
|
3026
|
+
flex: 1 1 18em;
|
|
3027
|
+
margin: 0;
|
|
3028
|
+
font-size: 14px;
|
|
3029
|
+
font-weight: 600;
|
|
3030
|
+
}
|
|
3031
|
+
|
|
3032
|
+
.config-bar-text a {
|
|
3033
|
+
font-weight: 400;
|
|
3034
|
+
white-space: nowrap;
|
|
3035
|
+
}
|
|
3036
|
+
|
|
3037
|
+
/* An unsaved change made to an earlier version of the file, offered back above the editor. Framed
|
|
3038
|
+
in the warning color, as it stands for work that is not in the file and not in the editor. */
|
|
3039
|
+
.config-notice {
|
|
3040
|
+
display: flex;
|
|
3041
|
+
flex-wrap: wrap;
|
|
3042
|
+
gap: var(--space-2) var(--space-4);
|
|
3043
|
+
align-items: center;
|
|
3044
|
+
margin: 0 0 var(--space-4);
|
|
3045
|
+
padding: var(--space-3) var(--space-4);
|
|
3046
|
+
border: 1px solid var(--warning);
|
|
3047
|
+
border-radius: var(--radius-lg);
|
|
3048
|
+
}
|
|
3049
|
+
|
|
3050
|
+
.config-notice[hidden] {
|
|
3051
|
+
display: none;
|
|
3052
|
+
}
|
|
3053
|
+
|
|
3054
|
+
.config-notice-text {
|
|
3055
|
+
flex: 1 1 18em;
|
|
3056
|
+
margin: 0;
|
|
3057
|
+
font-size: 14px;
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
.config-save-off {
|
|
3061
|
+
flex-basis: 100%;
|
|
3062
|
+
margin: 0;
|
|
3063
|
+
color: var(--fg-muted);
|
|
3064
|
+
font-size: 12px;
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3067
|
+
.markdown-body .config-rules td:first-child {
|
|
3068
|
+
white-space: nowrap;
|
|
3069
|
+
}
|
|
3070
|
+
|
|
3071
|
+
.markdown-body .config-current,
|
|
3072
|
+
.markdown-body .config-registry {
|
|
3073
|
+
margin-top: var(--space-8);
|
|
3074
|
+
}
|
|
3075
|
+
|
|
3076
|
+
/* Source view: line anchors from a document's `#L42` link */
|
|
3077
|
+
.source-title {
|
|
3078
|
+
font-family: var(--font-mono);
|
|
3079
|
+
font-size: 1.1em !important;
|
|
3080
|
+
overflow-wrap: anywhere;
|
|
3081
|
+
}
|
|
3082
|
+
|
|
3083
|
+
.source-view pre {
|
|
3084
|
+
counter-reset: line;
|
|
3085
|
+
}
|
|
3086
|
+
|
|
3087
|
+
.source-view .line {
|
|
3088
|
+
display: inline-block;
|
|
3089
|
+
width: 100%;
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
.source-view .line::before {
|
|
3093
|
+
counter-increment: line;
|
|
3094
|
+
content: counter(line);
|
|
3095
|
+
display: inline-block;
|
|
3096
|
+
width: 3.5em;
|
|
3097
|
+
margin-right: 1em;
|
|
3098
|
+
color: var(--fg-muted);
|
|
3099
|
+
text-align: right;
|
|
3100
|
+
user-select: none;
|
|
3101
|
+
}
|
|
3102
|
+
|
|
3103
|
+
.source-view .line.is-selected,
|
|
3104
|
+
.source-view .line:target {
|
|
3105
|
+
background: var(--accent-bg);
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
/* ---------------------------------------------------------------------------------------------
|
|
3109
|
+
Narrow screens
|
|
3110
|
+
--------------------------------------------------------------------------------------------- */
|
|
3111
|
+
|
|
3112
|
+
/* The outline goes first. */
|
|
3113
|
+
/* ---------------------------------------------------------------------------------------------
|
|
3114
|
+
Changes: the branch's changes to the documents. A letter marks each changed file — Added,
|
|
3115
|
+
Modified, Deleted, Renamed — in the tree, on the document's page and on the Changes page, colored
|
|
3116
|
+
like the diff lines it leads to.
|
|
3117
|
+
--------------------------------------------------------------------------------------------- */
|
|
3118
|
+
:root {
|
|
3119
|
+
--diff-added: light-dark(#1a7f37, #3fb950);
|
|
3120
|
+
--diff-removed: light-dark(#cf222e, #f85149);
|
|
3121
|
+
}
|
|
3122
|
+
|
|
3123
|
+
.tree-change,
|
|
3124
|
+
.change-status {
|
|
3125
|
+
--change-color: var(--warning);
|
|
3126
|
+
display: inline-flex;
|
|
3127
|
+
flex: none;
|
|
3128
|
+
align-items: center;
|
|
3129
|
+
justify-content: center;
|
|
3130
|
+
width: 18px;
|
|
3131
|
+
height: 18px;
|
|
3132
|
+
border-radius: 5px;
|
|
3133
|
+
background: color-mix(in srgb, var(--change-color) 16%, transparent);
|
|
3134
|
+
color: var(--change-color);
|
|
3135
|
+
font-family: var(--font-mono);
|
|
3136
|
+
font-size: 11px;
|
|
3137
|
+
font-weight: 700;
|
|
3138
|
+
line-height: 1;
|
|
3139
|
+
}
|
|
3140
|
+
|
|
3141
|
+
.tree-change-A,
|
|
3142
|
+
.change-status-A {
|
|
3143
|
+
--change-color: var(--diff-added);
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3146
|
+
.tree-change-D,
|
|
3147
|
+
.change-status-D {
|
|
3148
|
+
--change-color: var(--diff-removed);
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3151
|
+
.tree-change-R,
|
|
3152
|
+
.change-status-R {
|
|
3153
|
+
--change-color: var(--accent);
|
|
3154
|
+
}
|
|
3155
|
+
|
|
3156
|
+
.sidebar.only-changed .tree li:not([data-changed]) {
|
|
3157
|
+
display: none;
|
|
3158
|
+
}
|
|
3159
|
+
|
|
3160
|
+
/* The number of changed documents, on the header's Changes segment. */
|
|
3161
|
+
.segment-count {
|
|
3162
|
+
min-width: 18px;
|
|
3163
|
+
height: 18px;
|
|
3164
|
+
padding: 0 5px;
|
|
3165
|
+
border-radius: 9px;
|
|
3166
|
+
background: var(--fill-strong);
|
|
3167
|
+
color: var(--fg-muted);
|
|
3168
|
+
font-size: 11px;
|
|
3169
|
+
font-weight: 600;
|
|
3170
|
+
font-variant-numeric: tabular-nums;
|
|
3171
|
+
line-height: 18px;
|
|
3172
|
+
text-align: center;
|
|
3173
|
+
}
|
|
3174
|
+
|
|
3175
|
+
/* Above a changed document's text: what the branch did to it, how the page shows that, and the way
|
|
3176
|
+
to its card on the Changes page. */
|
|
3177
|
+
.markdown-body .changes-banner {
|
|
3178
|
+
display: flex;
|
|
3179
|
+
flex-wrap: wrap;
|
|
3180
|
+
align-items: center;
|
|
3181
|
+
gap: var(--space-2);
|
|
3182
|
+
margin: 0 0 var(--space-4);
|
|
3183
|
+
padding: var(--space-2) var(--space-3);
|
|
3184
|
+
border: 1px solid var(--border-subtle);
|
|
3185
|
+
border-radius: 12px;
|
|
3186
|
+
background: var(--bg-subtle);
|
|
3187
|
+
font-family: var(--font-sans);
|
|
3188
|
+
font-size: 14px;
|
|
3189
|
+
letter-spacing: normal;
|
|
3190
|
+
text-align: start;
|
|
3191
|
+
}
|
|
3192
|
+
|
|
3193
|
+
/* Pinned under the header while the text scrolls, so the views and the "Viewed" mark stay in reach
|
|
3194
|
+
on a long document rather than a scroll back to the top away. Material, as the header is, so the
|
|
3195
|
+
text passing under it stays faintly visible. Above the article's own positioned pieces — the
|
|
3196
|
+
source line numbers, a changed block's bar — which would otherwise paint over it. Nearly opaque,
|
|
3197
|
+
since the text under it is the same size as its own and would otherwise read through it. A jump
|
|
3198
|
+
to a heading keeps clear of it as it keeps clear of the header: the room is the banner's height on
|
|
3199
|
+
one row, which the page script replaces with its real height once the controls wrap.
|
|
3200
|
+
|
|
3201
|
+
Not on a phone, where the header itself scrolls away rather than take a good part of the screen,
|
|
3202
|
+
and the banner wraps onto two or three rows of its own. */
|
|
3203
|
+
@media (min-width: 801px) {
|
|
3204
|
+
:root {
|
|
3205
|
+
--banner-height: calc(var(--control-sm) + 2 * var(--space-2) + 2px);
|
|
3206
|
+
}
|
|
3207
|
+
|
|
3208
|
+
html:has(.markdown-body > .changes-banner) {
|
|
3209
|
+
scroll-padding-top: calc(
|
|
3210
|
+
var(--topbar-height) + var(--space-2) + var(--banner-height) +
|
|
3211
|
+
var(--space-4)
|
|
3212
|
+
);
|
|
3213
|
+
}
|
|
3214
|
+
|
|
3215
|
+
.markdown-body .changes-banner {
|
|
3216
|
+
position: sticky;
|
|
3217
|
+
top: calc(var(--topbar-height) + var(--space-2));
|
|
3218
|
+
z-index: 3;
|
|
3219
|
+
background: color-mix(in srgb, var(--bg-subtle) 94%, transparent);
|
|
3220
|
+
backdrop-filter: var(--material-filter);
|
|
3221
|
+
box-shadow: var(--shadow-sm);
|
|
3222
|
+
}
|
|
3223
|
+
}
|
|
3224
|
+
|
|
3225
|
+
.changes-view {
|
|
3226
|
+
margin-left: auto;
|
|
3227
|
+
}
|
|
3228
|
+
|
|
3229
|
+
/* The way to the document's card on the Changes page, drawn as a control beside the switch rather
|
|
3230
|
+
than as a bare link: in the accent color it would be the one colored word on a line of gray
|
|
3231
|
+
controls, and its text would sit lower than theirs. The chevron says it leads to another page. */
|
|
3232
|
+
.changes-banner-link {
|
|
3233
|
+
display: inline-flex;
|
|
3234
|
+
flex: none;
|
|
3235
|
+
align-items: center;
|
|
3236
|
+
gap: var(--space-1);
|
|
3237
|
+
height: var(--control-sm);
|
|
3238
|
+
padding: 0 var(--space-2) 0 var(--space-3);
|
|
3239
|
+
border-radius: 9px;
|
|
3240
|
+
background: var(--fill);
|
|
3241
|
+
color: var(--fg);
|
|
3242
|
+
font-size: 12px;
|
|
3243
|
+
font-weight: 500;
|
|
3244
|
+
line-height: 1;
|
|
3245
|
+
white-space: nowrap;
|
|
3246
|
+
transition: background-color 150ms var(--ease);
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3249
|
+
.changes-banner-link::after {
|
|
3250
|
+
content: "";
|
|
3251
|
+
width: 12px;
|
|
3252
|
+
height: 12px;
|
|
3253
|
+
background: currentColor;
|
|
3254
|
+
mask: var(--icon-chevron) center / contain no-repeat;
|
|
3255
|
+
opacity: 0.6;
|
|
3256
|
+
}
|
|
3257
|
+
|
|
3258
|
+
.changes-banner-link:hover {
|
|
3259
|
+
background: var(--fill-strong);
|
|
3260
|
+
text-decoration: none;
|
|
3261
|
+
}
|
|
3262
|
+
|
|
3263
|
+
/* The commits that last touched the document, right under the banner rather than a full gap below. */
|
|
3264
|
+
.markdown-body .changes-banner + .document-history {
|
|
3265
|
+
margin-top: calc(-1 * var(--space-2));
|
|
3266
|
+
}
|
|
3267
|
+
|
|
3268
|
+
/* A changed block on a document's page: a bar along its left edge, in the color of the tree's
|
|
3269
|
+
letter for the same change — amber for changed, green for added. It sits in the left margin, clear
|
|
3270
|
+
of the source line numbers in the right one, and is drawn by the stylesheet, so it is there
|
|
3271
|
+
without script; the page script lays a button over it that shows the block's hunks. */
|
|
3272
|
+
.markdown-body [data-change] {
|
|
3273
|
+
--change-color: var(--warning);
|
|
3274
|
+
position: relative;
|
|
3275
|
+
}
|
|
3276
|
+
|
|
3277
|
+
.markdown-body [data-change="added"] {
|
|
3278
|
+
--change-color: var(--diff-added);
|
|
3279
|
+
}
|
|
3280
|
+
|
|
3281
|
+
.markdown-body [data-change]::before,
|
|
3282
|
+
.markdown-body .change-removed::before {
|
|
3283
|
+
content: "";
|
|
3284
|
+
position: absolute;
|
|
3285
|
+
top: 0;
|
|
3286
|
+
bottom: 0;
|
|
3287
|
+
left: -14px;
|
|
3288
|
+
width: 3px;
|
|
3289
|
+
border-radius: 2px;
|
|
3290
|
+
background: var(--change-color);
|
|
3291
|
+
}
|
|
3292
|
+
|
|
3293
|
+
/* An item's own box starts after its bullet, so its bar steps out to the edge of its list. */
|
|
3294
|
+
.markdown-body li[data-change]::before,
|
|
3295
|
+
.markdown-body .change-removed-item > .change-removed::before {
|
|
3296
|
+
left: calc(-1 * var(--list-indent) - 14px);
|
|
3297
|
+
}
|
|
3298
|
+
|
|
3299
|
+
.change-bar {
|
|
3300
|
+
position: absolute;
|
|
3301
|
+
top: 0;
|
|
3302
|
+
bottom: 0;
|
|
3303
|
+
left: -19px;
|
|
3304
|
+
width: 13px;
|
|
3305
|
+
padding: 0;
|
|
3306
|
+
border: 0;
|
|
3307
|
+
border-radius: 4px;
|
|
3308
|
+
background: none;
|
|
3309
|
+
cursor: pointer;
|
|
3310
|
+
}
|
|
3311
|
+
|
|
3312
|
+
.markdown-body li > .change-bar {
|
|
3313
|
+
left: calc(-1 * var(--list-indent) - 19px);
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
.change-bar:hover,
|
|
3317
|
+
.change-bar[aria-expanded="true"] {
|
|
3318
|
+
background: color-mix(in srgb, var(--change-color) 22%, transparent);
|
|
3319
|
+
}
|
|
3320
|
+
|
|
3321
|
+
.change-bar:focus-visible {
|
|
3322
|
+
outline: 2px solid var(--accent);
|
|
3323
|
+
outline-offset: 1px;
|
|
3324
|
+
}
|
|
3325
|
+
|
|
3326
|
+
/* A block's hunks, shown below it on a click on its bar. */
|
|
3327
|
+
.markdown-body .change-hunk-view {
|
|
3328
|
+
margin: var(--space-2) 0 var(--reader-block-gap, 1em);
|
|
3329
|
+
overflow: hidden;
|
|
3330
|
+
border: 1px solid var(--border-subtle);
|
|
3331
|
+
border-radius: 8px;
|
|
3332
|
+
font-family: var(--font-sans);
|
|
3333
|
+
letter-spacing: normal;
|
|
3334
|
+
text-align: start;
|
|
3335
|
+
}
|
|
3336
|
+
|
|
3337
|
+
.change-hunk + .change-hunk {
|
|
3338
|
+
border-top: 1px solid var(--border-subtle);
|
|
3339
|
+
}
|
|
3340
|
+
|
|
3341
|
+
/* Blocks the branch removed, folded where they stood, under a red bar. */
|
|
3342
|
+
.markdown-body .change-removed {
|
|
3343
|
+
--change-color: var(--diff-removed);
|
|
3344
|
+
position: relative;
|
|
3345
|
+
padding: 0;
|
|
3346
|
+
border: 0;
|
|
3347
|
+
}
|
|
3348
|
+
|
|
3349
|
+
.markdown-body .change-removed > summary {
|
|
3350
|
+
color: var(--fg-muted);
|
|
3351
|
+
font-family: var(--font-sans);
|
|
3352
|
+
font-size: 13px;
|
|
3353
|
+
font-weight: 500;
|
|
3354
|
+
letter-spacing: normal;
|
|
3355
|
+
}
|
|
3356
|
+
|
|
3357
|
+
.markdown-body .change-removed-body {
|
|
3358
|
+
padding: var(--space-2) var(--space-3) 1px;
|
|
3359
|
+
border-radius: 8px;
|
|
3360
|
+
background: color-mix(in srgb, var(--diff-removed) 6%, transparent);
|
|
3361
|
+
}
|
|
3362
|
+
|
|
3363
|
+
/* In a list the fold is an item, which an ordered list must not count. */
|
|
3364
|
+
.markdown-body .change-removed-item {
|
|
3365
|
+
display: block;
|
|
3366
|
+
}
|
|
3367
|
+
|
|
3368
|
+
/* A section of the outline the branch changed. */
|
|
3369
|
+
.outline-change {
|
|
3370
|
+
display: inline-block;
|
|
3371
|
+
width: 6px;
|
|
3372
|
+
height: 6px;
|
|
3373
|
+
margin-left: 6px;
|
|
3374
|
+
border-radius: 50%;
|
|
3375
|
+
background: var(--warning);
|
|
3376
|
+
vertical-align: middle;
|
|
3377
|
+
}
|
|
3378
|
+
|
|
3379
|
+
/* The Source view: the document's diff in place of its text. */
|
|
3380
|
+
.markdown-body .change-source {
|
|
3381
|
+
overflow: hidden;
|
|
3382
|
+
border: 1px solid var(--border-subtle);
|
|
3383
|
+
border-radius: 12px;
|
|
3384
|
+
}
|
|
3385
|
+
|
|
3386
|
+
.markdown-body .changes-mode {
|
|
3387
|
+
margin: 0 0 var(--space-4);
|
|
3388
|
+
}
|
|
3389
|
+
|
|
3390
|
+
.markdown-body .changes-summary {
|
|
3391
|
+
margin: 0 0 var(--space-1);
|
|
3392
|
+
font-size: 15px;
|
|
3393
|
+
font-weight: 600;
|
|
3394
|
+
}
|
|
3395
|
+
|
|
3396
|
+
.markdown-body .changes-base,
|
|
3397
|
+
.markdown-body .changes-hint {
|
|
3398
|
+
color: var(--fg-muted);
|
|
3399
|
+
font-size: 14px;
|
|
3400
|
+
}
|
|
3401
|
+
|
|
3402
|
+
.markdown-body .changes-unavailable {
|
|
3403
|
+
margin-bottom: var(--space-1);
|
|
3404
|
+
color: var(--warning);
|
|
3405
|
+
}
|
|
3406
|
+
|
|
3407
|
+
.changes-outside ul,
|
|
3408
|
+
.changes-files ol {
|
|
3409
|
+
font-size: 14px;
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3412
|
+
.change-stats {
|
|
3413
|
+
color: var(--fg-muted);
|
|
3414
|
+
font-family: var(--font-mono);
|
|
3415
|
+
font-size: 12px;
|
|
3416
|
+
font-variant-numeric: tabular-nums;
|
|
3417
|
+
white-space: nowrap;
|
|
3418
|
+
}
|
|
3419
|
+
|
|
3420
|
+
.change-eager {
|
|
3421
|
+
margin-left: var(--space-1);
|
|
3422
|
+
padding: 1px 6px;
|
|
3423
|
+
border-radius: 6px;
|
|
3424
|
+
background: var(--accent-bg);
|
|
3425
|
+
color: var(--accent);
|
|
3426
|
+
font-size: 11px;
|
|
3427
|
+
font-weight: 600;
|
|
3428
|
+
white-space: nowrap;
|
|
3429
|
+
}
|
|
3430
|
+
|
|
3431
|
+
/* What the change does to the context: findings added and removed, every session's budget, and the
|
|
3432
|
+
approximations behind them, under the summary; findings beside each row of the list. */
|
|
3433
|
+
.markdown-body .changes-findings,
|
|
3434
|
+
.markdown-body .changes-eager {
|
|
3435
|
+
margin: 0 0 var(--space-1);
|
|
3436
|
+
font-size: 14px;
|
|
3437
|
+
}
|
|
3438
|
+
|
|
3439
|
+
.markdown-body .changes-eager-over {
|
|
3440
|
+
color: var(--warning);
|
|
3441
|
+
font-weight: 600;
|
|
3442
|
+
}
|
|
3443
|
+
|
|
3444
|
+
.markdown-body .changes-note {
|
|
3445
|
+
margin: 0 0 var(--space-1);
|
|
3446
|
+
color: var(--fg-muted);
|
|
3447
|
+
font-size: 13px;
|
|
3448
|
+
}
|
|
3449
|
+
|
|
3450
|
+
.change-findings {
|
|
3451
|
+
margin-left: var(--space-1);
|
|
3452
|
+
color: var(--warning);
|
|
3453
|
+
font-family: var(--font-mono);
|
|
3454
|
+
font-size: 12px;
|
|
3455
|
+
white-space: nowrap;
|
|
3456
|
+
}
|
|
3457
|
+
|
|
3458
|
+
/* A card's context, between its header and its diff: size, findings and links, each when moved. */
|
|
3459
|
+
.markdown-body .change-context {
|
|
3460
|
+
padding: var(--space-2) var(--space-3);
|
|
3461
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
3462
|
+
font-family: var(--font-sans);
|
|
3463
|
+
font-size: 13px;
|
|
3464
|
+
letter-spacing: normal;
|
|
3465
|
+
text-align: start;
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3468
|
+
.markdown-body .change-context p,
|
|
3469
|
+
.markdown-body .change-context ul {
|
|
3470
|
+
margin: 0 0 var(--space-1);
|
|
3471
|
+
}
|
|
3472
|
+
|
|
3473
|
+
.markdown-body .change-context ul {
|
|
3474
|
+
padding-left: 0;
|
|
3475
|
+
list-style: none;
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3478
|
+
.markdown-body .change-size {
|
|
3479
|
+
color: var(--fg-muted);
|
|
3480
|
+
font-variant-numeric: tabular-nums;
|
|
3481
|
+
}
|
|
3482
|
+
|
|
3483
|
+
.markdown-body .change-context-title {
|
|
3484
|
+
font-weight: 600;
|
|
3485
|
+
}
|
|
3486
|
+
|
|
3487
|
+
.change-finding-sign {
|
|
3488
|
+
display: inline-block;
|
|
3489
|
+
width: 1em;
|
|
3490
|
+
font-family: var(--font-mono);
|
|
3491
|
+
font-weight: 700;
|
|
3492
|
+
}
|
|
3493
|
+
|
|
3494
|
+
.change-finding-added .change-finding-sign,
|
|
3495
|
+
.change-link-added .change-finding-sign {
|
|
3496
|
+
color: var(--diff-added);
|
|
3497
|
+
}
|
|
3498
|
+
|
|
3499
|
+
.change-finding-removed .change-finding-sign,
|
|
3500
|
+
.change-link-removed .change-finding-sign {
|
|
3501
|
+
color: var(--diff-removed);
|
|
3502
|
+
}
|
|
3503
|
+
|
|
3504
|
+
.severity-error {
|
|
3505
|
+
color: var(--danger);
|
|
3506
|
+
font-weight: 600;
|
|
3507
|
+
}
|
|
3508
|
+
|
|
3509
|
+
.severity-warning {
|
|
3510
|
+
color: var(--warning);
|
|
3511
|
+
font-weight: 600;
|
|
3512
|
+
}
|
|
3513
|
+
|
|
3514
|
+
/* Unchanged documents the change reaches, after the list of changed ones. */
|
|
3515
|
+
.markdown-body .changes-affected {
|
|
3516
|
+
margin: var(--space-6) 0;
|
|
3517
|
+
font-size: 14px;
|
|
3518
|
+
}
|
|
3519
|
+
|
|
3520
|
+
.markdown-body .changes-affected h2 {
|
|
3521
|
+
font-size: 1.15em;
|
|
3522
|
+
}
|
|
3523
|
+
|
|
3524
|
+
.markdown-body .changes-affected h3 {
|
|
3525
|
+
margin: var(--space-3) 0 var(--space-1);
|
|
3526
|
+
font-size: 1em;
|
|
3527
|
+
}
|
|
3528
|
+
|
|
3529
|
+
.markdown-body .changes-affected ul ul {
|
|
3530
|
+
color: var(--fg-muted);
|
|
3531
|
+
font-size: 13px;
|
|
3532
|
+
}
|
|
3533
|
+
|
|
3534
|
+
/* The dashboard's Branch column and the graph's switch for the branch's changes. */
|
|
3535
|
+
.dashboard-change {
|
|
3536
|
+
white-space: nowrap;
|
|
3537
|
+
}
|
|
3538
|
+
|
|
3539
|
+
.dashboard-change .change-findings {
|
|
3540
|
+
margin-left: var(--space-1);
|
|
3541
|
+
}
|
|
3542
|
+
|
|
3543
|
+
.graph-changes {
|
|
3544
|
+
display: inline-flex;
|
|
3545
|
+
align-items: center;
|
|
3546
|
+
gap: var(--space-1);
|
|
3547
|
+
font-size: 13px;
|
|
3548
|
+
}
|
|
3549
|
+
|
|
3550
|
+
/* One changed file: a header with its letter, path and line counts, and its diff below. The header
|
|
3551
|
+
leaves room under the sticky top bar when a link from the list jumps to the card. */
|
|
3552
|
+
.markdown-body .change-card {
|
|
3553
|
+
margin: var(--space-6) 0;
|
|
3554
|
+
overflow: hidden;
|
|
3555
|
+
border: 1px solid var(--border-subtle);
|
|
3556
|
+
border-radius: 12px;
|
|
3557
|
+
scroll-margin-top: calc(var(--topbar-height) + var(--space-4));
|
|
3558
|
+
}
|
|
3559
|
+
|
|
3560
|
+
.change-card-header {
|
|
3561
|
+
display: flex;
|
|
3562
|
+
flex-wrap: wrap;
|
|
3563
|
+
align-items: center;
|
|
3564
|
+
gap: var(--space-2);
|
|
3565
|
+
padding: var(--space-2) var(--space-3);
|
|
3566
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
3567
|
+
background: var(--bg-subtle);
|
|
3568
|
+
font-size: 14px;
|
|
3569
|
+
}
|
|
3570
|
+
|
|
3571
|
+
.change-path {
|
|
3572
|
+
font-family: var(--font-mono);
|
|
3573
|
+
font-size: 13px;
|
|
3574
|
+
font-weight: 600;
|
|
3575
|
+
overflow-wrap: anywhere;
|
|
3576
|
+
}
|
|
3577
|
+
|
|
3578
|
+
.change-from {
|
|
3579
|
+
color: var(--fg-muted);
|
|
3580
|
+
font-size: 12px;
|
|
3581
|
+
}
|
|
3582
|
+
|
|
3583
|
+
.change-card-header .change-stats {
|
|
3584
|
+
margin-left: auto;
|
|
3585
|
+
}
|
|
3586
|
+
|
|
3587
|
+
.markdown-body .change-note {
|
|
3588
|
+
margin: var(--space-2) var(--space-3) 0;
|
|
3589
|
+
color: var(--fg-muted);
|
|
3590
|
+
font-size: 13px;
|
|
3591
|
+
}
|
|
3592
|
+
|
|
3593
|
+
.markdown-body .change-diff {
|
|
3594
|
+
margin: 0;
|
|
3595
|
+
}
|
|
3596
|
+
|
|
3597
|
+
.markdown-body .change-diff > summary {
|
|
3598
|
+
padding: var(--space-2) var(--space-3);
|
|
3599
|
+
color: var(--fg-muted);
|
|
3600
|
+
font-size: 13px;
|
|
3601
|
+
}
|
|
3602
|
+
|
|
3603
|
+
/* The diff itself: two columns of line numbers, a marker and the line, prose wrapped rather than
|
|
3604
|
+
scrolled so a one-line paragraph stays readable. A changed word or table cell inside a paired line
|
|
3605
|
+
is tinted more strongly than the line around it. */
|
|
3606
|
+
.diff-wrap {
|
|
3607
|
+
overflow-x: auto;
|
|
3608
|
+
}
|
|
3609
|
+
|
|
3610
|
+
.markdown-body table.diff {
|
|
3611
|
+
display: table;
|
|
3612
|
+
width: 100%;
|
|
3613
|
+
max-width: none;
|
|
3614
|
+
margin: 0;
|
|
3615
|
+
border: 0;
|
|
3616
|
+
border-radius: 0;
|
|
3617
|
+
font-family: var(--reader-code-font, var(--font-mono));
|
|
3618
|
+
font-size: calc(0.8125em * var(--reader-code-scale, 1));
|
|
3619
|
+
line-height: 1.5;
|
|
3620
|
+
}
|
|
3621
|
+
|
|
3622
|
+
.markdown-body .diff td {
|
|
3623
|
+
padding: 0 var(--space-2);
|
|
3624
|
+
border: 0;
|
|
3625
|
+
vertical-align: top;
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3628
|
+
.diff-number {
|
|
3629
|
+
width: 1%;
|
|
3630
|
+
color: var(--fg-muted);
|
|
3631
|
+
text-align: right;
|
|
3632
|
+
white-space: nowrap;
|
|
3633
|
+
user-select: none;
|
|
3634
|
+
}
|
|
3635
|
+
|
|
3636
|
+
.diff-marker {
|
|
3637
|
+
width: 1%;
|
|
3638
|
+
color: var(--fg-muted);
|
|
3639
|
+
user-select: none;
|
|
3640
|
+
}
|
|
3641
|
+
|
|
3642
|
+
.diff-code {
|
|
3643
|
+
letter-spacing: normal;
|
|
3644
|
+
white-space: pre-wrap;
|
|
3645
|
+
overflow-wrap: anywhere;
|
|
3646
|
+
}
|
|
3647
|
+
|
|
3648
|
+
.diff-added {
|
|
3649
|
+
background: color-mix(in srgb, var(--diff-added) 10%, transparent);
|
|
3650
|
+
}
|
|
3651
|
+
|
|
3652
|
+
.diff-removed {
|
|
3653
|
+
background: color-mix(in srgb, var(--diff-removed) 10%, transparent);
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3656
|
+
.diff ins,
|
|
3657
|
+
.diff del {
|
|
3658
|
+
border-radius: 3px;
|
|
3659
|
+
text-decoration: none;
|
|
3660
|
+
}
|
|
3661
|
+
|
|
3662
|
+
.diff ins {
|
|
3663
|
+
background: color-mix(in srgb, var(--diff-added) 30%, transparent);
|
|
3664
|
+
}
|
|
3665
|
+
|
|
3666
|
+
.diff del {
|
|
3667
|
+
background: color-mix(in srgb, var(--diff-removed) 30%, transparent);
|
|
3668
|
+
}
|
|
3669
|
+
|
|
3670
|
+
.markdown-body .diff-hunk td {
|
|
3671
|
+
padding: var(--space-1) var(--space-2);
|
|
3672
|
+
background: var(--bg-subtle);
|
|
3673
|
+
color: var(--fg-muted);
|
|
3674
|
+
font-size: 12px;
|
|
3675
|
+
}
|
|
3676
|
+
|
|
3677
|
+
.diff-note td {
|
|
3678
|
+
color: var(--fg-muted);
|
|
3679
|
+
font-style: italic;
|
|
3680
|
+
}
|
|
3681
|
+
|
|
3682
|
+
.markdown-body .diff-empty {
|
|
3683
|
+
margin: var(--space-2) var(--space-3);
|
|
3684
|
+
color: var(--fg-muted);
|
|
3685
|
+
font-size: 13px;
|
|
3686
|
+
}
|
|
3687
|
+
|
|
3688
|
+
/* A line moved rather than removed and added: tinted in the accent rather than red or green, with
|
|
3689
|
+
where it went or came from at its end, so a paragraph cut and pasted reads as one change. */
|
|
3690
|
+
.diff-moved {
|
|
3691
|
+
background: color-mix(in srgb, var(--accent) 9%, transparent);
|
|
3692
|
+
}
|
|
3693
|
+
|
|
3694
|
+
.diff-move {
|
|
3695
|
+
margin-left: var(--space-2);
|
|
3696
|
+
padding: 0 5px;
|
|
3697
|
+
border-radius: 5px;
|
|
3698
|
+
background: var(--accent-bg);
|
|
3699
|
+
color: var(--accent);
|
|
3700
|
+
font-family: var(--font-sans);
|
|
3701
|
+
font-size: 11px;
|
|
3702
|
+
white-space: nowrap;
|
|
3703
|
+
user-select: none;
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3706
|
+
/* The button that opens unchanged lines between hunks, drawn like the hunk header it sits beside. */
|
|
3707
|
+
.markdown-body .diff-expand td {
|
|
3708
|
+
padding: 2px var(--space-2);
|
|
3709
|
+
background: var(--bg-subtle);
|
|
3710
|
+
}
|
|
3711
|
+
|
|
3712
|
+
.diff-expand-button {
|
|
3713
|
+
padding: 1px 8px;
|
|
3714
|
+
border: 0;
|
|
3715
|
+
border-radius: var(--radius-sm);
|
|
3716
|
+
background: transparent;
|
|
3717
|
+
color: var(--accent);
|
|
3718
|
+
font: inherit;
|
|
3719
|
+
font-family: var(--font-sans);
|
|
3720
|
+
font-size: 12px;
|
|
3721
|
+
cursor: pointer;
|
|
3722
|
+
}
|
|
3723
|
+
|
|
3724
|
+
.diff-expand-button:hover {
|
|
3725
|
+
background: var(--fill);
|
|
3726
|
+
}
|
|
3727
|
+
|
|
3728
|
+
/* ---------------------------------------------------------------------------------------------
|
|
3729
|
+
Review marks: what the reader has reviewed. A reviewed card folds to its header, as a viewed file
|
|
3730
|
+
does in a pull request, so what is left stands out; a document changed after its review is marked
|
|
3731
|
+
in the amber of an edit, since that is what it is to the reader.
|
|
3732
|
+
--------------------------------------------------------------------------------------------- */
|
|
3733
|
+
.markdown-body .changes-controls {
|
|
3734
|
+
display: flex;
|
|
3735
|
+
flex-wrap: wrap;
|
|
3736
|
+
gap: var(--space-2) var(--space-3);
|
|
3737
|
+
margin: 0 0 var(--space-4);
|
|
3738
|
+
}
|
|
3739
|
+
|
|
3740
|
+
.markdown-body .changes-controls .changes-mode {
|
|
3741
|
+
margin: 0;
|
|
3742
|
+
}
|
|
3743
|
+
|
|
3744
|
+
.markdown-body .changes-review {
|
|
3745
|
+
display: flex;
|
|
3746
|
+
flex-wrap: wrap;
|
|
3747
|
+
align-items: center;
|
|
3748
|
+
gap: var(--space-2) var(--space-3);
|
|
3749
|
+
font-size: 14px;
|
|
3750
|
+
}
|
|
3751
|
+
|
|
3752
|
+
.changes-review-count {
|
|
3753
|
+
font-weight: 600;
|
|
3754
|
+
}
|
|
3755
|
+
|
|
3756
|
+
.markdown-body .review-problem,
|
|
3757
|
+
.markdown-body .review-message {
|
|
3758
|
+
color: var(--warning);
|
|
3759
|
+
font-size: 13px;
|
|
3760
|
+
}
|
|
3761
|
+
|
|
3762
|
+
.markdown-body .review-message {
|
|
3763
|
+
flex-basis: 100%;
|
|
3764
|
+
margin: var(--space-1) 0 0;
|
|
3765
|
+
}
|
|
3766
|
+
|
|
3767
|
+
.change-card > .review-message {
|
|
3768
|
+
margin: var(--space-2) var(--space-3);
|
|
3769
|
+
}
|
|
3770
|
+
|
|
3771
|
+
.review-chip {
|
|
3772
|
+
padding: 1px 6px;
|
|
3773
|
+
border-radius: 6px;
|
|
3774
|
+
font-size: 11px;
|
|
3775
|
+
font-weight: 600;
|
|
3776
|
+
white-space: nowrap;
|
|
3777
|
+
}
|
|
3778
|
+
|
|
3779
|
+
.review-chip-reviewed {
|
|
3780
|
+
background: color-mix(in srgb, var(--diff-added) 14%, transparent);
|
|
3781
|
+
color: var(--diff-added);
|
|
3782
|
+
}
|
|
3783
|
+
|
|
3784
|
+
.review-chip-changed {
|
|
3785
|
+
background: color-mix(in srgb, var(--warning) 16%, transparent);
|
|
3786
|
+
color: var(--warning);
|
|
3787
|
+
}
|
|
3788
|
+
|
|
3789
|
+
.review-sections {
|
|
3790
|
+
color: var(--fg-muted);
|
|
3791
|
+
font-size: 11px;
|
|
3792
|
+
white-space: nowrap;
|
|
3793
|
+
}
|
|
3794
|
+
|
|
3795
|
+
.changes-files li .review-chip {
|
|
3796
|
+
margin-left: var(--space-1);
|
|
3797
|
+
}
|
|
3798
|
+
|
|
3799
|
+
.changes-files li[data-review="reviewed"] > a {
|
|
3800
|
+
color: var(--fg-muted);
|
|
3801
|
+
}
|
|
3802
|
+
|
|
3803
|
+
.review-toggle {
|
|
3804
|
+
display: inline-flex;
|
|
3805
|
+
align-items: center;
|
|
3806
|
+
gap: var(--space-1);
|
|
3807
|
+
font-size: 13px;
|
|
3808
|
+
white-space: nowrap;
|
|
3809
|
+
cursor: pointer;
|
|
3810
|
+
user-select: none;
|
|
3811
|
+
}
|
|
3812
|
+
|
|
3813
|
+
/* Both are laid out as flex boxes, which would otherwise show them before the script that makes them
|
|
3814
|
+
work has run. */
|
|
3815
|
+
.review-toggle[hidden],
|
|
3816
|
+
.review-reset[hidden] {
|
|
3817
|
+
display: none;
|
|
3818
|
+
}
|
|
3819
|
+
|
|
3820
|
+
.review-toggle input {
|
|
3821
|
+
margin: 0;
|
|
3822
|
+
accent-color: var(--accent);
|
|
3823
|
+
}
|
|
3824
|
+
|
|
3825
|
+
.change-card[data-review="reviewed"] > .change-note,
|
|
3826
|
+
.change-card[data-review="reviewed"] > .change-context {
|
|
3827
|
+
display: none;
|
|
3828
|
+
}
|
|
3829
|
+
|
|
3830
|
+
.change-card[data-review="reviewed"] .change-path {
|
|
3831
|
+
color: var(--fg-muted);
|
|
3832
|
+
}
|
|
3833
|
+
|
|
3834
|
+
.segment-count.is-done {
|
|
3835
|
+
background: color-mix(in srgb, var(--diff-added) 16%, transparent);
|
|
3836
|
+
color: var(--diff-added);
|
|
3837
|
+
}
|
|
3838
|
+
|
|
3839
|
+
/* A changed file not yet reviewed, beside its letter in the tree. */
|
|
3840
|
+
.tree-review-dot {
|
|
3841
|
+
flex: none;
|
|
3842
|
+
width: 6px;
|
|
3843
|
+
height: 6px;
|
|
3844
|
+
margin-left: 4px;
|
|
3845
|
+
border-radius: 50%;
|
|
3846
|
+
background: var(--accent);
|
|
3847
|
+
}
|
|
3848
|
+
|
|
3849
|
+
.tree-review-changed {
|
|
3850
|
+
background: var(--warning);
|
|
3851
|
+
}
|
|
3852
|
+
|
|
3853
|
+
.sidebar.only-unreviewed .tree li:not([data-unreviewed]) {
|
|
3854
|
+
display: none;
|
|
3855
|
+
}
|
|
3856
|
+
|
|
3857
|
+
@media print {
|
|
3858
|
+
.review-toggle,
|
|
3859
|
+
.review-reset,
|
|
3860
|
+
.changes-since,
|
|
3861
|
+
.changes-history,
|
|
3862
|
+
.blame-toggle {
|
|
3863
|
+
display: none;
|
|
3864
|
+
}
|
|
3865
|
+
}
|
|
3866
|
+
|
|
3867
|
+
/* A section's own review mark, at the end of its outline entry: an empty box until the section is
|
|
3868
|
+
viewed, a green tick once it is, an amber edge when it changed after it was viewed. */
|
|
3869
|
+
.outline li[data-review] {
|
|
3870
|
+
display: flex;
|
|
3871
|
+
align-items: center;
|
|
3872
|
+
gap: var(--space-1);
|
|
3873
|
+
}
|
|
3874
|
+
|
|
3875
|
+
.outline li[data-review] > a {
|
|
3876
|
+
flex: 1;
|
|
3877
|
+
min-width: 0;
|
|
3878
|
+
}
|
|
3879
|
+
|
|
3880
|
+
.outline li[data-review="reviewed"] > a {
|
|
3881
|
+
color: var(--fg-muted);
|
|
3882
|
+
}
|
|
3883
|
+
|
|
3884
|
+
.section-mark {
|
|
3885
|
+
flex: none;
|
|
3886
|
+
width: 16px;
|
|
3887
|
+
height: 16px;
|
|
3888
|
+
padding: 0;
|
|
3889
|
+
border: 1px solid var(--border);
|
|
3890
|
+
border-radius: 4px;
|
|
3891
|
+
background: transparent;
|
|
3892
|
+
color: transparent;
|
|
3893
|
+
font-size: 10px;
|
|
3894
|
+
line-height: 1;
|
|
3895
|
+
cursor: pointer;
|
|
3896
|
+
}
|
|
3897
|
+
|
|
3898
|
+
.section-mark[hidden] {
|
|
3899
|
+
display: none;
|
|
3900
|
+
}
|
|
3901
|
+
|
|
3902
|
+
.section-mark:hover {
|
|
3903
|
+
color: var(--fg-muted);
|
|
3904
|
+
}
|
|
3905
|
+
|
|
3906
|
+
.section-mark[aria-pressed="true"] {
|
|
3907
|
+
border-color: transparent;
|
|
3908
|
+
background: color-mix(in srgb, var(--diff-added) 16%, transparent);
|
|
3909
|
+
color: var(--diff-added);
|
|
3910
|
+
}
|
|
3911
|
+
|
|
3912
|
+
.outline li[data-review="changed"] .section-mark {
|
|
3913
|
+
border-color: var(--warning);
|
|
3914
|
+
}
|
|
3915
|
+
|
|
3916
|
+
/* The commits that last touched a document: under the line above a changed document's text, and on
|
|
3917
|
+
its own above an unchanged one's. */
|
|
3918
|
+
.markdown-body .document-history {
|
|
3919
|
+
margin: 0 0 var(--space-3);
|
|
3920
|
+
font-family: var(--font-sans);
|
|
3921
|
+
letter-spacing: normal;
|
|
3922
|
+
}
|
|
3923
|
+
|
|
3924
|
+
.changes-history {
|
|
3925
|
+
flex-basis: 100%;
|
|
3926
|
+
font-size: 13px;
|
|
3927
|
+
}
|
|
3928
|
+
|
|
3929
|
+
.changes-history[hidden] {
|
|
3930
|
+
display: none;
|
|
3931
|
+
}
|
|
3932
|
+
|
|
3933
|
+
.changes-history > summary {
|
|
3934
|
+
color: var(--fg-muted);
|
|
3935
|
+
cursor: pointer;
|
|
3936
|
+
}
|
|
3937
|
+
|
|
3938
|
+
.markdown-body .changes-history-list {
|
|
3939
|
+
margin: var(--space-1) 0 0;
|
|
3940
|
+
padding-left: var(--space-5);
|
|
3941
|
+
}
|
|
3942
|
+
|
|
3943
|
+
.changes-history-date,
|
|
3944
|
+
.changes-history-author,
|
|
3945
|
+
.changes-history-note {
|
|
3946
|
+
color: var(--fg-muted);
|
|
3947
|
+
}
|
|
3948
|
+
|
|
3949
|
+
/* Who last changed each block, beside its source line number in the right margin. The margin widens
|
|
3950
|
+
while blame is shown, so a hash and a date fit beside the number. */
|
|
3951
|
+
.blame-toggle {
|
|
3952
|
+
flex: none;
|
|
3953
|
+
padding: 2px 8px;
|
|
3954
|
+
border-radius: var(--radius-sm);
|
|
3955
|
+
color: var(--fg-muted);
|
|
3956
|
+
font-size: 12px;
|
|
3957
|
+
text-decoration: none;
|
|
3958
|
+
}
|
|
3959
|
+
|
|
3960
|
+
.blame-toggle:hover,
|
|
3961
|
+
.blame-toggle[aria-pressed="true"] {
|
|
3962
|
+
background: var(--fill);
|
|
3963
|
+
color: var(--fg);
|
|
3964
|
+
}
|
|
3965
|
+
|
|
3966
|
+
.content:has(.markdown-body.has-blame) {
|
|
3967
|
+
padding-right: max(var(--reader-pad-right, 48px), 200px);
|
|
3968
|
+
}
|
|
3969
|
+
|
|
3970
|
+
.markdown-body.has-blame [data-blame]::after {
|
|
3971
|
+
content: attr(data-line) "\00a0\00a0" attr(data-blame);
|
|
3972
|
+
}
|
|
3973
|
+
|
|
3974
|
+
.markdown-body.has-blame [data-blame] {
|
|
3975
|
+
cursor: help;
|
|
3976
|
+
}
|
|
3977
|
+
|
|
3978
|
+
@media (max-width: 1200px) {
|
|
3979
|
+
.layout {
|
|
3980
|
+
grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
|
|
3981
|
+
}
|
|
3982
|
+
|
|
3983
|
+
.rail-frame {
|
|
3984
|
+
display: none;
|
|
3985
|
+
}
|
|
3986
|
+
}
|
|
3987
|
+
|
|
3988
|
+
/* Between a phone and a laptop the header's path is the first thing to give up its room. */
|
|
3989
|
+
@media (max-width: 1000px) {
|
|
3990
|
+
.topbar .current-path,
|
|
3991
|
+
.topbar .copy-path,
|
|
3992
|
+
:root[data-script] .topbar .copy-path[hidden] {
|
|
3993
|
+
display: none;
|
|
3994
|
+
}
|
|
3995
|
+
}
|
|
3996
|
+
|
|
3997
|
+
@media (max-width: 800px) {
|
|
3998
|
+
.search-shortcut,
|
|
3999
|
+
/* The article's side padding is too narrow here to hold a number beside it. */
|
|
4000
|
+
.markdown-body [data-line]::after {
|
|
4001
|
+
display: none;
|
|
4002
|
+
}
|
|
4003
|
+
|
|
4004
|
+
/* The header wraps instead of running off the screen: the site name with the theme and settings
|
|
4005
|
+
beside it, then the sections as one full-width segmented control, then the search box. It
|
|
4006
|
+
scrolls away with the page rather than staying put, since three rows pinned to the top would take
|
|
4007
|
+
a good part of a phone screen; with nothing pinned there, a jump to a heading needs no room left
|
|
4008
|
+
for it either. */
|
|
4009
|
+
:root {
|
|
4010
|
+
--topbar-height: 0px;
|
|
4011
|
+
}
|
|
4012
|
+
|
|
4013
|
+
.topbar {
|
|
4014
|
+
position: static;
|
|
4015
|
+
flex-wrap: wrap;
|
|
4016
|
+
gap: var(--space-2);
|
|
4017
|
+
height: auto;
|
|
4018
|
+
padding: 10px var(--space-4) var(--space-3);
|
|
4019
|
+
background: var(--bg);
|
|
4020
|
+
backdrop-filter: none;
|
|
4021
|
+
}
|
|
4022
|
+
|
|
4023
|
+
.site-name {
|
|
4024
|
+
flex: 1 1 0;
|
|
4025
|
+
min-width: 0;
|
|
4026
|
+
overflow: hidden;
|
|
4027
|
+
font-size: 17px;
|
|
4028
|
+
text-overflow: ellipsis;
|
|
4029
|
+
white-space: nowrap;
|
|
4030
|
+
}
|
|
4031
|
+
|
|
4032
|
+
.section-nav {
|
|
4033
|
+
order: 1;
|
|
4034
|
+
flex: 1 0 100%;
|
|
4035
|
+
}
|
|
4036
|
+
|
|
4037
|
+
.search {
|
|
4038
|
+
order: 2;
|
|
4039
|
+
flex: 1 0 100%;
|
|
4040
|
+
margin-left: 0;
|
|
4041
|
+
}
|
|
4042
|
+
|
|
4043
|
+
.layout {
|
|
4044
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4045
|
+
}
|
|
4046
|
+
|
|
4047
|
+
/* The tree folds behind a "Documents" row above the article, so the article starts right under the
|
|
4048
|
+
header; opened, it takes at most half the screen and scrolls on its own. */
|
|
4049
|
+
.sidebar-frame {
|
|
4050
|
+
position: static;
|
|
4051
|
+
height: auto;
|
|
4052
|
+
border-right: 0;
|
|
4053
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
4054
|
+
}
|
|
4055
|
+
|
|
4056
|
+
.sidebar {
|
|
4057
|
+
height: auto;
|
|
4058
|
+
padding: 0 var(--space-2);
|
|
4059
|
+
}
|
|
4060
|
+
|
|
4061
|
+
.sidebar-summary {
|
|
4062
|
+
position: sticky;
|
|
4063
|
+
top: 0;
|
|
4064
|
+
z-index: 1;
|
|
4065
|
+
display: flex;
|
|
4066
|
+
align-items: center;
|
|
4067
|
+
justify-content: space-between;
|
|
4068
|
+
min-height: 44px;
|
|
4069
|
+
padding: 0 var(--space-2);
|
|
4070
|
+
background: var(--bg-sidebar);
|
|
4071
|
+
color: var(--fg);
|
|
4072
|
+
font-size: 15px;
|
|
4073
|
+
font-weight: 600;
|
|
4074
|
+
list-style: none;
|
|
4075
|
+
cursor: pointer;
|
|
4076
|
+
}
|
|
4077
|
+
|
|
4078
|
+
.sidebar-summary::-webkit-details-marker {
|
|
4079
|
+
display: none;
|
|
4080
|
+
}
|
|
4081
|
+
|
|
4082
|
+
.sidebar-disclosure[open] > .sidebar-summary::after {
|
|
4083
|
+
transform: rotate(90deg);
|
|
4084
|
+
}
|
|
4085
|
+
|
|
4086
|
+
.sidebar-disclosure[open] {
|
|
4087
|
+
max-height: 50vh;
|
|
4088
|
+
overflow-y: auto;
|
|
4089
|
+
padding-bottom: var(--space-3);
|
|
4090
|
+
}
|
|
4091
|
+
|
|
4092
|
+
.column-resizer {
|
|
4093
|
+
display: none;
|
|
4094
|
+
}
|
|
4095
|
+
|
|
4096
|
+
.content {
|
|
4097
|
+
padding: var(--space-6) var(--space-4) var(--space-12);
|
|
4098
|
+
}
|
|
4099
|
+
|
|
4100
|
+
.markdown-body .diagnostic {
|
|
4101
|
+
grid-template-columns: auto auto minmax(0, 1fr) auto;
|
|
4102
|
+
}
|
|
4103
|
+
|
|
4104
|
+
/* The message takes a row of its own under the severity, the rule and the actions. */
|
|
4105
|
+
.diagnostic-message {
|
|
4106
|
+
grid-column: 1 / -1;
|
|
4107
|
+
grid-row: 2;
|
|
4108
|
+
line-height: 1.5;
|
|
4109
|
+
}
|
|
4110
|
+
|
|
4111
|
+
.diagnostic-line {
|
|
4112
|
+
grid-column: 3;
|
|
4113
|
+
justify-self: end;
|
|
4114
|
+
}
|
|
4115
|
+
|
|
4116
|
+
/* A field name above its input, so a long option name does not squeeze the input to nothing. */
|
|
4117
|
+
.config-field {
|
|
4118
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4119
|
+
}
|
|
4120
|
+
|
|
4121
|
+
.config-field > .config-hint,
|
|
4122
|
+
.config-json-problem {
|
|
4123
|
+
grid-column: 1;
|
|
4124
|
+
}
|
|
4125
|
+
|
|
4126
|
+
.settings-panel {
|
|
4127
|
+
width: 100vw;
|
|
4128
|
+
}
|
|
4129
|
+
}
|
|
4130
|
+
|
|
4131
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4132
|
+
html {
|
|
4133
|
+
scroll-behavior: auto;
|
|
4134
|
+
}
|
|
4135
|
+
|
|
4136
|
+
.chevron::before,
|
|
4137
|
+
.tree summary::before,
|
|
4138
|
+
.diagnostics > summary::before,
|
|
4139
|
+
.config-rule > summary::before,
|
|
4140
|
+
.sidebar-summary::after,
|
|
4141
|
+
.markdown-body details > summary::before,
|
|
4142
|
+
.column-resizer::before,
|
|
4143
|
+
.column-resizer::after,
|
|
4144
|
+
.settings-panel,
|
|
4145
|
+
.settings-panel.is-open,
|
|
4146
|
+
.code-copy,
|
|
4147
|
+
.segment,
|
|
4148
|
+
.switch,
|
|
4149
|
+
.switch::before {
|
|
4150
|
+
transition: none;
|
|
4151
|
+
}
|
|
4152
|
+
|
|
4153
|
+
/* A still line across the header says the same as the growing one. */
|
|
4154
|
+
:root[data-navigating="slow"] .topbar::after {
|
|
4155
|
+
animation: none;
|
|
4156
|
+
transform: none;
|
|
4157
|
+
}
|
|
4158
|
+
}
|
|
4159
|
+
|
|
4160
|
+
@media print {
|
|
4161
|
+
.code-copy,
|
|
4162
|
+
.topbar,
|
|
4163
|
+
.sidebar-frame,
|
|
4164
|
+
.rail-frame,
|
|
4165
|
+
.markdown-body [data-line]::after,
|
|
4166
|
+
.changes-view,
|
|
4167
|
+
.change-bar,
|
|
4168
|
+
.change-hunk-view,
|
|
4169
|
+
.markdown-body .change-removed,
|
|
4170
|
+
.markdown-body .change-removed-item {
|
|
4171
|
+
display: none;
|
|
4172
|
+
}
|
|
4173
|
+
|
|
4174
|
+
/* A printer drops background colors unless told otherwise, and a border it keeps. */
|
|
4175
|
+
.markdown-body [data-change]::before {
|
|
4176
|
+
width: 0;
|
|
4177
|
+
border-left: 3px solid var(--change-color);
|
|
4178
|
+
background: none;
|
|
4179
|
+
}
|
|
4180
|
+
|
|
4181
|
+
.layout {
|
|
4182
|
+
display: block;
|
|
4183
|
+
}
|
|
4184
|
+
}
|