Fossil SCM

fossil-scm / skins / refined-dark / css.txt
Blame History Raw 1014 lines
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
}
993
994
/* Long branch names and "merged into" notes wrap instead of widening the page */
995
body.branch .brlist > table td:first-child, body.branch .brlist > table td:last-child {
996
white-space: normal; overflow-wrap: anywhere;
997
}
998
/* Submenu drop-downs never grow wider than the screen */
999
span.submenuctrl { max-width: 100%; min-width: 0; }
1000
.submenu select, .sectionmenu select { max-width: 100%; min-width: 0; }
1001
/* Long file names, search snippets, login notes and help options wrap */
1002
ul.browser a, .content .snippet, body.rpage-search .content li,
1003
body.login .content p, dl.helpOptions dt, dl.helpOptions dd { overflow-wrap: anywhere; }
1004
/* Fossil sizes the file browser's columns from the longest name and keeps
1005
names on one line. On phones use one column and let a long name wrap. */
1006
@media screen and (max-width: 600px) {
1007
.content div.columns { columns: auto 1 !important; }
1008
.content ul.browser { white-space: normal; }
1009
}
1010
1011
/* A message's header line (sender, number, time) may wrap. Fossil keeps it
1012
on one line, so a long login made the message list scroll sideways. */
1013
body.chat div.message-widget .message-widget-tab { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
1014

Keyboard Shortcuts

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