Fossil SCM

Merge refined-skins into trunk. This adds the Refined Dark and Refined Light skins.

dmestas 2026-11-18 10:43 UTC trunk merge
Commit 2a34d86161459f34d02a2748e9070a9fded2ca255946771e0a8e10ceecc6952c
--- a/skins/refined-dark/css.txt
+++ b/skins/refined-dark/css.txt
@@ -0,0 +1,992 @@
1
+/* Refined Dark skin
2
+ A dark rendering of Fossil's default skin: same layout, same sizes, same
3
+ menu band and submenu row. Colors are chosen for WCAG AA contrast on a
4
+ near-black page: body text 13:1, muted text 7:1, links 7:1.
5
+ Functional dark-theme overrides for Fossil's hardcoded light colors
6
+ (timeline graph, diffs, chat, forum, tickets) are kept at the end.
7
+ Uses system fonts; no external font resources are needed. */
8
+
9
+
10
+:root {
11
+ --bg: #1c1e22; /* page */
12
+ --surface: #272a30; /* menu band, cards, code blocks */
13
+ --surface2: #31353d; /* hover states, selected rows */
14
+ --border: #41454e;
15
+ --text: #e8e9eb; /* 13:1 on --bg */
16
+ --muted: #b3b8c0; /* 7.3:1 on --bg */
17
+ --link: #7fb6ef; /* 7.2:1 on --bg; Fossil default's #3779BF, lightened */
18
+ --link-hover: #a3cbf5;
19
+ --link-on-tint: var(--link); /* links on Fossil's colored rows */
20
+ --title: #8cbdf0; /* project title, like the default's #4183C4 */
21
+ --active: #f08a3c; /* active menu underline; default's #D26911, lightened */
22
+ --green: #6fd48f;
23
+ --red: #f08a7e;
24
+ --yellow: #f2c94c;
25
+ --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
26
+ --mono: ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
27
+ color-scheme: dark;
28
+ --input-bg: #15171a; --on-accent: #0b0d10; --visited: #a6b8e8;
29
+ --sel-bg: #4a3a2a; --sec-bg: #2a3a4a; --stripe: #2b2e34; --rule: #2c2f35;
30
+ --btn-hover: #3b4049; --band-top: #2d3037; --warn-bg: #3a2f12; --err-bg: #3a2220;
31
+ --green-rgb: 111 212 143; --red-rgb: 240 138 126; --yellow-rgb: 242 201 76;
32
+ --link-rgb: 127 182 239; --teal-rgb: 79 209 197; --violet-rgb: 140 150 240;
33
+ --muted-rgb: 179 184 192; --veil-rgb: 28 30 34; --lift-rgb: 255 255 255; --shadow-rgb: 0 0 0;
34
+ --tint-rgb: 39 42 48; --tint-mute: 0.4; --chat-mute: 0.3; --bubble-shadow: 0.35; --popup-shadow: 0.5;
35
+}
36
+
37
+/* Base, matching the default skin's sizing */
38
+body {
39
+ box-sizing: border-box;
40
+ min-height: 100vh;
41
+ min-height: 100dvh;
42
+ display: flex;
43
+ flex-direction: column;
44
+ margin: 0 auto;
45
+ background-color: var(--bg);
46
+ color: var(--text);
47
+ font-family: var(--font);
48
+ font-size: 16px;
49
+ line-height: 1.45;
50
+}
51
+a { color: var(--link); text-decoration: none; }
52
+a:hover { color: var(--link-hover); text-decoration: underline; }
53
+a:visited { color: var(--visited); }
54
+code, pre, tt, kbd, samp, var { font-family: var(--mono); }
55
+code, tt, kbd, samp { font-size: 0.94em; }
56
+pre { font-size: 0.92em; line-height: 1.35; overflow-x: auto; }
57
+hr { border: none; border-top: 1px solid var(--border); }
58
+blockquote { border-left: 3px solid var(--border); margin: 0.5em 0; padding: 0.1em 1em; }
59
+img { max-width: 100%; }
60
+
61
+/* Title area above the menu bar */
62
+header { display: flex; align-items: center; gap: 14px; padding: 14px 0 12px; }
63
+.skip-nav {
64
+ position: absolute; top: -100%; left: 0;
65
+ background: var(--link); color: var(--on-accent);
66
+ padding: 0.5rem 1.25rem; font-weight: 600; z-index: 9999;
67
+ border-radius: 0 0 6px 0;
68
+}
69
+.skip-nav:focus { top: 0; outline: 2px solid #fff; outline-offset: -4px; }
70
+
71
+div.logo { display: flex; flex-shrink: 0; }
72
+div.logo img, img.logo-mark { width: 48px; height: 48px; object-fit: cover; display: block; border-radius: 6px; }
73
+.hub-link:hover img { opacity: 0.85; }
74
+
75
+.title { min-width: 0; color: var(--title); line-height: 1.2; }
76
+.title h1, .title .project-name {
77
+ display: inline;
78
+ font-size: 2.2em;
79
+ font-weight: bold;
80
+ color: var(--title);
81
+ text-decoration: none;
82
+}
83
+.title .project-name:hover { color: var(--link-hover); text-decoration: none; }
84
+.title h1:after, .title .project-name:after {
85
+ content: " / "; color: var(--muted); font-weight: normal;
86
+}
87
+span.page-title { font-size: 18px; color: var(--text); }
88
+/* Hidden from view but not display:none: Fossil's forum script sizes its
89
+ expand control from the height of the first h1 on the page, and loops
90
+ forever if that height is 0. This also keeps the heading for screen readers. */
91
+h1.page-title {
92
+ font-size: 1.6em; color: var(--text);
93
+ display: block; position: absolute; width: 1px; margin: 0; padding: 0;
94
+ overflow: hidden; clip-path: inset(50%); white-space: nowrap;
95
+}
96
+/* Home pages carry their own heading; Fossil's "index" / "Home" title is noise */
97
+h1.page-title.home-title { display: none !important; }
98
+/* Long document titles go in the body instead of the title bar */
99
+.artifact h1.page-title, .dir h1.page-title, .doc h1.page-title, .wiki h1.page-title {
100
+ position: static; width: auto; overflow: visible; clip-path: none; white-space: normal;
101
+ margin: revert; margin-bottom: 0;
102
+}
103
+.artifact .title > .page-title, .dir .title > .page-title,
104
+.doc .title > .page-title, .wiki .title > .page-title { display: none; }
105
+/* ...unless the page opens with a heading of its own (a wiki page's first
106
+ heading, "History of ...", "Files in ..."): the title would say it twice */
107
+body:has(div.content > :is(h1, h2):first-child, div.content > span:first-child + :is(h1, h2),
108
+ div.content > :is(.markdown, .fossil-doc) > :is(h1, h2):first-child,
109
+ div.content > span:first-child + :is(.markdown, .fossil-doc) > :is(h1, h2):first-child) h1.page-title {
110
+ position: absolute; width: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
111
+}
112
+.artifact .title h1:after, .dir .title h1:after, .doc .title h1:after, .wiki .title h1:after,
113
+.artifact .title .project-name:after, .dir .title .project-name:after,
114
+.doc .title .project-name:after, .wiki .title .project-name:after { content: ""; }
115
+
116
+.status { margin-left: auto; font-size: 0.9em; }
117
+.status a { color: var(--muted); }
118
+.status a:hover { color: var(--text); }
119
+
120
+/* Main menu band */
121
+.mainmenu {
122
+ clear: both;
123
+ background: var(--surface) linear-gradient(var(--band-top), var(--surface)) repeat-x;
124
+ border: 1px solid var(--border);
125
+ border-radius: 5px;
126
+ overflow-x: auto;
127
+ overflow-y: hidden;
128
+ white-space: nowrap;
129
+ z-index: 21;
130
+}
131
+.mainmenu a {
132
+ display: inline-block;
133
+ line-height: 1.4;
134
+ color: var(--muted);
135
+ text-decoration: none;
136
+ border-right: 1px solid var(--border);
137
+ font-weight: 500;
138
+}
139
+.mainmenu a.active, .mainmenu a:hover {
140
+ color: var(--text);
141
+ border-bottom: 2px solid var(--active);
142
+ text-decoration: none;
143
+}
144
+#hbbtn { font-size: 1.15em; min-width: 44px; text-align: center; }
145
+#hbbtn[aria-expanded="true"] { color: var(--text); background: var(--surface2); }
146
+
147
+/* Hamburger dropdown (hbmenu.js toggles display; a11y.js sets --nav-bottom) */
148
+nav#hbdrop {
149
+ background-color: var(--surface);
150
+ border: 1px solid var(--border);
151
+ border-top: none;
152
+ border-radius: 0 0 0.5em 0.5em;
153
+ display: none;
154
+ font-size: 0.95em;
155
+ position: fixed;
156
+ top: var(--nav-bottom, 88px);
157
+ left: 0; right: 0;
158
+ z-index: 200;
159
+ box-shadow: 0 8px 24px rgb(var(--shadow-rgb) / 0.5);
160
+ overflow-x: hidden;
161
+ max-height: 75vh;
162
+ overflow-y: auto;
163
+}
164
+ul#sitemap {
165
+ padding: 1.25rem 1.5rem 1.5rem;
166
+ margin: 0;
167
+ list-style: none;
168
+ column-width: 14em;
169
+ column-gap: 2.5rem;
170
+}
171
+ul#sitemap > li {
172
+ list-style: none;
173
+ margin: 0 0 1.1rem;
174
+ break-inside: avoid;
175
+}
176
+ul#sitemap > li > a {
177
+ display: inline-block;
178
+ font-size: 0.78em;
179
+ font-weight: 600;
180
+ letter-spacing: 0.06em;
181
+ text-transform: uppercase;
182
+ color: var(--muted);
183
+ padding: 0.3rem 0;
184
+}
185
+ul#sitemap > li > a:hover { color: var(--text); text-decoration: none; }
186
+ul#sitemap ul { margin: 0.15rem 0 0; padding: 0; list-style: none; }
187
+ul#sitemap ul li { list-style: none; }
188
+ul#sitemap ul li a {
189
+ display: flex; align-items: center; box-sizing: border-box; /* text stays centered at any row height */
190
+ color: var(--text);
191
+ padding: 0.3rem 0.6rem;
192
+ margin-left: -0.6rem;
193
+ border-radius: 4px;
194
+ min-height: 36px;
195
+}
196
+ul#sitemap ul li a:hover { background: var(--surface2); color: var(--link-hover); text-decoration: none; }
197
+nav#hbdrop ul#sitemap { column-width: 14em; }
198
+ul#sitemap.columns { overflow-x: hidden; }
199
+
200
+/* Submenu row, like the default: a horizontal strip under the menu band */
201
+.submenu, .sectionmenu {
202
+ font-size: 0.9em;
203
+ padding: 8px 0;
204
+ margin-bottom: 4px;
205
+ border-bottom: 1px solid var(--border);
206
+ display: flex;
207
+ flex-wrap: wrap;
208
+ align-items: center;
209
+ gap: 0.25rem 0.5rem;
210
+}
211
+.submenu a, .submenu label, .sectionmenu a {
212
+ padding: 6px 10px;
213
+ text-decoration: none;
214
+ color: var(--link);
215
+ border: 1px solid transparent;
216
+ border-radius: 5px;
217
+ white-space: nowrap;
218
+}
219
+.submenu > a:first-child { margin-left: -10px; }
220
+.submenu a:hover, .submenu label:hover, .sectionmenu a:hover {
221
+ border-color: var(--border);
222
+ background: var(--surface);
223
+ color: var(--text);
224
+ text-decoration: none;
225
+}
226
+span.submenuctrl, span.submenuctrl input, select.submenuctrl { color: var(--muted); }
227
+span.submenuctrl { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.35rem; }
228
+.submenuckbox { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text); cursor: pointer; }
229
+.submenu select, .submenu input[type=text], .sectionmenu select, .sectionmenu input[type=text] {
230
+ width: auto;
231
+ font-size: 0.95em;
232
+ padding: 0.3em 0.5em;
233
+}
234
+.submenu select, .sectionmenu select { padding-right: 1.9em; }
235
+.section {
236
+ font-size: 1em; font-weight: bold;
237
+ background-color: var(--surface);
238
+ border: 1px solid var(--border);
239
+ border-radius: 3px 3px 0 0;
240
+ padding: 9px 10px 10px;
241
+ margin: 10px 0;
242
+}
243
+.sectionmenu {
244
+ border: 1px solid var(--border);
245
+ border-radius: 0 0 3px 3px;
246
+ border-top: 0;
247
+ margin-top: -10px;
248
+ margin-bottom: 10px;
249
+}
250
+
251
+/* Content */
252
+.content { padding: 12px 0; color: var(--text); }
253
+.content h1 { font-size: 1.60em; color: var(--text); }
254
+.content h2 { font-size: 1.45em; color: var(--text); }
255
+.content h3 { font-size: 1.15em; color: var(--text); }
256
+.content h4 { font-size: 1.05em; color: var(--text); }
257
+.content h5 { font-size: 1.00em; color: var(--text); }
258
+.content pre, table.numbered-lines > tbody > tr { hyphens: none; line-height: 1.3; }
259
+.content ul:not(.browser) > li { list-style-type: disc; }
260
+div.filetree ul li.dir, div.filetree ul li.subdir, div.filetree ul li.file { list-style-type: none; }
261
+th { text-align: left; }
262
+
263
+/* User content: wiki, embedded docs, forum posts */
264
+.markdown blockquote, p.blockquote, .sidebar {
265
+ background-color: var(--surface);
266
+ border-left: 4px solid var(--link);
267
+}
268
+div.sidebar { outline: 1em solid var(--bg); }
269
+.artifact > .content > p > code, .artifact > .content > .markdown > p > code, .artifact > .content > .fossil-doc > p > code,
270
+.dir > .content > p > code, .dir > .content > .markdown > p > code,
271
+.doc > .content > p > code, .doc > .content > .markdown > p > code, .doc > .content > .fossil-doc > p > code,
272
+.forum > .content .markdown > p > code,
273
+.wiki > .content > p > code, .wiki > .content > .markdown > p > code, .wiki > .content > .fossil-doc > p > code,
274
+.content li > code, .content td > code {
275
+ background-color: var(--surface);
276
+ border: 1px solid var(--border);
277
+ border-radius: 3px;
278
+ padding: 0 4px;
279
+}
280
+.artifact > .content > pre, .artifact > .content > .markdown > pre, .artifact > .content > .fossil-doc > pre,
281
+.dir > .content > pre, .dir > .content > .markdown > pre,
282
+.doc > .content > pre, .doc > .content > .markdown > pre, .doc > .content > .fossil-doc > pre,
283
+.forum > .content .markdown > pre,
284
+.wiki > .content > pre, .wiki > .content > .markdown > pre, .wiki > .content > .fossil-doc > pre,
285
+pre.verbatim, pre.textPlain {
286
+ background-color: var(--surface);
287
+ border: 1px solid var(--border);
288
+ border-radius: 4px;
289
+ padding: 8px 10px;
290
+}
291
+pre.verbatim { white-space: pre-wrap; }
292
+.artifact > .content table, .dir > .content table, .doc > .content table, .wiki > .content table,
293
+.forum > .content .markdown table {
294
+ background-color: var(--surface);
295
+ border: 1px solid var(--border);
296
+ border-radius: 0.5em;
297
+ border-spacing: 0;
298
+ padding: 6px;
299
+}
300
+.artifact > .content th, .dir > .content th, .doc > .content th, .wiki > .content th,
301
+.forum > .content .markdown th {
302
+ border-bottom: 1px solid var(--border);
303
+ background-color: var(--surface2);
304
+ padding: 4px 6px;
305
+}
306
+.artifact > .content tr:nth-child(odd) td, .dir > .content tr:nth-child(odd) td,
307
+.doc > .content tr:nth-child(odd) td, .wiki > .content tr:nth-child(odd) td {
308
+ background-color: var(--stripe);
309
+}
310
+.artifact > .content td, .dir > .content td, .doc > .content td, .wiki > .content td,
311
+.forum > .content .markdown td { padding: 4px 6px; }
312
+textarea.wikiedit { font-size: 1.1em; }
313
+
314
+/* Forms */
315
+input[type=text], input[type=password], input[type=email], input[type=search],
316
+input[type=number], textarea, select {
317
+ background: var(--input-bg);
318
+ border: 1px solid var(--border);
319
+ border-radius: 4px;
320
+ color: var(--text);
321
+ font-family: var(--font);
322
+ font-size: 1em;
323
+ padding: 0.35em 0.6em;
324
+}
325
+textarea { font-family: var(--mono); }
326
+select {
327
+ appearance: none;
328
+ -webkit-appearance: none;
329
+ padding-right: 2em;
330
+ line-height: 1.3;
331
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23b3b8c0' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
332
+ background-repeat: no-repeat;
333
+ background-position: right 0.6em center;
334
+ background-size: 12px;
335
+ cursor: pointer;
336
+}
337
+select:hover { border-color: var(--muted); }
338
+select option { background: var(--input-bg); color: var(--text); }
339
+input:focus, textarea:focus, select:focus { border-color: var(--link); outline: none; }
340
+input[type=submit], input[type=button], button {
341
+ background: var(--surface2);
342
+ border: 1px solid var(--border);
343
+ border-radius: 4px;
344
+ color: var(--text);
345
+ cursor: pointer;
346
+ font-family: var(--font);
347
+ font-size: 1em;
348
+ padding: 0.35em 1em;
349
+}
350
+input[type=submit]:hover, input[type=button]:hover, button:hover {
351
+ border-color: var(--muted);
352
+ background: var(--btn-hover);
353
+}
354
+input[type=submit]:disabled, input[type=button]:disabled, button:disabled { opacity: 0.5; cursor: not-allowed; }
355
+:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
356
+.mainmenu a:focus-visible { outline-offset: -3px; }
357
+
358
+/* Let short pages fill the viewport without overlaying long content. */
359
+body > .content { flex: 1 0 auto; min-width: 0; }
360
+body > header, body > nav, body > footer { flex-shrink: 0; }
361
+
362
+/* Footer */
363
+footer {
364
+ border-top: 1px solid var(--border);
365
+ padding: 10px;
366
+ font-size: 0.85em;
367
+ margin-top: 10px;
368
+ color: var(--muted);
369
+ display: flex;
370
+ justify-content: space-between;
371
+ flex-wrap: wrap;
372
+ gap: 0.5rem;
373
+}
374
+
375
+/* Forum */
376
+.forum a:visited { color: var(--visited); }
377
+div.forumSel {
378
+ animation: 1s linear 0s sel-fade;
379
+ background-color: var(--bg);
380
+ border-left: 4px solid var(--link);
381
+}
382
+@keyframes sel-fade { from { background-color: var(--surface2); } to { background-color: var(--bg); } }
383
+.forum form input { margin: 0.5em 0; }
384
+div.forumTime, div.forumHier, div.forumHierRoot {
385
+ background: var(--surface) !important;
386
+ border: 1px solid var(--border) !important;
387
+ border-radius: 4px;
388
+ color: var(--text) !important;
389
+}
390
+div.forumTime.forumSel, div.forumHier.forumSel { border-color: var(--link) !important; }
391
+div.forumObs { opacity: 0.75; }
392
+div.forumPostBody, div.forumPostBody h1, div.forumPostBody h2, div.forumPostBody h3 { color: var(--text) !important; }
393
+.forum-post-collapser {
394
+ border-color: var(--border) !important;
395
+ background: var(--surface) !important;
396
+ color: var(--muted) !important;
397
+}
398
+.forum-post-collapser:hover { background: var(--surface2) !important; color: var(--text) !important; }
399
+div.searchForm { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1em 0; }
400
+
401
+/* Tickets and reports */
402
+table.report { cursor: auto; border: 1px solid var(--border); border-radius: 0.5em; margin: 1em 0; }
403
+.report td, .report th { border: 0; font-size: 0.9em; padding: 8px 10px; }
404
+.report th { cursor: pointer; background: var(--surface); }
405
+.report thead + tbody tr:hover { background-color: var(--surface2) !important; }
406
+body.report table.report tr td { color: var(--text) !important; }
407
+body.report table.report a { color: var(--link) !important; }
408
+td.tktDspLabel { width: 70px; text-align: right; overflow: hidden; color: var(--muted) !important; }
409
+td.tktDspValue {
410
+ text-align: left; vertical-align: top;
411
+ background-color: var(--surface) !important;
412
+ border: 1px solid var(--border) !important;
413
+ color: var(--text) !important;
414
+}
415
+td.tktDspValue pre { white-space: pre-wrap; }
416
+
417
+/* Timeline */
418
+span.timelineDetail { font-size: 90%; }
419
+div.timelineDate { font-weight: bold; white-space: nowrap; color: var(--muted); }
420
+table.timelineTable { padding: 0 3px; }
421
+table.timelineTable tr { border-radius: 1em; }
422
+.timelineModernCell, .timelineColumnarCell, .timelineDetailCell { border-radius: 0.5em; }
423
+.timelineModernCell[id], .timelineColumnarCell[id], .timelineDetailCell[id] { background-color: var(--surface); }
424
+.timelineModernDetail { opacity: 1; color: var(--muted); font-size: 0.9em; }
425
+.timelineModernComment { color: var(--text); }
426
+td.timelineTime { color: var(--muted); font-family: var(--mono); font-size: 0.9em; white-space: nowrap; }
427
+span.timelineHash { font-family: var(--mono); }
428
+tr.timelineSelected, tr.timelineSecondary { background-color: unset; }
429
+tr.timelineSelected td, span.timelineSelected { background-color: var(--sel-bg) !important; }
430
+tr.timelineSecondary td, span.timelineSecondary { background-color: var(--sec-bg) !important; }
431
+tr.timelineCurrent td:first-child, tr.timelineSecondary td:first-child, tr.timelineSelected td:first-child {
432
+ border-top-left-radius: 1em; border-bottom-left-radius: 1em;
433
+}
434
+tr.timelineCurrent td:last-child, tr.timelineSecondary td:last-child, tr.timelineSelected td:last-child {
435
+ border-top-right-radius: 1em; border-bottom-right-radius: 1em;
436
+}
437
+tr.timelineCurrent td { border-top: 1px dashed var(--muted); border-bottom: 1px dashed var(--muted); }
438
+tr.timelineCurrent td:first-child { border-left: 1px dashed var(--muted); }
439
+tr.timelineCurrent td:last-child { border-right: 1px dashed var(--muted); }
440
+
441
+/* Timeline graph: Fossil hardcodes black lines and white nodes */
442
+.tl-node { background: var(--link) !important; border-color: var(--text) !important; }
443
+.tl-node.leaf:after { background: var(--bg) !important; }
444
+.tl-node.closed-leaf svg { color: var(--bg) !important; }
445
+.tl-line { background-color: var(--muted); }
446
+.tl-line.warp { background: var(--yellow) !important; }
447
+.tl-line.cherrypick.h { border-top-color: var(--muted) !important; background: transparent !important; }
448
+.tl-line.cherrypick.v, .tl-line.dotted.v { border-left-color: var(--muted) !important; background: transparent !important; }
449
+.tl-arrow.u, .tl-arrow.u.sm { border-bottom-color: var(--muted) !important; }
450
+.tl-arrow.merge.l, .tl-arrow.cherrypick.l { border-right-color: var(--muted) !important; }
451
+.tl-arrow.merge.r, .tl-arrow.cherrypick.r { border-left-color: var(--muted) !important; }
452
+.tl-arrow.warp { border-left-color: var(--yellow) !important; }
453
+/* Branch colors are pastel inline backgrounds; darken them so text stays readable */
454
+/* Branch and user tints come from Fossil, already sized for this foreground */
455
+.tl-tooltip {
456
+ background: var(--surface2) !important; color: var(--text) !important;
457
+ border-color: var(--border) !important; box-shadow: 0 4px 16px rgb(var(--shadow-rgb) / 0.5) !important;
458
+}
459
+
460
+/* Lists and tables Fossil generates */
461
+table.sortable th, table.filelistTable th, .fileage th {
462
+ text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); cursor: pointer;
463
+}
464
+table.sortable td, table.filelistTable td, .fileage td { padding: 5px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
465
+table.sortable tr:hover td, .fileage tr:hover, div.filetreeline:hover { background: var(--surface) !important; }
466
+body.branch .brlist > table > tbody > tr:hover:not(.selected) { background: var(--surface) !important; }
467
+body.branch .brlist > table > tbody > tr.selected { background: var(--surface2) !important; }
468
+.branch-name, span.tagDsp {
469
+ display: inline-block; background: var(--surface2); border: 1px solid var(--border);
470
+ border-radius: 3px; color: var(--link); font-family: var(--mono); font-size: 0.85em; padding: 0 0.3em;
471
+}
472
+
473
+/* Diffs: Fossil's built-in colors are pale pastels */
474
+table.diff { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.9em; }
475
+td.difflnc, td.difflna, td.difflnb { color: var(--muted); padding: 0 0.5em; text-align: right; user-select: none; border-right: 1px solid var(--border); }
476
+td.difftext { padding: 0 0.5em; white-space: pre; }
477
+tr.diffskip, tr.diffskip.jchunk { background: var(--surface) !important; }
478
+tr.diffskip > td.chunkctrl .jcbutton { background: var(--surface2) !important; color: var(--muted) !important; border-radius: 3px; }
479
+tr.diffskip > td.chunkctrl .jcbutton:hover { color: var(--text) !important; }
480
+td.diffmkrl, td.diffmkrr, td.diffmkru { color: var(--muted); }
481
+tr.diffadd td { background: rgb(var(--green-rgb) / 0.10); }
482
+tr.diffrm td { background: rgb(var(--red-rgb) / 0.10); }
483
+tr.diffchng td { background: rgb(var(--yellow-rgb) / 0.07); }
484
+span.diffadd { color: var(--green); }
485
+span.diffrm { color: var(--red); }
486
+span.diffchng { color: var(--yellow); }
487
+td.diffln ins, td.difftxt ins, table.diff pre > ins { background-color: rgb(var(--green-rgb) / 0.16) !important; }
488
+td.diffln del, td.difftxt del, table.diff pre > del { background-color: rgb(var(--red-rgb) / 0.16) !important; }
489
+td.difftxt del > del, table.diff pre > del > del { background-color: rgb(var(--red-rgb) / 0.32) !important; }
490
+td.difftxt ins > ins, table.diff pre > ins > ins { background-color: rgb(var(--green-rgb) / 0.32) !important; }
491
+td.difftxt del > del.edit, td.difftxt ins > ins.edit,
492
+table.diff pre > del > del.edit, table.diff pre > ins > ins.edit { background-color: rgb(var(--link-rgb) / 0.25) !important; }
493
+
494
+/* Annotate / blame: inline pastel backgrounds from Fossil JS */
495
+td.annotateDate, td.annotateUser { color: var(--muted); font-family: var(--mono); font-size: 0.85em; padding: 0 0.5em; white-space: nowrap; border-right: 1px solid var(--border); }
496
+pre span[style*="background"], li span[style*="background"] {
497
+ background-image: linear-gradient(rgb(var(--veil-rgb) / 0.7), rgb(var(--veil-rgb) / 0.7)) !important;
498
+ border-radius: 3px; padding: 0.1em 0.25em;
499
+}
500
+
501
+/* Any inline pastel background Fossil emits (ticket reports and their key,
502
+ ticket pages, annotate legends, branch lists): darken it, keep the hue */
503
+tr[style*="background-color"], td[style*="background-color"], th[style*="background-color"],
504
+span[style*="background-color"], div[style*="background-color"], p[style*="background-color"] {
505
+ background-image: linear-gradient(rgb(var(--veil-rgb) / var(--veil, 0.35)), rgb(var(--veil-rgb) / var(--veil, 0.35))) !important;
506
+ color: var(--text);
507
+}
508
+tr[style*="background-color"] a, td[style*="background-color"] a, p[style*="background-color"] a { color: var(--link); }
509
+/* @dark-only: the light skin keeps Fossil's own ticket colors */
510
+/* Fossil's standard ticket status colors, mapped to tints instead of the generic overlay:
511
+ active / review / fixed / tested / deferred / closed / key label */
512
+tr[style*="#f2dcdc" i], td[style*="#f2dcdc" i], th[style*="#f2dcdc" i] { background-image: none !important; background-color: rgb(var(--red-rgb) / 0.22) !important; }
513
+tr[style*="#e8e8bd" i], td[style*="#e8e8bd" i], th[style*="#e8e8bd" i] { background-image: none !important; background-color: rgb(var(--yellow-rgb) / 0.20) !important; }
514
+tr[style*="#e8e8e8" i], td[style*="#e8e8e8" i], th[style*="#e8e8e8" i] { background-image: none !important; background-color: rgb(var(--yellow-rgb) / 0.14) !important; }
515
+tr[style*="#cfe8bd" i], td[style*="#cfe8bd" i], th[style*="#cfe8bd" i] { background-image: none !important; background-color: rgb(var(--green-rgb) / 0.20) !important; }
516
+tr[style*="#bde5d6" i], td[style*="#bde5d6" i], th[style*="#bde5d6" i] { background-image: none !important; background-color: rgb(var(--teal-rgb) / 0.20) !important; }
517
+tr[style*="#cacae5" i], td[style*="#cacae5" i], th[style*="#cacae5" i] { background-image: none !important; background-color: rgb(var(--violet-rgb) / 0.24) !important; }
518
+tr[style*="#c8c8c8" i], td[style*="#c8c8c8" i], th[style*="#c8c8c8" i] { background-image: none !important; background-color: rgb(var(--lift-rgb) / 0.05) !important; }
519
+tr[style*="#ffffff" i], td[style*="#ffffff" i], th[style*="#ffffff" i] { background-image: none !important; background-color: transparent !important; }
520
+table.report tr[style*="background-color"]:hover td { background-image: linear-gradient(rgb(var(--lift-rgb) / 0.05), rgb(var(--lift-rgb) / 0.05)) !important; }
521
+table.report td[style*="#ffffff" i], table.report tr[style*="#ffffff" i] td { color: var(--muted); }
522
+/* @end-dark-only */
523
+p[style*="border:1px solid"] { border-color: var(--border) !important; border-radius: 4px; padding: 0.6em 0.8em; }
524
+/* Pikchr: Fossil already draws white defaults because skin-detail is white-foreground; leave diagrams alone */
525
+
526
+/* Fossil's user and branch colors, muted toward the surface so they sit with the skin */
527
+table.timelineTable td[style*="background"] {
528
+ background-image: linear-gradient(rgb(var(--tint-rgb) / var(--tint-mute)), rgb(var(--tint-rgb) / var(--tint-mute))) !important;
529
+}
530
+body.chat .message-widget-content[style*="background"] {
531
+ background-image: linear-gradient(rgb(var(--tint-rgb) / var(--chat-mute)), rgb(var(--tint-rgb) / var(--chat-mute))) !important;
532
+}
533
+body.chat .message-widget-tab[style*="background"] { background-image: none !important; }
534
+body.chat .message-widget-content { box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / var(--bubble-shadow)) !important; }
535
+
536
+/* Misc Fossil UI elements with hardcoded light colors */
537
+div.debug { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--muted) !important; padding: 0.75rem; }
538
+/* Inline debug markers, e.g. "(artifact-NNN)" on forum posts for admins: just quieter text */
539
+span.debug { background: none !important; border: none !important; padding: 0 !important; color: var(--muted) !important; font-size: 0.85em; }
540
+span.debug a { color: var(--muted); }
541
+span.debug a:hover { color: var(--link); }
542
+span.error { background: rgb(var(--yellow-rgb) / 0.18) !important; color: var(--yellow) !important; padding: 0.1em 0.25em; border-radius: 3px; }
543
+mark { background: rgb(var(--yellow-rgb) / 0.25); color: var(--text); padding: 0.1em 0.25em; border-radius: 3px; }
544
+div.sideboxTitle { color: var(--title); font-weight: 600; }
545
+div.sidebox { background: var(--surface); border: 1px solid var(--border) !important; border-radius: 4px; margin: 0 0 1em 1.5em; padding: 0.75em; }
546
+.disabled { color: var(--red); }
547
+.modpending { color: var(--yellow); }
548
+.fossil-tooltip.help-buttonlet-content { background-color: var(--surface2); color: var(--text); border: 1px solid var(--border); }
549
+.fossil-tooltip { background: var(--surface2) !important; color: var(--text) !important; border-color: var(--border) !important; }
550
+td.capsumRead { background: rgb(var(--green-rgb) / 0.15) !important; color: var(--green); }
551
+td.capsumWrite { background: rgb(var(--yellow-rgb) / 0.15) !important; color: var(--yellow); }
552
+td.capsumOff { background: rgb(var(--muted-rgb) / 0.1) !important; color: var(--muted); }
553
+table.login_out { margin: 1em 0; }
554
+td.login_out_label { color: var(--muted); padding: 0.4em 0.75em 0.4em 0; }
555
+.help-buttonlet { color: var(--link); cursor: pointer; }
556
+
557
+/* Status text Fossil colors pure red / blue / black */
558
+span.disabled, span.wikiError, span.loginError, span.tktError, span.brokenlink, span.thTrace,
559
+p.generalError, p.tktsetupError, p.xfersetupError, p.thmainError, p.reportError, blockquote.reportError,
560
+pre.th1error, span.ueditInheritDeveloper, td.tktTlOpen,
561
+div.markdown ol.footnotes > li.fn-misreference > span, div.markdown ol.footnotes > li.fn-unreferenced > code,
562
+div.markdown sup.noteref.misref, div.markdown sup.noteref.misref > a { color: var(--red) !important; }
563
+span.ueditInheritAnonymous, p.missingPriv, p.noMoreShun, p.shunned { color: var(--link) !important; }
564
+span.ueditInheritReader { color: var(--text) !important; }
565
+blockquote.reportError, p.generalError { background: rgb(var(--red-rgb) / 0.1); border: 1px solid rgb(var(--red-rgb) / 0.4); border-radius: 4px; padding: 0.6em 0.8em; }
566
+/* Fossil also puts class="error" on <body> and colors it yellow; keep the page as it is */
567
+body.error, body.warning { background: var(--bg) !important; color: var(--text) !important; }
568
+.error:not(body), .warning:not(body) { background: rgb(var(--yellow-rgb) / 0.18) !important; color: var(--yellow) !important; border-radius: 3px; padding: 0.1em 0.3em; }
569
+table.numbered-lines td.line-numbers span.selected-line { color: var(--text) !important; background-color: rgb(var(--link-rgb) / 0.22) !important; }
570
+.fossil-toast-message { background: var(--surface2) !important; color: var(--text) !important; border: 1px solid var(--border) !important; border-radius: 6px !important; box-shadow: 0 8px 24px rgb(var(--shadow-rgb) / 0.5) !important; }
571
+.fossil-toast-message.error, .fossil-toast-message.warning { background: var(--warn-bg) !important; color: var(--yellow) !important; border-color: var(--yellow) !important; }
572
+.fossil-toast-message.error { color: var(--red) !important; border-color: var(--red) !important; background: var(--err-bg) !important; }
573
+
574
+/* Wiki / file editor tabs */
575
+.tab-container .tab-bar { display: flex; flex-wrap: wrap; gap: 0.25rem; border-bottom: 1px solid var(--border); }
576
+.tab-container .tab-button {
577
+ padding: 0.4em 0.9em; border: 1px solid transparent; border-bottom: none; border-radius: 5px 5px 0 0;
578
+ background: transparent; color: var(--muted); font-family: var(--font); font-size: 0.95em; cursor: pointer; margin-bottom: -1px;
579
+}
580
+.tab-container .tab-button:hover { color: var(--text); background: var(--surface); }
581
+.tab-container .tab-button.selected { color: var(--text); background: var(--surface); border-color: var(--border); border-bottom-color: var(--surface); }
582
+#fossil-status-bar { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font-family: var(--mono); font-size: 0.85em; padding: 0.4em 0.75em; margin: 0.5em 0; }
583
+.wikiedit-options, .fileedit-options { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding: 0.5em; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; margin-bottom: 0.5em; }
584
+.wikiedit-options .input-with-label, .fileedit-options .input-with-label { display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
585
+#wikiedit-tab-content textarea, #fileedit-tab-content textarea { min-height: 300px; width: 100%; }
586
+.tab-container fieldset { border: 1px solid var(--border); border-radius: 4px; }
587
+.tab-container fieldset legend { color: var(--muted); }
588
+button.wikiedit-content-reload, button.fileedit-content-reload { min-width: unset !important; max-width: unset !important; }
589
+
590
+/* Chat: Fossil sets inline pastel backgrounds per user */
591
+/* Each message keeps the user's color, which Fossil already picks for this
592
+ skin's foreground (white-foreground); only messages without one get --surface. */
593
+body.chat .message-widget-content {
594
+ background-color: var(--surface); border: 1px solid var(--border) !important;
595
+ border-radius: 6px !important; color: var(--text) !important; padding: 0.5em 0.75em !important;
596
+}
597
+body.chat .message-widget-tab { background: transparent !important; color: var(--muted) !important; border: none !important; font-size: 0.9em !important; }
598
+body.chat .message-widget-tab[style*="background"] { background-image: none !important; }
599
+body.chat .message-widget-tab .xfrom { color: var(--link) !important; font-weight: 600 !important; }
600
+body.chat #chat-input-line-wrapper { border: 1px solid var(--border) !important; border-radius: 6px !important; background: var(--input-bg) !important; }
601
+body.chat #chat-input-line-wrapper:focus-within { border-color: var(--link) !important; }
602
+body.chat .chat-input-field { border: none !important; background: transparent !important; color: var(--text) !important; font-family: var(--font) !important; font-size: 1em !important; }
603
+body.chat .cbutton { border: 1px solid var(--border) !important; background: var(--surface) !important; border-radius: 4px !important; }
604
+body.chat .cbutton:hover { background: var(--surface2) !important; }
605
+body.chat fieldset { border: 1px solid var(--border) !important; border-radius: 4px !important; background: var(--surface) !important; }
606
+body.chat .menu-entry { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
607
+body.chat .menu-entry:hover, body.chat .menu-entry.parent { background: var(--surface2) !important; }
608
+body.chat .message-widget .match { background: rgb(var(--yellow-rgb) / 0.25) !important; color: var(--text) !important; }
609
+body.chat .chat-message-popup { background: var(--surface2) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
610
+body.chat .message-widget-content img { max-width: 100% !important; border-radius: 4px !important; }
611
+
612
+/* Chat toolbar: Fossil renders the buttons as emoji; mask them with icons, keep the spans intact */
613
+body.chat #chat-buttons-wrapper > .cbutton {
614
+ position: relative !important;
615
+ font-size: 0 !important;
616
+ color: transparent !important;
617
+ min-width: 44px !important; max-width: 44px !important;
618
+ min-height: 36px !important; height: 36px !important;
619
+ background: var(--surface) !important;
620
+ border: 1px solid var(--border) !important;
621
+ border-radius: 6px !important;
622
+}
623
+body.chat #chat-buttons-wrapper > .cbutton::after {
624
+ content: ""; position: absolute; inset: 0; margin: auto;
625
+ width: 22px; height: 22px;
626
+ background-color: var(--muted);
627
+ -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
628
+}
629
+body.chat #chat-buttons-wrapper > .cbutton:hover { background: var(--surface2) !important; border-color: var(--muted) !important; }
630
+body.chat #chat-buttons-wrapper > .cbutton:hover::after { background-color: var(--text); }
631
+body.chat #chat-buttons-wrapper > #chat-button-submit { background: var(--link) !important; border-color: var(--link) !important; min-width: 64px !important; max-width: 64px !important; }
632
+body.chat #chat-buttons-wrapper > #chat-button-submit::after { background-color: var(--on-accent); }
633
+body.chat #chat-buttons-wrapper > #chat-button-submit:hover { background: var(--link-hover) !important; }
634
+body.chat #chat-button-preview { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z%22/%3E%3C/svg%3E"); }
635
+body.chat #chat-button-search { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z%22/%3E%3C/svg%3E"); }
636
+body.chat #chat-button-attach { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M209.66,122.34a8,8,0,0,1,0,11.32l-82.05,82a56,56,0,0,1-79.2-79.21L147.67,35.73a40,40,0,1,1,56.61,56.55L105,193A24,24,0,1,1,71,159L154.3,74.38A8,8,0,1,1,165.7,85.6L82.39,170.31a8,8,0,1,0,11.27,11.36L192.93,81A24,24,0,1,0,159,47L59.76,147.68a40,40,0,1,0,56.53,56.62l82.06-82A8,8,0,0,1,209.66,122.34Z%22/%3E%3C/svg%3E"); }
637
+body.chat #chat-button-settings { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z%22/%3E%3C/svg%3E"); }
638
+body.chat #chat-button-submit { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z%22/%3E%3C/svg%3E"); }
639
+
640
+/* Screen sizes, as in the default skin */
641
+@media screen and (max-width: 600px) {
642
+ body { padding-left: 12px; padding-right: 12px; }
643
+ .content { font-size: 0.95em; }
644
+ header { gap: 10px; padding: 10px 0 8px; }
645
+ div.logo img, img.logo-mark { width: 36px; height: 36px; }
646
+ .title h1, .title .project-name { font-size: 1.5em; }
647
+ .title > .page-title { display: inline; }
648
+ .artifact .title > .page-title, .dir .title > .page-title,
649
+ .doc .title > .page-title, .wiki .title > .page-title { display: none; }
650
+ .mainmenu a { padding: 10px 12px; }
651
+ .mainmenu { padding: 0; }
652
+ nav#hbdrop ul#sitemap, ul#sitemap.columns { columns: 1 !important; column-width: auto !important; }
653
+ .submenu { padding: 6px 0; }
654
+ td.timelineTime { font-size: 0.8em; }
655
+}
656
+@media screen and (min-width: 600px) {
657
+ body { padding-left: 20px; padding-right: 20px; }
658
+ .mainmenu a { padding: 12px 20px; }
659
+ .mainmenu { padding: 0; }
660
+ .content dd, .content dt, .content div, .content li, .content p, .content table { line-height: 1.45em; }
661
+ /* Fossil renders a document's title outside .content. Match its h1 inset. */
662
+ body.doc > h1.page-title {
663
+ box-sizing: border-box;
664
+ width: 100%;
665
+ margin-inline: 0;
666
+ padding-inline: 10pt;
667
+ }
668
+ .doc > .content > p, .doc > .content > .markdown > p, .doc > .content > .fossil-doc > p,
669
+ .doc > .content > ol, .doc > .content > ul, .doc > .content > .markdown > ol, .doc > .content > .markdown > ul,
670
+ .wiki > .content > p, .wiki > .content > .markdown > p, .wiki > .content > .fossil-doc > p,
671
+ .wiki > .content > ol, .wiki > .content > ul, .wiki > .content > .markdown > ol, .wiki > .content > .markdown > ul,
672
+ .artifact > .content > .markdown > p, .artifact > .content > .markdown > ol, .artifact > .content > .markdown > ul,
673
+ .doc > .content > .markdown > table, .wiki > .content > .markdown > table, .artifact > .content > .markdown > table {
674
+ margin-left: 30pt; margin-right: 30pt;
675
+ }
676
+ .doc > .content > pre, .doc > .content > .markdown > pre, .doc > .content > .fossil-doc > pre,
677
+ .wiki > .content > pre, .wiki > .content > .markdown > pre,
678
+ .artifact > .content > .markdown > pre { margin-left: 40pt; margin-right: 30pt; }
679
+ .forum > .content .markdown > pre { margin-left: 20pt; }
680
+ .doc > .content h1, .wiki .content h1, .artifact .content h1 { margin-left: 10pt; }
681
+ .doc > .content h2, .wiki .content h2, .artifact .content h2 { margin-left: 15pt; }
682
+ .doc > .content h3, .wiki .content h3, .artifact .content h3 { margin-left: 20pt; }
683
+ .doc > .content > blockquote, .wiki > .content > blockquote { margin-left: 50pt; }
684
+ .doc > .content > .markdown > blockquote, .wiki > .content > .markdown > blockquote { margin-left: 40pt; }
685
+ .content .pikchr-wrapper, div.pikchr-wrapper.indent:not(.source) { margin-left: 40pt; }
686
+ div.pikchr-wrapper.center:not(.source), div.pikchr-wrapper.float-right:not(.source) { margin-left: 0; }
687
+}
688
+
689
+/* Chat bubbles: messaging-app corners; your own messages, when Fossil puts
690
+ them on the right (its my-messages-right layout, the default in tall
691
+ windows), point the other way */
692
+body.chat .message-widget:not(.notification) .message-widget-content { border-radius: 12px 12px 12px 4px !important; }
693
+body.chat.my-messages-right .message-widget.mine .message-widget-content { border-radius: 12px 12px 4px 12px !important; }
694
+body.chat.my-messages-right .message-widget.mine .message-widget-tab { text-align: right; }
695
+
696
+/* Message options popup (click a message's header): one card, quiet
697
+ timestamps, buttons sized for touch */
698
+body.chat .chat-message-popup {
699
+ font-family: var(--font) !important; font-size: 0.9em !important;
700
+ background: var(--surface2) !important; border: 1px solid var(--border) !important;
701
+ border-radius: 10px !important; padding: 0.65em !important; gap: 0.45em;
702
+ box-shadow: 0 8px 24px rgb(var(--shadow-rgb) / var(--popup-shadow)) !important;
703
+ max-width: min(26rem, calc(100vw - 2rem));
704
+}
705
+body.chat .chat-message-popup > span { font-family: var(--mono); font-size: 0.85em; color: var(--muted); white-space: normal; }
706
+body.chat .chat-message-popup > .toolbar { border: none !important; gap: 0.4em; margin: 0 !important; flex-wrap: wrap; }
707
+body.chat .chat-message-popup > .toolbar > * { margin: 0 !important; }
708
+body.chat .chat-message-popup > .toolbar > button,
709
+body.chat .chat-message-popup > .toolbar > a {
710
+ flex: 1 1 auto; min-height: 36px; display: inline-flex; align-items: center; justify-content: center;
711
+ padding: 0.35em 0.8em; border: 1px solid var(--border); border-radius: 6px;
712
+ background: var(--surface); color: var(--text); font-family: var(--font); font-size: 1em; text-decoration: none;
713
+}
714
+body.chat .chat-message-popup > .toolbar > a { color: var(--link); }
715
+body.chat .chat-message-popup > .toolbar > button:hover,
716
+body.chat .chat-message-popup > .toolbar > a:hover { background: var(--btn-hover); border-color: var(--muted); text-decoration: none; }
717
+/* "Delete globally" removes the message for everyone */
718
+body.chat .chat-message-popup > div.toolbar:nth-of-type(1) > button:nth-child(2) { color: var(--red); }
719
+@media (pointer: coarse), (max-width: 600px) {
720
+ body.chat .chat-message-popup > .toolbar > button,
721
+ body.chat .chat-message-popup > .toolbar > a { min-height: 44px; }
722
+}
723
+
724
+/* Phones: the page itself never scrolls sideways */
725
+body.chat .chat-message-popup { z-index: 200 !important; }
726
+@media screen and (max-width: 600px) {
727
+ table.label-value td { white-space: normal !important; overflow-wrap: anywhere; }
728
+ table.label-value td .nobr, table.label-value td .nobr *,
729
+ td.tktDspValue .nobr, td.tktDspValue .nobr * { white-space: normal !important; word-break: break-all; }
730
+ .content table.sortable, .content table.report, .content table.userTable {
731
+ display: block; max-width: 100%; overflow-x: auto;
732
+ }
733
+ .title h1, .title .project-name { font-size: 1.3em; }
734
+}
735
+
736
+/* Hamburger menu. hbmenu.js toggles it instantly (data-anim-ms="0" in the
737
+ header); the skin slides it in. */
738
+@keyframes hb-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
739
+nav#hbdrop { animation: hb-in 160ms ease-out; top: var(--nav-bottom, 88px); }
740
+@media screen and (max-width: 600px), (pointer: coarse) {
741
+ /* A sheet from under the nav bar to the bottom of the screen, scrolling
742
+ on its own, with the page behind it held still */
743
+ nav#hbdrop {
744
+ bottom: 0; max-height: none; border-radius: 0; border-left: 0; border-right: 0;
745
+ overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
746
+ }
747
+ html:has(#hbdrop[style*="display: block"]) { overflow: hidden; }
748
+ /* Keep the nav bar, and its close button, on screen while the menu is open */
749
+ html:has(#hbdrop[style*="display: block"]) nav.mainmenu { position: sticky; top: 0; }
750
+ ul#sitemap ul li a { min-height: 44px; display: flex; align-items: center; }
751
+}
752
+@media (prefers-reduced-motion: reduce) { nav#hbdrop { animation: none; } }
753
+
754
+/* Menu bar: every item carries the 2px underline slot, transparent until
755
+ hover or active, so highlighting never changes any item's or the bar's height */
756
+.mainmenu a { border-bottom: 2px solid transparent; }
757
+.mainmenu a.active, .mainmenu a:hover { border-bottom-color: var(--active); }
758
+#hbbtn { line-height: 1.4; font-size: 1em; }
759
+
760
+/* Logo: show any repository's logo whole in the same 48px box (36px on
761
+ phones); a square logo looks exactly as before */
762
+div.logo img, img.logo-mark { object-fit: contain; }
763
+
764
+/* Menu bar as a flex row: the whitespace between items in the header no
765
+ longer leaves 4px gaps, so each underline meets the divider beside it */
766
+.mainmenu { display: flex; }
767
+.mainmenu a { flex: 0 0 auto; }
768
+
769
+/* Weekday above each timeline date. The line is reserved here, before any
770
+ script runs, so the rows already have their final height when Fossil
771
+ draws the timeline graph; a11y.js only fills in the name through
772
+ data-dow. (Inserting a line afterwards moved every row, and Fossil
773
+ redrew the graph a second later, so the nodes jumped.) */
774
+div.timelineDate::before {
775
+ content: attr(data-dow); display: block; min-height: 1.2em;
776
+ font-size: 0.8em; font-weight: 400; opacity: 0.85; line-height: 1.2; margin-bottom: 0.1em;
777
+}
778
+
779
+
780
+/* The chat's "Load..." bar: a small label over one row of buttons, without
781
+ the box Fossil's fieldset would draw around them */
782
+body.chat fieldset#load-msg-toolbar {
783
+ border: none !important; background: transparent !important;
784
+ padding: 0.5em 0 0 !important; margin: 0 0 1em !important;
785
+}
786
+body.chat #load-msg-toolbar > legend { font-size: 0.85em; color: var(--muted); padding: 0 0 0.35em; }
787
+body.chat #load-msg-toolbar > div { gap: 0.5em; }
788
+body.chat #load-msg-toolbar > div > button { border-radius: 6px; }
789
+
790
+
791
+/* ── Fixes from the page-by-page audit ─────────────────────────────────── */
792
+
793
+/* Fields Fossil emits with no type, or type="input" (forum title, ticket
794
+ e-mail), which the input[type=text] rule above does not match */
795
+input:not([type]), input[type=input] {
796
+ background: var(--input-bg); border: 1px solid var(--border); border-radius: 4px;
797
+ color: var(--text); font-family: var(--font); font-size: 1em; padding: 0.35em 0.6em;
798
+}
799
+input[type=file]::file-selector-button {
800
+ background: var(--surface2); border: 1px solid var(--border); border-radius: 4px;
801
+ color: var(--text); font-family: var(--font); font-size: 0.95em; padding: 0.35em 0.8em;
802
+ margin-right: 0.6em; cursor: pointer;
803
+}
804
+input[type=file]::file-selector-button:hover { background: var(--btn-hover); border-color: var(--muted); }
805
+
806
+/* Forum subjects may shrink below a long word on narrow screens. */
807
+@media screen and (max-width: 600px) {
808
+ body.forum td.subject { overflow-wrap: anywhere; }
809
+}
810
+
811
+/* Long hashes in titles and headings wrap instead of widening the page */
812
+.title, span.page-title, .content h1, .content h2, .content h3 { overflow-wrap: anywhere; }
813
+.title { min-width: 0; }
814
+.content :not(pre) > code { overflow-wrap: break-word; }
815
+.markdown p, .markdown li { overflow-wrap: break-word; }
816
+
817
+/* Rendered markdown looks the same wherever it appears (the wiki editor's
818
+ preview nests it deeper than the page does) */
819
+.markdown pre {
820
+ background-color: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 8px 10px;
821
+}
822
+.markdown p > code, .markdown li > code, .markdown td > code {
823
+ background-color: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: 0 4px;
824
+}
825
+
826
+/* Chat: a bubble holding an attachment stays inside its column */
827
+body.chat .message-widget-content { box-sizing: border-box; max-width: 100%; }
828
+body.chat .chat-message-popup > .toolbar { align-items: stretch; }
829
+body.chat .chat-message-popup > .toolbar > a { display: inline-flex; align-items: center; }
830
+
831
+/* Activity-report charts: a11y.js gives them a viewBox so they can shrink */
832
+.content svg.fit { max-width: 100%; height: auto; }
833
+
834
+/* Contrast: links on Fossil's colored rows, closed tickets in the timeline,
835
+ the fourth capability marker */
836
+body.report table.report tr[style*="background-color"] a,
837
+table.timelineTable td[style*="background"] a { color: var(--link-on-tint) !important; }
838
+td.tktTlClosed { color: var(--muted); }
839
+span.ueditInheritNobody { color: var(--green) !important; }
840
+
841
+/* Ticket view: a label alone in its row ("Description:") sits at the left,
842
+ like "User Comments:" below it */
843
+td.tktDspLabel:only-child { text-align: left; }
844
+
845
+/* Bare <table border="1"> (user categories, unversioned files) */
846
+.content table[border="1"] { border-collapse: collapse; border-color: var(--border); }
847
+.content table[border="1"] > * > tr > td, .content table[border="1"] > * > tr > th { border: 1px solid var(--border); padding: 4px 8px; }
848
+
849
+/* Lists Fossil marks list-style:none keep no bullets */
850
+.content ul[style*="list-style"] > li { list-style-type: inherit; }
851
+
852
+/* Main menu: the full bar on every screen. The menu button stays pinned at
853
+ the left while the entries scroll sideways beneath it, and a fade at the
854
+ right edge shows there is more. (Fossil would hide entries marked
855
+ desktoponly / wideonly on small screens; the display set on ".mainmenu a"
856
+ above keeps them, on purpose.) */
857
+#hbbtn {
858
+ position: sticky; left: 0; z-index: 2;
859
+ background: var(--surface) linear-gradient(var(--band-top), var(--surface));
860
+}
861
+.mainmenu::after {
862
+ content: ""; flex: 0 0 28px; position: sticky; right: 0; pointer-events: none;
863
+ background: var(--surface) linear-gradient(var(--band-top), var(--surface));
864
+ -webkit-mask-image: linear-gradient(to right, transparent, #000 85%); mask-image: linear-gradient(to right, transparent, #000 85%);
865
+}
866
+
867
+/* Phone menu sheet: top-level entries are destinations, so they read as
868
+ links in 44px rows */
869
+@media screen and (max-width: 600px), (pointer: coarse) {
870
+ ul#sitemap { padding: 0.5rem 1rem 1.5rem; }
871
+ ul#sitemap > li { margin: 0; border-bottom: 1px solid var(--rule); }
872
+ ul#sitemap > li > a {
873
+ display: flex; align-items: center; min-height: 44px; box-sizing: border-box;
874
+ font-size: 1em; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text);
875
+ }
876
+ ul#sitemap ul { margin: 0 0 0.4rem; }
877
+ ul#sitemap ul li a { box-sizing: border-box; min-height: 44px; padding-left: 1rem; color: var(--link); }
878
+
879
+ /* Touch targets */
880
+ .submenu a, .submenu label, .sectionmenu a { min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
881
+ input[type=text], input[type=password], input[type=email], input[type=search], input[type=number],
882
+ input:not([type]), input[type=input], select, input[type=submit], input[type=button], button {
883
+ min-height: 44px; box-sizing: border-box;
884
+ }
885
+ input[type=checkbox], input[type=radio] { width: 20px; height: 20px; }
886
+}
887
+
888
+@media screen and (max-width: 600px) {
889
+ /* A long unbroken word in a timeline row (a mirrored e-mail address as the
890
+ login, a path in the comment) wraps instead of widening the page */
891
+ table.timelineTable td.timelineModernCell, table.timelineTable td.timelineDetailCell,
892
+ .timelineModernComment, .timelineModernDetail,
893
+ .content table.timelineTable td.timelineModernCell * { overflow-wrap: anywhere; }
894
+
895
+ /* Forms and their fields never exceed the screen */
896
+ .content form { max-width: 100%; }
897
+ .content textarea, .content input:not([type=checkbox]):not([type=radio]), .content select { max-width: 100%; box-sizing: border-box; }
898
+ body.forum .content form { display: block; }
899
+
900
+ /* Markdown tables scroll inside themselves, like sortable tables */
901
+ .content table.md-table, .markdown table { display: block; max-width: 100%; overflow-x: auto; }
902
+
903
+ /* Ticket reports: one line per row inside the scrolling table */
904
+ .content table.report td { white-space: nowrap; }
905
+ .content table.report td:last-child { white-space: normal; min-width: 12em; max-width: 18em; }
906
+
907
+ /* Tickets: Fossil's label | value tables become label above value */
908
+ body.tkt .content form > table, body.tkt .content > table[cellpadding],
909
+ body.tkt .content form > table > tbody, body.tkt .content > table[cellpadding] > tbody,
910
+ body.tkt .content form > table > tbody > tr, body.tkt .content > table[cellpadding] > tbody > tr { display: block; }
911
+ body.tkt .content form > table > tbody > tr > td, body.tkt .content > table[cellpadding] > tbody > tr > td {
912
+ display: block; width: auto; text-align: left; padding: 2px 0;
913
+ }
914
+ body.tkt .content > table[cellpadding] > tbody > tr > td.tktDspLabel { padding: 12px 0 3px; font-size: 0.9em; color: var(--muted); }
915
+ body.tkt .content > table[cellpadding] > tbody > tr > td.tktDspValue { padding: 6px 10px; border-radius: 4px; min-height: 1.4em; overflow-wrap: anywhere; }
916
+ body.tkt .content form > table > tbody > tr > td:nth-child(3) { color: var(--muted); font-size: 0.9em; }
917
+ body.tkt .content form > table > tbody > tr > td[align=right] { padding-top: 12px; color: var(--muted); }
918
+
919
+ /* File ages: age and file on one line, the check-in below */
920
+ body.fileage .content table:not(.timelineTable), body.fileage .content table:not(.timelineTable) > * { display: block; }
921
+ body.fileage .content table:not(.timelineTable) tr { display: grid; grid-template-columns: 6.5em 1fr; border-bottom: 1px solid var(--rule); }
922
+ body.fileage .content table:not(.timelineTable) td { border: 0; overflow-wrap: anywhere; }
923
+ body.fileage .content table:not(.timelineTable) td:nth-child(3), body.fileage .content table:not(.timelineTable) th:nth-child(3) {
924
+ grid-column: 1 / -1; max-width: none; padding-top: 0; color: var(--muted); font-size: 0.9em;
925
+ }
926
+
927
+ /* Admin forms: tables that hold fields stack their cells */
928
+ body.setup .content table:not(.sortable):not([border]):has(input, textarea, select),
929
+ body.setup .content table:not(.sortable):not([border]):has(input, textarea, select) > tbody,
930
+ body.setup .content table:not(.sortable):not([border]):has(input, textarea, select) > tbody > tr,
931
+ body.setup .content table:not(.sortable):not([border]):has(input, textarea, select) > tbody > tr > td {
932
+ display: block; width: auto; max-width: 100%; text-align: left;
933
+ }
934
+ body.setup .content textarea { width: 100%; }
935
+ body.setup .content label { white-space: normal; }
936
+
937
+ /* Other wide admin tables scroll inside themselves; long option lists wrap */
938
+ .content table#capabilitySummary, .cpage-rcvfromlist .content > table { display: block; max-width: 100%; overflow-x: auto; }
939
+ .content tt, .cpage-secaudit0 .content li { overflow-wrap: anywhere; }
940
+
941
+ /* Forum replies: 10px a level instead of Fossil's 4ex, so deep threads keep
942
+ their shape and their width. Every level up to ten stays distinct. */
943
+ div.forumTime[style*="margin-left:"] { margin-left: 100px !important; }
944
+ div.forumTime[style*="left:4ex"] { margin-left: 10px !important; }
945
+ div.forumTime[style*="left:8ex"] { margin-left: 20px !important; }
946
+ div.forumTime[style*="left:12ex"] { margin-left: 30px !important; }
947
+ div.forumTime[style*="left:16ex"] { margin-left: 40px !important; }
948
+ div.forumTime[style*="left:20ex"] { margin-left: 50px !important; }
949
+ div.forumTime[style*="left:24ex"] { margin-left: 60px !important; }
950
+ div.forumTime[style*="left:28ex"] { margin-left: 70px !important; }
951
+ div.forumTime[style*="left:32ex"] { margin-left: 80px !important; }
952
+ div.forumTime[style*="left:36ex"] { margin-left: 90px !important; }
953
+ div.forumTime[style*="left:40ex"] { margin-left: 100px !important; }
954
+}
955
+
956
+/* Windows between phone and desktop width (a half-screen browser, a tablet):
957
+ the page never scrolls sideways there either. The same measures as on
958
+ phones, without the phone-only layout changes. */
959
+@media screen and (min-width: 601px) and (max-width: 1100px) {
960
+ table.label-value td { white-space: normal !important; overflow-wrap: anywhere; }
961
+ table.label-value td .nobr, table.label-value td .nobr *,
962
+ td.tktDspValue .nobr, td.tktDspValue .nobr * { white-space: normal !important; word-break: break-all; }
963
+ .content table.sortable, .content table.report, .content table.userTable, .content table.md-table, .markdown table,
964
+ .content table#capabilitySummary, .cpage-rcvfromlist .content > table {
965
+ display: block; max-width: 100%; overflow-x: auto;
966
+ }
967
+ .content form { max-width: 100%; }
968
+ .content textarea, .content input:not([type=checkbox]):not([type=radio]), .content select { max-width: 100%; box-sizing: border-box; }
969
+ body.forum .content form { display: block; }
970
+ .content tt, .cpage-secaudit0 .content li { overflow-wrap: anywhere; }
971
+ /* Ticket forms: label above field, as on phones */
972
+ body.tkt .content form > table, body.tkt .content form > table > tbody,
973
+ body.tkt .content form > table > tbody > tr { display: block; }
974
+ body.tkt .content form > table > tbody > tr > td { display: block; width: auto; text-align: left; padding: 2px 0; }
975
+ body.tkt .content form > table > tbody > tr > td:nth-child(3) { color: var(--muted); font-size: 0.9em; }
976
+ body.tkt .content form > table > tbody > tr > td[align=right] { padding-top: 12px; color: var(--muted); }
977
+}
978
+
979
+/* A long unbroken word in any timeline entry (a wiki page named after a
980
+ full hash, a path, an e-mail address as login) wraps at every width */
981
+.content table.timelineTable td[class$="Cell"], .content table.timelineTable td[class$="Cell"] *,
982
+.content table.timelineTable span[class*="Comment"], .content table.timelineTable span[class*="Comment"] *,
983
+.content table.timelineTable span[class*="Detail"], .content table.timelineTable span[class*="Detail"] * { overflow-wrap: anywhere; }
984
+
985
+/* Login page on phones: fields stack under their labels, and the anonymous
986
+ login's ASCII-art captcha scrolls inside its own box */
987
+@media screen and (max-width: 600px) {
988
+ table.login_out, table.login_out > tbody, table.login_out > tbody > tr,
989
+ table.login_out > tbody > tr > td { display: block; width: auto; text-align: left; }
990
+ table.login_out input[type=text], table.login_out input[type=password] { width: 100%; box-sizing: border-box; }
991
+ .content table.captcha, .content div.captcha { display: block; max-width: 100%; overflow-x: auto; }
992
+}
--- a/skins/refined-dark/css.txt
+++ b/skins/refined-dark/css.txt
@@ -0,0 +1,992 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- a/skins/refined-dark/css.txt
+++ b/skins/refined-dark/css.txt
@@ -0,0 +1,992 @@
1 /* Refined Dark skin
2 A dark rendering of Fossil's default skin: same layout, same sizes, same
3 menu band and submenu row. Colors are chosen for WCAG AA contrast on a
4 near-black page: body text 13:1, muted text 7:1, links 7:1.
5 Functional dark-theme overrides for Fossil's hardcoded light colors
6 (timeline graph, diffs, chat, forum, tickets) are kept at the end.
7 Uses system fonts; no external font resources are needed. */
8
9
10 :root {
11 --bg: #1c1e22; /* page */
12 --surface: #272a30; /* menu band, cards, code blocks */
13 --surface2: #31353d; /* hover states, selected rows */
14 --border: #41454e;
15 --text: #e8e9eb; /* 13:1 on --bg */
16 --muted: #b3b8c0; /* 7.3:1 on --bg */
17 --link: #7fb6ef; /* 7.2:1 on --bg; Fossil default's #3779BF, lightened */
18 --link-hover: #a3cbf5;
19 --link-on-tint: var(--link); /* links on Fossil's colored rows */
20 --title: #8cbdf0; /* project title, like the default's #4183C4 */
21 --active: #f08a3c; /* active menu underline; default's #D26911, lightened */
22 --green: #6fd48f;
23 --red: #f08a7e;
24 --yellow: #f2c94c;
25 --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
26 --mono: ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
27 color-scheme: dark;
28 --input-bg: #15171a; --on-accent: #0b0d10; --visited: #a6b8e8;
29 --sel-bg: #4a3a2a; --sec-bg: #2a3a4a; --stripe: #2b2e34; --rule: #2c2f35;
30 --btn-hover: #3b4049; --band-top: #2d3037; --warn-bg: #3a2f12; --err-bg: #3a2220;
31 --green-rgb: 111 212 143; --red-rgb: 240 138 126; --yellow-rgb: 242 201 76;
32 --link-rgb: 127 182 239; --teal-rgb: 79 209 197; --violet-rgb: 140 150 240;
33 --muted-rgb: 179 184 192; --veil-rgb: 28 30 34; --lift-rgb: 255 255 255; --shadow-rgb: 0 0 0;
34 --tint-rgb: 39 42 48; --tint-mute: 0.4; --chat-mute: 0.3; --bubble-shadow: 0.35; --popup-shadow: 0.5;
35 }
36
37 /* Base, matching the default skin's sizing */
38 body {
39 box-sizing: border-box;
40 min-height: 100vh;
41 min-height: 100dvh;
42 display: flex;
43 flex-direction: column;
44 margin: 0 auto;
45 background-color: var(--bg);
46 color: var(--text);
47 font-family: var(--font);
48 font-size: 16px;
49 line-height: 1.45;
50 }
51 a { color: var(--link); text-decoration: none; }
52 a:hover { color: var(--link-hover); text-decoration: underline; }
53 a:visited { color: var(--visited); }
54 code, pre, tt, kbd, samp, var { font-family: var(--mono); }
55 code, tt, kbd, samp { font-size: 0.94em; }
56 pre { font-size: 0.92em; line-height: 1.35; overflow-x: auto; }
57 hr { border: none; border-top: 1px solid var(--border); }
58 blockquote { border-left: 3px solid var(--border); margin: 0.5em 0; padding: 0.1em 1em; }
59 img { max-width: 100%; }
60
61 /* Title area above the menu bar */
62 header { display: flex; align-items: center; gap: 14px; padding: 14px 0 12px; }
63 .skip-nav {
64 position: absolute; top: -100%; left: 0;
65 background: var(--link); color: var(--on-accent);
66 padding: 0.5rem 1.25rem; font-weight: 600; z-index: 9999;
67 border-radius: 0 0 6px 0;
68 }
69 .skip-nav:focus { top: 0; outline: 2px solid #fff; outline-offset: -4px; }
70
71 div.logo { display: flex; flex-shrink: 0; }
72 div.logo img, img.logo-mark { width: 48px; height: 48px; object-fit: cover; display: block; border-radius: 6px; }
73 .hub-link:hover img { opacity: 0.85; }
74
75 .title { min-width: 0; color: var(--title); line-height: 1.2; }
76 .title h1, .title .project-name {
77 display: inline;
78 font-size: 2.2em;
79 font-weight: bold;
80 color: var(--title);
81 text-decoration: none;
82 }
83 .title .project-name:hover { color: var(--link-hover); text-decoration: none; }
84 .title h1:after, .title .project-name:after {
85 content: " / "; color: var(--muted); font-weight: normal;
86 }
87 span.page-title { font-size: 18px; color: var(--text); }
88 /* Hidden from view but not display:none: Fossil's forum script sizes its
89 expand control from the height of the first h1 on the page, and loops
90 forever if that height is 0. This also keeps the heading for screen readers. */
91 h1.page-title {
92 font-size: 1.6em; color: var(--text);
93 display: block; position: absolute; width: 1px; margin: 0; padding: 0;
94 overflow: hidden; clip-path: inset(50%); white-space: nowrap;
95 }
96 /* Home pages carry their own heading; Fossil's "index" / "Home" title is noise */
97 h1.page-title.home-title { display: none !important; }
98 /* Long document titles go in the body instead of the title bar */
99 .artifact h1.page-title, .dir h1.page-title, .doc h1.page-title, .wiki h1.page-title {
100 position: static; width: auto; overflow: visible; clip-path: none; white-space: normal;
101 margin: revert; margin-bottom: 0;
102 }
103 .artifact .title > .page-title, .dir .title > .page-title,
104 .doc .title > .page-title, .wiki .title > .page-title { display: none; }
105 /* ...unless the page opens with a heading of its own (a wiki page's first
106 heading, "History of ...", "Files in ..."): the title would say it twice */
107 body:has(div.content > :is(h1, h2):first-child, div.content > span:first-child + :is(h1, h2),
108 div.content > :is(.markdown, .fossil-doc) > :is(h1, h2):first-child,
109 div.content > span:first-child + :is(.markdown, .fossil-doc) > :is(h1, h2):first-child) h1.page-title {
110 position: absolute; width: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
111 }
112 .artifact .title h1:after, .dir .title h1:after, .doc .title h1:after, .wiki .title h1:after,
113 .artifact .title .project-name:after, .dir .title .project-name:after,
114 .doc .title .project-name:after, .wiki .title .project-name:after { content: ""; }
115
116 .status { margin-left: auto; font-size: 0.9em; }
117 .status a { color: var(--muted); }
118 .status a:hover { color: var(--text); }
119
120 /* Main menu band */
121 .mainmenu {
122 clear: both;
123 background: var(--surface) linear-gradient(var(--band-top), var(--surface)) repeat-x;
124 border: 1px solid var(--border);
125 border-radius: 5px;
126 overflow-x: auto;
127 overflow-y: hidden;
128 white-space: nowrap;
129 z-index: 21;
130 }
131 .mainmenu a {
132 display: inline-block;
133 line-height: 1.4;
134 color: var(--muted);
135 text-decoration: none;
136 border-right: 1px solid var(--border);
137 font-weight: 500;
138 }
139 .mainmenu a.active, .mainmenu a:hover {
140 color: var(--text);
141 border-bottom: 2px solid var(--active);
142 text-decoration: none;
143 }
144 #hbbtn { font-size: 1.15em; min-width: 44px; text-align: center; }
145 #hbbtn[aria-expanded="true"] { color: var(--text); background: var(--surface2); }
146
147 /* Hamburger dropdown (hbmenu.js toggles display; a11y.js sets --nav-bottom) */
148 nav#hbdrop {
149 background-color: var(--surface);
150 border: 1px solid var(--border);
151 border-top: none;
152 border-radius: 0 0 0.5em 0.5em;
153 display: none;
154 font-size: 0.95em;
155 position: fixed;
156 top: var(--nav-bottom, 88px);
157 left: 0; right: 0;
158 z-index: 200;
159 box-shadow: 0 8px 24px rgb(var(--shadow-rgb) / 0.5);
160 overflow-x: hidden;
161 max-height: 75vh;
162 overflow-y: auto;
163 }
164 ul#sitemap {
165 padding: 1.25rem 1.5rem 1.5rem;
166 margin: 0;
167 list-style: none;
168 column-width: 14em;
169 column-gap: 2.5rem;
170 }
171 ul#sitemap > li {
172 list-style: none;
173 margin: 0 0 1.1rem;
174 break-inside: avoid;
175 }
176 ul#sitemap > li > a {
177 display: inline-block;
178 font-size: 0.78em;
179 font-weight: 600;
180 letter-spacing: 0.06em;
181 text-transform: uppercase;
182 color: var(--muted);
183 padding: 0.3rem 0;
184 }
185 ul#sitemap > li > a:hover { color: var(--text); text-decoration: none; }
186 ul#sitemap ul { margin: 0.15rem 0 0; padding: 0; list-style: none; }
187 ul#sitemap ul li { list-style: none; }
188 ul#sitemap ul li a {
189 display: flex; align-items: center; box-sizing: border-box; /* text stays centered at any row height */
190 color: var(--text);
191 padding: 0.3rem 0.6rem;
192 margin-left: -0.6rem;
193 border-radius: 4px;
194 min-height: 36px;
195 }
196 ul#sitemap ul li a:hover { background: var(--surface2); color: var(--link-hover); text-decoration: none; }
197 nav#hbdrop ul#sitemap { column-width: 14em; }
198 ul#sitemap.columns { overflow-x: hidden; }
199
200 /* Submenu row, like the default: a horizontal strip under the menu band */
201 .submenu, .sectionmenu {
202 font-size: 0.9em;
203 padding: 8px 0;
204 margin-bottom: 4px;
205 border-bottom: 1px solid var(--border);
206 display: flex;
207 flex-wrap: wrap;
208 align-items: center;
209 gap: 0.25rem 0.5rem;
210 }
211 .submenu a, .submenu label, .sectionmenu a {
212 padding: 6px 10px;
213 text-decoration: none;
214 color: var(--link);
215 border: 1px solid transparent;
216 border-radius: 5px;
217 white-space: nowrap;
218 }
219 .submenu > a:first-child { margin-left: -10px; }
220 .submenu a:hover, .submenu label:hover, .sectionmenu a:hover {
221 border-color: var(--border);
222 background: var(--surface);
223 color: var(--text);
224 text-decoration: none;
225 }
226 span.submenuctrl, span.submenuctrl input, select.submenuctrl { color: var(--muted); }
227 span.submenuctrl { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.35rem; }
228 .submenuckbox { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text); cursor: pointer; }
229 .submenu select, .submenu input[type=text], .sectionmenu select, .sectionmenu input[type=text] {
230 width: auto;
231 font-size: 0.95em;
232 padding: 0.3em 0.5em;
233 }
234 .submenu select, .sectionmenu select { padding-right: 1.9em; }
235 .section {
236 font-size: 1em; font-weight: bold;
237 background-color: var(--surface);
238 border: 1px solid var(--border);
239 border-radius: 3px 3px 0 0;
240 padding: 9px 10px 10px;
241 margin: 10px 0;
242 }
243 .sectionmenu {
244 border: 1px solid var(--border);
245 border-radius: 0 0 3px 3px;
246 border-top: 0;
247 margin-top: -10px;
248 margin-bottom: 10px;
249 }
250
251 /* Content */
252 .content { padding: 12px 0; color: var(--text); }
253 .content h1 { font-size: 1.60em; color: var(--text); }
254 .content h2 { font-size: 1.45em; color: var(--text); }
255 .content h3 { font-size: 1.15em; color: var(--text); }
256 .content h4 { font-size: 1.05em; color: var(--text); }
257 .content h5 { font-size: 1.00em; color: var(--text); }
258 .content pre, table.numbered-lines > tbody > tr { hyphens: none; line-height: 1.3; }
259 .content ul:not(.browser) > li { list-style-type: disc; }
260 div.filetree ul li.dir, div.filetree ul li.subdir, div.filetree ul li.file { list-style-type: none; }
261 th { text-align: left; }
262
263 /* User content: wiki, embedded docs, forum posts */
264 .markdown blockquote, p.blockquote, .sidebar {
265 background-color: var(--surface);
266 border-left: 4px solid var(--link);
267 }
268 div.sidebar { outline: 1em solid var(--bg); }
269 .artifact > .content > p > code, .artifact > .content > .markdown > p > code, .artifact > .content > .fossil-doc > p > code,
270 .dir > .content > p > code, .dir > .content > .markdown > p > code,
271 .doc > .content > p > code, .doc > .content > .markdown > p > code, .doc > .content > .fossil-doc > p > code,
272 .forum > .content .markdown > p > code,
273 .wiki > .content > p > code, .wiki > .content > .markdown > p > code, .wiki > .content > .fossil-doc > p > code,
274 .content li > code, .content td > code {
275 background-color: var(--surface);
276 border: 1px solid var(--border);
277 border-radius: 3px;
278 padding: 0 4px;
279 }
280 .artifact > .content > pre, .artifact > .content > .markdown > pre, .artifact > .content > .fossil-doc > pre,
281 .dir > .content > pre, .dir > .content > .markdown > pre,
282 .doc > .content > pre, .doc > .content > .markdown > pre, .doc > .content > .fossil-doc > pre,
283 .forum > .content .markdown > pre,
284 .wiki > .content > pre, .wiki > .content > .markdown > pre, .wiki > .content > .fossil-doc > pre,
285 pre.verbatim, pre.textPlain {
286 background-color: var(--surface);
287 border: 1px solid var(--border);
288 border-radius: 4px;
289 padding: 8px 10px;
290 }
291 pre.verbatim { white-space: pre-wrap; }
292 .artifact > .content table, .dir > .content table, .doc > .content table, .wiki > .content table,
293 .forum > .content .markdown table {
294 background-color: var(--surface);
295 border: 1px solid var(--border);
296 border-radius: 0.5em;
297 border-spacing: 0;
298 padding: 6px;
299 }
300 .artifact > .content th, .dir > .content th, .doc > .content th, .wiki > .content th,
301 .forum > .content .markdown th {
302 border-bottom: 1px solid var(--border);
303 background-color: var(--surface2);
304 padding: 4px 6px;
305 }
306 .artifact > .content tr:nth-child(odd) td, .dir > .content tr:nth-child(odd) td,
307 .doc > .content tr:nth-child(odd) td, .wiki > .content tr:nth-child(odd) td {
308 background-color: var(--stripe);
309 }
310 .artifact > .content td, .dir > .content td, .doc > .content td, .wiki > .content td,
311 .forum > .content .markdown td { padding: 4px 6px; }
312 textarea.wikiedit { font-size: 1.1em; }
313
314 /* Forms */
315 input[type=text], input[type=password], input[type=email], input[type=search],
316 input[type=number], textarea, select {
317 background: var(--input-bg);
318 border: 1px solid var(--border);
319 border-radius: 4px;
320 color: var(--text);
321 font-family: var(--font);
322 font-size: 1em;
323 padding: 0.35em 0.6em;
324 }
325 textarea { font-family: var(--mono); }
326 select {
327 appearance: none;
328 -webkit-appearance: none;
329 padding-right: 2em;
330 line-height: 1.3;
331 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23b3b8c0' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
332 background-repeat: no-repeat;
333 background-position: right 0.6em center;
334 background-size: 12px;
335 cursor: pointer;
336 }
337 select:hover { border-color: var(--muted); }
338 select option { background: var(--input-bg); color: var(--text); }
339 input:focus, textarea:focus, select:focus { border-color: var(--link); outline: none; }
340 input[type=submit], input[type=button], button {
341 background: var(--surface2);
342 border: 1px solid var(--border);
343 border-radius: 4px;
344 color: var(--text);
345 cursor: pointer;
346 font-family: var(--font);
347 font-size: 1em;
348 padding: 0.35em 1em;
349 }
350 input[type=submit]:hover, input[type=button]:hover, button:hover {
351 border-color: var(--muted);
352 background: var(--btn-hover);
353 }
354 input[type=submit]:disabled, input[type=button]:disabled, button:disabled { opacity: 0.5; cursor: not-allowed; }
355 :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
356 .mainmenu a:focus-visible { outline-offset: -3px; }
357
358 /* Let short pages fill the viewport without overlaying long content. */
359 body > .content { flex: 1 0 auto; min-width: 0; }
360 body > header, body > nav, body > footer { flex-shrink: 0; }
361
362 /* Footer */
363 footer {
364 border-top: 1px solid var(--border);
365 padding: 10px;
366 font-size: 0.85em;
367 margin-top: 10px;
368 color: var(--muted);
369 display: flex;
370 justify-content: space-between;
371 flex-wrap: wrap;
372 gap: 0.5rem;
373 }
374
375 /* Forum */
376 .forum a:visited { color: var(--visited); }
377 div.forumSel {
378 animation: 1s linear 0s sel-fade;
379 background-color: var(--bg);
380 border-left: 4px solid var(--link);
381 }
382 @keyframes sel-fade { from { background-color: var(--surface2); } to { background-color: var(--bg); } }
383 .forum form input { margin: 0.5em 0; }
384 div.forumTime, div.forumHier, div.forumHierRoot {
385 background: var(--surface) !important;
386 border: 1px solid var(--border) !important;
387 border-radius: 4px;
388 color: var(--text) !important;
389 }
390 div.forumTime.forumSel, div.forumHier.forumSel { border-color: var(--link) !important; }
391 div.forumObs { opacity: 0.75; }
392 div.forumPostBody, div.forumPostBody h1, div.forumPostBody h2, div.forumPostBody h3 { color: var(--text) !important; }
393 .forum-post-collapser {
394 border-color: var(--border) !important;
395 background: var(--surface) !important;
396 color: var(--muted) !important;
397 }
398 .forum-post-collapser:hover { background: var(--surface2) !important; color: var(--text) !important; }
399 div.searchForm { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1em 0; }
400
401 /* Tickets and reports */
402 table.report { cursor: auto; border: 1px solid var(--border); border-radius: 0.5em; margin: 1em 0; }
403 .report td, .report th { border: 0; font-size: 0.9em; padding: 8px 10px; }
404 .report th { cursor: pointer; background: var(--surface); }
405 .report thead + tbody tr:hover { background-color: var(--surface2) !important; }
406 body.report table.report tr td { color: var(--text) !important; }
407 body.report table.report a { color: var(--link) !important; }
408 td.tktDspLabel { width: 70px; text-align: right; overflow: hidden; color: var(--muted) !important; }
409 td.tktDspValue {
410 text-align: left; vertical-align: top;
411 background-color: var(--surface) !important;
412 border: 1px solid var(--border) !important;
413 color: var(--text) !important;
414 }
415 td.tktDspValue pre { white-space: pre-wrap; }
416
417 /* Timeline */
418 span.timelineDetail { font-size: 90%; }
419 div.timelineDate { font-weight: bold; white-space: nowrap; color: var(--muted); }
420 table.timelineTable { padding: 0 3px; }
421 table.timelineTable tr { border-radius: 1em; }
422 .timelineModernCell, .timelineColumnarCell, .timelineDetailCell { border-radius: 0.5em; }
423 .timelineModernCell[id], .timelineColumnarCell[id], .timelineDetailCell[id] { background-color: var(--surface); }
424 .timelineModernDetail { opacity: 1; color: var(--muted); font-size: 0.9em; }
425 .timelineModernComment { color: var(--text); }
426 td.timelineTime { color: var(--muted); font-family: var(--mono); font-size: 0.9em; white-space: nowrap; }
427 span.timelineHash { font-family: var(--mono); }
428 tr.timelineSelected, tr.timelineSecondary { background-color: unset; }
429 tr.timelineSelected td, span.timelineSelected { background-color: var(--sel-bg) !important; }
430 tr.timelineSecondary td, span.timelineSecondary { background-color: var(--sec-bg) !important; }
431 tr.timelineCurrent td:first-child, tr.timelineSecondary td:first-child, tr.timelineSelected td:first-child {
432 border-top-left-radius: 1em; border-bottom-left-radius: 1em;
433 }
434 tr.timelineCurrent td:last-child, tr.timelineSecondary td:last-child, tr.timelineSelected td:last-child {
435 border-top-right-radius: 1em; border-bottom-right-radius: 1em;
436 }
437 tr.timelineCurrent td { border-top: 1px dashed var(--muted); border-bottom: 1px dashed var(--muted); }
438 tr.timelineCurrent td:first-child { border-left: 1px dashed var(--muted); }
439 tr.timelineCurrent td:last-child { border-right: 1px dashed var(--muted); }
440
441 /* Timeline graph: Fossil hardcodes black lines and white nodes */
442 .tl-node { background: var(--link) !important; border-color: var(--text) !important; }
443 .tl-node.leaf:after { background: var(--bg) !important; }
444 .tl-node.closed-leaf svg { color: var(--bg) !important; }
445 .tl-line { background-color: var(--muted); }
446 .tl-line.warp { background: var(--yellow) !important; }
447 .tl-line.cherrypick.h { border-top-color: var(--muted) !important; background: transparent !important; }
448 .tl-line.cherrypick.v, .tl-line.dotted.v { border-left-color: var(--muted) !important; background: transparent !important; }
449 .tl-arrow.u, .tl-arrow.u.sm { border-bottom-color: var(--muted) !important; }
450 .tl-arrow.merge.l, .tl-arrow.cherrypick.l { border-right-color: var(--muted) !important; }
451 .tl-arrow.merge.r, .tl-arrow.cherrypick.r { border-left-color: var(--muted) !important; }
452 .tl-arrow.warp { border-left-color: var(--yellow) !important; }
453 /* Branch colors are pastel inline backgrounds; darken them so text stays readable */
454 /* Branch and user tints come from Fossil, already sized for this foreground */
455 .tl-tooltip {
456 background: var(--surface2) !important; color: var(--text) !important;
457 border-color: var(--border) !important; box-shadow: 0 4px 16px rgb(var(--shadow-rgb) / 0.5) !important;
458 }
459
460 /* Lists and tables Fossil generates */
461 table.sortable th, table.filelistTable th, .fileage th {
462 text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); cursor: pointer;
463 }
464 table.sortable td, table.filelistTable td, .fileage td { padding: 5px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
465 table.sortable tr:hover td, .fileage tr:hover, div.filetreeline:hover { background: var(--surface) !important; }
466 body.branch .brlist > table > tbody > tr:hover:not(.selected) { background: var(--surface) !important; }
467 body.branch .brlist > table > tbody > tr.selected { background: var(--surface2) !important; }
468 .branch-name, span.tagDsp {
469 display: inline-block; background: var(--surface2); border: 1px solid var(--border);
470 border-radius: 3px; color: var(--link); font-family: var(--mono); font-size: 0.85em; padding: 0 0.3em;
471 }
472
473 /* Diffs: Fossil's built-in colors are pale pastels */
474 table.diff { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.9em; }
475 td.difflnc, td.difflna, td.difflnb { color: var(--muted); padding: 0 0.5em; text-align: right; user-select: none; border-right: 1px solid var(--border); }
476 td.difftext { padding: 0 0.5em; white-space: pre; }
477 tr.diffskip, tr.diffskip.jchunk { background: var(--surface) !important; }
478 tr.diffskip > td.chunkctrl .jcbutton { background: var(--surface2) !important; color: var(--muted) !important; border-radius: 3px; }
479 tr.diffskip > td.chunkctrl .jcbutton:hover { color: var(--text) !important; }
480 td.diffmkrl, td.diffmkrr, td.diffmkru { color: var(--muted); }
481 tr.diffadd td { background: rgb(var(--green-rgb) / 0.10); }
482 tr.diffrm td { background: rgb(var(--red-rgb) / 0.10); }
483 tr.diffchng td { background: rgb(var(--yellow-rgb) / 0.07); }
484 span.diffadd { color: var(--green); }
485 span.diffrm { color: var(--red); }
486 span.diffchng { color: var(--yellow); }
487 td.diffln ins, td.difftxt ins, table.diff pre > ins { background-color: rgb(var(--green-rgb) / 0.16) !important; }
488 td.diffln del, td.difftxt del, table.diff pre > del { background-color: rgb(var(--red-rgb) / 0.16) !important; }
489 td.difftxt del > del, table.diff pre > del > del { background-color: rgb(var(--red-rgb) / 0.32) !important; }
490 td.difftxt ins > ins, table.diff pre > ins > ins { background-color: rgb(var(--green-rgb) / 0.32) !important; }
491 td.difftxt del > del.edit, td.difftxt ins > ins.edit,
492 table.diff pre > del > del.edit, table.diff pre > ins > ins.edit { background-color: rgb(var(--link-rgb) / 0.25) !important; }
493
494 /* Annotate / blame: inline pastel backgrounds from Fossil JS */
495 td.annotateDate, td.annotateUser { color: var(--muted); font-family: var(--mono); font-size: 0.85em; padding: 0 0.5em; white-space: nowrap; border-right: 1px solid var(--border); }
496 pre span[style*="background"], li span[style*="background"] {
497 background-image: linear-gradient(rgb(var(--veil-rgb) / 0.7), rgb(var(--veil-rgb) / 0.7)) !important;
498 border-radius: 3px; padding: 0.1em 0.25em;
499 }
500
501 /* Any inline pastel background Fossil emits (ticket reports and their key,
502 ticket pages, annotate legends, branch lists): darken it, keep the hue */
503 tr[style*="background-color"], td[style*="background-color"], th[style*="background-color"],
504 span[style*="background-color"], div[style*="background-color"], p[style*="background-color"] {
505 background-image: linear-gradient(rgb(var(--veil-rgb) / var(--veil, 0.35)), rgb(var(--veil-rgb) / var(--veil, 0.35))) !important;
506 color: var(--text);
507 }
508 tr[style*="background-color"] a, td[style*="background-color"] a, p[style*="background-color"] a { color: var(--link); }
509 /* @dark-only: the light skin keeps Fossil's own ticket colors */
510 /* Fossil's standard ticket status colors, mapped to tints instead of the generic overlay:
511 active / review / fixed / tested / deferred / closed / key label */
512 tr[style*="#f2dcdc" i], td[style*="#f2dcdc" i], th[style*="#f2dcdc" i] { background-image: none !important; background-color: rgb(var(--red-rgb) / 0.22) !important; }
513 tr[style*="#e8e8bd" i], td[style*="#e8e8bd" i], th[style*="#e8e8bd" i] { background-image: none !important; background-color: rgb(var(--yellow-rgb) / 0.20) !important; }
514 tr[style*="#e8e8e8" i], td[style*="#e8e8e8" i], th[style*="#e8e8e8" i] { background-image: none !important; background-color: rgb(var(--yellow-rgb) / 0.14) !important; }
515 tr[style*="#cfe8bd" i], td[style*="#cfe8bd" i], th[style*="#cfe8bd" i] { background-image: none !important; background-color: rgb(var(--green-rgb) / 0.20) !important; }
516 tr[style*="#bde5d6" i], td[style*="#bde5d6" i], th[style*="#bde5d6" i] { background-image: none !important; background-color: rgb(var(--teal-rgb) / 0.20) !important; }
517 tr[style*="#cacae5" i], td[style*="#cacae5" i], th[style*="#cacae5" i] { background-image: none !important; background-color: rgb(var(--violet-rgb) / 0.24) !important; }
518 tr[style*="#c8c8c8" i], td[style*="#c8c8c8" i], th[style*="#c8c8c8" i] { background-image: none !important; background-color: rgb(var(--lift-rgb) / 0.05) !important; }
519 tr[style*="#ffffff" i], td[style*="#ffffff" i], th[style*="#ffffff" i] { background-image: none !important; background-color: transparent !important; }
520 table.report tr[style*="background-color"]:hover td { background-image: linear-gradient(rgb(var(--lift-rgb) / 0.05), rgb(var(--lift-rgb) / 0.05)) !important; }
521 table.report td[style*="#ffffff" i], table.report tr[style*="#ffffff" i] td { color: var(--muted); }
522 /* @end-dark-only */
523 p[style*="border:1px solid"] { border-color: var(--border) !important; border-radius: 4px; padding: 0.6em 0.8em; }
524 /* Pikchr: Fossil already draws white defaults because skin-detail is white-foreground; leave diagrams alone */
525
526 /* Fossil's user and branch colors, muted toward the surface so they sit with the skin */
527 table.timelineTable td[style*="background"] {
528 background-image: linear-gradient(rgb(var(--tint-rgb) / var(--tint-mute)), rgb(var(--tint-rgb) / var(--tint-mute))) !important;
529 }
530 body.chat .message-widget-content[style*="background"] {
531 background-image: linear-gradient(rgb(var(--tint-rgb) / var(--chat-mute)), rgb(var(--tint-rgb) / var(--chat-mute))) !important;
532 }
533 body.chat .message-widget-tab[style*="background"] { background-image: none !important; }
534 body.chat .message-widget-content { box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / var(--bubble-shadow)) !important; }
535
536 /* Misc Fossil UI elements with hardcoded light colors */
537 div.debug { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--muted) !important; padding: 0.75rem; }
538 /* Inline debug markers, e.g. "(artifact-NNN)" on forum posts for admins: just quieter text */
539 span.debug { background: none !important; border: none !important; padding: 0 !important; color: var(--muted) !important; font-size: 0.85em; }
540 span.debug a { color: var(--muted); }
541 span.debug a:hover { color: var(--link); }
542 span.error { background: rgb(var(--yellow-rgb) / 0.18) !important; color: var(--yellow) !important; padding: 0.1em 0.25em; border-radius: 3px; }
543 mark { background: rgb(var(--yellow-rgb) / 0.25); color: var(--text); padding: 0.1em 0.25em; border-radius: 3px; }
544 div.sideboxTitle { color: var(--title); font-weight: 600; }
545 div.sidebox { background: var(--surface); border: 1px solid var(--border) !important; border-radius: 4px; margin: 0 0 1em 1.5em; padding: 0.75em; }
546 .disabled { color: var(--red); }
547 .modpending { color: var(--yellow); }
548 .fossil-tooltip.help-buttonlet-content { background-color: var(--surface2); color: var(--text); border: 1px solid var(--border); }
549 .fossil-tooltip { background: var(--surface2) !important; color: var(--text) !important; border-color: var(--border) !important; }
550 td.capsumRead { background: rgb(var(--green-rgb) / 0.15) !important; color: var(--green); }
551 td.capsumWrite { background: rgb(var(--yellow-rgb) / 0.15) !important; color: var(--yellow); }
552 td.capsumOff { background: rgb(var(--muted-rgb) / 0.1) !important; color: var(--muted); }
553 table.login_out { margin: 1em 0; }
554 td.login_out_label { color: var(--muted); padding: 0.4em 0.75em 0.4em 0; }
555 .help-buttonlet { color: var(--link); cursor: pointer; }
556
557 /* Status text Fossil colors pure red / blue / black */
558 span.disabled, span.wikiError, span.loginError, span.tktError, span.brokenlink, span.thTrace,
559 p.generalError, p.tktsetupError, p.xfersetupError, p.thmainError, p.reportError, blockquote.reportError,
560 pre.th1error, span.ueditInheritDeveloper, td.tktTlOpen,
561 div.markdown ol.footnotes > li.fn-misreference > span, div.markdown ol.footnotes > li.fn-unreferenced > code,
562 div.markdown sup.noteref.misref, div.markdown sup.noteref.misref > a { color: var(--red) !important; }
563 span.ueditInheritAnonymous, p.missingPriv, p.noMoreShun, p.shunned { color: var(--link) !important; }
564 span.ueditInheritReader { color: var(--text) !important; }
565 blockquote.reportError, p.generalError { background: rgb(var(--red-rgb) / 0.1); border: 1px solid rgb(var(--red-rgb) / 0.4); border-radius: 4px; padding: 0.6em 0.8em; }
566 /* Fossil also puts class="error" on <body> and colors it yellow; keep the page as it is */
567 body.error, body.warning { background: var(--bg) !important; color: var(--text) !important; }
568 .error:not(body), .warning:not(body) { background: rgb(var(--yellow-rgb) / 0.18) !important; color: var(--yellow) !important; border-radius: 3px; padding: 0.1em 0.3em; }
569 table.numbered-lines td.line-numbers span.selected-line { color: var(--text) !important; background-color: rgb(var(--link-rgb) / 0.22) !important; }
570 .fossil-toast-message { background: var(--surface2) !important; color: var(--text) !important; border: 1px solid var(--border) !important; border-radius: 6px !important; box-shadow: 0 8px 24px rgb(var(--shadow-rgb) / 0.5) !important; }
571 .fossil-toast-message.error, .fossil-toast-message.warning { background: var(--warn-bg) !important; color: var(--yellow) !important; border-color: var(--yellow) !important; }
572 .fossil-toast-message.error { color: var(--red) !important; border-color: var(--red) !important; background: var(--err-bg) !important; }
573
574 /* Wiki / file editor tabs */
575 .tab-container .tab-bar { display: flex; flex-wrap: wrap; gap: 0.25rem; border-bottom: 1px solid var(--border); }
576 .tab-container .tab-button {
577 padding: 0.4em 0.9em; border: 1px solid transparent; border-bottom: none; border-radius: 5px 5px 0 0;
578 background: transparent; color: var(--muted); font-family: var(--font); font-size: 0.95em; cursor: pointer; margin-bottom: -1px;
579 }
580 .tab-container .tab-button:hover { color: var(--text); background: var(--surface); }
581 .tab-container .tab-button.selected { color: var(--text); background: var(--surface); border-color: var(--border); border-bottom-color: var(--surface); }
582 #fossil-status-bar { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font-family: var(--mono); font-size: 0.85em; padding: 0.4em 0.75em; margin: 0.5em 0; }
583 .wikiedit-options, .fileedit-options { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding: 0.5em; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; margin-bottom: 0.5em; }
584 .wikiedit-options .input-with-label, .fileedit-options .input-with-label { display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
585 #wikiedit-tab-content textarea, #fileedit-tab-content textarea { min-height: 300px; width: 100%; }
586 .tab-container fieldset { border: 1px solid var(--border); border-radius: 4px; }
587 .tab-container fieldset legend { color: var(--muted); }
588 button.wikiedit-content-reload, button.fileedit-content-reload { min-width: unset !important; max-width: unset !important; }
589
590 /* Chat: Fossil sets inline pastel backgrounds per user */
591 /* Each message keeps the user's color, which Fossil already picks for this
592 skin's foreground (white-foreground); only messages without one get --surface. */
593 body.chat .message-widget-content {
594 background-color: var(--surface); border: 1px solid var(--border) !important;
595 border-radius: 6px !important; color: var(--text) !important; padding: 0.5em 0.75em !important;
596 }
597 body.chat .message-widget-tab { background: transparent !important; color: var(--muted) !important; border: none !important; font-size: 0.9em !important; }
598 body.chat .message-widget-tab[style*="background"] { background-image: none !important; }
599 body.chat .message-widget-tab .xfrom { color: var(--link) !important; font-weight: 600 !important; }
600 body.chat #chat-input-line-wrapper { border: 1px solid var(--border) !important; border-radius: 6px !important; background: var(--input-bg) !important; }
601 body.chat #chat-input-line-wrapper:focus-within { border-color: var(--link) !important; }
602 body.chat .chat-input-field { border: none !important; background: transparent !important; color: var(--text) !important; font-family: var(--font) !important; font-size: 1em !important; }
603 body.chat .cbutton { border: 1px solid var(--border) !important; background: var(--surface) !important; border-radius: 4px !important; }
604 body.chat .cbutton:hover { background: var(--surface2) !important; }
605 body.chat fieldset { border: 1px solid var(--border) !important; border-radius: 4px !important; background: var(--surface) !important; }
606 body.chat .menu-entry { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
607 body.chat .menu-entry:hover, body.chat .menu-entry.parent { background: var(--surface2) !important; }
608 body.chat .message-widget .match { background: rgb(var(--yellow-rgb) / 0.25) !important; color: var(--text) !important; }
609 body.chat .chat-message-popup { background: var(--surface2) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
610 body.chat .message-widget-content img { max-width: 100% !important; border-radius: 4px !important; }
611
612 /* Chat toolbar: Fossil renders the buttons as emoji; mask them with icons, keep the spans intact */
613 body.chat #chat-buttons-wrapper > .cbutton {
614 position: relative !important;
615 font-size: 0 !important;
616 color: transparent !important;
617 min-width: 44px !important; max-width: 44px !important;
618 min-height: 36px !important; height: 36px !important;
619 background: var(--surface) !important;
620 border: 1px solid var(--border) !important;
621 border-radius: 6px !important;
622 }
623 body.chat #chat-buttons-wrapper > .cbutton::after {
624 content: ""; position: absolute; inset: 0; margin: auto;
625 width: 22px; height: 22px;
626 background-color: var(--muted);
627 -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
628 }
629 body.chat #chat-buttons-wrapper > .cbutton:hover { background: var(--surface2) !important; border-color: var(--muted) !important; }
630 body.chat #chat-buttons-wrapper > .cbutton:hover::after { background-color: var(--text); }
631 body.chat #chat-buttons-wrapper > #chat-button-submit { background: var(--link) !important; border-color: var(--link) !important; min-width: 64px !important; max-width: 64px !important; }
632 body.chat #chat-buttons-wrapper > #chat-button-submit::after { background-color: var(--on-accent); }
633 body.chat #chat-buttons-wrapper > #chat-button-submit:hover { background: var(--link-hover) !important; }
634 body.chat #chat-button-preview { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z%22/%3E%3C/svg%3E"); }
635 body.chat #chat-button-search { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z%22/%3E%3C/svg%3E"); }
636 body.chat #chat-button-attach { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M209.66,122.34a8,8,0,0,1,0,11.32l-82.05,82a56,56,0,0,1-79.2-79.21L147.67,35.73a40,40,0,1,1,56.61,56.55L105,193A24,24,0,1,1,71,159L154.3,74.38A8,8,0,1,1,165.7,85.6L82.39,170.31a8,8,0,1,0,11.27,11.36L192.93,81A24,24,0,1,0,159,47L59.76,147.68a40,40,0,1,0,56.53,56.62l82.06-82A8,8,0,0,1,209.66,122.34Z%22/%3E%3C/svg%3E"); }
637 body.chat #chat-button-settings { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z%22/%3E%3C/svg%3E"); }
638 body.chat #chat-button-submit { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z%22/%3E%3C/svg%3E"); }
639
640 /* Screen sizes, as in the default skin */
641 @media screen and (max-width: 600px) {
642 body { padding-left: 12px; padding-right: 12px; }
643 .content { font-size: 0.95em; }
644 header { gap: 10px; padding: 10px 0 8px; }
645 div.logo img, img.logo-mark { width: 36px; height: 36px; }
646 .title h1, .title .project-name { font-size: 1.5em; }
647 .title > .page-title { display: inline; }
648 .artifact .title > .page-title, .dir .title > .page-title,
649 .doc .title > .page-title, .wiki .title > .page-title { display: none; }
650 .mainmenu a { padding: 10px 12px; }
651 .mainmenu { padding: 0; }
652 nav#hbdrop ul#sitemap, ul#sitemap.columns { columns: 1 !important; column-width: auto !important; }
653 .submenu { padding: 6px 0; }
654 td.timelineTime { font-size: 0.8em; }
655 }
656 @media screen and (min-width: 600px) {
657 body { padding-left: 20px; padding-right: 20px; }
658 .mainmenu a { padding: 12px 20px; }
659 .mainmenu { padding: 0; }
660 .content dd, .content dt, .content div, .content li, .content p, .content table { line-height: 1.45em; }
661 /* Fossil renders a document's title outside .content. Match its h1 inset. */
662 body.doc > h1.page-title {
663 box-sizing: border-box;
664 width: 100%;
665 margin-inline: 0;
666 padding-inline: 10pt;
667 }
668 .doc > .content > p, .doc > .content > .markdown > p, .doc > .content > .fossil-doc > p,
669 .doc > .content > ol, .doc > .content > ul, .doc > .content > .markdown > ol, .doc > .content > .markdown > ul,
670 .wiki > .content > p, .wiki > .content > .markdown > p, .wiki > .content > .fossil-doc > p,
671 .wiki > .content > ol, .wiki > .content > ul, .wiki > .content > .markdown > ol, .wiki > .content > .markdown > ul,
672 .artifact > .content > .markdown > p, .artifact > .content > .markdown > ol, .artifact > .content > .markdown > ul,
673 .doc > .content > .markdown > table, .wiki > .content > .markdown > table, .artifact > .content > .markdown > table {
674 margin-left: 30pt; margin-right: 30pt;
675 }
676 .doc > .content > pre, .doc > .content > .markdown > pre, .doc > .content > .fossil-doc > pre,
677 .wiki > .content > pre, .wiki > .content > .markdown > pre,
678 .artifact > .content > .markdown > pre { margin-left: 40pt; margin-right: 30pt; }
679 .forum > .content .markdown > pre { margin-left: 20pt; }
680 .doc > .content h1, .wiki .content h1, .artifact .content h1 { margin-left: 10pt; }
681 .doc > .content h2, .wiki .content h2, .artifact .content h2 { margin-left: 15pt; }
682 .doc > .content h3, .wiki .content h3, .artifact .content h3 { margin-left: 20pt; }
683 .doc > .content > blockquote, .wiki > .content > blockquote { margin-left: 50pt; }
684 .doc > .content > .markdown > blockquote, .wiki > .content > .markdown > blockquote { margin-left: 40pt; }
685 .content .pikchr-wrapper, div.pikchr-wrapper.indent:not(.source) { margin-left: 40pt; }
686 div.pikchr-wrapper.center:not(.source), div.pikchr-wrapper.float-right:not(.source) { margin-left: 0; }
687 }
688
689 /* Chat bubbles: messaging-app corners; your own messages, when Fossil puts
690 them on the right (its my-messages-right layout, the default in tall
691 windows), point the other way */
692 body.chat .message-widget:not(.notification) .message-widget-content { border-radius: 12px 12px 12px 4px !important; }
693 body.chat.my-messages-right .message-widget.mine .message-widget-content { border-radius: 12px 12px 4px 12px !important; }
694 body.chat.my-messages-right .message-widget.mine .message-widget-tab { text-align: right; }
695
696 /* Message options popup (click a message's header): one card, quiet
697 timestamps, buttons sized for touch */
698 body.chat .chat-message-popup {
699 font-family: var(--font) !important; font-size: 0.9em !important;
700 background: var(--surface2) !important; border: 1px solid var(--border) !important;
701 border-radius: 10px !important; padding: 0.65em !important; gap: 0.45em;
702 box-shadow: 0 8px 24px rgb(var(--shadow-rgb) / var(--popup-shadow)) !important;
703 max-width: min(26rem, calc(100vw - 2rem));
704 }
705 body.chat .chat-message-popup > span { font-family: var(--mono); font-size: 0.85em; color: var(--muted); white-space: normal; }
706 body.chat .chat-message-popup > .toolbar { border: none !important; gap: 0.4em; margin: 0 !important; flex-wrap: wrap; }
707 body.chat .chat-message-popup > .toolbar > * { margin: 0 !important; }
708 body.chat .chat-message-popup > .toolbar > button,
709 body.chat .chat-message-popup > .toolbar > a {
710 flex: 1 1 auto; min-height: 36px; display: inline-flex; align-items: center; justify-content: center;
711 padding: 0.35em 0.8em; border: 1px solid var(--border); border-radius: 6px;
712 background: var(--surface); color: var(--text); font-family: var(--font); font-size: 1em; text-decoration: none;
713 }
714 body.chat .chat-message-popup > .toolbar > a { color: var(--link); }
715 body.chat .chat-message-popup > .toolbar > button:hover,
716 body.chat .chat-message-popup > .toolbar > a:hover { background: var(--btn-hover); border-color: var(--muted); text-decoration: none; }
717 /* "Delete globally" removes the message for everyone */
718 body.chat .chat-message-popup > div.toolbar:nth-of-type(1) > button:nth-child(2) { color: var(--red); }
719 @media (pointer: coarse), (max-width: 600px) {
720 body.chat .chat-message-popup > .toolbar > button,
721 body.chat .chat-message-popup > .toolbar > a { min-height: 44px; }
722 }
723
724 /* Phones: the page itself never scrolls sideways */
725 body.chat .chat-message-popup { z-index: 200 !important; }
726 @media screen and (max-width: 600px) {
727 table.label-value td { white-space: normal !important; overflow-wrap: anywhere; }
728 table.label-value td .nobr, table.label-value td .nobr *,
729 td.tktDspValue .nobr, td.tktDspValue .nobr * { white-space: normal !important; word-break: break-all; }
730 .content table.sortable, .content table.report, .content table.userTable {
731 display: block; max-width: 100%; overflow-x: auto;
732 }
733 .title h1, .title .project-name { font-size: 1.3em; }
734 }
735
736 /* Hamburger menu. hbmenu.js toggles it instantly (data-anim-ms="0" in the
737 header); the skin slides it in. */
738 @keyframes hb-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
739 nav#hbdrop { animation: hb-in 160ms ease-out; top: var(--nav-bottom, 88px); }
740 @media screen and (max-width: 600px), (pointer: coarse) {
741 /* A sheet from under the nav bar to the bottom of the screen, scrolling
742 on its own, with the page behind it held still */
743 nav#hbdrop {
744 bottom: 0; max-height: none; border-radius: 0; border-left: 0; border-right: 0;
745 overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
746 }
747 html:has(#hbdrop[style*="display: block"]) { overflow: hidden; }
748 /* Keep the nav bar, and its close button, on screen while the menu is open */
749 html:has(#hbdrop[style*="display: block"]) nav.mainmenu { position: sticky; top: 0; }
750 ul#sitemap ul li a { min-height: 44px; display: flex; align-items: center; }
751 }
752 @media (prefers-reduced-motion: reduce) { nav#hbdrop { animation: none; } }
753
754 /* Menu bar: every item carries the 2px underline slot, transparent until
755 hover or active, so highlighting never changes any item's or the bar's height */
756 .mainmenu a { border-bottom: 2px solid transparent; }
757 .mainmenu a.active, .mainmenu a:hover { border-bottom-color: var(--active); }
758 #hbbtn { line-height: 1.4; font-size: 1em; }
759
760 /* Logo: show any repository's logo whole in the same 48px box (36px on
761 phones); a square logo looks exactly as before */
762 div.logo img, img.logo-mark { object-fit: contain; }
763
764 /* Menu bar as a flex row: the whitespace between items in the header no
765 longer leaves 4px gaps, so each underline meets the divider beside it */
766 .mainmenu { display: flex; }
767 .mainmenu a { flex: 0 0 auto; }
768
769 /* Weekday above each timeline date. The line is reserved here, before any
770 script runs, so the rows already have their final height when Fossil
771 draws the timeline graph; a11y.js only fills in the name through
772 data-dow. (Inserting a line afterwards moved every row, and Fossil
773 redrew the graph a second later, so the nodes jumped.) */
774 div.timelineDate::before {
775 content: attr(data-dow); display: block; min-height: 1.2em;
776 font-size: 0.8em; font-weight: 400; opacity: 0.85; line-height: 1.2; margin-bottom: 0.1em;
777 }
778
779
780 /* The chat's "Load..." bar: a small label over one row of buttons, without
781 the box Fossil's fieldset would draw around them */
782 body.chat fieldset#load-msg-toolbar {
783 border: none !important; background: transparent !important;
784 padding: 0.5em 0 0 !important; margin: 0 0 1em !important;
785 }
786 body.chat #load-msg-toolbar > legend { font-size: 0.85em; color: var(--muted); padding: 0 0 0.35em; }
787 body.chat #load-msg-toolbar > div { gap: 0.5em; }
788 body.chat #load-msg-toolbar > div > button { border-radius: 6px; }
789
790
791 /* ── Fixes from the page-by-page audit ─────────────────────────────────── */
792
793 /* Fields Fossil emits with no type, or type="input" (forum title, ticket
794 e-mail), which the input[type=text] rule above does not match */
795 input:not([type]), input[type=input] {
796 background: var(--input-bg); border: 1px solid var(--border); border-radius: 4px;
797 color: var(--text); font-family: var(--font); font-size: 1em; padding: 0.35em 0.6em;
798 }
799 input[type=file]::file-selector-button {
800 background: var(--surface2); border: 1px solid var(--border); border-radius: 4px;
801 color: var(--text); font-family: var(--font); font-size: 0.95em; padding: 0.35em 0.8em;
802 margin-right: 0.6em; cursor: pointer;
803 }
804 input[type=file]::file-selector-button:hover { background: var(--btn-hover); border-color: var(--muted); }
805
806 /* Forum subjects may shrink below a long word on narrow screens. */
807 @media screen and (max-width: 600px) {
808 body.forum td.subject { overflow-wrap: anywhere; }
809 }
810
811 /* Long hashes in titles and headings wrap instead of widening the page */
812 .title, span.page-title, .content h1, .content h2, .content h3 { overflow-wrap: anywhere; }
813 .title { min-width: 0; }
814 .content :not(pre) > code { overflow-wrap: break-word; }
815 .markdown p, .markdown li { overflow-wrap: break-word; }
816
817 /* Rendered markdown looks the same wherever it appears (the wiki editor's
818 preview nests it deeper than the page does) */
819 .markdown pre {
820 background-color: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 8px 10px;
821 }
822 .markdown p > code, .markdown li > code, .markdown td > code {
823 background-color: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: 0 4px;
824 }
825
826 /* Chat: a bubble holding an attachment stays inside its column */
827 body.chat .message-widget-content { box-sizing: border-box; max-width: 100%; }
828 body.chat .chat-message-popup > .toolbar { align-items: stretch; }
829 body.chat .chat-message-popup > .toolbar > a { display: inline-flex; align-items: center; }
830
831 /* Activity-report charts: a11y.js gives them a viewBox so they can shrink */
832 .content svg.fit { max-width: 100%; height: auto; }
833
834 /* Contrast: links on Fossil's colored rows, closed tickets in the timeline,
835 the fourth capability marker */
836 body.report table.report tr[style*="background-color"] a,
837 table.timelineTable td[style*="background"] a { color: var(--link-on-tint) !important; }
838 td.tktTlClosed { color: var(--muted); }
839 span.ueditInheritNobody { color: var(--green) !important; }
840
841 /* Ticket view: a label alone in its row ("Description:") sits at the left,
842 like "User Comments:" below it */
843 td.tktDspLabel:only-child { text-align: left; }
844
845 /* Bare <table border="1"> (user categories, unversioned files) */
846 .content table[border="1"] { border-collapse: collapse; border-color: var(--border); }
847 .content table[border="1"] > * > tr > td, .content table[border="1"] > * > tr > th { border: 1px solid var(--border); padding: 4px 8px; }
848
849 /* Lists Fossil marks list-style:none keep no bullets */
850 .content ul[style*="list-style"] > li { list-style-type: inherit; }
851
852 /* Main menu: the full bar on every screen. The menu button stays pinned at
853 the left while the entries scroll sideways beneath it, and a fade at the
854 right edge shows there is more. (Fossil would hide entries marked
855 desktoponly / wideonly on small screens; the display set on ".mainmenu a"
856 above keeps them, on purpose.) */
857 #hbbtn {
858 position: sticky; left: 0; z-index: 2;
859 background: var(--surface) linear-gradient(var(--band-top), var(--surface));
860 }
861 .mainmenu::after {
862 content: ""; flex: 0 0 28px; position: sticky; right: 0; pointer-events: none;
863 background: var(--surface) linear-gradient(var(--band-top), var(--surface));
864 -webkit-mask-image: linear-gradient(to right, transparent, #000 85%); mask-image: linear-gradient(to right, transparent, #000 85%);
865 }
866
867 /* Phone menu sheet: top-level entries are destinations, so they read as
868 links in 44px rows */
869 @media screen and (max-width: 600px), (pointer: coarse) {
870 ul#sitemap { padding: 0.5rem 1rem 1.5rem; }
871 ul#sitemap > li { margin: 0; border-bottom: 1px solid var(--rule); }
872 ul#sitemap > li > a {
873 display: flex; align-items: center; min-height: 44px; box-sizing: border-box;
874 font-size: 1em; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text);
875 }
876 ul#sitemap ul { margin: 0 0 0.4rem; }
877 ul#sitemap ul li a { box-sizing: border-box; min-height: 44px; padding-left: 1rem; color: var(--link); }
878
879 /* Touch targets */
880 .submenu a, .submenu label, .sectionmenu a { min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
881 input[type=text], input[type=password], input[type=email], input[type=search], input[type=number],
882 input:not([type]), input[type=input], select, input[type=submit], input[type=button], button {
883 min-height: 44px; box-sizing: border-box;
884 }
885 input[type=checkbox], input[type=radio] { width: 20px; height: 20px; }
886 }
887
888 @media screen and (max-width: 600px) {
889 /* A long unbroken word in a timeline row (a mirrored e-mail address as the
890 login, a path in the comment) wraps instead of widening the page */
891 table.timelineTable td.timelineModernCell, table.timelineTable td.timelineDetailCell,
892 .timelineModernComment, .timelineModernDetail,
893 .content table.timelineTable td.timelineModernCell * { overflow-wrap: anywhere; }
894
895 /* Forms and their fields never exceed the screen */
896 .content form { max-width: 100%; }
897 .content textarea, .content input:not([type=checkbox]):not([type=radio]), .content select { max-width: 100%; box-sizing: border-box; }
898 body.forum .content form { display: block; }
899
900 /* Markdown tables scroll inside themselves, like sortable tables */
901 .content table.md-table, .markdown table { display: block; max-width: 100%; overflow-x: auto; }
902
903 /* Ticket reports: one line per row inside the scrolling table */
904 .content table.report td { white-space: nowrap; }
905 .content table.report td:last-child { white-space: normal; min-width: 12em; max-width: 18em; }
906
907 /* Tickets: Fossil's label | value tables become label above value */
908 body.tkt .content form > table, body.tkt .content > table[cellpadding],
909 body.tkt .content form > table > tbody, body.tkt .content > table[cellpadding] > tbody,
910 body.tkt .content form > table > tbody > tr, body.tkt .content > table[cellpadding] > tbody > tr { display: block; }
911 body.tkt .content form > table > tbody > tr > td, body.tkt .content > table[cellpadding] > tbody > tr > td {
912 display: block; width: auto; text-align: left; padding: 2px 0;
913 }
914 body.tkt .content > table[cellpadding] > tbody > tr > td.tktDspLabel { padding: 12px 0 3px; font-size: 0.9em; color: var(--muted); }
915 body.tkt .content > table[cellpadding] > tbody > tr > td.tktDspValue { padding: 6px 10px; border-radius: 4px; min-height: 1.4em; overflow-wrap: anywhere; }
916 body.tkt .content form > table > tbody > tr > td:nth-child(3) { color: var(--muted); font-size: 0.9em; }
917 body.tkt .content form > table > tbody > tr > td[align=right] { padding-top: 12px; color: var(--muted); }
918
919 /* File ages: age and file on one line, the check-in below */
920 body.fileage .content table:not(.timelineTable), body.fileage .content table:not(.timelineTable) > * { display: block; }
921 body.fileage .content table:not(.timelineTable) tr { display: grid; grid-template-columns: 6.5em 1fr; border-bottom: 1px solid var(--rule); }
922 body.fileage .content table:not(.timelineTable) td { border: 0; overflow-wrap: anywhere; }
923 body.fileage .content table:not(.timelineTable) td:nth-child(3), body.fileage .content table:not(.timelineTable) th:nth-child(3) {
924 grid-column: 1 / -1; max-width: none; padding-top: 0; color: var(--muted); font-size: 0.9em;
925 }
926
927 /* Admin forms: tables that hold fields stack their cells */
928 body.setup .content table:not(.sortable):not([border]):has(input, textarea, select),
929 body.setup .content table:not(.sortable):not([border]):has(input, textarea, select) > tbody,
930 body.setup .content table:not(.sortable):not([border]):has(input, textarea, select) > tbody > tr,
931 body.setup .content table:not(.sortable):not([border]):has(input, textarea, select) > tbody > tr > td {
932 display: block; width: auto; max-width: 100%; text-align: left;
933 }
934 body.setup .content textarea { width: 100%; }
935 body.setup .content label { white-space: normal; }
936
937 /* Other wide admin tables scroll inside themselves; long option lists wrap */
938 .content table#capabilitySummary, .cpage-rcvfromlist .content > table { display: block; max-width: 100%; overflow-x: auto; }
939 .content tt, .cpage-secaudit0 .content li { overflow-wrap: anywhere; }
940
941 /* Forum replies: 10px a level instead of Fossil's 4ex, so deep threads keep
942 their shape and their width. Every level up to ten stays distinct. */
943 div.forumTime[style*="margin-left:"] { margin-left: 100px !important; }
944 div.forumTime[style*="left:4ex"] { margin-left: 10px !important; }
945 div.forumTime[style*="left:8ex"] { margin-left: 20px !important; }
946 div.forumTime[style*="left:12ex"] { margin-left: 30px !important; }
947 div.forumTime[style*="left:16ex"] { margin-left: 40px !important; }
948 div.forumTime[style*="left:20ex"] { margin-left: 50px !important; }
949 div.forumTime[style*="left:24ex"] { margin-left: 60px !important; }
950 div.forumTime[style*="left:28ex"] { margin-left: 70px !important; }
951 div.forumTime[style*="left:32ex"] { margin-left: 80px !important; }
952 div.forumTime[style*="left:36ex"] { margin-left: 90px !important; }
953 div.forumTime[style*="left:40ex"] { margin-left: 100px !important; }
954 }
955
956 /* Windows between phone and desktop width (a half-screen browser, a tablet):
957 the page never scrolls sideways there either. The same measures as on
958 phones, without the phone-only layout changes. */
959 @media screen and (min-width: 601px) and (max-width: 1100px) {
960 table.label-value td { white-space: normal !important; overflow-wrap: anywhere; }
961 table.label-value td .nobr, table.label-value td .nobr *,
962 td.tktDspValue .nobr, td.tktDspValue .nobr * { white-space: normal !important; word-break: break-all; }
963 .content table.sortable, .content table.report, .content table.userTable, .content table.md-table, .markdown table,
964 .content table#capabilitySummary, .cpage-rcvfromlist .content > table {
965 display: block; max-width: 100%; overflow-x: auto;
966 }
967 .content form { max-width: 100%; }
968 .content textarea, .content input:not([type=checkbox]):not([type=radio]), .content select { max-width: 100%; box-sizing: border-box; }
969 body.forum .content form { display: block; }
970 .content tt, .cpage-secaudit0 .content li { overflow-wrap: anywhere; }
971 /* Ticket forms: label above field, as on phones */
972 body.tkt .content form > table, body.tkt .content form > table > tbody,
973 body.tkt .content form > table > tbody > tr { display: block; }
974 body.tkt .content form > table > tbody > tr > td { display: block; width: auto; text-align: left; padding: 2px 0; }
975 body.tkt .content form > table > tbody > tr > td:nth-child(3) { color: var(--muted); font-size: 0.9em; }
976 body.tkt .content form > table > tbody > tr > td[align=right] { padding-top: 12px; color: var(--muted); }
977 }
978
979 /* A long unbroken word in any timeline entry (a wiki page named after a
980 full hash, a path, an e-mail address as login) wraps at every width */
981 .content table.timelineTable td[class$="Cell"], .content table.timelineTable td[class$="Cell"] *,
982 .content table.timelineTable span[class*="Comment"], .content table.timelineTable span[class*="Comment"] *,
983 .content table.timelineTable span[class*="Detail"], .content table.timelineTable span[class*="Detail"] * { overflow-wrap: anywhere; }
984
985 /* Login page on phones: fields stack under their labels, and the anonymous
986 login's ASCII-art captcha scrolls inside its own box */
987 @media screen and (max-width: 600px) {
988 table.login_out, table.login_out > tbody, table.login_out > tbody > tr,
989 table.login_out > tbody > tr > td { display: block; width: auto; text-align: left; }
990 table.login_out input[type=text], table.login_out input[type=password] { width: 100%; box-sizing: border-box; }
991 .content table.captcha, .content div.captcha { display: block; max-width: 100%; overflow-x: auto; }
992 }
--- a/skins/refined-dark/details.txt
+++ b/skins/refined-dark/details.txt
@@ -0,0 +1,4 @@
1
+timeline-arrowheads: 1
2
+timeline-circle-nodes: 1
3
+timeline-color-graph-lines: 1
4
+white-foreground: 1
--- a/skins/refined-dark/details.txt
+++ b/skins/refined-dark/details.txt
@@ -0,0 +1,4 @@
 
 
 
 
--- a/skins/refined-dark/details.txt
+++ b/skins/refined-dark/details.txt
@@ -0,0 +1,4 @@
1 timeline-arrowheads: 1
2 timeline-circle-nodes: 1
3 timeline-color-graph-lines: 1
4 white-foreground: 1
--- a/skins/refined-dark/footer.txt
+++ b/skins/refined-dark/footer.txt
@@ -0,0 +1,7 @@
1
+<footer>
2
+ <span class="footer-project">$<project_name></span>
3
+ <span class="footer-meta">
4
+ fossil $release_version &middot;
5
+ <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s
6
+ </span>
7
+</footer>
--- a/skins/refined-dark/footer.txt
+++ b/skins/refined-dark/footer.txt
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
--- a/skins/refined-dark/footer.txt
+++ b/skins/refined-dark/footer.txt
@@ -0,0 +1,7 @@
1 <footer>
2 <span class="footer-project">$<project_name></span>
3 <span class="footer-meta">
4 fossil $release_version &middot;
5 <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s
6 </span>
7 </footer>
--- a/skins/refined-dark/header.txt
+++ b/skins/refined-dark/header.txt
@@ -0,0 +1,44 @@
1
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
2
+<script defer src="$home/script.js"></script>
3
+<a class="skip-nav" href="#main-content">Skip to content</a>
4
+<header>
5
+ <div class="title">
6
+ <a href="$home/home" class="project-name">$<project_name></a>
7
+ <span class="page-title">$<title></span>
8
+ </div>
9
+ <div class="status">
10
+ <th1>
11
+ if {[info exists login]} {
12
+ html "<a href='$home/login'>$login</a>\n"
13
+ } else {
14
+ html "<a href='$home/login'>Login</a>\n"
15
+ }
16
+ </th1>
17
+ </div>
18
+</header>
19
+<nav class="mainmenu" aria-label="Main menu">
20
+ <th1>
21
+ html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map' aria-expanded='false' aria-controls='hbdrop'>&#9776;</a>"
22
+ builtin_request_js hbmenu.js
23
+ foreach {name url expr class} $mainmenu {
24
+ if {![capexpr $expr]} continue
25
+ if {[string match /* $url]} {
26
+ if {[string match $url\[/?#\]* /$current_page/]} {
27
+ set class "active $class"
28
+ }
29
+ set url $home$url
30
+ }
31
+ html "<a href='$url' class='$class'>$name</a>\n"
32
+ }
33
+ </th1>
34
+</nav>
35
+<nav id="hbdrop" class='hbdrop' aria-label="Site map" data-anim-ms="0"></nav>
36
+<div id="main-content" tabindex="-1" style="height:0;overflow:hidden;position:absolute"></div>
37
+<th1>
38
+ if {[string compare $title index]==0 || [string compare $title Home]==0} {
39
+ html "<h1 class='page-title home-title'>[htmlize $title]</h1>\n"
40
+ } else {
41
+ html "<h1 class='page-title'>[htmlize $title]</h1>\n"
42
+ }
43
+</th1>
44
+
--- a/skins/refined-dark/header.txt
+++ b/skins/refined-dark/header.txt
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- a/skins/refined-dark/header.txt
+++ b/skins/refined-dark/header.txt
@@ -0,0 +1,44 @@
1 <meta name="viewport" content="width=device-width, initial-scale=1.0">
2 <script defer src="$home/script.js"></script>
3 <a class="skip-nav" href="#main-content">Skip to content</a>
4 <header>
5 <div class="title">
6 <a href="$home/home" class="project-name">$<project_name></a>
7 <span class="page-title">$<title></span>
8 </div>
9 <div class="status">
10 <th1>
11 if {[info exists login]} {
12 html "<a href='$home/login'>$login</a>\n"
13 } else {
14 html "<a href='$home/login'>Login</a>\n"
15 }
16 </th1>
17 </div>
18 </header>
19 <nav class="mainmenu" aria-label="Main menu">
20 <th1>
21 html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map' aria-expanded='false' aria-controls='hbdrop'>&#9776;</a>"
22 builtin_request_js hbmenu.js
23 foreach {name url expr class} $mainmenu {
24 if {![capexpr $expr]} continue
25 if {[string match /* $url]} {
26 if {[string match $url\[/?#\]* /$current_page/]} {
27 set class "active $class"
28 }
29 set url $home$url
30 }
31 html "<a href='$url' class='$class'>$name</a>\n"
32 }
33 </th1>
34 </nav>
35 <nav id="hbdrop" class='hbdrop' aria-label="Site map" data-anim-ms="0"></nav>
36 <div id="main-content" tabindex="-1" style="height:0;overflow:hidden;position:absolute"></div>
37 <th1>
38 if {[string compare $title index]==0 || [string compare $title Home]==0} {
39 html "<h1 class='page-title home-title'>[htmlize $title]</h1>\n"
40 } else {
41 html "<h1 class='page-title'>[htmlize $title]</h1>\n"
42 }
43 </th1>
44
--- a/skins/refined-dark/js.txt
+++ b/skins/refined-dark/js.txt
@@ -0,0 +1,338 @@
1
+document.addEventListener('DOMContentLoaded', function () {
2
+(function () {
3
+ 'use strict';
4
+
5
+ /* ─────────────────────────────────────────────────────────────────────
6
+ 1. isDark patch
7
+ Fossil's C code hard-codes isDark:false for all custom skins,
8
+ ignoring the skin-detail config key. Patch it here after Fossil's
9
+ inline scripts have already run (guaranteed by defer).
10
+ ───────────────────────────────────────────────────────────────────── */
11
+ function patchIsDark() {
12
+ /* Only for the dark variant: the light build of this skin embeds the
13
+ same script, and its stylesheet declares color-scheme: light. */
14
+ if (getComputedStyle(document.documentElement).colorScheme.indexOf('dark') < 0) return;
15
+ if (window.fossil && window.fossil.config && window.fossil.config.skin) {
16
+ window.fossil.config.skin.isDark = true;
17
+ }
18
+ document.body.classList.add('fossil-dark-style');
19
+ }
20
+
21
+ /* ─────────────────────────────────────────────────────────────────────
22
+ 2. Main landmark
23
+ div.content is Fossil's primary content wrapper but has no landmark
24
+ role. Adding role="main" lets screen reader users jump to content.
25
+ ───────────────────────────────────────────────────────────────────── */
26
+ function addMainLandmark() {
27
+ var content = document.querySelector('div.content');
28
+ if (content && !content.getAttribute('role')) {
29
+ content.setAttribute('role', 'main');
30
+ }
31
+ }
32
+
33
+ /* ─────────────────────────────────────────────────────────────────────
34
+ 3. Hamburger menu — the worst accessibility failure in the skin
35
+ ----------------------------------------------------------------
36
+ What Fossil gives us:
37
+ <a id="hbbtn" href="/repo/sitemap" aria-label="Site Map">☰</a>
38
+ <nav id="hbdrop" class="hbdrop" title="sitemap"></nav>
39
+
40
+ Problems:
41
+ - No aria-expanded: screen readers can't tell if the menu is open
42
+ - No aria-controls: no programmatic link between button and panel
43
+ - hbdrop has no role or accessible name beyond an unhelpful title
44
+ - When the menu opens, focus stays on hbbtn — user cannot reach
45
+ the menu links by keyboard without realising the menu opened
46
+ - Escape key does not close the menu
47
+ - hbmenu.js controls visibility via style.display; we use
48
+ MutationObserver to stay in sync rather than patching the JS
49
+
50
+ Fixes applied:
51
+ - aria-expanded / aria-controls on hbbtn
52
+ - role="navigation" + aria-label on hbdrop
53
+ - MutationObserver: sync aria-expanded on every show/hide
54
+ - On open: move focus to the first link in the dropdown
55
+ - On Escape inside dropdown: close panel, return focus to hbbtn
56
+ ───────────────────────────────────────────────────────────────────── */
57
+ function fixHamburgerMenu() {
58
+ var btn = document.getElementById('hbbtn');
59
+ var drop = document.getElementById('hbdrop');
60
+ if (!btn || !drop) return;
61
+
62
+ var nav = btn.closest('nav.mainmenu') || btn.parentNode;
63
+ if (!nav) return;
64
+
65
+ /* Position the dropdown using position:fixed so it overlays content
66
+ regardless of DOM structure. We set --nav-bottom as a CSS variable
67
+ so the dropdown's top edge tracks the nav bar's bottom edge. */
68
+ function setNavBottom() {
69
+ var bottom = Math.max(0, nav.getBoundingClientRect().bottom);
70
+ document.documentElement.style.setProperty('--nav-bottom', bottom + 'px');
71
+ }
72
+ setNavBottom();
73
+ window.addEventListener('resize', setNavBottom);
74
+ /* Measure again on every open (capture: before hbmenu.js shows the
75
+ panel), so the menu opens under the nav bar wherever the page is. */
76
+ btn.addEventListener('click', setNavBottom, true);
77
+ /* Open by touch or mouse vs keyboard: only the keyboard gets focus moved */
78
+ var openedByPointer = false;
79
+ btn.addEventListener('pointerdown', function () { openedByPointer = true; });
80
+ btn.addEventListener('keydown', function () { openedByPointer = false; });
81
+
82
+ /* Static button semantics (JS will keep aria-expanded in sync) */
83
+ btn.setAttribute('aria-expanded', 'false');
84
+ btn.setAttribute('aria-controls', 'hbdrop');
85
+
86
+ /* Panel semantics */
87
+ drop.setAttribute('role', 'navigation');
88
+ drop.setAttribute('aria-label', 'Site map');
89
+
90
+ /* Sync aria-expanded whenever hbmenu.js toggles panel visibility.
91
+ hbmenu.js uses style.display to show/hide — observe that attribute. */
92
+ var menuObserver = new MutationObserver(function () {
93
+ var open = getComputedStyle(drop).display !== 'none';
94
+ btn.setAttribute('aria-expanded', open ? 'true' : 'false');
95
+
96
+ /* Move focus into the panel when it opens so keyboard users
97
+ can immediately navigate the links without guessing. */
98
+ if (open) {
99
+ /* The nav bar may now be stuck to the top (see the skin CSS) */
100
+ requestAnimationFrame(setNavBottom);
101
+ if (!openedByPointer) {
102
+ var firstLink = drop.querySelector('a');
103
+ if (firstLink) firstLink.focus({ preventScroll: true });
104
+ }
105
+ }
106
+ });
107
+ menuObserver.observe(drop, { attributes: true, attributeFilter: ['style'] });
108
+
109
+ /* Escape inside the dropdown: close the panel and return focus.
110
+ We set display directly — this also triggers the MutationObserver
111
+ which will update aria-expanded to 'false'. */
112
+ drop.addEventListener('keydown', function (e) {
113
+ if (e.key === 'Escape' || e.keyCode === 27) {
114
+ drop.style.display = 'none';
115
+ btn.focus();
116
+ }
117
+ });
118
+ }
119
+
120
+ /* ─────────────────────────────────────────────────────────────────────
121
+ 4. Timeline table
122
+ ----------------------------------------------------------------
123
+ Structure Fossil generates:
124
+
125
+ <table class="timelineTable">
126
+ <tr class="timelineDateRow">
127
+ <td><div class="timelineDate">2026-03-14</div></td>
128
+ <td></td> <- empty filler for graph column
129
+ <td></td> <- empty filler for comment column
130
+ </tr>
131
+ <tr>
132
+ <td class="timelineTime">20:16</td>
133
+ <td class="timelineGraph">
134
+ <div class="tl-nodemark"></div> <- JS draws SVG here later
135
+ </td>
136
+ <td class="timelineModernCell" id="mc1">
137
+ <span class="timelineModernComment">commit message</span>
138
+ <span class="timelineModernDetail">...</span>
139
+ </td>
140
+ </tr>
141
+ </table>
142
+
143
+ Fixes applied:
144
+ - aria-label="Commit timeline" on each .timelineTable
145
+ - aria-hidden="true" on all td.timelineGraph cells
146
+ - aria-hidden="true" on filler cells in timelineDateRow rows
147
+ - aria-label="Time: HH:MM" on timelineTime cells
148
+
149
+ Run at defer-time AND on window.load because Fossil's timeline JS
150
+ inserts SVG canvas elements into the graph cells on window.load.
151
+ ───────────────────────────────────────────────────────────────────── */
152
+ function fixTimeline() {
153
+ /* Label each timeline table */
154
+ document.querySelectorAll('table.timelineTable').forEach(function (tbl) {
155
+ if (!tbl.getAttribute('aria-label') && !tbl.querySelector('caption')) {
156
+ tbl.setAttribute('aria-label', 'Commit timeline');
157
+ }
158
+ });
159
+
160
+ /* Hide the graph column — purely visual SVG/canvas drawn by Fossil JS */
161
+ document.querySelectorAll('td.timelineGraph').forEach(function (td) {
162
+ td.setAttribute('aria-hidden', 'true');
163
+ });
164
+
165
+ /* Hide filler cells in date-separator rows */
166
+ document.querySelectorAll('tr.timelineDateRow').forEach(function (tr) {
167
+ tr.querySelectorAll('td + td').forEach(function (td) {
168
+ td.setAttribute('aria-hidden', 'true');
169
+ });
170
+ });
171
+
172
+ /* Give bare time cells a descriptive label.
173
+ Strip stray </a> text artefact Fossil emits in anonymous mode. */
174
+ document.querySelectorAll('td.timelineTime').forEach(function (td) {
175
+ var text = td.textContent.trim();
176
+ if (text && !td.getAttribute('aria-label')) {
177
+ td.setAttribute('aria-label', 'Time: ' + text);
178
+ }
179
+ });
180
+ }
181
+
182
+ /* ─────────────────────────────────────────────────────────────────────
183
+ 5. Sortable table headers — add scope="col"
184
+ Fossil generates <th> elements in branch, tag, file, and ticket
185
+ tables but never includes scope. Screen readers cannot correctly
186
+ associate header text with the cells in each column.
187
+ ───────────────────────────────────────────────────────────────────── */
188
+ function fixTableHeaders() {
189
+ var selector = [
190
+ 'table.sortable th',
191
+ 'table.filelistTable th',
192
+ 'table.branchlistTable th',
193
+ 'table.taglistTable th',
194
+ 'table.userlistTable th',
195
+ 'table.report th',
196
+ ].join(', ');
197
+ document.querySelectorAll(selector).forEach(function (th) {
198
+ if (!th.getAttribute('scope')) {
199
+ th.setAttribute('scope', 'col');
200
+ }
201
+ });
202
+ }
203
+
204
+ /* ─────────────────────────────────────────────────────────────────────
205
+ 6. Submenu select labels
206
+ Fossil renders <select> controls in the page submenu with no
207
+ associated <label>. We add aria-label from the preceding sibling
208
+ label text, falling back to a class-name lookup table.
209
+ ───────────────────────────────────────────────────────────────────── */
210
+ var SELECT_LABELS = {
211
+ 'smc-ss': 'View style',
212
+ 'smc-ci': 'Check-in',
213
+ 'smc-v': 'Version',
214
+ 'smc-r': 'Repository',
215
+ 'smc-b': 'Branch',
216
+ 'smc-t': 'Tag',
217
+ 'smc-u': 'User',
218
+ };
219
+
220
+ /* Charts Fossil draws as <svg width= height=> with no viewBox cannot be
221
+ scaled by CSS. Give them one; the skin's "svg.fit" rule does the rest. */
222
+ function fitCharts() {
223
+ document.querySelectorAll('.content svg[width][height]:not([viewBox])').forEach(function (s) {
224
+ var w = parseFloat(s.getAttribute('width')), h = parseFloat(s.getAttribute('height'));
225
+ if (!(w > 0 && h > 0)) return;
226
+ s.setAttribute('viewBox', '0 0 ' + w + ' ' + h);
227
+ s.classList.add('fit');
228
+ });
229
+ }
230
+
231
+ /* Sortable column headers respond to clicks only. Put them in the tab
232
+ order and let Enter or Space do what a click does. */
233
+ function fixSortableHeaders() {
234
+ document.querySelectorAll('table.sortable th').forEach(function (th) {
235
+ if (th.hasAttribute('tabindex')) return;
236
+ th.setAttribute('tabindex', '0');
237
+ th.addEventListener('keydown', function (e) {
238
+ if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); th.click(); }
239
+ });
240
+ });
241
+ }
242
+
243
+ /* The menu bar scrolls sideways on narrow screens. Bring the current
244
+ page's entry into view, without moving the page itself. */
245
+ function showActiveMenuItem() {
246
+ var nav = document.querySelector('nav.mainmenu');
247
+ var a = nav && nav.querySelector('a.active');
248
+ var hb = document.getElementById('hbbtn');
249
+ if (!a || a === hb || nav.scrollWidth <= nav.clientWidth) return;
250
+ var left = a.offsetLeft - nav.offsetLeft, pinned = hb ? hb.offsetWidth : 0;
251
+ if (left - pinned < nav.scrollLeft || left + a.offsetWidth > nav.scrollLeft + nav.clientWidth - 28) {
252
+ nav.scrollLeft = Math.max(0, left - pinned - 12);
253
+ }
254
+ }
255
+
256
+ function fixSubmenuSelects() {
257
+ document.querySelectorAll('div.submenu select, div.sectionmenu select').forEach(function (sel) {
258
+ if (sel.getAttribute('aria-label') || sel.getAttribute('aria-labelledby')) return;
259
+
260
+ /* Walk backwards through siblings to find a .label text node */
261
+ var prev = sel.previousElementSibling;
262
+ while (prev) {
263
+ if (prev.classList.contains('label') && prev.textContent.trim()) {
264
+ sel.setAttribute('aria-label', prev.textContent.trim());
265
+ return;
266
+ }
267
+ prev = prev.previousElementSibling;
268
+ }
269
+
270
+ /* Class-name lookup */
271
+ var classes = Array.from(sel.classList);
272
+ for (var i = 0; i < classes.length; i++) {
273
+ if (SELECT_LABELS[classes[i]]) {
274
+ sel.setAttribute('aria-label', SELECT_LABELS[classes[i]]);
275
+ return;
276
+ }
277
+ }
278
+
279
+ sel.setAttribute('aria-label', 'Filter');
280
+ });
281
+ }
282
+
283
+ /* ─────────────────────────────────────────────────────────────────────
284
+ 7. Day of week on each timeline date
285
+ Fossil's date rows carry only the date ("2026-11-11"). This puts the
286
+ full weekday on a small line above it. The weekday comes from Ben
287
+ Joffe's branchless method (benjoffe.com/fast-day-of-week), as zit
288
+ uses it: one multiply and two shifts, exact for every 32-bit day
289
+ number. It is read from the date Fossil prints, so it always matches
290
+ that date whether the timeline shows UTC or local time. The skin CSS
291
+ reserves the line before this runs, so setting the name moves nothing.
292
+ ───────────────────────────────────────────────────────────────────── */
293
+ var WEEKDAYS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
294
+ function weekdayOf(dayNumber) { /* days since 1970-01-01 -> 0 = Sunday */
295
+ return ((Math.imul(dayNumber, 613566756) + 0x95000000 +
296
+ (dayNumber >> 1) + (dayNumber >> 4)) >>> 0) >>> 29;
297
+ }
298
+ function addWeekdays() {
299
+ var rows = document.querySelectorAll('div.timelineDate');
300
+ for (var i = 0; i < rows.length; i++) {
301
+ if (rows[i].hasAttribute('data-dow')) continue;
302
+ var m = /^(\d{4})-(\d\d)-(\d\d)$/.exec(rows[i].textContent.trim());
303
+ if (!m) continue;
304
+ /* The skin CSS shows this in a line it reserves above the date */
305
+ rows[i].setAttribute('data-dow', WEEKDAYS[weekdayOf(Date.UTC(+m[1], m[2] - 1, +m[3]) / 864e5)]);
306
+ }
307
+ }
308
+
309
+ /* ─────────────────────────────────────────────────────────────────────
310
+ Execute all fixes
311
+ The script is deferred so the DOM is fully parsed when this runs.
312
+ Fossil's inline config scripts have already executed, so
313
+ window.fossil exists and we can patch isDark immediately.
314
+ ───────────────────────────────────────────────────────────────────── */
315
+ patchIsDark();
316
+ addMainLandmark();
317
+ fixHamburgerMenu();
318
+ fixTimeline();
319
+ fixTableHeaders();
320
+ fixSubmenuSelects();
321
+ fitCharts();
322
+ showActiveMenuItem();
323
+ fixSortableHeaders();
324
+ addWeekdays();
325
+
326
+ /* Re-run after window.load: Fossil's timeline renderer inserts
327
+ .tl-canvas SVG elements into td.timelineGraph on load, and
328
+ Fossil's own load handlers may reset isDark. */
329
+ window.addEventListener('load', function () {
330
+ patchIsDark();
331
+ fixTimeline();
332
+ fixTableHeaders();
333
+ fixSubmenuSelects();
334
+ });
335
+
336
+}());
337
+
338
+});
--- a/skins/refined-dark/js.txt
+++ b/skins/refined-dark/js.txt
@@ -0,0 +1,338 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- a/skins/refined-dark/js.txt
+++ b/skins/refined-dark/js.txt
@@ -0,0 +1,338 @@
1 document.addEventListener('DOMContentLoaded', function () {
2 (function () {
3 'use strict';
4
5 /* ─────────────────────────────────────────────────────────────────────
6 1. isDark patch
7 Fossil's C code hard-codes isDark:false for all custom skins,
8 ignoring the skin-detail config key. Patch it here after Fossil's
9 inline scripts have already run (guaranteed by defer).
10 ───────────────────────────────────────────────────────────────────── */
11 function patchIsDark() {
12 /* Only for the dark variant: the light build of this skin embeds the
13 same script, and its stylesheet declares color-scheme: light. */
14 if (getComputedStyle(document.documentElement).colorScheme.indexOf('dark') < 0) return;
15 if (window.fossil && window.fossil.config && window.fossil.config.skin) {
16 window.fossil.config.skin.isDark = true;
17 }
18 document.body.classList.add('fossil-dark-style');
19 }
20
21 /* ─────────────────────────────────────────────────────────────────────
22 2. Main landmark
23 div.content is Fossil's primary content wrapper but has no landmark
24 role. Adding role="main" lets screen reader users jump to content.
25 ───────────────────────────────────────────────────────────────────── */
26 function addMainLandmark() {
27 var content = document.querySelector('div.content');
28 if (content && !content.getAttribute('role')) {
29 content.setAttribute('role', 'main');
30 }
31 }
32
33 /* ─────────────────────────────────────────────────────────────────────
34 3. Hamburger menu — the worst accessibility failure in the skin
35 ----------------------------------------------------------------
36 What Fossil gives us:
37 <a id="hbbtn" href="/repo/sitemap" aria-label="Site Map">☰</a>
38 <nav id="hbdrop" class="hbdrop" title="sitemap"></nav>
39
40 Problems:
41 - No aria-expanded: screen readers can't tell if the menu is open
42 - No aria-controls: no programmatic link between button and panel
43 - hbdrop has no role or accessible name beyond an unhelpful title
44 - When the menu opens, focus stays on hbbtn — user cannot reach
45 the menu links by keyboard without realising the menu opened
46 - Escape key does not close the menu
47 - hbmenu.js controls visibility via style.display; we use
48 MutationObserver to stay in sync rather than patching the JS
49
50 Fixes applied:
51 - aria-expanded / aria-controls on hbbtn
52 - role="navigation" + aria-label on hbdrop
53 - MutationObserver: sync aria-expanded on every show/hide
54 - On open: move focus to the first link in the dropdown
55 - On Escape inside dropdown: close panel, return focus to hbbtn
56 ───────────────────────────────────────────────────────────────────── */
57 function fixHamburgerMenu() {
58 var btn = document.getElementById('hbbtn');
59 var drop = document.getElementById('hbdrop');
60 if (!btn || !drop) return;
61
62 var nav = btn.closest('nav.mainmenu') || btn.parentNode;
63 if (!nav) return;
64
65 /* Position the dropdown using position:fixed so it overlays content
66 regardless of DOM structure. We set --nav-bottom as a CSS variable
67 so the dropdown's top edge tracks the nav bar's bottom edge. */
68 function setNavBottom() {
69 var bottom = Math.max(0, nav.getBoundingClientRect().bottom);
70 document.documentElement.style.setProperty('--nav-bottom', bottom + 'px');
71 }
72 setNavBottom();
73 window.addEventListener('resize', setNavBottom);
74 /* Measure again on every open (capture: before hbmenu.js shows the
75 panel), so the menu opens under the nav bar wherever the page is. */
76 btn.addEventListener('click', setNavBottom, true);
77 /* Open by touch or mouse vs keyboard: only the keyboard gets focus moved */
78 var openedByPointer = false;
79 btn.addEventListener('pointerdown', function () { openedByPointer = true; });
80 btn.addEventListener('keydown', function () { openedByPointer = false; });
81
82 /* Static button semantics (JS will keep aria-expanded in sync) */
83 btn.setAttribute('aria-expanded', 'false');
84 btn.setAttribute('aria-controls', 'hbdrop');
85
86 /* Panel semantics */
87 drop.setAttribute('role', 'navigation');
88 drop.setAttribute('aria-label', 'Site map');
89
90 /* Sync aria-expanded whenever hbmenu.js toggles panel visibility.
91 hbmenu.js uses style.display to show/hide — observe that attribute. */
92 var menuObserver = new MutationObserver(function () {
93 var open = getComputedStyle(drop).display !== 'none';
94 btn.setAttribute('aria-expanded', open ? 'true' : 'false');
95
96 /* Move focus into the panel when it opens so keyboard users
97 can immediately navigate the links without guessing. */
98 if (open) {
99 /* The nav bar may now be stuck to the top (see the skin CSS) */
100 requestAnimationFrame(setNavBottom);
101 if (!openedByPointer) {
102 var firstLink = drop.querySelector('a');
103 if (firstLink) firstLink.focus({ preventScroll: true });
104 }
105 }
106 });
107 menuObserver.observe(drop, { attributes: true, attributeFilter: ['style'] });
108
109 /* Escape inside the dropdown: close the panel and return focus.
110 We set display directly — this also triggers the MutationObserver
111 which will update aria-expanded to 'false'. */
112 drop.addEventListener('keydown', function (e) {
113 if (e.key === 'Escape' || e.keyCode === 27) {
114 drop.style.display = 'none';
115 btn.focus();
116 }
117 });
118 }
119
120 /* ─────────────────────────────────────────────────────────────────────
121 4. Timeline table
122 ----------------------------------------------------------------
123 Structure Fossil generates:
124
125 <table class="timelineTable">
126 <tr class="timelineDateRow">
127 <td><div class="timelineDate">2026-03-14</div></td>
128 <td></td> <- empty filler for graph column
129 <td></td> <- empty filler for comment column
130 </tr>
131 <tr>
132 <td class="timelineTime">20:16</td>
133 <td class="timelineGraph">
134 <div class="tl-nodemark"></div> <- JS draws SVG here later
135 </td>
136 <td class="timelineModernCell" id="mc1">
137 <span class="timelineModernComment">commit message</span>
138 <span class="timelineModernDetail">...</span>
139 </td>
140 </tr>
141 </table>
142
143 Fixes applied:
144 - aria-label="Commit timeline" on each .timelineTable
145 - aria-hidden="true" on all td.timelineGraph cells
146 - aria-hidden="true" on filler cells in timelineDateRow rows
147 - aria-label="Time: HH:MM" on timelineTime cells
148
149 Run at defer-time AND on window.load because Fossil's timeline JS
150 inserts SVG canvas elements into the graph cells on window.load.
151 ───────────────────────────────────────────────────────────────────── */
152 function fixTimeline() {
153 /* Label each timeline table */
154 document.querySelectorAll('table.timelineTable').forEach(function (tbl) {
155 if (!tbl.getAttribute('aria-label') && !tbl.querySelector('caption')) {
156 tbl.setAttribute('aria-label', 'Commit timeline');
157 }
158 });
159
160 /* Hide the graph column — purely visual SVG/canvas drawn by Fossil JS */
161 document.querySelectorAll('td.timelineGraph').forEach(function (td) {
162 td.setAttribute('aria-hidden', 'true');
163 });
164
165 /* Hide filler cells in date-separator rows */
166 document.querySelectorAll('tr.timelineDateRow').forEach(function (tr) {
167 tr.querySelectorAll('td + td').forEach(function (td) {
168 td.setAttribute('aria-hidden', 'true');
169 });
170 });
171
172 /* Give bare time cells a descriptive label.
173 Strip stray </a> text artefact Fossil emits in anonymous mode. */
174 document.querySelectorAll('td.timelineTime').forEach(function (td) {
175 var text = td.textContent.trim();
176 if (text && !td.getAttribute('aria-label')) {
177 td.setAttribute('aria-label', 'Time: ' + text);
178 }
179 });
180 }
181
182 /* ─────────────────────────────────────────────────────────────────────
183 5. Sortable table headers — add scope="col"
184 Fossil generates <th> elements in branch, tag, file, and ticket
185 tables but never includes scope. Screen readers cannot correctly
186 associate header text with the cells in each column.
187 ───────────────────────────────────────────────────────────────────── */
188 function fixTableHeaders() {
189 var selector = [
190 'table.sortable th',
191 'table.filelistTable th',
192 'table.branchlistTable th',
193 'table.taglistTable th',
194 'table.userlistTable th',
195 'table.report th',
196 ].join(', ');
197 document.querySelectorAll(selector).forEach(function (th) {
198 if (!th.getAttribute('scope')) {
199 th.setAttribute('scope', 'col');
200 }
201 });
202 }
203
204 /* ─────────────────────────────────────────────────────────────────────
205 6. Submenu select labels
206 Fossil renders <select> controls in the page submenu with no
207 associated <label>. We add aria-label from the preceding sibling
208 label text, falling back to a class-name lookup table.
209 ───────────────────────────────────────────────────────────────────── */
210 var SELECT_LABELS = {
211 'smc-ss': 'View style',
212 'smc-ci': 'Check-in',
213 'smc-v': 'Version',
214 'smc-r': 'Repository',
215 'smc-b': 'Branch',
216 'smc-t': 'Tag',
217 'smc-u': 'User',
218 };
219
220 /* Charts Fossil draws as <svg width= height=> with no viewBox cannot be
221 scaled by CSS. Give them one; the skin's "svg.fit" rule does the rest. */
222 function fitCharts() {
223 document.querySelectorAll('.content svg[width][height]:not([viewBox])').forEach(function (s) {
224 var w = parseFloat(s.getAttribute('width')), h = parseFloat(s.getAttribute('height'));
225 if (!(w > 0 && h > 0)) return;
226 s.setAttribute('viewBox', '0 0 ' + w + ' ' + h);
227 s.classList.add('fit');
228 });
229 }
230
231 /* Sortable column headers respond to clicks only. Put them in the tab
232 order and let Enter or Space do what a click does. */
233 function fixSortableHeaders() {
234 document.querySelectorAll('table.sortable th').forEach(function (th) {
235 if (th.hasAttribute('tabindex')) return;
236 th.setAttribute('tabindex', '0');
237 th.addEventListener('keydown', function (e) {
238 if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); th.click(); }
239 });
240 });
241 }
242
243 /* The menu bar scrolls sideways on narrow screens. Bring the current
244 page's entry into view, without moving the page itself. */
245 function showActiveMenuItem() {
246 var nav = document.querySelector('nav.mainmenu');
247 var a = nav && nav.querySelector('a.active');
248 var hb = document.getElementById('hbbtn');
249 if (!a || a === hb || nav.scrollWidth <= nav.clientWidth) return;
250 var left = a.offsetLeft - nav.offsetLeft, pinned = hb ? hb.offsetWidth : 0;
251 if (left - pinned < nav.scrollLeft || left + a.offsetWidth > nav.scrollLeft + nav.clientWidth - 28) {
252 nav.scrollLeft = Math.max(0, left - pinned - 12);
253 }
254 }
255
256 function fixSubmenuSelects() {
257 document.querySelectorAll('div.submenu select, div.sectionmenu select').forEach(function (sel) {
258 if (sel.getAttribute('aria-label') || sel.getAttribute('aria-labelledby')) return;
259
260 /* Walk backwards through siblings to find a .label text node */
261 var prev = sel.previousElementSibling;
262 while (prev) {
263 if (prev.classList.contains('label') && prev.textContent.trim()) {
264 sel.setAttribute('aria-label', prev.textContent.trim());
265 return;
266 }
267 prev = prev.previousElementSibling;
268 }
269
270 /* Class-name lookup */
271 var classes = Array.from(sel.classList);
272 for (var i = 0; i < classes.length; i++) {
273 if (SELECT_LABELS[classes[i]]) {
274 sel.setAttribute('aria-label', SELECT_LABELS[classes[i]]);
275 return;
276 }
277 }
278
279 sel.setAttribute('aria-label', 'Filter');
280 });
281 }
282
283 /* ─────────────────────────────────────────────────────────────────────
284 7. Day of week on each timeline date
285 Fossil's date rows carry only the date ("2026-11-11"). This puts the
286 full weekday on a small line above it. The weekday comes from Ben
287 Joffe's branchless method (benjoffe.com/fast-day-of-week), as zit
288 uses it: one multiply and two shifts, exact for every 32-bit day
289 number. It is read from the date Fossil prints, so it always matches
290 that date whether the timeline shows UTC or local time. The skin CSS
291 reserves the line before this runs, so setting the name moves nothing.
292 ───────────────────────────────────────────────────────────────────── */
293 var WEEKDAYS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
294 function weekdayOf(dayNumber) { /* days since 1970-01-01 -> 0 = Sunday */
295 return ((Math.imul(dayNumber, 613566756) + 0x95000000 +
296 (dayNumber >> 1) + (dayNumber >> 4)) >>> 0) >>> 29;
297 }
298 function addWeekdays() {
299 var rows = document.querySelectorAll('div.timelineDate');
300 for (var i = 0; i < rows.length; i++) {
301 if (rows[i].hasAttribute('data-dow')) continue;
302 var m = /^(\d{4})-(\d\d)-(\d\d)$/.exec(rows[i].textContent.trim());
303 if (!m) continue;
304 /* The skin CSS shows this in a line it reserves above the date */
305 rows[i].setAttribute('data-dow', WEEKDAYS[weekdayOf(Date.UTC(+m[1], m[2] - 1, +m[3]) / 864e5)]);
306 }
307 }
308
309 /* ─────────────────────────────────────────────────────────────────────
310 Execute all fixes
311 The script is deferred so the DOM is fully parsed when this runs.
312 Fossil's inline config scripts have already executed, so
313 window.fossil exists and we can patch isDark immediately.
314 ───────────────────────────────────────────────────────────────────── */
315 patchIsDark();
316 addMainLandmark();
317 fixHamburgerMenu();
318 fixTimeline();
319 fixTableHeaders();
320 fixSubmenuSelects();
321 fitCharts();
322 showActiveMenuItem();
323 fixSortableHeaders();
324 addWeekdays();
325
326 /* Re-run after window.load: Fossil's timeline renderer inserts
327 .tl-canvas SVG elements into td.timelineGraph on load, and
328 Fossil's own load handlers may reset isDark. */
329 window.addEventListener('load', function () {
330 patchIsDark();
331 fixTimeline();
332 fixTableHeaders();
333 fixSubmenuSelects();
334 });
335
336 }());
337
338 });
--- a/skins/refined-light/css.txt
+++ b/skins/refined-light/css.txt
@@ -0,0 +1,978 @@
1
+/* Refined Light skin
2
+ A light rendering of Fossil's default skin: same layout, same sizes, same
3
+ menu band and submenu row. Colors are chosen for WCAG AA contrast on a
4
+ near-black page: body text 13:1, muted text 7:1, links 7:1.
5
+ Functional dark-theme overrides for Fossil's hardcoded light colors
6
+ (timeline graph, diffs, chat, forum, tickets) are kept at the end.
7
+ Uses system fonts; no external font resources are needed. */
8
+
9
+
10
+:root {
11
+ --bg: #ffffff;
12
+ --surface: #f4f5f7;
13
+ --surface2: #e8ebef;
14
+ --border: #d3d7dd;
15
+ --text: #1c1e22; /* 16:1 on --bg */
16
+ --muted: #565e68; /* 6.6:1 on --bg */
17
+ --link: #2b67a8; /* 5.8:1 on --bg; near Fossil default's #3779BF */
18
+ --link-hover: #1d4f86;
19
+ --link-on-tint: #1d4f86; /* 5.0-6.4:1 on Fossil's pastel rows */
20
+ --title: #3a7bc0; /* large text; Fossil default's #4183C4 */
21
+ --active: #d26911; /* Fossil default's menu accent */
22
+ --green: #1d7a3c;
23
+ --red: #b3372a;
24
+ --yellow: #8a6100;
25
+ --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
26
+ --mono: ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
27
+ color-scheme: light;
28
+ --input-bg: #ffffff; --on-accent: #ffffff; --visited: #5a4fa8;
29
+ --sel-bg: #f7e3cc; --sec-bg: #d9e7f6; --stripe: #f7f8fa; --rule: #e5e8ec;
30
+ --btn-hover: #dde1e6; --band-top: #fafbfc; --warn-bg: #fbf0d0; --err-bg: #fbe1dc;
31
+ --green-rgb: 29 122 60; --red-rgb: 179 55 42; --yellow-rgb: 190 140 0;
32
+ --link-rgb: 43 103 168; --teal-rgb: 20 140 130; --violet-rgb: 90 90 200;
33
+ --muted-rgb: 86 94 104; --veil-rgb: 255 255 255; --lift-rgb: 0 0 0; --shadow-rgb: 0 0 0;
34
+ --tint-rgb: 255 255 255; --tint-mute: 0; --chat-mute: 0; --bubble-shadow: 0.10; --popup-shadow: 0.16;
35
+ --veil: 0;
36
+}
37
+
38
+/* Base, matching the default skin's sizing */
39
+body {
40
+ box-sizing: border-box;
41
+ min-height: 100vh;
42
+ min-height: 100dvh;
43
+ display: flex;
44
+ flex-direction: column;
45
+ margin: 0 auto;
46
+ background-color: var(--bg);
47
+ color: var(--text);
48
+ font-family: var(--font);
49
+ font-size: 16px;
50
+ line-height: 1.45;
51
+}
52
+a { color: var(--link); text-decoration: none; }
53
+a:hover { color: var(--link-hover); text-decoration: underline; }
54
+a:visited { color: var(--visited); }
55
+code, pre, tt, kbd, samp, var { font-family: var(--mono); }
56
+code, tt, kbd, samp { font-size: 0.94em; }
57
+pre { font-size: 0.92em; line-height: 1.35; overflow-x: auto; }
58
+hr { border: none; border-top: 1px solid var(--border); }
59
+blockquote { border-left: 3px solid var(--border); margin: 0.5em 0; padding: 0.1em 1em; }
60
+img { max-width: 100%; }
61
+
62
+/* Title area above the menu bar */
63
+header { display: flex; align-items: center; gap: 14px; padding: 14px 0 12px; }
64
+.skip-nav {
65
+ position: absolute; top: -100%; left: 0;
66
+ background: var(--link); color: var(--on-accent);
67
+ padding: 0.5rem 1.25rem; font-weight: 600; z-index: 9999;
68
+ border-radius: 0 0 6px 0;
69
+}
70
+.skip-nav:focus { top: 0; outline: 2px solid #fff; outline-offset: -4px; }
71
+
72
+div.logo { display: flex; flex-shrink: 0; }
73
+div.logo img, img.logo-mark { width: 48px; height: 48px; object-fit: cover; display: block; border-radius: 6px; }
74
+.hub-link:hover img { opacity: 0.85; }
75
+
76
+.title { min-width: 0; color: var(--title); line-height: 1.2; }
77
+.title h1, .title .project-name {
78
+ display: inline;
79
+ font-size: 2.2em;
80
+ font-weight: bold;
81
+ color: var(--title);
82
+ text-decoration: none;
83
+}
84
+.title .project-name:hover { color: var(--link-hover); text-decoration: none; }
85
+.title h1:after, .title .project-name:after {
86
+ content: " / "; color: var(--muted); font-weight: normal;
87
+}
88
+span.page-title { font-size: 18px; color: var(--text); }
89
+/* Hidden from view but not display:none: Fossil's forum script sizes its
90
+ expand control from the height of the first h1 on the page, and loops
91
+ forever if that height is 0. This also keeps the heading for screen readers. */
92
+h1.page-title {
93
+ font-size: 1.6em; color: var(--text);
94
+ display: block; position: absolute; width: 1px; margin: 0; padding: 0;
95
+ overflow: hidden; clip-path: inset(50%); white-space: nowrap;
96
+}
97
+/* Home pages carry their own heading; Fossil's "index" / "Home" title is noise */
98
+h1.page-title.home-title { display: none !important; }
99
+/* Long document titles go in the body instead of the title bar */
100
+.artifact h1.page-title, .dir h1.page-title, .doc h1.page-title, .wiki h1.page-title {
101
+ position: static; width: auto; overflow: visible; clip-path: none; white-space: normal;
102
+ margin: revert; margin-bottom: 0;
103
+}
104
+.artifact .title > .page-title, .dir .title > .page-title,
105
+.doc .title > .page-title, .wiki .title > .page-title { display: none; }
106
+/* ...unless the page opens with a heading of its own (a wiki page's first
107
+ heading, "History of ...", "Files in ..."): the title would say it twice */
108
+body:has(div.content > :is(h1, h2):first-child, div.content > span:first-child + :is(h1, h2),
109
+ div.content > :is(.markdown, .fossil-doc) > :is(h1, h2):first-child,
110
+ div.content > span:first-child + :is(.markdown, .fossil-doc) > :is(h1, h2):first-child) h1.page-title {
111
+ position: absolute; width: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
112
+}
113
+.artifact .title h1:after, .dir .title h1:after, .doc .title h1:after, .wiki .title h1:after,
114
+.artifact .title .project-name:after, .dir .title .project-name:after,
115
+.doc .title .project-name:after, .wiki .title .project-name:after { content: ""; }
116
+
117
+.status { margin-left: auto; font-size: 0.9em; }
118
+.status a { color: var(--muted); }
119
+.status a:hover { color: var(--text); }
120
+
121
+/* Main menu band */
122
+.mainmenu {
123
+ clear: both;
124
+ background: var(--surface) linear-gradient(var(--band-top), var(--surface)) repeat-x;
125
+ border: 1px solid var(--border);
126
+ border-radius: 5px;
127
+ overflow-x: auto;
128
+ overflow-y: hidden;
129
+ white-space: nowrap;
130
+ z-index: 21;
131
+}
132
+.mainmenu a {
133
+ display: inline-block;
134
+ line-height: 1.4;
135
+ color: var(--muted);
136
+ text-decoration: none;
137
+ border-right: 1px solid var(--border);
138
+ font-weight: 500;
139
+}
140
+.mainmenu a.active, .mainmenu a:hover {
141
+ color: var(--text);
142
+ border-bottom: 2px solid var(--active);
143
+ text-decoration: none;
144
+}
145
+#hbbtn { font-size: 1.15em; min-width: 44px; text-align: center; }
146
+#hbbtn[aria-expanded="true"] { color: var(--text); background: var(--surface2); }
147
+
148
+/* Hamburger dropdown (hbmenu.js toggles display; a11y.js sets --nav-bottom) */
149
+nav#hbdrop {
150
+ background-color: var(--surface);
151
+ border: 1px solid var(--border);
152
+ border-top: none;
153
+ border-radius: 0 0 0.5em 0.5em;
154
+ display: none;
155
+ font-size: 0.95em;
156
+ position: fixed;
157
+ top: var(--nav-bottom, 88px);
158
+ left: 0; right: 0;
159
+ z-index: 200;
160
+ box-shadow: 0 8px 24px rgb(var(--shadow-rgb) / 0.5);
161
+ overflow-x: hidden;
162
+ max-height: 75vh;
163
+ overflow-y: auto;
164
+}
165
+ul#sitemap {
166
+ padding: 1.25rem 1.5rem 1.5rem;
167
+ margin: 0;
168
+ list-style: none;
169
+ column-width: 14em;
170
+ column-gap: 2.5rem;
171
+}
172
+ul#sitemap > li {
173
+ list-style: none;
174
+ margin: 0 0 1.1rem;
175
+ break-inside: avoid;
176
+}
177
+ul#sitemap > li > a {
178
+ display: inline-block;
179
+ font-size: 0.78em;
180
+ font-weight: 600;
181
+ letter-spacing: 0.06em;
182
+ text-transform: uppercase;
183
+ color: var(--muted);
184
+ padding: 0.3rem 0;
185
+}
186
+ul#sitemap > li > a:hover { color: var(--text); text-decoration: none; }
187
+ul#sitemap ul { margin: 0.15rem 0 0; padding: 0; list-style: none; }
188
+ul#sitemap ul li { list-style: none; }
189
+ul#sitemap ul li a {
190
+ display: flex; align-items: center; box-sizing: border-box; /* text stays centered at any row height */
191
+ color: var(--text);
192
+ padding: 0.3rem 0.6rem;
193
+ margin-left: -0.6rem;
194
+ border-radius: 4px;
195
+ min-height: 36px;
196
+}
197
+ul#sitemap ul li a:hover { background: var(--surface2); color: var(--link-hover); text-decoration: none; }
198
+nav#hbdrop ul#sitemap { column-width: 14em; }
199
+ul#sitemap.columns { overflow-x: hidden; }
200
+
201
+/* Submenu row, like the default: a horizontal strip under the menu band */
202
+.submenu, .sectionmenu {
203
+ font-size: 0.9em;
204
+ padding: 8px 0;
205
+ margin-bottom: 4px;
206
+ border-bottom: 1px solid var(--border);
207
+ display: flex;
208
+ flex-wrap: wrap;
209
+ align-items: center;
210
+ gap: 0.25rem 0.5rem;
211
+}
212
+.submenu a, .submenu label, .sectionmenu a {
213
+ padding: 6px 10px;
214
+ text-decoration: none;
215
+ color: var(--link);
216
+ border: 1px solid transparent;
217
+ border-radius: 5px;
218
+ white-space: nowrap;
219
+}
220
+.submenu > a:first-child { margin-left: -10px; }
221
+.submenu a:hover, .submenu label:hover, .sectionmenu a:hover {
222
+ border-color: var(--border);
223
+ background: var(--surface);
224
+ color: var(--text);
225
+ text-decoration: none;
226
+}
227
+span.submenuctrl, span.submenuctrl input, select.submenuctrl { color: var(--muted); }
228
+span.submenuctrl { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.35rem; }
229
+.submenuckbox { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text); cursor: pointer; }
230
+.submenu select, .submenu input[type=text], .sectionmenu select, .sectionmenu input[type=text] {
231
+ width: auto;
232
+ font-size: 0.95em;
233
+ padding: 0.3em 0.5em;
234
+}
235
+.submenu select, .sectionmenu select { padding-right: 1.9em; }
236
+.section {
237
+ font-size: 1em; font-weight: bold;
238
+ background-color: var(--surface);
239
+ border: 1px solid var(--border);
240
+ border-radius: 3px 3px 0 0;
241
+ padding: 9px 10px 10px;
242
+ margin: 10px 0;
243
+}
244
+.sectionmenu {
245
+ border: 1px solid var(--border);
246
+ border-radius: 0 0 3px 3px;
247
+ border-top: 0;
248
+ margin-top: -10px;
249
+ margin-bottom: 10px;
250
+}
251
+
252
+/* Content */
253
+.content { padding: 12px 0; color: var(--text); }
254
+.content h1 { font-size: 1.60em; color: var(--text); }
255
+.content h2 { font-size: 1.45em; color: var(--text); }
256
+.content h3 { font-size: 1.15em; color: var(--text); }
257
+.content h4 { font-size: 1.05em; color: var(--text); }
258
+.content h5 { font-size: 1.00em; color: var(--text); }
259
+.content pre, table.numbered-lines > tbody > tr { hyphens: none; line-height: 1.3; }
260
+.content ul:not(.browser) > li { list-style-type: disc; }
261
+div.filetree ul li.dir, div.filetree ul li.subdir, div.filetree ul li.file { list-style-type: none; }
262
+th { text-align: left; }
263
+
264
+/* User content: wiki, embedded docs, forum posts */
265
+.markdown blockquote, p.blockquote, .sidebar {
266
+ background-color: var(--surface);
267
+ border-left: 4px solid var(--link);
268
+}
269
+div.sidebar { outline: 1em solid var(--bg); }
270
+.artifact > .content > p > code, .artifact > .content > .markdown > p > code, .artifact > .content > .fossil-doc > p > code,
271
+.dir > .content > p > code, .dir > .content > .markdown > p > code,
272
+.doc > .content > p > code, .doc > .content > .markdown > p > code, .doc > .content > .fossil-doc > p > code,
273
+.forum > .content .markdown > p > code,
274
+.wiki > .content > p > code, .wiki > .content > .markdown > p > code, .wiki > .content > .fossil-doc > p > code,
275
+.content li > code, .content td > code {
276
+ background-color: var(--surface);
277
+ border: 1px solid var(--border);
278
+ border-radius: 3px;
279
+ padding: 0 4px;
280
+}
281
+.artifact > .content > pre, .artifact > .content > .markdown > pre, .artifact > .content > .fossil-doc > pre,
282
+.dir > .content > pre, .dir > .content > .markdown > pre,
283
+.doc > .content > pre, .doc > .content > .markdown > pre, .doc > .content > .fossil-doc > pre,
284
+.forum > .content .markdown > pre,
285
+.wiki > .content > pre, .wiki > .content > .markdown > pre, .wiki > .content > .fossil-doc > pre,
286
+pre.verbatim, pre.textPlain {
287
+ background-color: var(--surface);
288
+ border: 1px solid var(--border);
289
+ border-radius: 4px;
290
+ padding: 8px 10px;
291
+}
292
+pre.verbatim { white-space: pre-wrap; }
293
+.artifact > .content table, .dir > .content table, .doc > .content table, .wiki > .content table,
294
+.forum > .content .markdown table {
295
+ background-color: var(--surface);
296
+ border: 1px solid var(--border);
297
+ border-radius: 0.5em;
298
+ border-spacing: 0;
299
+ padding: 6px;
300
+}
301
+.artifact > .content th, .dir > .content th, .doc > .content th, .wiki > .content th,
302
+.forum > .content .markdown th {
303
+ border-bottom: 1px solid var(--border);
304
+ background-color: var(--surface2);
305
+ padding: 4px 6px;
306
+}
307
+.artifact > .content tr:nth-child(odd) td, .dir > .content tr:nth-child(odd) td,
308
+.doc > .content tr:nth-child(odd) td, .wiki > .content tr:nth-child(odd) td {
309
+ background-color: var(--stripe);
310
+}
311
+.artifact > .content td, .dir > .content td, .doc > .content td, .wiki > .content td,
312
+.forum > .content .markdown td { padding: 4px 6px; }
313
+textarea.wikiedit { font-size: 1.1em; }
314
+
315
+/* Forms */
316
+input[type=text], input[type=password], input[type=email], input[type=search],
317
+input[type=number], textarea, select {
318
+ background: var(--input-bg);
319
+ border: 1px solid var(--border);
320
+ border-radius: 4px;
321
+ color: var(--text);
322
+ font-family: var(--font);
323
+ font-size: 1em;
324
+ padding: 0.35em 0.6em;
325
+}
326
+textarea { font-family: var(--mono); }
327
+select {
328
+ appearance: none;
329
+ -webkit-appearance: none;
330
+ padding-right: 2em;
331
+ line-height: 1.3;
332
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23565e68' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
333
+ background-repeat: no-repeat;
334
+ background-position: right 0.6em center;
335
+ background-size: 12px;
336
+ cursor: pointer;
337
+}
338
+select:hover { border-color: var(--muted); }
339
+select option { background: var(--input-bg); color: var(--text); }
340
+input:focus, textarea:focus, select:focus { border-color: var(--link); outline: none; }
341
+input[type=submit], input[type=button], button {
342
+ background: var(--surface2);
343
+ border: 1px solid var(--border);
344
+ border-radius: 4px;
345
+ color: var(--text);
346
+ cursor: pointer;
347
+ font-family: var(--font);
348
+ font-size: 1em;
349
+ padding: 0.35em 1em;
350
+}
351
+input[type=submit]:hover, input[type=button]:hover, button:hover {
352
+ border-color: var(--muted);
353
+ background: var(--btn-hover);
354
+}
355
+input[type=submit]:disabled, input[type=button]:disabled, button:disabled { opacity: 0.5; cursor: not-allowed; }
356
+:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
357
+.mainmenu a:focus-visible { outline-offset: -3px; }
358
+
359
+/* Let short pages fill the viewport without overlaying long content. */
360
+body > .content { flex: 1 0 auto; min-width: 0; }
361
+body > header, body > nav, body > footer { flex-shrink: 0; }
362
+
363
+/* Footer */
364
+footer {
365
+ border-top: 1px solid var(--border);
366
+ padding: 10px;
367
+ font-size: 0.85em;
368
+ margin-top: 10px;
369
+ color: var(--muted);
370
+ display: flex;
371
+ justify-content: space-between;
372
+ flex-wrap: wrap;
373
+ gap: 0.5rem;
374
+}
375
+
376
+/* Forum */
377
+.forum a:visited { color: var(--visited); }
378
+div.forumSel {
379
+ animation: 1s linear 0s sel-fade;
380
+ background-color: var(--bg);
381
+ border-left: 4px solid var(--link);
382
+}
383
+@keyframes sel-fade { from { background-color: var(--surface2); } to { background-color: var(--bg); } }
384
+.forum form input { margin: 0.5em 0; }
385
+div.forumTime, div.forumHier, div.forumHierRoot {
386
+ background: var(--surface) !important;
387
+ border: 1px solid var(--border) !important;
388
+ border-radius: 4px;
389
+ color: var(--text) !important;
390
+}
391
+div.forumTime.forumSel, div.forumHier.forumSel { border-color: var(--link) !important; }
392
+div.forumObs { opacity: 0.75; }
393
+div.forumPostBody, div.forumPostBody h1, div.forumPostBody h2, div.forumPostBody h3 { color: var(--text) !important; }
394
+.forum-post-collapser {
395
+ border-color: var(--border) !important;
396
+ background: var(--surface) !important;
397
+ color: var(--muted) !important;
398
+}
399
+.forum-post-collapser:hover { background: var(--surface2) !important; color: var(--text) !important; }
400
+div.searchForm { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1em 0; }
401
+
402
+/* Tickets and reports */
403
+table.report { cursor: auto; border: 1px solid var(--border); border-radius: 0.5em; margin: 1em 0; }
404
+.report td, .report th { border: 0; font-size: 0.9em; padding: 8px 10px; }
405
+.report th { cursor: pointer; background: var(--surface); }
406
+.report thead + tbody tr:hover { background-color: var(--surface2) !important; }
407
+body.report table.report tr td { color: var(--text) !important; }
408
+body.report table.report a { color: var(--link) !important; }
409
+td.tktDspLabel { width: 70px; text-align: right; overflow: hidden; color: var(--muted) !important; }
410
+td.tktDspValue {
411
+ text-align: left; vertical-align: top;
412
+ background-color: var(--surface) !important;
413
+ border: 1px solid var(--border) !important;
414
+ color: var(--text) !important;
415
+}
416
+td.tktDspValue pre { white-space: pre-wrap; }
417
+
418
+/* Timeline */
419
+span.timelineDetail { font-size: 90%; }
420
+div.timelineDate { font-weight: bold; white-space: nowrap; color: var(--muted); }
421
+table.timelineTable { padding: 0 3px; }
422
+table.timelineTable tr { border-radius: 1em; }
423
+.timelineModernCell, .timelineColumnarCell, .timelineDetailCell { border-radius: 0.5em; }
424
+.timelineModernCell[id], .timelineColumnarCell[id], .timelineDetailCell[id] { background-color: var(--surface); }
425
+.timelineModernDetail { opacity: 1; color: var(--muted); font-size: 0.9em; }
426
+.timelineModernComment { color: var(--text); }
427
+td.timelineTime { color: var(--muted); font-family: var(--mono); font-size: 0.9em; white-space: nowrap; }
428
+span.timelineHash { font-family: var(--mono); }
429
+tr.timelineSelected, tr.timelineSecondary { background-color: unset; }
430
+tr.timelineSelected td, span.timelineSelected { background-color: var(--sel-bg) !important; }
431
+tr.timelineSecondary td, span.timelineSecondary { background-color: var(--sec-bg) !important; }
432
+tr.timelineCurrent td:first-child, tr.timelineSecondary td:first-child, tr.timelineSelected td:first-child {
433
+ border-top-left-radius: 1em; border-bottom-left-radius: 1em;
434
+}
435
+tr.timelineCurrent td:last-child, tr.timelineSecondary td:last-child, tr.timelineSelected td:last-child {
436
+ border-top-right-radius: 1em; border-bottom-right-radius: 1em;
437
+}
438
+tr.timelineCurrent td { border-top: 1px dashed var(--muted); border-bottom: 1px dashed var(--muted); }
439
+tr.timelineCurrent td:first-child { border-left: 1px dashed var(--muted); }
440
+tr.timelineCurrent td:last-child { border-right: 1px dashed var(--muted); }
441
+
442
+/* Timeline graph: Fossil hardcodes black lines and white nodes */
443
+.tl-node { background: var(--link) !important; border-color: var(--text) !important; }
444
+.tl-node.leaf:after { background: var(--bg) !important; }
445
+.tl-node.closed-leaf svg { color: var(--bg) !important; }
446
+.tl-line { background-color: var(--muted); }
447
+.tl-line.warp { background: var(--yellow) !important; }
448
+.tl-line.cherrypick.h { border-top-color: var(--muted) !important; background: transparent !important; }
449
+.tl-line.cherrypick.v, .tl-line.dotted.v { border-left-color: var(--muted) !important; background: transparent !important; }
450
+.tl-arrow.u, .tl-arrow.u.sm { border-bottom-color: var(--muted) !important; }
451
+.tl-arrow.merge.l, .tl-arrow.cherrypick.l { border-right-color: var(--muted) !important; }
452
+.tl-arrow.merge.r, .tl-arrow.cherrypick.r { border-left-color: var(--muted) !important; }
453
+.tl-arrow.warp { border-left-color: var(--yellow) !important; }
454
+/* Branch colors are pastel inline backgrounds; darken them so text stays readable */
455
+/* Branch and user tints come from Fossil, already sized for this foreground */
456
+.tl-tooltip {
457
+ background: var(--surface2) !important; color: var(--text) !important;
458
+ border-color: var(--border) !important; box-shadow: 0 4px 16px rgb(var(--shadow-rgb) / 0.5) !important;
459
+}
460
+
461
+/* Lists and tables Fossil generates */
462
+table.sortable th, table.filelistTable th, .fileage th {
463
+ text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); cursor: pointer;
464
+}
465
+table.sortable td, table.filelistTable td, .fileage td { padding: 5px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
466
+table.sortable tr:hover td, .fileage tr:hover, div.filetreeline:hover { background: var(--surface) !important; }
467
+body.branch .brlist > table > tbody > tr:hover:not(.selected) { background: var(--surface) !important; }
468
+body.branch .brlist > table > tbody > tr.selected { background: var(--surface2) !important; }
469
+.branch-name, span.tagDsp {
470
+ display: inline-block; background: var(--surface2); border: 1px solid var(--border);
471
+ border-radius: 3px; color: var(--link); font-family: var(--mono); font-size: 0.85em; padding: 0 0.3em;
472
+}
473
+
474
+/* Diffs: Fossil's built-in colors are pale pastels */
475
+table.diff { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.9em; }
476
+td.difflnc, td.difflna, td.difflnb { color: var(--muted); padding: 0 0.5em; text-align: right; user-select: none; border-right: 1px solid var(--border); }
477
+td.difftext { padding: 0 0.5em; white-space: pre; }
478
+tr.diffskip, tr.diffskip.jchunk { background: var(--surface) !important; }
479
+tr.diffskip > td.chunkctrl .jcbutton { background: var(--surface2) !important; color: var(--muted) !important; border-radius: 3px; }
480
+tr.diffskip > td.chunkctrl .jcbutton:hover { color: var(--text) !important; }
481
+td.diffmkrl, td.diffmkrr, td.diffmkru { color: var(--muted); }
482
+tr.diffadd td { background: rgb(var(--green-rgb) / 0.10); }
483
+tr.diffrm td { background: rgb(var(--red-rgb) / 0.10); }
484
+tr.diffchng td { background: rgb(var(--yellow-rgb) / 0.07); }
485
+span.diffadd { color: var(--green); }
486
+span.diffrm { color: var(--red); }
487
+span.diffchng { color: var(--yellow); }
488
+td.diffln ins, td.difftxt ins, table.diff pre > ins { background-color: rgb(var(--green-rgb) / 0.16) !important; }
489
+td.diffln del, td.difftxt del, table.diff pre > del { background-color: rgb(var(--red-rgb) / 0.16) !important; }
490
+td.difftxt del > del, table.diff pre > del > del { background-color: rgb(var(--red-rgb) / 0.32) !important; }
491
+td.difftxt ins > ins, table.diff pre > ins > ins { background-color: rgb(var(--green-rgb) / 0.32) !important; }
492
+td.difftxt del > del.edit, td.difftxt ins > ins.edit,
493
+table.diff pre > del > del.edit, table.diff pre > ins > ins.edit { background-color: rgb(var(--link-rgb) / 0.25) !important; }
494
+
495
+/* Annotate / blame: inline pastel backgrounds from Fossil JS */
496
+td.annotateDate, td.annotateUser { color: var(--muted); font-family: var(--mono); font-size: 0.85em; padding: 0 0.5em; white-space: nowrap; border-right: 1px solid var(--border); }
497
+pre span[style*="background"], li span[style*="background"] {
498
+ background-image: linear-gradient(rgb(var(--veil-rgb) / 0.7), rgb(var(--veil-rgb) / 0.7)) !important;
499
+ border-radius: 3px; padding: 0.1em 0.25em;
500
+}
501
+
502
+/* Any inline pastel background Fossil emits (ticket reports and their key,
503
+ ticket pages, annotate legends, branch lists): darken it, keep the hue */
504
+tr[style*="background-color"], td[style*="background-color"], th[style*="background-color"],
505
+span[style*="background-color"], div[style*="background-color"], p[style*="background-color"] {
506
+ background-image: linear-gradient(rgb(var(--veil-rgb) / var(--veil, 0.35)), rgb(var(--veil-rgb) / var(--veil, 0.35))) !important;
507
+ color: var(--text);
508
+}
509
+tr[style*="background-color"] a, td[style*="background-color"] a, p[style*="background-color"] a { color: var(--link); }
510
+p[style*="border:1px solid"] { border-color: var(--border) !important; border-radius: 4px; padding: 0.6em 0.8em; }
511
+/* Pikchr: Fossil already draws white defaults because skin-detail is white-foreground; leave diagrams alone */
512
+
513
+/* Fossil's user and branch colors, muted toward the surface so they sit with the skin */
514
+table.timelineTable td[style*="background"] {
515
+ background-image: linear-gradient(rgb(var(--tint-rgb) / var(--tint-mute)), rgb(var(--tint-rgb) / var(--tint-mute))) !important;
516
+}
517
+body.chat .message-widget-content[style*="background"] {
518
+ background-image: linear-gradient(rgb(var(--tint-rgb) / var(--chat-mute)), rgb(var(--tint-rgb) / var(--chat-mute))) !important;
519
+}
520
+body.chat .message-widget-tab[style*="background"] { background-image: none !important; }
521
+body.chat .message-widget-content { box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / var(--bubble-shadow)) !important; }
522
+
523
+/* Misc Fossil UI elements with hardcoded light colors */
524
+div.debug { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--muted) !important; padding: 0.75rem; }
525
+/* Inline debug markers, e.g. "(artifact-NNN)" on forum posts for admins: just quieter text */
526
+span.debug { background: none !important; border: none !important; padding: 0 !important; color: var(--muted) !important; font-size: 0.85em; }
527
+span.debug a { color: var(--muted); }
528
+span.debug a:hover { color: var(--link); }
529
+span.error { background: rgb(var(--yellow-rgb) / 0.18) !important; color: var(--yellow) !important; padding: 0.1em 0.25em; border-radius: 3px; }
530
+mark { background: rgb(var(--yellow-rgb) / 0.25); color: var(--text); padding: 0.1em 0.25em; border-radius: 3px; }
531
+div.sideboxTitle { color: var(--title); font-weight: 600; }
532
+div.sidebox { background: var(--surface); border: 1px solid var(--border) !important; border-radius: 4px; margin: 0 0 1em 1.5em; padding: 0.75em; }
533
+.disabled { color: var(--red); }
534
+.modpending { color: var(--yellow); }
535
+.fossil-tooltip.help-buttonlet-content { background-color: var(--surface2); color: var(--text); border: 1px solid var(--border); }
536
+.fossil-tooltip { background: var(--surface2) !important; color: var(--text) !important; border-color: var(--border) !important; }
537
+td.capsumRead { background: rgb(var(--green-rgb) / 0.15) !important; color: var(--green); }
538
+td.capsumWrite { background: rgb(var(--yellow-rgb) / 0.15) !important; color: var(--yellow); }
539
+td.capsumOff { background: rgb(var(--muted-rgb) / 0.1) !important; color: var(--muted); }
540
+table.login_out { margin: 1em 0; }
541
+td.login_out_label { color: var(--muted); padding: 0.4em 0.75em 0.4em 0; }
542
+.help-buttonlet { color: var(--link); cursor: pointer; }
543
+
544
+/* Status text Fossil colors pure red / blue / black */
545
+span.disabled, span.wikiError, span.loginError, span.tktError, span.brokenlink, span.thTrace,
546
+p.generalError, p.tktsetupError, p.xfersetupError, p.thmainError, p.reportError, blockquote.reportError,
547
+pre.th1error, span.ueditInheritDeveloper, td.tktTlOpen,
548
+div.markdown ol.footnotes > li.fn-misreference > span, div.markdown ol.footnotes > li.fn-unreferenced > code,
549
+div.markdown sup.noteref.misref, div.markdown sup.noteref.misref > a { color: var(--red) !important; }
550
+span.ueditInheritAnonymous, p.missingPriv, p.noMoreShun, p.shunned { color: var(--link) !important; }
551
+span.ueditInheritReader { color: var(--text) !important; }
552
+blockquote.reportError, p.generalError { background: rgb(var(--red-rgb) / 0.1); border: 1px solid rgb(var(--red-rgb) / 0.4); border-radius: 4px; padding: 0.6em 0.8em; }
553
+/* Fossil also puts class="error" on <body> and colors it yellow; keep the page as it is */
554
+body.error, body.warning { background: var(--bg) !important; color: var(--text) !important; }
555
+.error:not(body), .warning:not(body) { background: rgb(var(--yellow-rgb) / 0.18) !important; color: var(--yellow) !important; border-radius: 3px; padding: 0.1em 0.3em; }
556
+table.numbered-lines td.line-numbers span.selected-line { color: var(--text) !important; background-color: rgb(var(--link-rgb) / 0.22) !important; }
557
+.fossil-toast-message { background: var(--surface2) !important; color: var(--text) !important; border: 1px solid var(--border) !important; border-radius: 6px !important; box-shadow: 0 8px 24px rgb(var(--shadow-rgb) / 0.5) !important; }
558
+.fossil-toast-message.error, .fossil-toast-message.warning { background: var(--warn-bg) !important; color: var(--yellow) !important; border-color: var(--yellow) !important; }
559
+.fossil-toast-message.error { color: var(--red) !important; border-color: var(--red) !important; background: var(--err-bg) !important; }
560
+
561
+/* Wiki / file editor tabs */
562
+.tab-container .tab-bar { display: flex; flex-wrap: wrap; gap: 0.25rem; border-bottom: 1px solid var(--border); }
563
+.tab-container .tab-button {
564
+ padding: 0.4em 0.9em; border: 1px solid transparent; border-bottom: none; border-radius: 5px 5px 0 0;
565
+ background: transparent; color: var(--muted); font-family: var(--font); font-size: 0.95em; cursor: pointer; margin-bottom: -1px;
566
+}
567
+.tab-container .tab-button:hover { color: var(--text); background: var(--surface); }
568
+.tab-container .tab-button.selected { color: var(--text); background: var(--surface); border-color: var(--border); border-bottom-color: var(--surface); }
569
+#fossil-status-bar { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font-family: var(--mono); font-size: 0.85em; padding: 0.4em 0.75em; margin: 0.5em 0; }
570
+.wikiedit-options, .fileedit-options { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding: 0.5em; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; margin-bottom: 0.5em; }
571
+.wikiedit-options .input-with-label, .fileedit-options .input-with-label { display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
572
+#wikiedit-tab-content textarea, #fileedit-tab-content textarea { min-height: 300px; width: 100%; }
573
+.tab-container fieldset { border: 1px solid var(--border); border-radius: 4px; }
574
+.tab-container fieldset legend { color: var(--muted); }
575
+button.wikiedit-content-reload, button.fileedit-content-reload { min-width: unset !important; max-width: unset !important; }
576
+
577
+/* Chat: Fossil sets inline pastel backgrounds per user */
578
+/* Each message keeps the user's color, which Fossil already picks for this
579
+ skin's foreground (white-foreground); only messages without one get --surface. */
580
+body.chat .message-widget-content {
581
+ background-color: var(--surface); border: 1px solid var(--border) !important;
582
+ border-radius: 6px !important; color: var(--text) !important; padding: 0.5em 0.75em !important;
583
+}
584
+body.chat .message-widget-tab { background: transparent !important; color: var(--muted) !important; border: none !important; font-size: 0.9em !important; }
585
+body.chat .message-widget-tab[style*="background"] { background-image: none !important; }
586
+body.chat .message-widget-tab .xfrom { color: var(--link) !important; font-weight: 600 !important; }
587
+body.chat #chat-input-line-wrapper { border: 1px solid var(--border) !important; border-radius: 6px !important; background: var(--input-bg) !important; }
588
+body.chat #chat-input-line-wrapper:focus-within { border-color: var(--link) !important; }
589
+body.chat .chat-input-field { border: none !important; background: transparent !important; color: var(--text) !important; font-family: var(--font) !important; font-size: 1em !important; }
590
+body.chat .cbutton { border: 1px solid var(--border) !important; background: var(--surface) !important; border-radius: 4px !important; }
591
+body.chat .cbutton:hover { background: var(--surface2) !important; }
592
+body.chat fieldset { border: 1px solid var(--border) !important; border-radius: 4px !important; background: var(--surface) !important; }
593
+body.chat .menu-entry { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
594
+body.chat .menu-entry:hover, body.chat .menu-entry.parent { background: var(--surface2) !important; }
595
+body.chat .message-widget .match { background: rgb(var(--yellow-rgb) / 0.25) !important; color: var(--text) !important; }
596
+body.chat .chat-message-popup { background: var(--surface2) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
597
+body.chat .message-widget-content img { max-width: 100% !important; border-radius: 4px !important; }
598
+
599
+/* Chat toolbar: Fossil renders the buttons as emoji; mask them with icons, keep the spans intact */
600
+body.chat #chat-buttons-wrapper > .cbutton {
601
+ position: relative !important;
602
+ font-size: 0 !important;
603
+ color: transparent !important;
604
+ min-width: 44px !important; max-width: 44px !important;
605
+ min-height: 36px !important; height: 36px !important;
606
+ background: var(--surface) !important;
607
+ border: 1px solid var(--border) !important;
608
+ border-radius: 6px !important;
609
+}
610
+body.chat #chat-buttons-wrapper > .cbutton::after {
611
+ content: ""; position: absolute; inset: 0; margin: auto;
612
+ width: 22px; height: 22px;
613
+ background-color: var(--muted);
614
+ -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
615
+}
616
+body.chat #chat-buttons-wrapper > .cbutton:hover { background: var(--surface2) !important; border-color: var(--muted) !important; }
617
+body.chat #chat-buttons-wrapper > .cbutton:hover::after { background-color: var(--text); }
618
+body.chat #chat-buttons-wrapper > #chat-button-submit { background: var(--link) !important; border-color: var(--link) !important; min-width: 64px !important; max-width: 64px !important; }
619
+body.chat #chat-buttons-wrapper > #chat-button-submit::after { background-color: var(--on-accent); }
620
+body.chat #chat-buttons-wrapper > #chat-button-submit:hover { background: var(--link-hover) !important; }
621
+body.chat #chat-button-preview { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z%22/%3E%3C/svg%3E"); }
622
+body.chat #chat-button-search { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z%22/%3E%3C/svg%3E"); }
623
+body.chat #chat-button-attach { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M209.66,122.34a8,8,0,0,1,0,11.32l-82.05,82a56,56,0,0,1-79.2-79.21L147.67,35.73a40,40,0,1,1,56.61,56.55L105,193A24,24,0,1,1,71,159L154.3,74.38A8,8,0,1,1,165.7,85.6L82.39,170.31a8,8,0,1,0,11.27,11.36L192.93,81A24,24,0,1,0,159,47L59.76,147.68a40,40,0,1,0,56.53,56.62l82.06-82A8,8,0,0,1,209.66,122.34Z%22/%3E%3C/svg%3E"); }
624
+body.chat #chat-button-settings { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z%22/%3E%3C/svg%3E"); }
625
+body.chat #chat-button-submit { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z%22/%3E%3C/svg%3E"); }
626
+
627
+/* Screen sizes, as in the default skin */
628
+@media screen and (max-width: 600px) {
629
+ body { padding-left: 12px; padding-right: 12px; }
630
+ .content { font-size: 0.95em; }
631
+ header { gap: 10px; padding: 10px 0 8px; }
632
+ div.logo img, img.logo-mark { width: 36px; height: 36px; }
633
+ .title h1, .title .project-name { font-size: 1.5em; }
634
+ .title > .page-title { display: inline; }
635
+ .artifact .title > .page-title, .dir .title > .page-title,
636
+ .doc .title > .page-title, .wiki .title > .page-title { display: none; }
637
+ .mainmenu a { padding: 10px 12px; }
638
+ .mainmenu { padding: 0; }
639
+ nav#hbdrop ul#sitemap, ul#sitemap.columns { columns: 1 !important; column-width: auto !important; }
640
+ .submenu { padding: 6px 0; }
641
+ td.timelineTime { font-size: 0.8em; }
642
+}
643
+@media screen and (min-width: 600px) {
644
+ body { padding-left: 20px; padding-right: 20px; }
645
+ .mainmenu a { padding: 12px 20px; }
646
+ .mainmenu { padding: 0; }
647
+ .content dd, .content dt, .content div, .content li, .content p, .content table { line-height: 1.45em; }
648
+ /* Fossil renders a document's title outside .content. Match its h1 inset. */
649
+ body.doc > h1.page-title {
650
+ box-sizing: border-box;
651
+ width: 100%;
652
+ margin-inline: 0;
653
+ padding-inline: 10pt;
654
+ }
655
+ .doc > .content > p, .doc > .content > .markdown > p, .doc > .content > .fossil-doc > p,
656
+ .doc > .content > ol, .doc > .content > ul, .doc > .content > .markdown > ol, .doc > .content > .markdown > ul,
657
+ .wiki > .content > p, .wiki > .content > .markdown > p, .wiki > .content > .fossil-doc > p,
658
+ .wiki > .content > ol, .wiki > .content > ul, .wiki > .content > .markdown > ol, .wiki > .content > .markdown > ul,
659
+ .artifact > .content > .markdown > p, .artifact > .content > .markdown > ol, .artifact > .content > .markdown > ul,
660
+ .doc > .content > .markdown > table, .wiki > .content > .markdown > table, .artifact > .content > .markdown > table {
661
+ margin-left: 30pt; margin-right: 30pt;
662
+ }
663
+ .doc > .content > pre, .doc > .content > .markdown > pre, .doc > .content > .fossil-doc > pre,
664
+ .wiki > .content > pre, .wiki > .content > .markdown > pre,
665
+ .artifact > .content > .markdown > pre { margin-left: 40pt; margin-right: 30pt; }
666
+ .forum > .content .markdown > pre { margin-left: 20pt; }
667
+ .doc > .content h1, .wiki .content h1, .artifact .content h1 { margin-left: 10pt; }
668
+ .doc > .content h2, .wiki .content h2, .artifact .content h2 { margin-left: 15pt; }
669
+ .doc > .content h3, .wiki .content h3, .artifact .content h3 { margin-left: 20pt; }
670
+ .doc > .content > blockquote, .wiki > .content > blockquote { margin-left: 50pt; }
671
+ .doc > .content > .markdown > blockquote, .wiki > .content > .markdown > blockquote { margin-left: 40pt; }
672
+ .content .pikchr-wrapper, div.pikchr-wrapper.indent:not(.source) { margin-left: 40pt; }
673
+ div.pikchr-wrapper.center:not(.source), div.pikchr-wrapper.float-right:not(.source) { margin-left: 0; }
674
+}
675
+
676
+/* Chat bubbles: messaging-app corners; your own messages, when Fossil puts
677
+ them on the right (its my-messages-right layout, the default in tall
678
+ windows), point the other way */
679
+body.chat .message-widget:not(.notification) .message-widget-content { border-radius: 12px 12px 12px 4px !important; }
680
+body.chat.my-messages-right .message-widget.mine .message-widget-content { border-radius: 12px 12px 4px 12px !important; }
681
+body.chat.my-messages-right .message-widget.mine .message-widget-tab { text-align: right; }
682
+
683
+/* Message options popup (click a message's header): one card, quiet
684
+ timestamps, buttons sized for touch */
685
+body.chat .chat-message-popup {
686
+ font-family: var(--font) !important; font-size: 0.9em !important;
687
+ background: var(--surface2) !important; border: 1px solid var(--border) !important;
688
+ border-radius: 10px !important; padding: 0.65em !important; gap: 0.45em;
689
+ box-shadow: 0 8px 24px rgb(var(--shadow-rgb) / var(--popup-shadow)) !important;
690
+ max-width: min(26rem, calc(100vw - 2rem));
691
+}
692
+body.chat .chat-message-popup > span { font-family: var(--mono); font-size: 0.85em; color: var(--muted); white-space: normal; }
693
+body.chat .chat-message-popup > .toolbar { border: none !important; gap: 0.4em; margin: 0 !important; flex-wrap: wrap; }
694
+body.chat .chat-message-popup > .toolbar > * { margin: 0 !important; }
695
+body.chat .chat-message-popup > .toolbar > button,
696
+body.chat .chat-message-popup > .toolbar > a {
697
+ flex: 1 1 auto; min-height: 36px; display: inline-flex; align-items: center; justify-content: center;
698
+ padding: 0.35em 0.8em; border: 1px solid var(--border); border-radius: 6px;
699
+ background: var(--surface); color: var(--text); font-family: var(--font); font-size: 1em; text-decoration: none;
700
+}
701
+body.chat .chat-message-popup > .toolbar > a { color: var(--link); }
702
+body.chat .chat-message-popup > .toolbar > button:hover,
703
+body.chat .chat-message-popup > .toolbar > a:hover { background: var(--btn-hover); border-color: var(--muted); text-decoration: none; }
704
+/* "Delete globally" removes the message for everyone */
705
+body.chat .chat-message-popup > div.toolbar:nth-of-type(1) > button:nth-child(2) { color: var(--red); }
706
+@media (pointer: coarse), (max-width: 600px) {
707
+ body.chat .chat-message-popup > .toolbar > button,
708
+ body.chat .chat-message-popup > .toolbar > a { min-height: 44px; }
709
+}
710
+
711
+/* Phones: the page itself never scrolls sideways */
712
+body.chat .chat-message-popup { z-index: 200 !important; }
713
+@media screen and (max-width: 600px) {
714
+ table.label-value td { white-space: normal !important; overflow-wrap: anywhere; }
715
+ table.label-value td .nobr, table.label-value td .nobr *,
716
+ td.tktDspValue .nobr, td.tktDspValue .nobr * { white-space: normal !important; word-break: break-all; }
717
+ .content table.sortable, .content table.report, .content table.userTable {
718
+ display: block; max-width: 100%; overflow-x: auto;
719
+ }
720
+ .title h1, .title .project-name { font-size: 1.3em; }
721
+}
722
+
723
+/* Hamburger menu. hbmenu.js toggles it instantly (data-anim-ms="0" in the
724
+ header); the skin slides it in. */
725
+@keyframes hb-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
726
+nav#hbdrop { animation: hb-in 160ms ease-out; top: var(--nav-bottom, 88px); }
727
+@media screen and (max-width: 600px), (pointer: coarse) {
728
+ /* A sheet from under the nav bar to the bottom of the screen, scrolling
729
+ on its own, with the page behind it held still */
730
+ nav#hbdrop {
731
+ bottom: 0; max-height: none; border-radius: 0; border-left: 0; border-right: 0;
732
+ overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
733
+ }
734
+ html:has(#hbdrop[style*="display: block"]) { overflow: hidden; }
735
+ /* Keep the nav bar, and its close button, on screen while the menu is open */
736
+ html:has(#hbdrop[style*="display: block"]) nav.mainmenu { position: sticky; top: 0; }
737
+ ul#sitemap ul li a { min-height: 44px; display: flex; align-items: center; }
738
+}
739
+@media (prefers-reduced-motion: reduce) { nav#hbdrop { animation: none; } }
740
+
741
+/* Menu bar: every item carries the 2px underline slot, transparent until
742
+ hover or active, so highlighting never changes any item's or the bar's height */
743
+.mainmenu a { border-bottom: 2px solid transparent; }
744
+.mainmenu a.active, .mainmenu a:hover { border-bottom-color: var(--active); }
745
+#hbbtn { line-height: 1.4; font-size: 1em; }
746
+
747
+/* Logo: show any repository's logo whole in the same 48px box (36px on
748
+ phones); a square logo looks exactly as before */
749
+div.logo img, img.logo-mark { object-fit: contain; }
750
+
751
+/* Menu bar as a flex row: the whitespace between items in the header no
752
+ longer leaves 4px gaps, so each underline meets the divider beside it */
753
+.mainmenu { display: flex; }
754
+.mainmenu a { flex: 0 0 auto; }
755
+
756
+/* Weekday above each timeline date. The line is reserved here, before any
757
+ script runs, so the rows already have their final height when Fossil
758
+ draws the timeline graph; a11y.js only fills in the name through
759
+ data-dow. (Inserting a line afterwards moved every row, and Fossil
760
+ redrew the graph a second later, so the nodes jumped.) */
761
+div.timelineDate::before {
762
+ content: attr(data-dow); display: block; min-height: 1.2em;
763
+ font-size: 0.8em; font-weight: 400; opacity: 0.85; line-height: 1.2; margin-bottom: 0.1em;
764
+}
765
+
766
+
767
+/* The chat's "Load..." bar: a small label over one row of buttons, without
768
+ the box Fossil's fieldset would draw around them */
769
+body.chat fieldset#load-msg-toolbar {
770
+ border: none !important; background: transparent !important;
771
+ padding: 0.5em 0 0 !important; margin: 0 0 1em !important;
772
+}
773
+body.chat #load-msg-toolbar > legend { font-size: 0.85em; color: var(--muted); padding: 0 0 0.35em; }
774
+body.chat #load-msg-toolbar > div { gap: 0.5em; }
775
+body.chat #load-msg-toolbar > div > button { border-radius: 6px; }
776
+
777
+
778
+/* ── Fixes from the page-by-page audit ─────────────────────────────────── */
779
+
780
+/* Fields Fossil emits with no type, or type="input" (forum title, ticket
781
+ e-mail), which the input[type=text] rule above does not match */
782
+input:not([type]), input[type=input] {
783
+ background: var(--input-bg); border: 1px solid var(--border); border-radius: 4px;
784
+ color: var(--text); font-family: var(--font); font-size: 1em; padding: 0.35em 0.6em;
785
+}
786
+input[type=file]::file-selector-button {
787
+ background: var(--surface2); border: 1px solid var(--border); border-radius: 4px;
788
+ color: var(--text); font-family: var(--font); font-size: 0.95em; padding: 0.35em 0.8em;
789
+ margin-right: 0.6em; cursor: pointer;
790
+}
791
+input[type=file]::file-selector-button:hover { background: var(--btn-hover); border-color: var(--muted); }
792
+
793
+/* Forum subjects may shrink below a long word on narrow screens. */
794
+@media screen and (max-width: 600px) {
795
+ body.forum td.subject { overflow-wrap: anywhere; }
796
+}
797
+
798
+/* Long hashes in titles and headings wrap instead of widening the page */
799
+.title, span.page-title, .content h1, .content h2, .content h3 { overflow-wrap: anywhere; }
800
+.title { min-width: 0; }
801
+.content :not(pre) > code { overflow-wrap: break-word; }
802
+.markdown p, .markdown li { overflow-wrap: break-word; }
803
+
804
+/* Rendered markdown looks the same wherever it appears (the wiki editor's
805
+ preview nests it deeper than the page does) */
806
+.markdown pre {
807
+ background-color: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 8px 10px;
808
+}
809
+.markdown p > code, .markdown li > code, .markdown td > code {
810
+ background-color: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: 0 4px;
811
+}
812
+
813
+/* Chat: a bubble holding an attachment stays inside its column */
814
+body.chat .message-widget-content { box-sizing: border-box; max-width: 100%; }
815
+body.chat .chat-message-popup > .toolbar { align-items: stretch; }
816
+body.chat .chat-message-popup > .toolbar > a { display: inline-flex; align-items: center; }
817
+
818
+/* Activity-report charts: a11y.js gives them a viewBox so they can shrink */
819
+.content svg.fit { max-width: 100%; height: auto; }
820
+
821
+/* Contrast: links on Fossil's colored rows, closed tickets in the timeline,
822
+ the fourth capability marker */
823
+body.report table.report tr[style*="background-color"] a,
824
+table.timelineTable td[style*="background"] a { color: var(--link-on-tint) !important; }
825
+td.tktTlClosed { color: var(--muted); }
826
+span.ueditInheritNobody { color: var(--green) !important; }
827
+
828
+/* Ticket view: a label alone in its row ("Description:") sits at the left,
829
+ like "User Comments:" below it */
830
+td.tktDspLabel:only-child { text-align: left; }
831
+
832
+/* Bare <table border="1"> (user categories, unversioned files) */
833
+.content table[border="1"] { border-collapse: collapse; border-color: var(--border); }
834
+.content table[border="1"] > * > tr > td, .content table[border="1"] > * > tr > th { border: 1px solid var(--border); padding: 4px 8px; }
835
+
836
+/* Lists Fossil marks list-style:none keep no bullets */
837
+.content ul[style*="list-style"] > li { list-style-type: inherit; }
838
+
839
+/* Main menu: the full bar on every screen. The menu button stays pinned at
840
+ the left while the entries scroll sideways beneath it, and a fade at the
841
+ right edge shows there is more. (Fossil would hide entries marked
842
+ desktoponly / wideonly on small screens; the display set on ".mainmenu a"
843
+ above keeps them, on purpose.) */
844
+#hbbtn {
845
+ position: sticky; left: 0; z-index: 2;
846
+ background: var(--surface) linear-gradient(var(--band-top), var(--surface));
847
+}
848
+.mainmenu::after {
849
+ content: ""; flex: 0 0 28px; position: sticky; right: 0; pointer-events: none;
850
+ background: var(--surface) linear-gradient(var(--band-top), var(--surface));
851
+ -webkit-mask-image: linear-gradient(to right, transparent, #000 85%); mask-image: linear-gradient(to right, transparent, #000 85%);
852
+}
853
+
854
+/* Phone menu sheet: top-level entries are destinations, so they read as
855
+ links in 44px rows */
856
+@media screen and (max-width: 600px), (pointer: coarse) {
857
+ ul#sitemap { padding: 0.5rem 1rem 1.5rem; }
858
+ ul#sitemap > li { margin: 0; border-bottom: 1px solid var(--rule); }
859
+ ul#sitemap > li > a {
860
+ display: flex; align-items: center; min-height: 44px; box-sizing: border-box;
861
+ font-size: 1em; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text);
862
+ }
863
+ ul#sitemap ul { margin: 0 0 0.4rem; }
864
+ ul#sitemap ul li a { box-sizing: border-box; min-height: 44px; padding-left: 1rem; color: var(--link); }
865
+
866
+ /* Touch targets */
867
+ .submenu a, .submenu label, .sectionmenu a { min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
868
+ input[type=text], input[type=password], input[type=email], input[type=search], input[type=number],
869
+ input:not([type]), input[type=input], select, input[type=submit], input[type=button], button {
870
+ min-height: 44px; box-sizing: border-box;
871
+ }
872
+ input[type=checkbox], input[type=radio] { width: 20px; height: 20px; }
873
+}
874
+
875
+@media screen and (max-width: 600px) {
876
+ /* A long unbroken word in a timeline row (a mirrored e-mail address as the
877
+ login, a path in the comment) wraps instead of widening the page */
878
+ table.timelineTable td.timelineModernCell, table.timelineTable td.timelineDetailCell,
879
+ .timelineModernComment, .timelineModernDetail,
880
+ .content table.timelineTable td.timelineModernCell * { overflow-wrap: anywhere; }
881
+
882
+ /* Forms and their fields never exceed the screen */
883
+ .content form { max-width: 100%; }
884
+ .content textarea, .content input:not([type=checkbox]):not([type=radio]), .content select { max-width: 100%; box-sizing: border-box; }
885
+ body.forum .content form { display: block; }
886
+
887
+ /* Markdown tables scroll inside themselves, like sortable tables */
888
+ .content table.md-table, .markdown table { display: block; max-width: 100%; overflow-x: auto; }
889
+
890
+ /* Ticket reports: one line per row inside the scrolling table */
891
+ .content table.report td { white-space: nowrap; }
892
+ .content table.report td:last-child { white-space: normal; min-width: 12em; max-width: 18em; }
893
+
894
+ /* Tickets: Fossil's label | value tables become label above value */
895
+ body.tkt .content form > table, body.tkt .content > table[cellpadding],
896
+ body.tkt .content form > table > tbody, body.tkt .content > table[cellpadding] > tbody,
897
+ body.tkt .content form > table > tbody > tr, body.tkt .content > table[cellpadding] > tbody > tr { display: block; }
898
+ body.tkt .content form > table > tbody > tr > td, body.tkt .content > table[cellpadding] > tbody > tr > td {
899
+ display: block; width: auto; text-align: left; padding: 2px 0;
900
+ }
901
+ body.tkt .content > table[cellpadding] > tbody > tr > td.tktDspLabel { padding: 12px 0 3px; font-size: 0.9em; color: var(--muted); }
902
+ body.tkt .content > table[cellpadding] > tbody > tr > td.tktDspValue { padding: 6px 10px; border-radius: 4px; min-height: 1.4em; overflow-wrap: anywhere; }
903
+ body.tkt .content form > table > tbody > tr > td:nth-child(3) { color: var(--muted); font-size: 0.9em; }
904
+ body.tkt .content form > table > tbody > tr > td[align=right] { padding-top: 12px; color: var(--muted); }
905
+
906
+ /* File ages: age and file on one line, the check-in below */
907
+ body.fileage .content table:not(.timelineTable), body.fileage .content table:not(.timelineTable) > * { display: block; }
908
+ body.fileage .content table:not(.timelineTable) tr { display: grid; grid-template-columns: 6.5em 1fr; border-bottom: 1px solid var(--rule); }
909
+ body.fileage .content table:not(.timelineTable) td { border: 0; overflow-wrap: anywhere; }
910
+ body.fileage .content table:not(.timelineTable) td:nth-child(3), body.fileage .content table:not(.timelineTable) th:nth-child(3) {
911
+ grid-column: 1 / -1; max-width: none; padding-top: 0; color: var(--muted); font-size: 0.9em;
912
+ }
913
+
914
+ /* Admin forms: tables that hold fields stack their cells */
915
+ body.setup .content table:not(.sortable):not([border]):has(input, textarea, select),
916
+ body.setup .content table:not(.sortable):not([border]):has(input, textarea, select) > tbody,
917
+ body.setup .content table:not(.sortable):not([border]):has(input, textarea, select) > tbody > tr,
918
+ body.setup .content table:not(.sortable):not([border]):has(input, textarea, select) > tbody > tr > td {
919
+ display: block; width: auto; max-width: 100%; text-align: left;
920
+ }
921
+ body.setup .content textarea { width: 100%; }
922
+ body.setup .content label { white-space: normal; }
923
+
924
+ /* Other wide admin tables scroll inside themselves; long option lists wrap */
925
+ .content table#capabilitySummary, .cpage-rcvfromlist .content > table { display: block; max-width: 100%; overflow-x: auto; }
926
+ .content tt, .cpage-secaudit0 .content li { overflow-wrap: anywhere; }
927
+
928
+ /* Forum replies: 10px a level instead of Fossil's 4ex, so deep threads keep
929
+ their shape and their width. Every level up to ten stays distinct. */
930
+ div.forumTime[style*="margin-left:"] { margin-left: 100px !important; }
931
+ div.forumTime[style*="left:4ex"] { margin-left: 10px !important; }
932
+ div.forumTime[style*="left:8ex"] { margin-left: 20px !important; }
933
+ div.forumTime[style*="left:12ex"] { margin-left: 30px !important; }
934
+ div.forumTime[style*="left:16ex"] { margin-left: 40px !important; }
935
+ div.forumTime[style*="left:20ex"] { margin-left: 50px !important; }
936
+ div.forumTime[style*="left:24ex"] { margin-left: 60px !important; }
937
+ div.forumTime[style*="left:28ex"] { margin-left: 70px !important; }
938
+ div.forumTime[style*="left:32ex"] { margin-left: 80px !important; }
939
+ div.forumTime[style*="left:36ex"] { margin-left: 90px !important; }
940
+ div.forumTime[style*="left:40ex"] { margin-left: 100px !important; }
941
+}
942
+
943
+/* Windows between phone and desktop width (a half-screen browser, a tablet):
944
+ the page never scrolls sideways there either. The same measures as on
945
+ phones, without the phone-only layout changes. */
946
+@media screen and (min-width: 601px) and (max-width: 1100px) {
947
+ table.label-value td { white-space: normal !important; overflow-wrap: anywhere; }
948
+ table.label-value td .nobr, table.label-value td .nobr *,
949
+ td.tktDspValue .nobr, td.tktDspValue .nobr * { white-space: normal !important; word-break: break-all; }
950
+ .content table.sortable, .content table.report, .content table.userTable, .content table.md-table, .markdown table,
951
+ .content table#capabilitySummary, .cpage-rcvfromlist .content > table {
952
+ display: block; max-width: 100%; overflow-x: auto;
953
+ }
954
+ .content form { max-width: 100%; }
955
+ .content textarea, .content input:not([type=checkbox]):not([type=radio]), .content select { max-width: 100%; box-sizing: border-box; }
956
+ body.forum .content form { display: block; }
957
+ .content tt, .cpage-secaudit0 .content li { overflow-wrap: anywhere; }
958
+ /* Ticket forms: label above field, as on phones */
959
+ body.tkt .content form > table, body.tkt .content form > table > tbody,
960
+ body.tkt .content form > table > tbody > tr { display: block; }
961
+ body.tkt .content form > table > tbody > tr > td { display: block; width: auto; text-align: left; padding: 2px 0; }
962
+ body.tkt .content form > table > tbody > tr > td:nth-child(3) { color: var(--muted); font-size: 0.9em; }
963
+ body.tkt .content form > table > tbody > tr > td[align=right] { padding-top: 12px; color: var(--muted); }
964
+}
965
+
966
+/* A long unbroken word in any timeline entry (a wiki page named after a
967
+ full hash, a path, an e-mail address as login) wraps at every width */
968
+.content table.timelineTable td[class$="Cell"], .content table.timelineTable td[class$="Cell"] *,
969
+.content table.timelineTable span[class*="Comment"], .content table.timelineTable span[class*="Comment"] *,
970
+.content table.timelineTable span[class*="Detail"], .content table.timelineTable span[class*="Detail"] * { overflow-wrap: anywhere; }
971
+
972
+/* Login page on phones: fields stack under their labels, and the anonymous
973
+ login's ASCII-art captcha scrolls inside its own box */
974
+@media screen and (max-width: 600px) {
975
+ table.login_out, table.login_out > tbody, table.login_out > tbody > tr,
976
+ table.login_out > tbody > tr > td { display: block; width: auto; text-align: left; }
977
+ table.login_out input[type=text], table.login_out input[type=password] { width: 100%; box-sizing: border-box; }
978
+ .content table.captcha, .content div.captcha { display: block; max-width: 1
--- a/skins/refined-light/css.txt
+++ b/skins/refined-light/css.txt
@@ -0,0 +1,978 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- a/skins/refined-light/css.txt
+++ b/skins/refined-light/css.txt
@@ -0,0 +1,978 @@
1 /* Refined Light skin
2 A light rendering of Fossil's default skin: same layout, same sizes, same
3 menu band and submenu row. Colors are chosen for WCAG AA contrast on a
4 near-black page: body text 13:1, muted text 7:1, links 7:1.
5 Functional dark-theme overrides for Fossil's hardcoded light colors
6 (timeline graph, diffs, chat, forum, tickets) are kept at the end.
7 Uses system fonts; no external font resources are needed. */
8
9
10 :root {
11 --bg: #ffffff;
12 --surface: #f4f5f7;
13 --surface2: #e8ebef;
14 --border: #d3d7dd;
15 --text: #1c1e22; /* 16:1 on --bg */
16 --muted: #565e68; /* 6.6:1 on --bg */
17 --link: #2b67a8; /* 5.8:1 on --bg; near Fossil default's #3779BF */
18 --link-hover: #1d4f86;
19 --link-on-tint: #1d4f86; /* 5.0-6.4:1 on Fossil's pastel rows */
20 --title: #3a7bc0; /* large text; Fossil default's #4183C4 */
21 --active: #d26911; /* Fossil default's menu accent */
22 --green: #1d7a3c;
23 --red: #b3372a;
24 --yellow: #8a6100;
25 --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
26 --mono: ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
27 color-scheme: light;
28 --input-bg: #ffffff; --on-accent: #ffffff; --visited: #5a4fa8;
29 --sel-bg: #f7e3cc; --sec-bg: #d9e7f6; --stripe: #f7f8fa; --rule: #e5e8ec;
30 --btn-hover: #dde1e6; --band-top: #fafbfc; --warn-bg: #fbf0d0; --err-bg: #fbe1dc;
31 --green-rgb: 29 122 60; --red-rgb: 179 55 42; --yellow-rgb: 190 140 0;
32 --link-rgb: 43 103 168; --teal-rgb: 20 140 130; --violet-rgb: 90 90 200;
33 --muted-rgb: 86 94 104; --veil-rgb: 255 255 255; --lift-rgb: 0 0 0; --shadow-rgb: 0 0 0;
34 --tint-rgb: 255 255 255; --tint-mute: 0; --chat-mute: 0; --bubble-shadow: 0.10; --popup-shadow: 0.16;
35 --veil: 0;
36 }
37
38 /* Base, matching the default skin's sizing */
39 body {
40 box-sizing: border-box;
41 min-height: 100vh;
42 min-height: 100dvh;
43 display: flex;
44 flex-direction: column;
45 margin: 0 auto;
46 background-color: var(--bg);
47 color: var(--text);
48 font-family: var(--font);
49 font-size: 16px;
50 line-height: 1.45;
51 }
52 a { color: var(--link); text-decoration: none; }
53 a:hover { color: var(--link-hover); text-decoration: underline; }
54 a:visited { color: var(--visited); }
55 code, pre, tt, kbd, samp, var { font-family: var(--mono); }
56 code, tt, kbd, samp { font-size: 0.94em; }
57 pre { font-size: 0.92em; line-height: 1.35; overflow-x: auto; }
58 hr { border: none; border-top: 1px solid var(--border); }
59 blockquote { border-left: 3px solid var(--border); margin: 0.5em 0; padding: 0.1em 1em; }
60 img { max-width: 100%; }
61
62 /* Title area above the menu bar */
63 header { display: flex; align-items: center; gap: 14px; padding: 14px 0 12px; }
64 .skip-nav {
65 position: absolute; top: -100%; left: 0;
66 background: var(--link); color: var(--on-accent);
67 padding: 0.5rem 1.25rem; font-weight: 600; z-index: 9999;
68 border-radius: 0 0 6px 0;
69 }
70 .skip-nav:focus { top: 0; outline: 2px solid #fff; outline-offset: -4px; }
71
72 div.logo { display: flex; flex-shrink: 0; }
73 div.logo img, img.logo-mark { width: 48px; height: 48px; object-fit: cover; display: block; border-radius: 6px; }
74 .hub-link:hover img { opacity: 0.85; }
75
76 .title { min-width: 0; color: var(--title); line-height: 1.2; }
77 .title h1, .title .project-name {
78 display: inline;
79 font-size: 2.2em;
80 font-weight: bold;
81 color: var(--title);
82 text-decoration: none;
83 }
84 .title .project-name:hover { color: var(--link-hover); text-decoration: none; }
85 .title h1:after, .title .project-name:after {
86 content: " / "; color: var(--muted); font-weight: normal;
87 }
88 span.page-title { font-size: 18px; color: var(--text); }
89 /* Hidden from view but not display:none: Fossil's forum script sizes its
90 expand control from the height of the first h1 on the page, and loops
91 forever if that height is 0. This also keeps the heading for screen readers. */
92 h1.page-title {
93 font-size: 1.6em; color: var(--text);
94 display: block; position: absolute; width: 1px; margin: 0; padding: 0;
95 overflow: hidden; clip-path: inset(50%); white-space: nowrap;
96 }
97 /* Home pages carry their own heading; Fossil's "index" / "Home" title is noise */
98 h1.page-title.home-title { display: none !important; }
99 /* Long document titles go in the body instead of the title bar */
100 .artifact h1.page-title, .dir h1.page-title, .doc h1.page-title, .wiki h1.page-title {
101 position: static; width: auto; overflow: visible; clip-path: none; white-space: normal;
102 margin: revert; margin-bottom: 0;
103 }
104 .artifact .title > .page-title, .dir .title > .page-title,
105 .doc .title > .page-title, .wiki .title > .page-title { display: none; }
106 /* ...unless the page opens with a heading of its own (a wiki page's first
107 heading, "History of ...", "Files in ..."): the title would say it twice */
108 body:has(div.content > :is(h1, h2):first-child, div.content > span:first-child + :is(h1, h2),
109 div.content > :is(.markdown, .fossil-doc) > :is(h1, h2):first-child,
110 div.content > span:first-child + :is(.markdown, .fossil-doc) > :is(h1, h2):first-child) h1.page-title {
111 position: absolute; width: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
112 }
113 .artifact .title h1:after, .dir .title h1:after, .doc .title h1:after, .wiki .title h1:after,
114 .artifact .title .project-name:after, .dir .title .project-name:after,
115 .doc .title .project-name:after, .wiki .title .project-name:after { content: ""; }
116
117 .status { margin-left: auto; font-size: 0.9em; }
118 .status a { color: var(--muted); }
119 .status a:hover { color: var(--text); }
120
121 /* Main menu band */
122 .mainmenu {
123 clear: both;
124 background: var(--surface) linear-gradient(var(--band-top), var(--surface)) repeat-x;
125 border: 1px solid var(--border);
126 border-radius: 5px;
127 overflow-x: auto;
128 overflow-y: hidden;
129 white-space: nowrap;
130 z-index: 21;
131 }
132 .mainmenu a {
133 display: inline-block;
134 line-height: 1.4;
135 color: var(--muted);
136 text-decoration: none;
137 border-right: 1px solid var(--border);
138 font-weight: 500;
139 }
140 .mainmenu a.active, .mainmenu a:hover {
141 color: var(--text);
142 border-bottom: 2px solid var(--active);
143 text-decoration: none;
144 }
145 #hbbtn { font-size: 1.15em; min-width: 44px; text-align: center; }
146 #hbbtn[aria-expanded="true"] { color: var(--text); background: var(--surface2); }
147
148 /* Hamburger dropdown (hbmenu.js toggles display; a11y.js sets --nav-bottom) */
149 nav#hbdrop {
150 background-color: var(--surface);
151 border: 1px solid var(--border);
152 border-top: none;
153 border-radius: 0 0 0.5em 0.5em;
154 display: none;
155 font-size: 0.95em;
156 position: fixed;
157 top: var(--nav-bottom, 88px);
158 left: 0; right: 0;
159 z-index: 200;
160 box-shadow: 0 8px 24px rgb(var(--shadow-rgb) / 0.5);
161 overflow-x: hidden;
162 max-height: 75vh;
163 overflow-y: auto;
164 }
165 ul#sitemap {
166 padding: 1.25rem 1.5rem 1.5rem;
167 margin: 0;
168 list-style: none;
169 column-width: 14em;
170 column-gap: 2.5rem;
171 }
172 ul#sitemap > li {
173 list-style: none;
174 margin: 0 0 1.1rem;
175 break-inside: avoid;
176 }
177 ul#sitemap > li > a {
178 display: inline-block;
179 font-size: 0.78em;
180 font-weight: 600;
181 letter-spacing: 0.06em;
182 text-transform: uppercase;
183 color: var(--muted);
184 padding: 0.3rem 0;
185 }
186 ul#sitemap > li > a:hover { color: var(--text); text-decoration: none; }
187 ul#sitemap ul { margin: 0.15rem 0 0; padding: 0; list-style: none; }
188 ul#sitemap ul li { list-style: none; }
189 ul#sitemap ul li a {
190 display: flex; align-items: center; box-sizing: border-box; /* text stays centered at any row height */
191 color: var(--text);
192 padding: 0.3rem 0.6rem;
193 margin-left: -0.6rem;
194 border-radius: 4px;
195 min-height: 36px;
196 }
197 ul#sitemap ul li a:hover { background: var(--surface2); color: var(--link-hover); text-decoration: none; }
198 nav#hbdrop ul#sitemap { column-width: 14em; }
199 ul#sitemap.columns { overflow-x: hidden; }
200
201 /* Submenu row, like the default: a horizontal strip under the menu band */
202 .submenu, .sectionmenu {
203 font-size: 0.9em;
204 padding: 8px 0;
205 margin-bottom: 4px;
206 border-bottom: 1px solid var(--border);
207 display: flex;
208 flex-wrap: wrap;
209 align-items: center;
210 gap: 0.25rem 0.5rem;
211 }
212 .submenu a, .submenu label, .sectionmenu a {
213 padding: 6px 10px;
214 text-decoration: none;
215 color: var(--link);
216 border: 1px solid transparent;
217 border-radius: 5px;
218 white-space: nowrap;
219 }
220 .submenu > a:first-child { margin-left: -10px; }
221 .submenu a:hover, .submenu label:hover, .sectionmenu a:hover {
222 border-color: var(--border);
223 background: var(--surface);
224 color: var(--text);
225 text-decoration: none;
226 }
227 span.submenuctrl, span.submenuctrl input, select.submenuctrl { color: var(--muted); }
228 span.submenuctrl { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.35rem; }
229 .submenuckbox { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text); cursor: pointer; }
230 .submenu select, .submenu input[type=text], .sectionmenu select, .sectionmenu input[type=text] {
231 width: auto;
232 font-size: 0.95em;
233 padding: 0.3em 0.5em;
234 }
235 .submenu select, .sectionmenu select { padding-right: 1.9em; }
236 .section {
237 font-size: 1em; font-weight: bold;
238 background-color: var(--surface);
239 border: 1px solid var(--border);
240 border-radius: 3px 3px 0 0;
241 padding: 9px 10px 10px;
242 margin: 10px 0;
243 }
244 .sectionmenu {
245 border: 1px solid var(--border);
246 border-radius: 0 0 3px 3px;
247 border-top: 0;
248 margin-top: -10px;
249 margin-bottom: 10px;
250 }
251
252 /* Content */
253 .content { padding: 12px 0; color: var(--text); }
254 .content h1 { font-size: 1.60em; color: var(--text); }
255 .content h2 { font-size: 1.45em; color: var(--text); }
256 .content h3 { font-size: 1.15em; color: var(--text); }
257 .content h4 { font-size: 1.05em; color: var(--text); }
258 .content h5 { font-size: 1.00em; color: var(--text); }
259 .content pre, table.numbered-lines > tbody > tr { hyphens: none; line-height: 1.3; }
260 .content ul:not(.browser) > li { list-style-type: disc; }
261 div.filetree ul li.dir, div.filetree ul li.subdir, div.filetree ul li.file { list-style-type: none; }
262 th { text-align: left; }
263
264 /* User content: wiki, embedded docs, forum posts */
265 .markdown blockquote, p.blockquote, .sidebar {
266 background-color: var(--surface);
267 border-left: 4px solid var(--link);
268 }
269 div.sidebar { outline: 1em solid var(--bg); }
270 .artifact > .content > p > code, .artifact > .content > .markdown > p > code, .artifact > .content > .fossil-doc > p > code,
271 .dir > .content > p > code, .dir > .content > .markdown > p > code,
272 .doc > .content > p > code, .doc > .content > .markdown > p > code, .doc > .content > .fossil-doc > p > code,
273 .forum > .content .markdown > p > code,
274 .wiki > .content > p > code, .wiki > .content > .markdown > p > code, .wiki > .content > .fossil-doc > p > code,
275 .content li > code, .content td > code {
276 background-color: var(--surface);
277 border: 1px solid var(--border);
278 border-radius: 3px;
279 padding: 0 4px;
280 }
281 .artifact > .content > pre, .artifact > .content > .markdown > pre, .artifact > .content > .fossil-doc > pre,
282 .dir > .content > pre, .dir > .content > .markdown > pre,
283 .doc > .content > pre, .doc > .content > .markdown > pre, .doc > .content > .fossil-doc > pre,
284 .forum > .content .markdown > pre,
285 .wiki > .content > pre, .wiki > .content > .markdown > pre, .wiki > .content > .fossil-doc > pre,
286 pre.verbatim, pre.textPlain {
287 background-color: var(--surface);
288 border: 1px solid var(--border);
289 border-radius: 4px;
290 padding: 8px 10px;
291 }
292 pre.verbatim { white-space: pre-wrap; }
293 .artifact > .content table, .dir > .content table, .doc > .content table, .wiki > .content table,
294 .forum > .content .markdown table {
295 background-color: var(--surface);
296 border: 1px solid var(--border);
297 border-radius: 0.5em;
298 border-spacing: 0;
299 padding: 6px;
300 }
301 .artifact > .content th, .dir > .content th, .doc > .content th, .wiki > .content th,
302 .forum > .content .markdown th {
303 border-bottom: 1px solid var(--border);
304 background-color: var(--surface2);
305 padding: 4px 6px;
306 }
307 .artifact > .content tr:nth-child(odd) td, .dir > .content tr:nth-child(odd) td,
308 .doc > .content tr:nth-child(odd) td, .wiki > .content tr:nth-child(odd) td {
309 background-color: var(--stripe);
310 }
311 .artifact > .content td, .dir > .content td, .doc > .content td, .wiki > .content td,
312 .forum > .content .markdown td { padding: 4px 6px; }
313 textarea.wikiedit { font-size: 1.1em; }
314
315 /* Forms */
316 input[type=text], input[type=password], input[type=email], input[type=search],
317 input[type=number], textarea, select {
318 background: var(--input-bg);
319 border: 1px solid var(--border);
320 border-radius: 4px;
321 color: var(--text);
322 font-family: var(--font);
323 font-size: 1em;
324 padding: 0.35em 0.6em;
325 }
326 textarea { font-family: var(--mono); }
327 select {
328 appearance: none;
329 -webkit-appearance: none;
330 padding-right: 2em;
331 line-height: 1.3;
332 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23565e68' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
333 background-repeat: no-repeat;
334 background-position: right 0.6em center;
335 background-size: 12px;
336 cursor: pointer;
337 }
338 select:hover { border-color: var(--muted); }
339 select option { background: var(--input-bg); color: var(--text); }
340 input:focus, textarea:focus, select:focus { border-color: var(--link); outline: none; }
341 input[type=submit], input[type=button], button {
342 background: var(--surface2);
343 border: 1px solid var(--border);
344 border-radius: 4px;
345 color: var(--text);
346 cursor: pointer;
347 font-family: var(--font);
348 font-size: 1em;
349 padding: 0.35em 1em;
350 }
351 input[type=submit]:hover, input[type=button]:hover, button:hover {
352 border-color: var(--muted);
353 background: var(--btn-hover);
354 }
355 input[type=submit]:disabled, input[type=button]:disabled, button:disabled { opacity: 0.5; cursor: not-allowed; }
356 :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
357 .mainmenu a:focus-visible { outline-offset: -3px; }
358
359 /* Let short pages fill the viewport without overlaying long content. */
360 body > .content { flex: 1 0 auto; min-width: 0; }
361 body > header, body > nav, body > footer { flex-shrink: 0; }
362
363 /* Footer */
364 footer {
365 border-top: 1px solid var(--border);
366 padding: 10px;
367 font-size: 0.85em;
368 margin-top: 10px;
369 color: var(--muted);
370 display: flex;
371 justify-content: space-between;
372 flex-wrap: wrap;
373 gap: 0.5rem;
374 }
375
376 /* Forum */
377 .forum a:visited { color: var(--visited); }
378 div.forumSel {
379 animation: 1s linear 0s sel-fade;
380 background-color: var(--bg);
381 border-left: 4px solid var(--link);
382 }
383 @keyframes sel-fade { from { background-color: var(--surface2); } to { background-color: var(--bg); } }
384 .forum form input { margin: 0.5em 0; }
385 div.forumTime, div.forumHier, div.forumHierRoot {
386 background: var(--surface) !important;
387 border: 1px solid var(--border) !important;
388 border-radius: 4px;
389 color: var(--text) !important;
390 }
391 div.forumTime.forumSel, div.forumHier.forumSel { border-color: var(--link) !important; }
392 div.forumObs { opacity: 0.75; }
393 div.forumPostBody, div.forumPostBody h1, div.forumPostBody h2, div.forumPostBody h3 { color: var(--text) !important; }
394 .forum-post-collapser {
395 border-color: var(--border) !important;
396 background: var(--surface) !important;
397 color: var(--muted) !important;
398 }
399 .forum-post-collapser:hover { background: var(--surface2) !important; color: var(--text) !important; }
400 div.searchForm { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1em 0; }
401
402 /* Tickets and reports */
403 table.report { cursor: auto; border: 1px solid var(--border); border-radius: 0.5em; margin: 1em 0; }
404 .report td, .report th { border: 0; font-size: 0.9em; padding: 8px 10px; }
405 .report th { cursor: pointer; background: var(--surface); }
406 .report thead + tbody tr:hover { background-color: var(--surface2) !important; }
407 body.report table.report tr td { color: var(--text) !important; }
408 body.report table.report a { color: var(--link) !important; }
409 td.tktDspLabel { width: 70px; text-align: right; overflow: hidden; color: var(--muted) !important; }
410 td.tktDspValue {
411 text-align: left; vertical-align: top;
412 background-color: var(--surface) !important;
413 border: 1px solid var(--border) !important;
414 color: var(--text) !important;
415 }
416 td.tktDspValue pre { white-space: pre-wrap; }
417
418 /* Timeline */
419 span.timelineDetail { font-size: 90%; }
420 div.timelineDate { font-weight: bold; white-space: nowrap; color: var(--muted); }
421 table.timelineTable { padding: 0 3px; }
422 table.timelineTable tr { border-radius: 1em; }
423 .timelineModernCell, .timelineColumnarCell, .timelineDetailCell { border-radius: 0.5em; }
424 .timelineModernCell[id], .timelineColumnarCell[id], .timelineDetailCell[id] { background-color: var(--surface); }
425 .timelineModernDetail { opacity: 1; color: var(--muted); font-size: 0.9em; }
426 .timelineModernComment { color: var(--text); }
427 td.timelineTime { color: var(--muted); font-family: var(--mono); font-size: 0.9em; white-space: nowrap; }
428 span.timelineHash { font-family: var(--mono); }
429 tr.timelineSelected, tr.timelineSecondary { background-color: unset; }
430 tr.timelineSelected td, span.timelineSelected { background-color: var(--sel-bg) !important; }
431 tr.timelineSecondary td, span.timelineSecondary { background-color: var(--sec-bg) !important; }
432 tr.timelineCurrent td:first-child, tr.timelineSecondary td:first-child, tr.timelineSelected td:first-child {
433 border-top-left-radius: 1em; border-bottom-left-radius: 1em;
434 }
435 tr.timelineCurrent td:last-child, tr.timelineSecondary td:last-child, tr.timelineSelected td:last-child {
436 border-top-right-radius: 1em; border-bottom-right-radius: 1em;
437 }
438 tr.timelineCurrent td { border-top: 1px dashed var(--muted); border-bottom: 1px dashed var(--muted); }
439 tr.timelineCurrent td:first-child { border-left: 1px dashed var(--muted); }
440 tr.timelineCurrent td:last-child { border-right: 1px dashed var(--muted); }
441
442 /* Timeline graph: Fossil hardcodes black lines and white nodes */
443 .tl-node { background: var(--link) !important; border-color: var(--text) !important; }
444 .tl-node.leaf:after { background: var(--bg) !important; }
445 .tl-node.closed-leaf svg { color: var(--bg) !important; }
446 .tl-line { background-color: var(--muted); }
447 .tl-line.warp { background: var(--yellow) !important; }
448 .tl-line.cherrypick.h { border-top-color: var(--muted) !important; background: transparent !important; }
449 .tl-line.cherrypick.v, .tl-line.dotted.v { border-left-color: var(--muted) !important; background: transparent !important; }
450 .tl-arrow.u, .tl-arrow.u.sm { border-bottom-color: var(--muted) !important; }
451 .tl-arrow.merge.l, .tl-arrow.cherrypick.l { border-right-color: var(--muted) !important; }
452 .tl-arrow.merge.r, .tl-arrow.cherrypick.r { border-left-color: var(--muted) !important; }
453 .tl-arrow.warp { border-left-color: var(--yellow) !important; }
454 /* Branch colors are pastel inline backgrounds; darken them so text stays readable */
455 /* Branch and user tints come from Fossil, already sized for this foreground */
456 .tl-tooltip {
457 background: var(--surface2) !important; color: var(--text) !important;
458 border-color: var(--border) !important; box-shadow: 0 4px 16px rgb(var(--shadow-rgb) / 0.5) !important;
459 }
460
461 /* Lists and tables Fossil generates */
462 table.sortable th, table.filelistTable th, .fileage th {
463 text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); cursor: pointer;
464 }
465 table.sortable td, table.filelistTable td, .fileage td { padding: 5px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
466 table.sortable tr:hover td, .fileage tr:hover, div.filetreeline:hover { background: var(--surface) !important; }
467 body.branch .brlist > table > tbody > tr:hover:not(.selected) { background: var(--surface) !important; }
468 body.branch .brlist > table > tbody > tr.selected { background: var(--surface2) !important; }
469 .branch-name, span.tagDsp {
470 display: inline-block; background: var(--surface2); border: 1px solid var(--border);
471 border-radius: 3px; color: var(--link); font-family: var(--mono); font-size: 0.85em; padding: 0 0.3em;
472 }
473
474 /* Diffs: Fossil's built-in colors are pale pastels */
475 table.diff { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.9em; }
476 td.difflnc, td.difflna, td.difflnb { color: var(--muted); padding: 0 0.5em; text-align: right; user-select: none; border-right: 1px solid var(--border); }
477 td.difftext { padding: 0 0.5em; white-space: pre; }
478 tr.diffskip, tr.diffskip.jchunk { background: var(--surface) !important; }
479 tr.diffskip > td.chunkctrl .jcbutton { background: var(--surface2) !important; color: var(--muted) !important; border-radius: 3px; }
480 tr.diffskip > td.chunkctrl .jcbutton:hover { color: var(--text) !important; }
481 td.diffmkrl, td.diffmkrr, td.diffmkru { color: var(--muted); }
482 tr.diffadd td { background: rgb(var(--green-rgb) / 0.10); }
483 tr.diffrm td { background: rgb(var(--red-rgb) / 0.10); }
484 tr.diffchng td { background: rgb(var(--yellow-rgb) / 0.07); }
485 span.diffadd { color: var(--green); }
486 span.diffrm { color: var(--red); }
487 span.diffchng { color: var(--yellow); }
488 td.diffln ins, td.difftxt ins, table.diff pre > ins { background-color: rgb(var(--green-rgb) / 0.16) !important; }
489 td.diffln del, td.difftxt del, table.diff pre > del { background-color: rgb(var(--red-rgb) / 0.16) !important; }
490 td.difftxt del > del, table.diff pre > del > del { background-color: rgb(var(--red-rgb) / 0.32) !important; }
491 td.difftxt ins > ins, table.diff pre > ins > ins { background-color: rgb(var(--green-rgb) / 0.32) !important; }
492 td.difftxt del > del.edit, td.difftxt ins > ins.edit,
493 table.diff pre > del > del.edit, table.diff pre > ins > ins.edit { background-color: rgb(var(--link-rgb) / 0.25) !important; }
494
495 /* Annotate / blame: inline pastel backgrounds from Fossil JS */
496 td.annotateDate, td.annotateUser { color: var(--muted); font-family: var(--mono); font-size: 0.85em; padding: 0 0.5em; white-space: nowrap; border-right: 1px solid var(--border); }
497 pre span[style*="background"], li span[style*="background"] {
498 background-image: linear-gradient(rgb(var(--veil-rgb) / 0.7), rgb(var(--veil-rgb) / 0.7)) !important;
499 border-radius: 3px; padding: 0.1em 0.25em;
500 }
501
502 /* Any inline pastel background Fossil emits (ticket reports and their key,
503 ticket pages, annotate legends, branch lists): darken it, keep the hue */
504 tr[style*="background-color"], td[style*="background-color"], th[style*="background-color"],
505 span[style*="background-color"], div[style*="background-color"], p[style*="background-color"] {
506 background-image: linear-gradient(rgb(var(--veil-rgb) / var(--veil, 0.35)), rgb(var(--veil-rgb) / var(--veil, 0.35))) !important;
507 color: var(--text);
508 }
509 tr[style*="background-color"] a, td[style*="background-color"] a, p[style*="background-color"] a { color: var(--link); }
510 p[style*="border:1px solid"] { border-color: var(--border) !important; border-radius: 4px; padding: 0.6em 0.8em; }
511 /* Pikchr: Fossil already draws white defaults because skin-detail is white-foreground; leave diagrams alone */
512
513 /* Fossil's user and branch colors, muted toward the surface so they sit with the skin */
514 table.timelineTable td[style*="background"] {
515 background-image: linear-gradient(rgb(var(--tint-rgb) / var(--tint-mute)), rgb(var(--tint-rgb) / var(--tint-mute))) !important;
516 }
517 body.chat .message-widget-content[style*="background"] {
518 background-image: linear-gradient(rgb(var(--tint-rgb) / var(--chat-mute)), rgb(var(--tint-rgb) / var(--chat-mute))) !important;
519 }
520 body.chat .message-widget-tab[style*="background"] { background-image: none !important; }
521 body.chat .message-widget-content { box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / var(--bubble-shadow)) !important; }
522
523 /* Misc Fossil UI elements with hardcoded light colors */
524 div.debug { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--muted) !important; padding: 0.75rem; }
525 /* Inline debug markers, e.g. "(artifact-NNN)" on forum posts for admins: just quieter text */
526 span.debug { background: none !important; border: none !important; padding: 0 !important; color: var(--muted) !important; font-size: 0.85em; }
527 span.debug a { color: var(--muted); }
528 span.debug a:hover { color: var(--link); }
529 span.error { background: rgb(var(--yellow-rgb) / 0.18) !important; color: var(--yellow) !important; padding: 0.1em 0.25em; border-radius: 3px; }
530 mark { background: rgb(var(--yellow-rgb) / 0.25); color: var(--text); padding: 0.1em 0.25em; border-radius: 3px; }
531 div.sideboxTitle { color: var(--title); font-weight: 600; }
532 div.sidebox { background: var(--surface); border: 1px solid var(--border) !important; border-radius: 4px; margin: 0 0 1em 1.5em; padding: 0.75em; }
533 .disabled { color: var(--red); }
534 .modpending { color: var(--yellow); }
535 .fossil-tooltip.help-buttonlet-content { background-color: var(--surface2); color: var(--text); border: 1px solid var(--border); }
536 .fossil-tooltip { background: var(--surface2) !important; color: var(--text) !important; border-color: var(--border) !important; }
537 td.capsumRead { background: rgb(var(--green-rgb) / 0.15) !important; color: var(--green); }
538 td.capsumWrite { background: rgb(var(--yellow-rgb) / 0.15) !important; color: var(--yellow); }
539 td.capsumOff { background: rgb(var(--muted-rgb) / 0.1) !important; color: var(--muted); }
540 table.login_out { margin: 1em 0; }
541 td.login_out_label { color: var(--muted); padding: 0.4em 0.75em 0.4em 0; }
542 .help-buttonlet { color: var(--link); cursor: pointer; }
543
544 /* Status text Fossil colors pure red / blue / black */
545 span.disabled, span.wikiError, span.loginError, span.tktError, span.brokenlink, span.thTrace,
546 p.generalError, p.tktsetupError, p.xfersetupError, p.thmainError, p.reportError, blockquote.reportError,
547 pre.th1error, span.ueditInheritDeveloper, td.tktTlOpen,
548 div.markdown ol.footnotes > li.fn-misreference > span, div.markdown ol.footnotes > li.fn-unreferenced > code,
549 div.markdown sup.noteref.misref, div.markdown sup.noteref.misref > a { color: var(--red) !important; }
550 span.ueditInheritAnonymous, p.missingPriv, p.noMoreShun, p.shunned { color: var(--link) !important; }
551 span.ueditInheritReader { color: var(--text) !important; }
552 blockquote.reportError, p.generalError { background: rgb(var(--red-rgb) / 0.1); border: 1px solid rgb(var(--red-rgb) / 0.4); border-radius: 4px; padding: 0.6em 0.8em; }
553 /* Fossil also puts class="error" on <body> and colors it yellow; keep the page as it is */
554 body.error, body.warning { background: var(--bg) !important; color: var(--text) !important; }
555 .error:not(body), .warning:not(body) { background: rgb(var(--yellow-rgb) / 0.18) !important; color: var(--yellow) !important; border-radius: 3px; padding: 0.1em 0.3em; }
556 table.numbered-lines td.line-numbers span.selected-line { color: var(--text) !important; background-color: rgb(var(--link-rgb) / 0.22) !important; }
557 .fossil-toast-message { background: var(--surface2) !important; color: var(--text) !important; border: 1px solid var(--border) !important; border-radius: 6px !important; box-shadow: 0 8px 24px rgb(var(--shadow-rgb) / 0.5) !important; }
558 .fossil-toast-message.error, .fossil-toast-message.warning { background: var(--warn-bg) !important; color: var(--yellow) !important; border-color: var(--yellow) !important; }
559 .fossil-toast-message.error { color: var(--red) !important; border-color: var(--red) !important; background: var(--err-bg) !important; }
560
561 /* Wiki / file editor tabs */
562 .tab-container .tab-bar { display: flex; flex-wrap: wrap; gap: 0.25rem; border-bottom: 1px solid var(--border); }
563 .tab-container .tab-button {
564 padding: 0.4em 0.9em; border: 1px solid transparent; border-bottom: none; border-radius: 5px 5px 0 0;
565 background: transparent; color: var(--muted); font-family: var(--font); font-size: 0.95em; cursor: pointer; margin-bottom: -1px;
566 }
567 .tab-container .tab-button:hover { color: var(--text); background: var(--surface); }
568 .tab-container .tab-button.selected { color: var(--text); background: var(--surface); border-color: var(--border); border-bottom-color: var(--surface); }
569 #fossil-status-bar { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font-family: var(--mono); font-size: 0.85em; padding: 0.4em 0.75em; margin: 0.5em 0; }
570 .wikiedit-options, .fileedit-options { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding: 0.5em; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; margin-bottom: 0.5em; }
571 .wikiedit-options .input-with-label, .fileedit-options .input-with-label { display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
572 #wikiedit-tab-content textarea, #fileedit-tab-content textarea { min-height: 300px; width: 100%; }
573 .tab-container fieldset { border: 1px solid var(--border); border-radius: 4px; }
574 .tab-container fieldset legend { color: var(--muted); }
575 button.wikiedit-content-reload, button.fileedit-content-reload { min-width: unset !important; max-width: unset !important; }
576
577 /* Chat: Fossil sets inline pastel backgrounds per user */
578 /* Each message keeps the user's color, which Fossil already picks for this
579 skin's foreground (white-foreground); only messages without one get --surface. */
580 body.chat .message-widget-content {
581 background-color: var(--surface); border: 1px solid var(--border) !important;
582 border-radius: 6px !important; color: var(--text) !important; padding: 0.5em 0.75em !important;
583 }
584 body.chat .message-widget-tab { background: transparent !important; color: var(--muted) !important; border: none !important; font-size: 0.9em !important; }
585 body.chat .message-widget-tab[style*="background"] { background-image: none !important; }
586 body.chat .message-widget-tab .xfrom { color: var(--link) !important; font-weight: 600 !important; }
587 body.chat #chat-input-line-wrapper { border: 1px solid var(--border) !important; border-radius: 6px !important; background: var(--input-bg) !important; }
588 body.chat #chat-input-line-wrapper:focus-within { border-color: var(--link) !important; }
589 body.chat .chat-input-field { border: none !important; background: transparent !important; color: var(--text) !important; font-family: var(--font) !important; font-size: 1em !important; }
590 body.chat .cbutton { border: 1px solid var(--border) !important; background: var(--surface) !important; border-radius: 4px !important; }
591 body.chat .cbutton:hover { background: var(--surface2) !important; }
592 body.chat fieldset { border: 1px solid var(--border) !important; border-radius: 4px !important; background: var(--surface) !important; }
593 body.chat .menu-entry { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
594 body.chat .menu-entry:hover, body.chat .menu-entry.parent { background: var(--surface2) !important; }
595 body.chat .message-widget .match { background: rgb(var(--yellow-rgb) / 0.25) !important; color: var(--text) !important; }
596 body.chat .chat-message-popup { background: var(--surface2) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
597 body.chat .message-widget-content img { max-width: 100% !important; border-radius: 4px !important; }
598
599 /* Chat toolbar: Fossil renders the buttons as emoji; mask them with icons, keep the spans intact */
600 body.chat #chat-buttons-wrapper > .cbutton {
601 position: relative !important;
602 font-size: 0 !important;
603 color: transparent !important;
604 min-width: 44px !important; max-width: 44px !important;
605 min-height: 36px !important; height: 36px !important;
606 background: var(--surface) !important;
607 border: 1px solid var(--border) !important;
608 border-radius: 6px !important;
609 }
610 body.chat #chat-buttons-wrapper > .cbutton::after {
611 content: ""; position: absolute; inset: 0; margin: auto;
612 width: 22px; height: 22px;
613 background-color: var(--muted);
614 -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
615 }
616 body.chat #chat-buttons-wrapper > .cbutton:hover { background: var(--surface2) !important; border-color: var(--muted) !important; }
617 body.chat #chat-buttons-wrapper > .cbutton:hover::after { background-color: var(--text); }
618 body.chat #chat-buttons-wrapper > #chat-button-submit { background: var(--link) !important; border-color: var(--link) !important; min-width: 64px !important; max-width: 64px !important; }
619 body.chat #chat-buttons-wrapper > #chat-button-submit::after { background-color: var(--on-accent); }
620 body.chat #chat-buttons-wrapper > #chat-button-submit:hover { background: var(--link-hover) !important; }
621 body.chat #chat-button-preview { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z%22/%3E%3C/svg%3E"); }
622 body.chat #chat-button-search { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z%22/%3E%3C/svg%3E"); }
623 body.chat #chat-button-attach { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M209.66,122.34a8,8,0,0,1,0,11.32l-82.05,82a56,56,0,0,1-79.2-79.21L147.67,35.73a40,40,0,1,1,56.61,56.55L105,193A24,24,0,1,1,71,159L154.3,74.38A8,8,0,1,1,165.7,85.6L82.39,170.31a8,8,0,1,0,11.27,11.36L192.93,81A24,24,0,1,0,159,47L59.76,147.68a40,40,0,1,0,56.53,56.62l82.06-82A8,8,0,0,1,209.66,122.34Z%22/%3E%3C/svg%3E"); }
624 body.chat #chat-button-settings { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z%22/%3E%3C/svg%3E"); }
625 body.chat #chat-button-submit { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22black%22%3E%3Cpath d=%22M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z%22/%3E%3C/svg%3E"); }
626
627 /* Screen sizes, as in the default skin */
628 @media screen and (max-width: 600px) {
629 body { padding-left: 12px; padding-right: 12px; }
630 .content { font-size: 0.95em; }
631 header { gap: 10px; padding: 10px 0 8px; }
632 div.logo img, img.logo-mark { width: 36px; height: 36px; }
633 .title h1, .title .project-name { font-size: 1.5em; }
634 .title > .page-title { display: inline; }
635 .artifact .title > .page-title, .dir .title > .page-title,
636 .doc .title > .page-title, .wiki .title > .page-title { display: none; }
637 .mainmenu a { padding: 10px 12px; }
638 .mainmenu { padding: 0; }
639 nav#hbdrop ul#sitemap, ul#sitemap.columns { columns: 1 !important; column-width: auto !important; }
640 .submenu { padding: 6px 0; }
641 td.timelineTime { font-size: 0.8em; }
642 }
643 @media screen and (min-width: 600px) {
644 body { padding-left: 20px; padding-right: 20px; }
645 .mainmenu a { padding: 12px 20px; }
646 .mainmenu { padding: 0; }
647 .content dd, .content dt, .content div, .content li, .content p, .content table { line-height: 1.45em; }
648 /* Fossil renders a document's title outside .content. Match its h1 inset. */
649 body.doc > h1.page-title {
650 box-sizing: border-box;
651 width: 100%;
652 margin-inline: 0;
653 padding-inline: 10pt;
654 }
655 .doc > .content > p, .doc > .content > .markdown > p, .doc > .content > .fossil-doc > p,
656 .doc > .content > ol, .doc > .content > ul, .doc > .content > .markdown > ol, .doc > .content > .markdown > ul,
657 .wiki > .content > p, .wiki > .content > .markdown > p, .wiki > .content > .fossil-doc > p,
658 .wiki > .content > ol, .wiki > .content > ul, .wiki > .content > .markdown > ol, .wiki > .content > .markdown > ul,
659 .artifact > .content > .markdown > p, .artifact > .content > .markdown > ol, .artifact > .content > .markdown > ul,
660 .doc > .content > .markdown > table, .wiki > .content > .markdown > table, .artifact > .content > .markdown > table {
661 margin-left: 30pt; margin-right: 30pt;
662 }
663 .doc > .content > pre, .doc > .content > .markdown > pre, .doc > .content > .fossil-doc > pre,
664 .wiki > .content > pre, .wiki > .content > .markdown > pre,
665 .artifact > .content > .markdown > pre { margin-left: 40pt; margin-right: 30pt; }
666 .forum > .content .markdown > pre { margin-left: 20pt; }
667 .doc > .content h1, .wiki .content h1, .artifact .content h1 { margin-left: 10pt; }
668 .doc > .content h2, .wiki .content h2, .artifact .content h2 { margin-left: 15pt; }
669 .doc > .content h3, .wiki .content h3, .artifact .content h3 { margin-left: 20pt; }
670 .doc > .content > blockquote, .wiki > .content > blockquote { margin-left: 50pt; }
671 .doc > .content > .markdown > blockquote, .wiki > .content > .markdown > blockquote { margin-left: 40pt; }
672 .content .pikchr-wrapper, div.pikchr-wrapper.indent:not(.source) { margin-left: 40pt; }
673 div.pikchr-wrapper.center:not(.source), div.pikchr-wrapper.float-right:not(.source) { margin-left: 0; }
674 }
675
676 /* Chat bubbles: messaging-app corners; your own messages, when Fossil puts
677 them on the right (its my-messages-right layout, the default in tall
678 windows), point the other way */
679 body.chat .message-widget:not(.notification) .message-widget-content { border-radius: 12px 12px 12px 4px !important; }
680 body.chat.my-messages-right .message-widget.mine .message-widget-content { border-radius: 12px 12px 4px 12px !important; }
681 body.chat.my-messages-right .message-widget.mine .message-widget-tab { text-align: right; }
682
683 /* Message options popup (click a message's header): one card, quiet
684 timestamps, buttons sized for touch */
685 body.chat .chat-message-popup {
686 font-family: var(--font) !important; font-size: 0.9em !important;
687 background: var(--surface2) !important; border: 1px solid var(--border) !important;
688 border-radius: 10px !important; padding: 0.65em !important; gap: 0.45em;
689 box-shadow: 0 8px 24px rgb(var(--shadow-rgb) / var(--popup-shadow)) !important;
690 max-width: min(26rem, calc(100vw - 2rem));
691 }
692 body.chat .chat-message-popup > span { font-family: var(--mono); font-size: 0.85em; color: var(--muted); white-space: normal; }
693 body.chat .chat-message-popup > .toolbar { border: none !important; gap: 0.4em; margin: 0 !important; flex-wrap: wrap; }
694 body.chat .chat-message-popup > .toolbar > * { margin: 0 !important; }
695 body.chat .chat-message-popup > .toolbar > button,
696 body.chat .chat-message-popup > .toolbar > a {
697 flex: 1 1 auto; min-height: 36px; display: inline-flex; align-items: center; justify-content: center;
698 padding: 0.35em 0.8em; border: 1px solid var(--border); border-radius: 6px;
699 background: var(--surface); color: var(--text); font-family: var(--font); font-size: 1em; text-decoration: none;
700 }
701 body.chat .chat-message-popup > .toolbar > a { color: var(--link); }
702 body.chat .chat-message-popup > .toolbar > button:hover,
703 body.chat .chat-message-popup > .toolbar > a:hover { background: var(--btn-hover); border-color: var(--muted); text-decoration: none; }
704 /* "Delete globally" removes the message for everyone */
705 body.chat .chat-message-popup > div.toolbar:nth-of-type(1) > button:nth-child(2) { color: var(--red); }
706 @media (pointer: coarse), (max-width: 600px) {
707 body.chat .chat-message-popup > .toolbar > button,
708 body.chat .chat-message-popup > .toolbar > a { min-height: 44px; }
709 }
710
711 /* Phones: the page itself never scrolls sideways */
712 body.chat .chat-message-popup { z-index: 200 !important; }
713 @media screen and (max-width: 600px) {
714 table.label-value td { white-space: normal !important; overflow-wrap: anywhere; }
715 table.label-value td .nobr, table.label-value td .nobr *,
716 td.tktDspValue .nobr, td.tktDspValue .nobr * { white-space: normal !important; word-break: break-all; }
717 .content table.sortable, .content table.report, .content table.userTable {
718 display: block; max-width: 100%; overflow-x: auto;
719 }
720 .title h1, .title .project-name { font-size: 1.3em; }
721 }
722
723 /* Hamburger menu. hbmenu.js toggles it instantly (data-anim-ms="0" in the
724 header); the skin slides it in. */
725 @keyframes hb-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
726 nav#hbdrop { animation: hb-in 160ms ease-out; top: var(--nav-bottom, 88px); }
727 @media screen and (max-width: 600px), (pointer: coarse) {
728 /* A sheet from under the nav bar to the bottom of the screen, scrolling
729 on its own, with the page behind it held still */
730 nav#hbdrop {
731 bottom: 0; max-height: none; border-radius: 0; border-left: 0; border-right: 0;
732 overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
733 }
734 html:has(#hbdrop[style*="display: block"]) { overflow: hidden; }
735 /* Keep the nav bar, and its close button, on screen while the menu is open */
736 html:has(#hbdrop[style*="display: block"]) nav.mainmenu { position: sticky; top: 0; }
737 ul#sitemap ul li a { min-height: 44px; display: flex; align-items: center; }
738 }
739 @media (prefers-reduced-motion: reduce) { nav#hbdrop { animation: none; } }
740
741 /* Menu bar: every item carries the 2px underline slot, transparent until
742 hover or active, so highlighting never changes any item's or the bar's height */
743 .mainmenu a { border-bottom: 2px solid transparent; }
744 .mainmenu a.active, .mainmenu a:hover { border-bottom-color: var(--active); }
745 #hbbtn { line-height: 1.4; font-size: 1em; }
746
747 /* Logo: show any repository's logo whole in the same 48px box (36px on
748 phones); a square logo looks exactly as before */
749 div.logo img, img.logo-mark { object-fit: contain; }
750
751 /* Menu bar as a flex row: the whitespace between items in the header no
752 longer leaves 4px gaps, so each underline meets the divider beside it */
753 .mainmenu { display: flex; }
754 .mainmenu a { flex: 0 0 auto; }
755
756 /* Weekday above each timeline date. The line is reserved here, before any
757 script runs, so the rows already have their final height when Fossil
758 draws the timeline graph; a11y.js only fills in the name through
759 data-dow. (Inserting a line afterwards moved every row, and Fossil
760 redrew the graph a second later, so the nodes jumped.) */
761 div.timelineDate::before {
762 content: attr(data-dow); display: block; min-height: 1.2em;
763 font-size: 0.8em; font-weight: 400; opacity: 0.85; line-height: 1.2; margin-bottom: 0.1em;
764 }
765
766
767 /* The chat's "Load..." bar: a small label over one row of buttons, without
768 the box Fossil's fieldset would draw around them */
769 body.chat fieldset#load-msg-toolbar {
770 border: none !important; background: transparent !important;
771 padding: 0.5em 0 0 !important; margin: 0 0 1em !important;
772 }
773 body.chat #load-msg-toolbar > legend { font-size: 0.85em; color: var(--muted); padding: 0 0 0.35em; }
774 body.chat #load-msg-toolbar > div { gap: 0.5em; }
775 body.chat #load-msg-toolbar > div > button { border-radius: 6px; }
776
777
778 /* ── Fixes from the page-by-page audit ─────────────────────────────────── */
779
780 /* Fields Fossil emits with no type, or type="input" (forum title, ticket
781 e-mail), which the input[type=text] rule above does not match */
782 input:not([type]), input[type=input] {
783 background: var(--input-bg); border: 1px solid var(--border); border-radius: 4px;
784 color: var(--text); font-family: var(--font); font-size: 1em; padding: 0.35em 0.6em;
785 }
786 input[type=file]::file-selector-button {
787 background: var(--surface2); border: 1px solid var(--border); border-radius: 4px;
788 color: var(--text); font-family: var(--font); font-size: 0.95em; padding: 0.35em 0.8em;
789 margin-right: 0.6em; cursor: pointer;
790 }
791 input[type=file]::file-selector-button:hover { background: var(--btn-hover); border-color: var(--muted); }
792
793 /* Forum subjects may shrink below a long word on narrow screens. */
794 @media screen and (max-width: 600px) {
795 body.forum td.subject { overflow-wrap: anywhere; }
796 }
797
798 /* Long hashes in titles and headings wrap instead of widening the page */
799 .title, span.page-title, .content h1, .content h2, .content h3 { overflow-wrap: anywhere; }
800 .title { min-width: 0; }
801 .content :not(pre) > code { overflow-wrap: break-word; }
802 .markdown p, .markdown li { overflow-wrap: break-word; }
803
804 /* Rendered markdown looks the same wherever it appears (the wiki editor's
805 preview nests it deeper than the page does) */
806 .markdown pre {
807 background-color: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 8px 10px;
808 }
809 .markdown p > code, .markdown li > code, .markdown td > code {
810 background-color: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: 0 4px;
811 }
812
813 /* Chat: a bubble holding an attachment stays inside its column */
814 body.chat .message-widget-content { box-sizing: border-box; max-width: 100%; }
815 body.chat .chat-message-popup > .toolbar { align-items: stretch; }
816 body.chat .chat-message-popup > .toolbar > a { display: inline-flex; align-items: center; }
817
818 /* Activity-report charts: a11y.js gives them a viewBox so they can shrink */
819 .content svg.fit { max-width: 100%; height: auto; }
820
821 /* Contrast: links on Fossil's colored rows, closed tickets in the timeline,
822 the fourth capability marker */
823 body.report table.report tr[style*="background-color"] a,
824 table.timelineTable td[style*="background"] a { color: var(--link-on-tint) !important; }
825 td.tktTlClosed { color: var(--muted); }
826 span.ueditInheritNobody { color: var(--green) !important; }
827
828 /* Ticket view: a label alone in its row ("Description:") sits at the left,
829 like "User Comments:" below it */
830 td.tktDspLabel:only-child { text-align: left; }
831
832 /* Bare <table border="1"> (user categories, unversioned files) */
833 .content table[border="1"] { border-collapse: collapse; border-color: var(--border); }
834 .content table[border="1"] > * > tr > td, .content table[border="1"] > * > tr > th { border: 1px solid var(--border); padding: 4px 8px; }
835
836 /* Lists Fossil marks list-style:none keep no bullets */
837 .content ul[style*="list-style"] > li { list-style-type: inherit; }
838
839 /* Main menu: the full bar on every screen. The menu button stays pinned at
840 the left while the entries scroll sideways beneath it, and a fade at the
841 right edge shows there is more. (Fossil would hide entries marked
842 desktoponly / wideonly on small screens; the display set on ".mainmenu a"
843 above keeps them, on purpose.) */
844 #hbbtn {
845 position: sticky; left: 0; z-index: 2;
846 background: var(--surface) linear-gradient(var(--band-top), var(--surface));
847 }
848 .mainmenu::after {
849 content: ""; flex: 0 0 28px; position: sticky; right: 0; pointer-events: none;
850 background: var(--surface) linear-gradient(var(--band-top), var(--surface));
851 -webkit-mask-image: linear-gradient(to right, transparent, #000 85%); mask-image: linear-gradient(to right, transparent, #000 85%);
852 }
853
854 /* Phone menu sheet: top-level entries are destinations, so they read as
855 links in 44px rows */
856 @media screen and (max-width: 600px), (pointer: coarse) {
857 ul#sitemap { padding: 0.5rem 1rem 1.5rem; }
858 ul#sitemap > li { margin: 0; border-bottom: 1px solid var(--rule); }
859 ul#sitemap > li > a {
860 display: flex; align-items: center; min-height: 44px; box-sizing: border-box;
861 font-size: 1em; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text);
862 }
863 ul#sitemap ul { margin: 0 0 0.4rem; }
864 ul#sitemap ul li a { box-sizing: border-box; min-height: 44px; padding-left: 1rem; color: var(--link); }
865
866 /* Touch targets */
867 .submenu a, .submenu label, .sectionmenu a { min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
868 input[type=text], input[type=password], input[type=email], input[type=search], input[type=number],
869 input:not([type]), input[type=input], select, input[type=submit], input[type=button], button {
870 min-height: 44px; box-sizing: border-box;
871 }
872 input[type=checkbox], input[type=radio] { width: 20px; height: 20px; }
873 }
874
875 @media screen and (max-width: 600px) {
876 /* A long unbroken word in a timeline row (a mirrored e-mail address as the
877 login, a path in the comment) wraps instead of widening the page */
878 table.timelineTable td.timelineModernCell, table.timelineTable td.timelineDetailCell,
879 .timelineModernComment, .timelineModernDetail,
880 .content table.timelineTable td.timelineModernCell * { overflow-wrap: anywhere; }
881
882 /* Forms and their fields never exceed the screen */
883 .content form { max-width: 100%; }
884 .content textarea, .content input:not([type=checkbox]):not([type=radio]), .content select { max-width: 100%; box-sizing: border-box; }
885 body.forum .content form { display: block; }
886
887 /* Markdown tables scroll inside themselves, like sortable tables */
888 .content table.md-table, .markdown table { display: block; max-width: 100%; overflow-x: auto; }
889
890 /* Ticket reports: one line per row inside the scrolling table */
891 .content table.report td { white-space: nowrap; }
892 .content table.report td:last-child { white-space: normal; min-width: 12em; max-width: 18em; }
893
894 /* Tickets: Fossil's label | value tables become label above value */
895 body.tkt .content form > table, body.tkt .content > table[cellpadding],
896 body.tkt .content form > table > tbody, body.tkt .content > table[cellpadding] > tbody,
897 body.tkt .content form > table > tbody > tr, body.tkt .content > table[cellpadding] > tbody > tr { display: block; }
898 body.tkt .content form > table > tbody > tr > td, body.tkt .content > table[cellpadding] > tbody > tr > td {
899 display: block; width: auto; text-align: left; padding: 2px 0;
900 }
901 body.tkt .content > table[cellpadding] > tbody > tr > td.tktDspLabel { padding: 12px 0 3px; font-size: 0.9em; color: var(--muted); }
902 body.tkt .content > table[cellpadding] > tbody > tr > td.tktDspValue { padding: 6px 10px; border-radius: 4px; min-height: 1.4em; overflow-wrap: anywhere; }
903 body.tkt .content form > table > tbody > tr > td:nth-child(3) { color: var(--muted); font-size: 0.9em; }
904 body.tkt .content form > table > tbody > tr > td[align=right] { padding-top: 12px; color: var(--muted); }
905
906 /* File ages: age and file on one line, the check-in below */
907 body.fileage .content table:not(.timelineTable), body.fileage .content table:not(.timelineTable) > * { display: block; }
908 body.fileage .content table:not(.timelineTable) tr { display: grid; grid-template-columns: 6.5em 1fr; border-bottom: 1px solid var(--rule); }
909 body.fileage .content table:not(.timelineTable) td { border: 0; overflow-wrap: anywhere; }
910 body.fileage .content table:not(.timelineTable) td:nth-child(3), body.fileage .content table:not(.timelineTable) th:nth-child(3) {
911 grid-column: 1 / -1; max-width: none; padding-top: 0; color: var(--muted); font-size: 0.9em;
912 }
913
914 /* Admin forms: tables that hold fields stack their cells */
915 body.setup .content table:not(.sortable):not([border]):has(input, textarea, select),
916 body.setup .content table:not(.sortable):not([border]):has(input, textarea, select) > tbody,
917 body.setup .content table:not(.sortable):not([border]):has(input, textarea, select) > tbody > tr,
918 body.setup .content table:not(.sortable):not([border]):has(input, textarea, select) > tbody > tr > td {
919 display: block; width: auto; max-width: 100%; text-align: left;
920 }
921 body.setup .content textarea { width: 100%; }
922 body.setup .content label { white-space: normal; }
923
924 /* Other wide admin tables scroll inside themselves; long option lists wrap */
925 .content table#capabilitySummary, .cpage-rcvfromlist .content > table { display: block; max-width: 100%; overflow-x: auto; }
926 .content tt, .cpage-secaudit0 .content li { overflow-wrap: anywhere; }
927
928 /* Forum replies: 10px a level instead of Fossil's 4ex, so deep threads keep
929 their shape and their width. Every level up to ten stays distinct. */
930 div.forumTime[style*="margin-left:"] { margin-left: 100px !important; }
931 div.forumTime[style*="left:4ex"] { margin-left: 10px !important; }
932 div.forumTime[style*="left:8ex"] { margin-left: 20px !important; }
933 div.forumTime[style*="left:12ex"] { margin-left: 30px !important; }
934 div.forumTime[style*="left:16ex"] { margin-left: 40px !important; }
935 div.forumTime[style*="left:20ex"] { margin-left: 50px !important; }
936 div.forumTime[style*="left:24ex"] { margin-left: 60px !important; }
937 div.forumTime[style*="left:28ex"] { margin-left: 70px !important; }
938 div.forumTime[style*="left:32ex"] { margin-left: 80px !important; }
939 div.forumTime[style*="left:36ex"] { margin-left: 90px !important; }
940 div.forumTime[style*="left:40ex"] { margin-left: 100px !important; }
941 }
942
943 /* Windows between phone and desktop width (a half-screen browser, a tablet):
944 the page never scrolls sideways there either. The same measures as on
945 phones, without the phone-only layout changes. */
946 @media screen and (min-width: 601px) and (max-width: 1100px) {
947 table.label-value td { white-space: normal !important; overflow-wrap: anywhere; }
948 table.label-value td .nobr, table.label-value td .nobr *,
949 td.tktDspValue .nobr, td.tktDspValue .nobr * { white-space: normal !important; word-break: break-all; }
950 .content table.sortable, .content table.report, .content table.userTable, .content table.md-table, .markdown table,
951 .content table#capabilitySummary, .cpage-rcvfromlist .content > table {
952 display: block; max-width: 100%; overflow-x: auto;
953 }
954 .content form { max-width: 100%; }
955 .content textarea, .content input:not([type=checkbox]):not([type=radio]), .content select { max-width: 100%; box-sizing: border-box; }
956 body.forum .content form { display: block; }
957 .content tt, .cpage-secaudit0 .content li { overflow-wrap: anywhere; }
958 /* Ticket forms: label above field, as on phones */
959 body.tkt .content form > table, body.tkt .content form > table > tbody,
960 body.tkt .content form > table > tbody > tr { display: block; }
961 body.tkt .content form > table > tbody > tr > td { display: block; width: auto; text-align: left; padding: 2px 0; }
962 body.tkt .content form > table > tbody > tr > td:nth-child(3) { color: var(--muted); font-size: 0.9em; }
963 body.tkt .content form > table > tbody > tr > td[align=right] { padding-top: 12px; color: var(--muted); }
964 }
965
966 /* A long unbroken word in any timeline entry (a wiki page named after a
967 full hash, a path, an e-mail address as login) wraps at every width */
968 .content table.timelineTable td[class$="Cell"], .content table.timelineTable td[class$="Cell"] *,
969 .content table.timelineTable span[class*="Comment"], .content table.timelineTable span[class*="Comment"] *,
970 .content table.timelineTable span[class*="Detail"], .content table.timelineTable span[class*="Detail"] * { overflow-wrap: anywhere; }
971
972 /* Login page on phones: fields stack under their labels, and the anonymous
973 login's ASCII-art captcha scrolls inside its own box */
974 @media screen and (max-width: 600px) {
975 table.login_out, table.login_out > tbody, table.login_out > tbody > tr,
976 table.login_out > tbody > tr > td { display: block; width: auto; text-align: left; }
977 table.login_out input[type=text], table.login_out input[type=password] { width: 100%; box-sizing: border-box; }
978 .content table.captcha, .content div.captcha { display: block; max-width: 1
--- a/skins/refined-light/details.txt
+++ b/skins/refined-light/details.txt
@@ -0,0 +1,3 @@
1
+timeline-arrowheads: 1
2
+t1
3
+timeline-color-graph-lines: 1
--- a/skins/refined-light/details.txt
+++ b/skins/refined-light/details.txt
@@ -0,0 +1,3 @@
 
 
 
--- a/skins/refined-light/details.txt
+++ b/skins/refined-light/details.txt
@@ -0,0 +1,3 @@
1 timeline-arrowheads: 1
2 t1
3 timeline-color-graph-lines: 1
--- a/skins/refined-light/footer.txt
+++ b/skins/refined-light/footer.txt
@@ -0,0 +1,7 @@
1
+<footer>
2
+ <span class="footer-project">$<project_name></span>
3
+ <span class="footer-meta">
4
+ fossil $release_version &middot;
5
+ <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s
6
+ </span>
7
+</footer>
--- a/skins/refined-light/footer.txt
+++ b/skins/refined-light/footer.txt
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
--- a/skins/refined-light/footer.txt
+++ b/skins/refined-light/footer.txt
@@ -0,0 +1,7 @@
1 <footer>
2 <span class="footer-project">$<project_name></span>
3 <span class="footer-meta">
4 fossil $release_version &middot;
5 <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s
6 </span>
7 </footer>
--- a/skins/refined-light/header.txt
+++ b/skins/refined-light/header.txt
@@ -0,0 +1,44 @@
1
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
2
+<script defer src="$home/script.js"></script>
3
+<a class="skip-nav" href="#main-content">Skip to content</a>
4
+<header>
5
+ <div class="title">
6
+ <a href="$home/home" class="project-name">$<project_name></a>
7
+ <span class="page-title">$<title></span>
8
+ </div>
9
+ <div class="status">
10
+ <th1>
11
+ if {[info exists login]} {
12
+ html "<a href='$home/login'>$login</a>\n"
13
+ } else {
14
+ html "<a href='$home/login'>Login</a>\n"
15
+ }
16
+ </th1>
17
+ </div>
18
+</header>
19
+<nav class="mainmenu" aria-label="Main menu">
20
+ <th1>
21
+ html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map' aria-expanded='false' aria-controls='hbdrop'>&#9776;</a>"
22
+ builtin_request_js hbmenu.js
23
+ foreach {name url expr class} $mainmenu {
24
+ if {![capexpr $expr]} continue
25
+ if {[string match /* $url]} {
26
+ if {[string match $url\[/?#\]* /$current_page/]} {
27
+ set class "active $class"
28
+ }
29
+ set url $home$url
30
+ }
31
+ html "<a href='$url' class='$class'>$name</a>\n"
32
+ }
33
+ </th1>
34
+</nav>
35
+<nav id="hbdrop" class='hbdrop' aria-label="Site map" data-anim-ms="0"></nav>
36
+<div id="main-content" tabindex="-1" style="height:0;overflow:hidden;position:absolute"></div>
37
+<th1>
38
+ if {[string compare $title index]==0 || [string compare $title Home]==0} {
39
+ html "<h1 class='page-title home-title'>[htmlize $title]</h1>\n"
40
+ } else {
41
+ html "<h1 class='page-title'>[htmlize $title]</h1>\n"
42
+ }
43
+</th1>
44
+
--- a/skins/refined-light/header.txt
+++ b/skins/refined-light/header.txt
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- a/skins/refined-light/header.txt
+++ b/skins/refined-light/header.txt
@@ -0,0 +1,44 @@
1 <meta name="viewport" content="width=device-width, initial-scale=1.0">
2 <script defer src="$home/script.js"></script>
3 <a class="skip-nav" href="#main-content">Skip to content</a>
4 <header>
5 <div class="title">
6 <a href="$home/home" class="project-name">$<project_name></a>
7 <span class="page-title">$<title></span>
8 </div>
9 <div class="status">
10 <th1>
11 if {[info exists login]} {
12 html "<a href='$home/login'>$login</a>\n"
13 } else {
14 html "<a href='$home/login'>Login</a>\n"
15 }
16 </th1>
17 </div>
18 </header>
19 <nav class="mainmenu" aria-label="Main menu">
20 <th1>
21 html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map' aria-expanded='false' aria-controls='hbdrop'>&#9776;</a>"
22 builtin_request_js hbmenu.js
23 foreach {name url expr class} $mainmenu {
24 if {![capexpr $expr]} continue
25 if {[string match /* $url]} {
26 if {[string match $url\[/?#\]* /$current_page/]} {
27 set class "active $class"
28 }
29 set url $home$url
30 }
31 html "<a href='$url' class='$class'>$name</a>\n"
32 }
33 </th1>
34 </nav>
35 <nav id="hbdrop" class='hbdrop' aria-label="Site map" data-anim-ms="0"></nav>
36 <div id="main-content" tabindex="-1" style="height:0;overflow:hidden;position:absolute"></div>
37 <th1>
38 if {[string compare $title index]==0 || [string compare $title Home]==0} {
39 html "<h1 class='page-title home-title'>[htmlize $title]</h1>\n"
40 } else {
41 html "<h1 class='page-title'>[htmlize $title]</h1>\n"
42 }
43 </th1>
44
--- a/skins/refined-light/js.txt
+++ b/skins/refined-light/js.txt
@@ -0,0 +1,338 @@
1
+document.addEventListener('DOMContentLoaded', function () {
2
+(function () {
3
+ 'use strict';
4
+
5
+ /* ─────────────────────────────────────────────────────────────────────
6
+ 1. isDark patch
7
+ Fossil's C code hard-codes isDark:false for all custom skins,
8
+ ignoring the skin-detail config key. Patch it here after Fossil's
9
+ inline scripts have already run (guaranteed by defer).
10
+ ───────────────────────────────────────────────────────────────────── */
11
+ function patchIsDark() {
12
+ /* Only for the dark variant: the light build of this skin embeds the
13
+ same script, and its stylesheet declares color-scheme: light. */
14
+ if (getComputedStyle(document.documentElement).colorScheme.indexOf('dark') < 0) return;
15
+ if (window.fossil && window.fossil.config && window.fossil.config.skin) {
16
+ window.fossil.config.skin.isDark = true;
17
+ }
18
+ document.body.classList.add('fossil-dark-style');
19
+ }
20
+
21
+ /* ─────────────────────────────────────────────────────────────────────
22
+ 2. Main landmark
23
+ div.content is Fossil's primary content wrapper but has no landmark
24
+ role. Adding role="main" lets screen reader users jump to content.
25
+ ───────────────────────────────────────────────────────────────────── */
26
+ function addMainLandmark() {
27
+ var content = document.querySelector('div.content');
28
+ if (content && !content.getAttribute('role')) {
29
+ content.setAttribute('role', 'main');
30
+ }
31
+ }
32
+
33
+ /* ─────────────────────────────────────────────────────────────────────
34
+ 3. Hamburger menu — the worst accessibility failure in the skin
35
+ ----------------------------------------------------------------
36
+ What Fossil gives us:
37
+ <a id="hbbtn" href="/repo/sitemap" aria-label="Site Map">☰</a>
38
+ <nav id="hbdrop" class="hbdrop" title="sitemap"></nav>
39
+
40
+ Problems:
41
+ - No aria-expanded: screen readers can't tell if the menu is open
42
+ - No aria-controls: no programmatic link between button and panel
43
+ - hbdrop has no role or accessible name beyond an unhelpful title
44
+ - When the menu opens, focus stays on hbbtn — user cannot reach
45
+ the menu links by keyboard without realising the menu opened
46
+ - Escape key does not close the menu
47
+ - hbmenu.js controls visibility via style.display; we use
48
+ MutationObserver to stay in sync rather than patching the JS
49
+
50
+ Fixes applied:
51
+ - aria-expanded / aria-controls on hbbtn
52
+ - role="navigation" + aria-label on hbdrop
53
+ - MutationObserver: sync aria-expanded on every show/hide
54
+ - On open: move focus to the first link in the dropdown
55
+ - On Escape inside dropdown: close panel, return focus to hbbtn
56
+ ───────────────────────────────────────────────────────────────────── */
57
+ function fixHamburgerMenu() {
58
+ var btn = document.getElementById('hbbtn');
59
+ var drop = document.getElementById('hbdrop');
60
+ if (!btn || !drop) return;
61
+
62
+ var nav = btn.closest('nav.mainmenu') || btn.parentNode;
63
+ if (!nav) return;
64
+
65
+ /* Position the dropdown using position:fixed so it overlays content
66
+ regardless of DOM structure. We set --nav-bottom as a CSS variable
67
+ so the dropdown's top edge tracks the nav bar's bottom edge. */
68
+ function setNavBottom() {
69
+ var bottom = Math.max(0, nav.getBoundingClientRect().bottom);
70
+ document.documentElement.style.setProperty('--nav-bottom', bottom + 'px');
71
+ }
72
+ setNavBottom();
73
+ window.addEventListener('resize', setNavBottom);
74
+ /* Measure again on every open (capture: before hbmenu.js shows the
75
+ panel), so the menu opens under the nav bar wherever the page is. */
76
+ btn.addEventListener('click', setNavBottom, true);
77
+ /* Open by touch or mouse vs keyboard: only the keyboard gets focus moved */
78
+ var openedByPointer = false;
79
+ btn.addEventListener('pointerdown', function () { openedByPointer = true; });
80
+ btn.addEventListener('keydown', function () { openedByPointer = false; });
81
+
82
+ /* Static button semantics (JS will keep aria-expanded in sync) */
83
+ btn.setAttribute('aria-expanded', 'false');
84
+ btn.setAttribute('aria-controls', 'hbdrop');
85
+
86
+ /* Panel semantics */
87
+ drop.setAttribute('role', 'navigation');
88
+ drop.setAttribute('aria-label', 'Site map');
89
+
90
+ /* Sync aria-expanded whenever hbmenu.js toggles panel visibility.
91
+ hbmenu.js uses style.display to show/hide — observe that attribute. */
92
+ var menuObserver = new MutationObserver(function () {
93
+ var open = getComputedStyle(drop).display !== 'none';
94
+ btn.setAttribute('aria-expanded', open ? 'true' : 'false');
95
+
96
+ /* Move focus into the panel when it opens so keyboard users
97
+ can immediately navigate the links without guessing. */
98
+ if (open) {
99
+ /* The nav bar may now be stuck to the top (see the skin CSS) */
100
+ requestAnimationFrame(setNavBottom);
101
+ if (!openedByPointer) {
102
+ var firstLink = drop.querySelector('a');
103
+ if (firstLink) firstLink.focus({ preventScroll: true });
104
+ }
105
+ }
106
+ });
107
+ menuObserver.observe(drop, { attributes: true, attributeFilter: ['style'] });
108
+
109
+ /* Escape inside the dropdown: close the panel and return focus.
110
+ We set display directly — this also triggers the MutationObserver
111
+ which will update aria-expanded to 'false'. */
112
+ drop.addEventListener('keydown', function (e) {
113
+ if (e.key === 'Escape' || e.keyCode === 27) {
114
+ drop.style.display = 'none';
115
+ btn.focus();
116
+ }
117
+ });
118
+ }
119
+
120
+ /* ─────────────────────────────────────────────────────────────────────
121
+ 4. Timeline table
122
+ ----------------------------------------------------------------
123
+ Structure Fossil generates:
124
+
125
+ <table class="timelineTable">
126
+ <tr class="timelineDateRow">
127
+ <td><div class="timelineDate">2026-03-14</div></td>
128
+ <td></td> <- empty filler for graph column
129
+ <td></td> <- empty filler for comment column
130
+ </tr>
131
+ <tr>
132
+ <td class="timelineTime">20:16</td>
133
+ <td class="timelineGraph">
134
+ <div class="tl-nodemark"></div> <- JS draws SVG here later
135
+ </td>
136
+ <td class="timelineModernCell" id="mc1">
137
+ <span class="timelineModernComment">commit message</span>
138
+ <span class="timelineModernDetail">...</span>
139
+ </td>
140
+ </tr>
141
+ </table>
142
+
143
+ Fixes applied:
144
+ - aria-label="Commit timeline" on each .timelineTable
145
+ - aria-hidden="true" on all td.timelineGraph cells
146
+ - aria-hidden="true" on filler cells in timelineDateRow rows
147
+ - aria-label="Time: HH:MM" on timelineTime cells
148
+
149
+ Run at defer-time AND on window.load because Fossil's timeline JS
150
+ inserts SVG canvas elements into the graph cells on window.load.
151
+ ───────────────────────────────────────────────────────────────────── */
152
+ function fixTimeline() {
153
+ /* Label each timeline table */
154
+ document.querySelectorAll('table.timelineTable').forEach(function (tbl) {
155
+ if (!tbl.getAttribute('aria-label') && !tbl.querySelector('caption')) {
156
+ tbl.setAttribute('aria-label', 'Commit timeline');
157
+ }
158
+ });
159
+
160
+ /* Hide the graph column — purely visual SVG/canvas drawn by Fossil JS */
161
+ document.querySelectorAll('td.timelineGraph').forEach(function (td) {
162
+ td.setAttribute('aria-hidden', 'true');
163
+ });
164
+
165
+ /* Hide filler cells in date-separator rows */
166
+ document.querySelectorAll('tr.timelineDateRow').forEach(function (tr) {
167
+ tr.querySelectorAll('td + td').forEach(function (td) {
168
+ td.setAttribute('aria-hidden', 'true');
169
+ });
170
+ });
171
+
172
+ /* Give bare time cells a descriptive label.
173
+ Strip stray </a> text artefact Fossil emits in anonymous mode. */
174
+ document.querySelectorAll('td.timelineTime').forEach(function (td) {
175
+ var text = td.textContent.trim();
176
+ if (text && !td.getAttribute('aria-label')) {
177
+ td.setAttribute('aria-label', 'Time: ' + text);
178
+ }
179
+ });
180
+ }
181
+
182
+ /* ─────────────────────────────────────────────────────────────────────
183
+ 5. Sortable table headers — add scope="col"
184
+ Fossil generates <th> elements in branch, tag, file, and ticket
185
+ tables but never includes scope. Screen readers cannot correctly
186
+ associate header text with the cells in each column.
187
+ ───────────────────────────────────────────────────────────────────── */
188
+ function fixTableHeaders() {
189
+ var selector = [
190
+ 'table.sortable th',
191
+ 'table.filelistTable th',
192
+ 'table.branchlistTable th',
193
+ 'table.taglistTable th',
194
+ 'table.userlistTable th',
195
+ 'table.report th',
196
+ ].join(', ');
197
+ document.querySelectorAll(selector).forEach(function (th) {
198
+ if (!th.getAttribute('scope')) {
199
+ th.setAttribute('scope', 'col');
200
+ }
201
+ });
202
+ }
203
+
204
+ /* ─────────────────────────────────────────────────────────────────────
205
+ 6. Submenu select labels
206
+ Fossil renders <select> controls in the page submenu with no
207
+ associated <label>. We add aria-label from the preceding sibling
208
+ label text, falling back to a class-name lookup table.
209
+ ───────────────────────────────────────────────────────────────────── */
210
+ var SELECT_LABELS = {
211
+ 'smc-ss': 'View style',
212
+ 'smc-ci': 'Check-in',
213
+ 'smc-v': 'Version',
214
+ 'smc-r': 'Repository',
215
+ 'smc-b': 'Branch',
216
+ 'smc-t': 'Tag',
217
+ 'smc-u': 'User',
218
+ };
219
+
220
+ /* Charts Fossil draws as <svg width= height=> with no viewBox cannot be
221
+ scaled by CSS. Give them one; the skin's "svg.fit" rule does the rest. */
222
+ function fitCharts() {
223
+ document.querySelectorAll('.content svg[width][height]:not([viewBox])').forEach(function (s) {
224
+ var w = parseFloat(s.getAttribute('width')), h = parseFloat(s.getAttribute('height'));
225
+ if (!(w > 0 && h > 0)) return;
226
+ s.setAttribute('viewBox', '0 0 ' + w + ' ' + h);
227
+ s.classList.add('fit');
228
+ });
229
+ }
230
+
231
+ /* Sortable column headers respond to clicks only. Put them in the tab
232
+ order and let Enter or Space do what a click does. */
233
+ function fixSortableHeaders() {
234
+ document.querySelectorAll('table.sortable th').forEach(function (th) {
235
+ if (th.hasAttribute('tabindex')) return;
236
+ th.setAttribute('tabindex', '0');
237
+ th.addEventListener('keydown', function (e) {
238
+ if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); th.click(); }
239
+ });
240
+ });
241
+ }
242
+
243
+ /* The menu bar scrolls sideways on narrow screens. Bring the current
244
+ page's entry into view, without moving the page itself. */
245
+ function showActiveMenuItem() {
246
+ var nav = document.querySelector('nav.mainmenu');
247
+ var a = nav && nav.querySelector('a.active');
248
+ var hb = document.getElementById('hbbtn');
249
+ if (!a || a === hb || nav.scrollWidth <= nav.clientWidth) return;
250
+ var left = a.offsetLeft - nav.offsetLeft, pinned = hb ? hb.offsetWidth : 0;
251
+ if (left - pinned < nav.scrollLeft || left + a.offsetWidth > nav.scrollLeft + nav.clientWidth - 28) {
252
+ nav.scrollLeft = Math.max(0, left - pinned - 12);
253
+ }
254
+ }
255
+
256
+ function fixSubmenuSelects() {
257
+ document.querySelectorAll('div.submenu select, div.sectionmenu select').forEach(function (sel) {
258
+ if (sel.getAttribute('aria-label') || sel.getAttribute('aria-labelledby')) return;
259
+
260
+ /* Walk backwards through siblings to find a .label text node */
261
+ var prev = sel.previousElementSibling;
262
+ while (prev) {
263
+ if (prev.classList.contains('label') && prev.textContent.trim()) {
264
+ sel.setAttribute('aria-label', prev.textContent.trim());
265
+ return;
266
+ }
267
+ prev = prev.previousElementSibling;
268
+ }
269
+
270
+ /* Class-name lookup */
271
+ var classes = Array.from(sel.classList);
272
+ for (var i = 0; i < classes.length; i++) {
273
+ if (SELECT_LABELS[classes[i]]) {
274
+ sel.setAttribute('aria-label', SELECT_LABELS[classes[i]]);
275
+ return;
276
+ }
277
+ }
278
+
279
+ sel.setAttribute('aria-label', 'Filter');
280
+ });
281
+ }
282
+
283
+ /* ─────────────────────────────────────────────────────────────────────
284
+ 7. Day of week on each timeline date
285
+ Fossil's date rows carry only the date ("2026-11-11"). This puts the
286
+ full weekday on a small line above it. The weekday comes from Ben
287
+ Joffe's branchless method (benjoffe.com/fast-day-of-week), as zit
288
+ uses it: one multiply and two shifts, exact for every 32-bit day
289
+ number. It is read from the date Fossil prints, so it always matches
290
+ that date whether the timeline shows UTC or local time. The skin CSS
291
+ reserves the line before this runs, so setting the name moves nothing.
292
+ ───────────────────────────────────────────────────────────────────── */
293
+ var WEEKDAYS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
294
+ function weekdayOf(dayNumber) { /* days since 1970-01-01 -> 0 = Sunday */
295
+ return ((Math.imul(dayNumber, 613566756) + 0x95000000 +
296
+ (dayNumber >> 1) + (dayNumber >> 4)) >>> 0) >>> 29;
297
+ }
298
+ function addWeekdays() {
299
+ var rows = document.querySelectorAll('div.timelineDate');
300
+ for (var i = 0; i < rows.length; i++) {
301
+ if (rows[i].hasAttribute('data-dow')) continue;
302
+ var m = /^(\d{4})-(\d\d)-(\d\d)$/.exec(rows[i].textContent.trim());
303
+ if (!m) continue;
304
+ /* The skin CSS shows this in a line it reserves above the date */
305
+ rows[i].setAttribute('data-dow', WEEKDAYS[weekdayOf(Date.UTC(+m[1], m[2] - 1, +m[3]) / 864e5)]);
306
+ }
307
+ }
308
+
309
+ /* ─────────────────────────────────────────────────────────────────────
310
+ Execute all fixes
311
+ The script is deferred so the DOM is fully parsed when this runs.
312
+ Fossil's inline config scripts have already executed, so
313
+ window.fossil exists and we can patch isDark immediately.
314
+ ───────────────────────────────────────────────────────────────────── */
315
+ patchIsDark();
316
+ addMainLandmark();
317
+ fixHamburgerMenu();
318
+ fixTimeline();
319
+ fixTableHeaders();
320
+ fixSubmenuSelects();
321
+ fitCharts();
322
+ showActiveMenuItem();
323
+ fixSortableHeaders();
324
+ addWeekdays();
325
+
326
+ /* Re-run after window.load: Fossil's timeline renderer inserts
327
+ .tl-canvas SVG elements into td.timelineGraph on load, and
328
+ Fossil's own load handlers may reset isDark. */
329
+ window.addEventListener('load', function () {
330
+ patchIsDark();
331
+ fixTimeline();
332
+ fixTableHeaders();
333
+ fixSubmenuSelects();
334
+ });
335
+
336
+}());
337
+
338
+});
--- a/skins/refined-light/js.txt
+++ b/skins/refined-light/js.txt
@@ -0,0 +1,338 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- a/skins/refined-light/js.txt
+++ b/skins/refined-light/js.txt
@@ -0,0 +1,338 @@
1 document.addEventListener('DOMContentLoaded', function () {
2 (function () {
3 'use strict';
4
5 /* ─────────────────────────────────────────────────────────────────────
6 1. isDark patch
7 Fossil's C code hard-codes isDark:false for all custom skins,
8 ignoring the skin-detail config key. Patch it here after Fossil's
9 inline scripts have already run (guaranteed by defer).
10 ───────────────────────────────────────────────────────────────────── */
11 function patchIsDark() {
12 /* Only for the dark variant: the light build of this skin embeds the
13 same script, and its stylesheet declares color-scheme: light. */
14 if (getComputedStyle(document.documentElement).colorScheme.indexOf('dark') < 0) return;
15 if (window.fossil && window.fossil.config && window.fossil.config.skin) {
16 window.fossil.config.skin.isDark = true;
17 }
18 document.body.classList.add('fossil-dark-style');
19 }
20
21 /* ─────────────────────────────────────────────────────────────────────
22 2. Main landmark
23 div.content is Fossil's primary content wrapper but has no landmark
24 role. Adding role="main" lets screen reader users jump to content.
25 ───────────────────────────────────────────────────────────────────── */
26 function addMainLandmark() {
27 var content = document.querySelector('div.content');
28 if (content && !content.getAttribute('role')) {
29 content.setAttribute('role', 'main');
30 }
31 }
32
33 /* ─────────────────────────────────────────────────────────────────────
34 3. Hamburger menu — the worst accessibility failure in the skin
35 ----------------------------------------------------------------
36 What Fossil gives us:
37 <a id="hbbtn" href="/repo/sitemap" aria-label="Site Map">☰</a>
38 <nav id="hbdrop" class="hbdrop" title="sitemap"></nav>
39
40 Problems:
41 - No aria-expanded: screen readers can't tell if the menu is open
42 - No aria-controls: no programmatic link between button and panel
43 - hbdrop has no role or accessible name beyond an unhelpful title
44 - When the menu opens, focus stays on hbbtn — user cannot reach
45 the menu links by keyboard without realising the menu opened
46 - Escape key does not close the menu
47 - hbmenu.js controls visibility via style.display; we use
48 MutationObserver to stay in sync rather than patching the JS
49
50 Fixes applied:
51 - aria-expanded / aria-controls on hbbtn
52 - role="navigation" + aria-label on hbdrop
53 - MutationObserver: sync aria-expanded on every show/hide
54 - On open: move focus to the first link in the dropdown
55 - On Escape inside dropdown: close panel, return focus to hbbtn
56 ───────────────────────────────────────────────────────────────────── */
57 function fixHamburgerMenu() {
58 var btn = document.getElementById('hbbtn');
59 var drop = document.getElementById('hbdrop');
60 if (!btn || !drop) return;
61
62 var nav = btn.closest('nav.mainmenu') || btn.parentNode;
63 if (!nav) return;
64
65 /* Position the dropdown using position:fixed so it overlays content
66 regardless of DOM structure. We set --nav-bottom as a CSS variable
67 so the dropdown's top edge tracks the nav bar's bottom edge. */
68 function setNavBottom() {
69 var bottom = Math.max(0, nav.getBoundingClientRect().bottom);
70 document.documentElement.style.setProperty('--nav-bottom', bottom + 'px');
71 }
72 setNavBottom();
73 window.addEventListener('resize', setNavBottom);
74 /* Measure again on every open (capture: before hbmenu.js shows the
75 panel), so the menu opens under the nav bar wherever the page is. */
76 btn.addEventListener('click', setNavBottom, true);
77 /* Open by touch or mouse vs keyboard: only the keyboard gets focus moved */
78 var openedByPointer = false;
79 btn.addEventListener('pointerdown', function () { openedByPointer = true; });
80 btn.addEventListener('keydown', function () { openedByPointer = false; });
81
82 /* Static button semantics (JS will keep aria-expanded in sync) */
83 btn.setAttribute('aria-expanded', 'false');
84 btn.setAttribute('aria-controls', 'hbdrop');
85
86 /* Panel semantics */
87 drop.setAttribute('role', 'navigation');
88 drop.setAttribute('aria-label', 'Site map');
89
90 /* Sync aria-expanded whenever hbmenu.js toggles panel visibility.
91 hbmenu.js uses style.display to show/hide — observe that attribute. */
92 var menuObserver = new MutationObserver(function () {
93 var open = getComputedStyle(drop).display !== 'none';
94 btn.setAttribute('aria-expanded', open ? 'true' : 'false');
95
96 /* Move focus into the panel when it opens so keyboard users
97 can immediately navigate the links without guessing. */
98 if (open) {
99 /* The nav bar may now be stuck to the top (see the skin CSS) */
100 requestAnimationFrame(setNavBottom);
101 if (!openedByPointer) {
102 var firstLink = drop.querySelector('a');
103 if (firstLink) firstLink.focus({ preventScroll: true });
104 }
105 }
106 });
107 menuObserver.observe(drop, { attributes: true, attributeFilter: ['style'] });
108
109 /* Escape inside the dropdown: close the panel and return focus.
110 We set display directly — this also triggers the MutationObserver
111 which will update aria-expanded to 'false'. */
112 drop.addEventListener('keydown', function (e) {
113 if (e.key === 'Escape' || e.keyCode === 27) {
114 drop.style.display = 'none';
115 btn.focus();
116 }
117 });
118 }
119
120 /* ─────────────────────────────────────────────────────────────────────
121 4. Timeline table
122 ----------------------------------------------------------------
123 Structure Fossil generates:
124
125 <table class="timelineTable">
126 <tr class="timelineDateRow">
127 <td><div class="timelineDate">2026-03-14</div></td>
128 <td></td> <- empty filler for graph column
129 <td></td> <- empty filler for comment column
130 </tr>
131 <tr>
132 <td class="timelineTime">20:16</td>
133 <td class="timelineGraph">
134 <div class="tl-nodemark"></div> <- JS draws SVG here later
135 </td>
136 <td class="timelineModernCell" id="mc1">
137 <span class="timelineModernComment">commit message</span>
138 <span class="timelineModernDetail">...</span>
139 </td>
140 </tr>
141 </table>
142
143 Fixes applied:
144 - aria-label="Commit timeline" on each .timelineTable
145 - aria-hidden="true" on all td.timelineGraph cells
146 - aria-hidden="true" on filler cells in timelineDateRow rows
147 - aria-label="Time: HH:MM" on timelineTime cells
148
149 Run at defer-time AND on window.load because Fossil's timeline JS
150 inserts SVG canvas elements into the graph cells on window.load.
151 ───────────────────────────────────────────────────────────────────── */
152 function fixTimeline() {
153 /* Label each timeline table */
154 document.querySelectorAll('table.timelineTable').forEach(function (tbl) {
155 if (!tbl.getAttribute('aria-label') && !tbl.querySelector('caption')) {
156 tbl.setAttribute('aria-label', 'Commit timeline');
157 }
158 });
159
160 /* Hide the graph column — purely visual SVG/canvas drawn by Fossil JS */
161 document.querySelectorAll('td.timelineGraph').forEach(function (td) {
162 td.setAttribute('aria-hidden', 'true');
163 });
164
165 /* Hide filler cells in date-separator rows */
166 document.querySelectorAll('tr.timelineDateRow').forEach(function (tr) {
167 tr.querySelectorAll('td + td').forEach(function (td) {
168 td.setAttribute('aria-hidden', 'true');
169 });
170 });
171
172 /* Give bare time cells a descriptive label.
173 Strip stray </a> text artefact Fossil emits in anonymous mode. */
174 document.querySelectorAll('td.timelineTime').forEach(function (td) {
175 var text = td.textContent.trim();
176 if (text && !td.getAttribute('aria-label')) {
177 td.setAttribute('aria-label', 'Time: ' + text);
178 }
179 });
180 }
181
182 /* ─────────────────────────────────────────────────────────────────────
183 5. Sortable table headers — add scope="col"
184 Fossil generates <th> elements in branch, tag, file, and ticket
185 tables but never includes scope. Screen readers cannot correctly
186 associate header text with the cells in each column.
187 ───────────────────────────────────────────────────────────────────── */
188 function fixTableHeaders() {
189 var selector = [
190 'table.sortable th',
191 'table.filelistTable th',
192 'table.branchlistTable th',
193 'table.taglistTable th',
194 'table.userlistTable th',
195 'table.report th',
196 ].join(', ');
197 document.querySelectorAll(selector).forEach(function (th) {
198 if (!th.getAttribute('scope')) {
199 th.setAttribute('scope', 'col');
200 }
201 });
202 }
203
204 /* ─────────────────────────────────────────────────────────────────────
205 6. Submenu select labels
206 Fossil renders <select> controls in the page submenu with no
207 associated <label>. We add aria-label from the preceding sibling
208 label text, falling back to a class-name lookup table.
209 ───────────────────────────────────────────────────────────────────── */
210 var SELECT_LABELS = {
211 'smc-ss': 'View style',
212 'smc-ci': 'Check-in',
213 'smc-v': 'Version',
214 'smc-r': 'Repository',
215 'smc-b': 'Branch',
216 'smc-t': 'Tag',
217 'smc-u': 'User',
218 };
219
220 /* Charts Fossil draws as <svg width= height=> with no viewBox cannot be
221 scaled by CSS. Give them one; the skin's "svg.fit" rule does the rest. */
222 function fitCharts() {
223 document.querySelectorAll('.content svg[width][height]:not([viewBox])').forEach(function (s) {
224 var w = parseFloat(s.getAttribute('width')), h = parseFloat(s.getAttribute('height'));
225 if (!(w > 0 && h > 0)) return;
226 s.setAttribute('viewBox', '0 0 ' + w + ' ' + h);
227 s.classList.add('fit');
228 });
229 }
230
231 /* Sortable column headers respond to clicks only. Put them in the tab
232 order and let Enter or Space do what a click does. */
233 function fixSortableHeaders() {
234 document.querySelectorAll('table.sortable th').forEach(function (th) {
235 if (th.hasAttribute('tabindex')) return;
236 th.setAttribute('tabindex', '0');
237 th.addEventListener('keydown', function (e) {
238 if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); th.click(); }
239 });
240 });
241 }
242
243 /* The menu bar scrolls sideways on narrow screens. Bring the current
244 page's entry into view, without moving the page itself. */
245 function showActiveMenuItem() {
246 var nav = document.querySelector('nav.mainmenu');
247 var a = nav && nav.querySelector('a.active');
248 var hb = document.getElementById('hbbtn');
249 if (!a || a === hb || nav.scrollWidth <= nav.clientWidth) return;
250 var left = a.offsetLeft - nav.offsetLeft, pinned = hb ? hb.offsetWidth : 0;
251 if (left - pinned < nav.scrollLeft || left + a.offsetWidth > nav.scrollLeft + nav.clientWidth - 28) {
252 nav.scrollLeft = Math.max(0, left - pinned - 12);
253 }
254 }
255
256 function fixSubmenuSelects() {
257 document.querySelectorAll('div.submenu select, div.sectionmenu select').forEach(function (sel) {
258 if (sel.getAttribute('aria-label') || sel.getAttribute('aria-labelledby')) return;
259
260 /* Walk backwards through siblings to find a .label text node */
261 var prev = sel.previousElementSibling;
262 while (prev) {
263 if (prev.classList.contains('label') && prev.textContent.trim()) {
264 sel.setAttribute('aria-label', prev.textContent.trim());
265 return;
266 }
267 prev = prev.previousElementSibling;
268 }
269
270 /* Class-name lookup */
271 var classes = Array.from(sel.classList);
272 for (var i = 0; i < classes.length; i++) {
273 if (SELECT_LABELS[classes[i]]) {
274 sel.setAttribute('aria-label', SELECT_LABELS[classes[i]]);
275 return;
276 }
277 }
278
279 sel.setAttribute('aria-label', 'Filter');
280 });
281 }
282
283 /* ─────────────────────────────────────────────────────────────────────
284 7. Day of week on each timeline date
285 Fossil's date rows carry only the date ("2026-11-11"). This puts the
286 full weekday on a small line above it. The weekday comes from Ben
287 Joffe's branchless method (benjoffe.com/fast-day-of-week), as zit
288 uses it: one multiply and two shifts, exact for every 32-bit day
289 number. It is read from the date Fossil prints, so it always matches
290 that date whether the timeline shows UTC or local time. The skin CSS
291 reserves the line before this runs, so setting the name moves nothing.
292 ───────────────────────────────────────────────────────────────────── */
293 var WEEKDAYS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
294 function weekdayOf(dayNumber) { /* days since 1970-01-01 -> 0 = Sunday */
295 return ((Math.imul(dayNumber, 613566756) + 0x95000000 +
296 (dayNumber >> 1) + (dayNumber >> 4)) >>> 0) >>> 29;
297 }
298 function addWeekdays() {
299 var rows = document.querySelectorAll('div.timelineDate');
300 for (var i = 0; i < rows.length; i++) {
301 if (rows[i].hasAttribute('data-dow')) continue;
302 var m = /^(\d{4})-(\d\d)-(\d\d)$/.exec(rows[i].textContent.trim());
303 if (!m) continue;
304 /* The skin CSS shows this in a line it reserves above the date */
305 rows[i].setAttribute('data-dow', WEEKDAYS[weekdayOf(Date.UTC(+m[1], m[2] - 1, +m[3]) / 864e5)]);
306 }
307 }
308
309 /* ─────────────────────────────────────────────────────────────────────
310 Execute all fixes
311 The script is deferred so the DOM is fully parsed when this runs.
312 Fossil's inline config scripts have already executed, so
313 window.fossil exists and we can patch isDark immediately.
314 ───────────────────────────────────────────────────────────────────── */
315 patchIsDark();
316 addMainLandmark();
317 fixHamburgerMenu();
318 fixTimeline();
319 fixTableHeaders();
320 fixSubmenuSelects();
321 fitCharts();
322 showActiveMenuItem();
323 fixSortableHeaders();
324 addWeekdays();
325
326 /* Re-run after window.load: Fossil's timeline renderer inserts
327 .tl-canvas SVG elements into td.timelineGraph on load, and
328 Fossil's own load handlers may reset isDark. */
329 window.addEventListener('load', function () {
330 patchIsDark();
331 fixTimeline();
332 fixTableHeaders();
333 fixSubmenuSelects();
334 });
335
336 }());
337
338 });
+10
--- src/main.mk
+++ src/main.mk
@@ -210,10 +210,20 @@
210210
$(SRCDIR)/../skins/original/header.txt \
211211
$(SRCDIR)/../skins/plain_gray/css.txt \
212212
$(SRCDIR)/../skins/plain_gray/details.txt \
213213
$(SRCDIR)/../skins/plain_gray/footer.txt \
214214
$(SRCDIR)/../skins/plain_gray/header.txt \
215
+ $(SRCDIR)/../skins/refined-dark/css.txt \
216
+ $(SRCDIR)/../skins/refined-dark/details.txt \
217
+ $(SRCDIR)/../skins/refined-dark/footer.txt \
218
+ $(SRCDIR)/../skins/refined-dark/header.txt \
219
+ $(SRCDIR)/../skins/refined-dark/js.txt \
220
+ $(SRCDIR)/../skins/refined-light/css.txt \
221
+ $(SRCDIR)/../skins/refined-light/details.txt \
222
+ $(SRCDIR)/../skins/refined-light/footer.txt \
223
+ $(SRCDIR)/../skins/refined-light/header.txt \
224
+ $(SRCDIR)/../skins/refined-light/js.txt \
215225
$(SRCDIR)/../skins/xekri/css.txt \
216226
$(SRCDIR)/../skins/xekri/details.txt \
217227
$(SRCDIR)/../skins/xekri/footer.txt \
218228
$(SRCDIR)/../skins/xekri/header.txt \
219229
$(SRCDIR)/alerts/bflat2.wav \
220230
--- src/main.mk
+++ src/main.mk
@@ -210,10 +210,20 @@
210 $(SRCDIR)/../skins/original/header.txt \
211 $(SRCDIR)/../skins/plain_gray/css.txt \
212 $(SRCDIR)/../skins/plain_gray/details.txt \
213 $(SRCDIR)/../skins/plain_gray/footer.txt \
214 $(SRCDIR)/../skins/plain_gray/header.txt \
 
 
 
 
 
 
 
 
 
 
215 $(SRCDIR)/../skins/xekri/css.txt \
216 $(SRCDIR)/../skins/xekri/details.txt \
217 $(SRCDIR)/../skins/xekri/footer.txt \
218 $(SRCDIR)/../skins/xekri/header.txt \
219 $(SRCDIR)/alerts/bflat2.wav \
220
--- src/main.mk
+++ src/main.mk
@@ -210,10 +210,20 @@
210 $(SRCDIR)/../skins/original/header.txt \
211 $(SRCDIR)/../skins/plain_gray/css.txt \
212 $(SRCDIR)/../skins/plain_gray/details.txt \
213 $(SRCDIR)/../skins/plain_gray/footer.txt \
214 $(SRCDIR)/../skins/plain_gray/header.txt \
215 $(SRCDIR)/../skins/refined-dark/css.txt \
216 $(SRCDIR)/../skins/refined-dark/details.txt \
217 $(SRCDIR)/../skins/refined-dark/footer.txt \
218 $(SRCDIR)/../skins/refined-dark/header.txt \
219 $(SRCDIR)/../skins/refined-dark/js.txt \
220 $(SRCDIR)/../skins/refined-light/css.txt \
221 $(SRCDIR)/../skins/refined-light/details.txt \
222 $(SRCDIR)/../skins/refined-light/footer.txt \
223 $(SRCDIR)/../skins/refined-light/header.txt \
224 $(SRCDIR)/../skins/refined-light/js.txt \
225 $(SRCDIR)/../skins/xekri/css.txt \
226 $(SRCDIR)/../skins/xekri/details.txt \
227 $(SRCDIR)/../skins/xekri/footer.txt \
228 $(SRCDIR)/../skins/xekri/header.txt \
229 $(SRCDIR)/alerts/bflat2.wav \
230
--- src/skins.c
+++ src/skins.c
@@ -56,10 +56,12 @@
5656
{ "Eagle", "eagle", 0 },
5757
{ "Étienne", "etienne", 0 },
5858
{ "Khaki", "khaki", 0 },
5959
{ "Original", "original", 0 },
6060
{ "Plain Gray", "plain_gray", 0 },
61
+ { "Refined Dark", "refined-dark", 0 },
62
+ { "Refined Light", "refined-light", 0 },
6163
{ "Xekri", "xekri", 0 },
6264
};
6365
6466
/*
6567
** A skin consists of five "files" named here:
6668
--- src/skins.c
+++ src/skins.c
@@ -56,10 +56,12 @@
56 { "Eagle", "eagle", 0 },
57 { "Étienne", "etienne", 0 },
58 { "Khaki", "khaki", 0 },
59 { "Original", "original", 0 },
60 { "Plain Gray", "plain_gray", 0 },
 
 
61 { "Xekri", "xekri", 0 },
62 };
63
64 /*
65 ** A skin consists of five "files" named here:
66
--- src/skins.c
+++ src/skins.c
@@ -56,10 +56,12 @@
56 { "Eagle", "eagle", 0 },
57 { "Étienne", "etienne", 0 },
58 { "Khaki", "khaki", 0 },
59 { "Original", "original", 0 },
60 { "Plain Gray", "plain_gray", 0 },
61 { "Refined Dark", "refined-dark", 0 },
62 { "Refined Light", "refined-light", 0 },
63 { "Xekri", "xekri", 0 },
64 };
65
66 /*
67 ** A skin consists of five "files" named here:
68
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -596,10 +596,20 @@
596596
$(SRCDIR)/../skins/original/header.txt \
597597
$(SRCDIR)/../skins/plain_gray/css.txt \
598598
$(SRCDIR)/../skins/plain_gray/details.txt \
599599
$(SRCDIR)/../skins/plain_gray/footer.txt \
600600
$(SRCDIR)/../skins/plain_gray/header.txt \
601
+ $(SRCDIR)/../skins/refined-dark/css.txt \
602
+ $(SRCDIR)/../skins/refined-dark/details.txt \
603
+ $(SRCDIR)/../skins/refined-dark/footer.txt \
604
+ $(SRCDIR)/../skins/refined-dark/header.txt \
605
+ $(SRCDIR)/../skins/refined-dark/js.txt \
606
+ $(SRCDIR)/../skins/refined-light/css.txt \
607
+ $(SRCDIR)/../skins/refined-light/details.txt \
608
+ $(SRCDIR)/../skins/refined-light/footer.txt \
609
+ $(SRCDIR)/../skins/refined-light/header.txt \
610
+ $(SRCDIR)/../skins/refined-light/js.txt \
601611
$(SRCDIR)/../skins/xekri/css.txt \
602612
$(SRCDIR)/../skins/xekri/details.txt \
603613
$(SRCDIR)/../skins/xekri/footer.txt \
604614
$(SRCDIR)/../skins/xekri/header.txt \
605615
$(SRCDIR)/alerts/bflat2.wav \
606616
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -596,10 +596,20 @@
596 $(SRCDIR)/../skins/original/header.txt \
597 $(SRCDIR)/../skins/plain_gray/css.txt \
598 $(SRCDIR)/../skins/plain_gray/details.txt \
599 $(SRCDIR)/../skins/plain_gray/footer.txt \
600 $(SRCDIR)/../skins/plain_gray/header.txt \
 
 
 
 
 
 
 
 
 
 
601 $(SRCDIR)/../skins/xekri/css.txt \
602 $(SRCDIR)/../skins/xekri/details.txt \
603 $(SRCDIR)/../skins/xekri/footer.txt \
604 $(SRCDIR)/../skins/xekri/header.txt \
605 $(SRCDIR)/alerts/bflat2.wav \
606
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -596,10 +596,20 @@
596 $(SRCDIR)/../skins/original/header.txt \
597 $(SRCDIR)/../skins/plain_gray/css.txt \
598 $(SRCDIR)/../skins/plain_gray/details.txt \
599 $(SRCDIR)/../skins/plain_gray/footer.txt \
600 $(SRCDIR)/../skins/plain_gray/header.txt \
601 $(SRCDIR)/../skins/refined-dark/css.txt \
602 $(SRCDIR)/../skins/refined-dark/details.txt \
603 $(SRCDIR)/../skins/refined-dark/footer.txt \
604 $(SRCDIR)/../skins/refined-dark/header.txt \
605 $(SRCDIR)/../skins/refined-dark/js.txt \
606 $(SRCDIR)/../skins/refined-light/css.txt \
607 $(SRCDIR)/../skins/refined-light/details.txt \
608 $(SRCDIR)/../skins/refined-light/footer.txt \
609 $(SRCDIR)/../skins/refined-light/header.txt \
610 $(SRCDIR)/../skins/refined-light/js.txt \
611 $(SRCDIR)/../skins/xekri/css.txt \
612 $(SRCDIR)/../skins/xekri/details.txt \
613 $(SRCDIR)/../skins/xekri/footer.txt \
614 $(SRCDIR)/../skins/xekri/header.txt \
615 $(SRCDIR)/alerts/bflat2.wav \
616
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -561,10 +561,20 @@
561561
"$(SRCDIR)\..\skins\original\header.txt" \
562562
"$(SRCDIR)\..\skins\plain_gray\css.txt" \
563563
"$(SRCDIR)\..\skins\plain_gray\details.txt" \
564564
"$(SRCDIR)\..\skins\plain_gray\footer.txt" \
565565
"$(SRCDIR)\..\skins\plain_gray\header.txt" \
566
+ "$(SRCDIR)\..\skins\refined-dark\css.txt" \
567
+ "$(SRCDIR)\..\skins\refined-dark\details.txt" \
568
+ "$(SRCDIR)\..\skins\refined-dark\footer.txt" \
569
+ "$(SRCDIR)\..\skins\refined-dark\header.txt" \
570
+ "$(SRCDIR)\..\skins\refined-dark\js.txt" \
571
+ "$(SRCDIR)\..\skins\refined-light\css.txt" \
572
+ "$(SRCDIR)\..\skins\refined-light\details.txt" \
573
+ "$(SRCDIR)\..\skins\refined-light\footer.txt" \
574
+ "$(SRCDIR)\..\skins\refined-light\header.txt" \
575
+ "$(SRCDIR)\..\skins\refined-light\js.txt" \
566576
"$(SRCDIR)\..\skins\xekri\css.txt" \
567577
"$(SRCDIR)\..\skins\xekri\details.txt" \
568578
"$(SRCDIR)\..\skins\xekri\footer.txt" \
569579
"$(SRCDIR)\..\skins\xekri\header.txt" \
570580
"$(SRCDIR)\alerts\bflat2.wav" \
@@ -1200,10 +1210,20 @@
12001210
echo "$(SRCDIR)\../skins/original/header.txt" >> $@
12011211
echo "$(SRCDIR)\../skins/plain_gray/css.txt" >> $@
12021212
echo "$(SRCDIR)\../skins/plain_gray/details.txt" >> $@
12031213
echo "$(SRCDIR)\../skins/plain_gray/footer.txt" >> $@
12041214
echo "$(SRCDIR)\../skins/plain_gray/header.txt" >> $@
1215
+ echo "$(SRCDIR)\../skins/refined-dark/css.txt" >> $@
1216
+ echo "$(SRCDIR)\../skins/refined-dark/details.txt" >> $@
1217
+ echo "$(SRCDIR)\../skins/refined-dark/footer.txt" >> $@
1218
+ echo "$(SRCDIR)\../skins/refined-dark/header.txt" >> $@
1219
+ echo "$(SRCDIR)\../skins/refined-dark/js.txt" >> $@
1220
+ echo "$(SRCDIR)\../skins/refined-light/css.txt" >> $@
1221
+ echo "$(SRCDIR)\../skins/refined-light/details.txt" >> $@
1222
+ echo "$(SRCDIR)\../skins/refined-light/footer.txt" >> $@
1223
+ echo "$(SRCDIR)\../skins/refined-light/header.txt" >> $@
1224
+ echo "$(SRCDIR)\../skins/refined-light/js.txt" >> $@
12051225
echo "$(SRCDIR)\../skins/xekri/css.txt" >> $@
12061226
echo "$(SRCDIR)\../skins/xekri/details.txt" >> $@
12071227
echo "$(SRCDIR)\../skins/xekri/footer.txt" >> $@
12081228
echo "$(SRCDIR)\../skins/xekri/header.txt" >> $@
12091229
echo "$(SRCDIR)\alerts/bflat2.wav" >> $@
12101230
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -561,10 +561,20 @@
561 "$(SRCDIR)\..\skins\original\header.txt" \
562 "$(SRCDIR)\..\skins\plain_gray\css.txt" \
563 "$(SRCDIR)\..\skins\plain_gray\details.txt" \
564 "$(SRCDIR)\..\skins\plain_gray\footer.txt" \
565 "$(SRCDIR)\..\skins\plain_gray\header.txt" \
 
 
 
 
 
 
 
 
 
 
566 "$(SRCDIR)\..\skins\xekri\css.txt" \
567 "$(SRCDIR)\..\skins\xekri\details.txt" \
568 "$(SRCDIR)\..\skins\xekri\footer.txt" \
569 "$(SRCDIR)\..\skins\xekri\header.txt" \
570 "$(SRCDIR)\alerts\bflat2.wav" \
@@ -1200,10 +1210,20 @@
1200 echo "$(SRCDIR)\../skins/original/header.txt" >> $@
1201 echo "$(SRCDIR)\../skins/plain_gray/css.txt" >> $@
1202 echo "$(SRCDIR)\../skins/plain_gray/details.txt" >> $@
1203 echo "$(SRCDIR)\../skins/plain_gray/footer.txt" >> $@
1204 echo "$(SRCDIR)\../skins/plain_gray/header.txt" >> $@
 
 
 
 
 
 
 
 
 
 
1205 echo "$(SRCDIR)\../skins/xekri/css.txt" >> $@
1206 echo "$(SRCDIR)\../skins/xekri/details.txt" >> $@
1207 echo "$(SRCDIR)\../skins/xekri/footer.txt" >> $@
1208 echo "$(SRCDIR)\../skins/xekri/header.txt" >> $@
1209 echo "$(SRCDIR)\alerts/bflat2.wav" >> $@
1210
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -561,10 +561,20 @@
561 "$(SRCDIR)\..\skins\original\header.txt" \
562 "$(SRCDIR)\..\skins\plain_gray\css.txt" \
563 "$(SRCDIR)\..\skins\plain_gray\details.txt" \
564 "$(SRCDIR)\..\skins\plain_gray\footer.txt" \
565 "$(SRCDIR)\..\skins\plain_gray\header.txt" \
566 "$(SRCDIR)\..\skins\refined-dark\css.txt" \
567 "$(SRCDIR)\..\skins\refined-dark\details.txt" \
568 "$(SRCDIR)\..\skins\refined-dark\footer.txt" \
569 "$(SRCDIR)\..\skins\refined-dark\header.txt" \
570 "$(SRCDIR)\..\skins\refined-dark\js.txt" \
571 "$(SRCDIR)\..\skins\refined-light\css.txt" \
572 "$(SRCDIR)\..\skins\refined-light\details.txt" \
573 "$(SRCDIR)\..\skins\refined-light\footer.txt" \
574 "$(SRCDIR)\..\skins\refined-light\header.txt" \
575 "$(SRCDIR)\..\skins\refined-light\js.txt" \
576 "$(SRCDIR)\..\skins\xekri\css.txt" \
577 "$(SRCDIR)\..\skins\xekri\details.txt" \
578 "$(SRCDIR)\..\skins\xekri\footer.txt" \
579 "$(SRCDIR)\..\skins\xekri\header.txt" \
580 "$(SRCDIR)\alerts\bflat2.wav" \
@@ -1200,10 +1210,20 @@
1210 echo "$(SRCDIR)\../skins/original/header.txt" >> $@
1211 echo "$(SRCDIR)\../skins/plain_gray/css.txt" >> $@
1212 echo "$(SRCDIR)\../skins/plain_gray/details.txt" >> $@
1213 echo "$(SRCDIR)\../skins/plain_gray/footer.txt" >> $@
1214 echo "$(SRCDIR)\../skins/plain_gray/header.txt" >> $@
1215 echo "$(SRCDIR)\../skins/refined-dark/css.txt" >> $@
1216 echo "$(SRCDIR)\../skins/refined-dark/details.txt" >> $@
1217 echo "$(SRCDIR)\../skins/refined-dark/footer.txt" >> $@
1218 echo "$(SRCDIR)\../skins/refined-dark/header.txt" >> $@
1219 echo "$(SRCDIR)\../skins/refined-dark/js.txt" >> $@
1220 echo "$(SRCDIR)\../skins/refined-light/css.txt" >> $@
1221 echo "$(SRCDIR)\../skins/refined-light/details.txt" >> $@
1222 echo "$(SRCDIR)\../skins/refined-light/footer.txt" >> $@
1223 echo "$(SRCDIR)\../skins/refined-light/header.txt" >> $@
1224 echo "$(SRCDIR)\../skins/refined-light/js.txt" >> $@
1225 echo "$(SRCDIR)\../skins/xekri/css.txt" >> $@
1226 echo "$(SRCDIR)\../skins/xekri/details.txt" >> $@
1227 echo "$(SRCDIR)\../skins/xekri/footer.txt" >> $@
1228 echo "$(SRCDIR)\../skins/xekri/header.txt" >> $@
1229 echo "$(SRCDIR)\alerts/bflat2.wav" >> $@
1230

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button