BlueGit

timfa bluegit

Files

bluegit / internal / server / static / style.css

style.css

style.css 32.1 KiB Download Raw
1:root {
2 --ink: #142033;
3 --blue: #1f6feb;
4 --blue-deep: #0c3f86;
5 --blue-soft: #e7f0ff;
6 --paper: #f3f6fb;
7 --card: #ffffff;
8 --line: #d5e0ee;
9 --muted: #5c6b80;
10 --bad: #9f2d2d;
11 --ok: #146c43;
12 --shadow: 0 4px 16px rgba(20, 32, 51, 0.12);
13 --font: "Segoe UI", "Avenir Next", "Noto Sans", Ubuntu, Cantarell, sans-serif;
14 --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
15 --fs: 14px;
16 --fs-sm: 12px;
17 --fs-h: 20px;
18 --sp-1: 4px;
19 --sp-2: 8px;
20 --sp-3: 12px;
21 --sp-4: 16px;
22 --sp-5: 24px;
23 --sp-6: 32px;
24 --radius: 4px;
25 --radius-lg: 8px;
26 --control-h: 32px;
27 --sidebar: 240px;
28 --content: 1180px;
29 --top-h: 48px;
30 font-family: var(--font);
31}
32* { box-sizing: border-box; }
33html { scrollbar-gutter: stable; }
34body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--fs); line-height: 1.5; }
35a { color: var(--blue-deep); }
36h1 { font-size: var(--fs-h); font-weight: 600; line-height: 1.3; margin: 0 0 var(--sp-3); }
37h2 { font-size: 16px; font-weight: 600; }
38.top {
39 display: flex; justify-content: space-between; align-items: center;
40 height: var(--top-h); padding: 0 var(--sp-4); background: var(--ink); color: white;
41 position: sticky; top: 0; z-index: 40; max-width: 100%;
42}
43.top a { color: white; text-decoration: none; }
44.brand { display: flex; gap: var(--sp-2); align-items: center; font-weight: 600; letter-spacing: 0.01em; font-size: 16px; }
45.brand img { width: 28px; height: 28px; }
46.top nav { display: flex; gap: var(--sp-4); align-items: center; }
47.top button, .btn, button {
48 background: var(--blue); color: white; border: 0; border-radius: var(--radius);
49 min-height: var(--control-h); padding: 0 var(--sp-3); cursor: pointer; font: inherit;
50 display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1);
51}
52.btn.ghost, button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
53.top button { background: transparent; border: 1px solid rgba(255,255,255,.35); color: white; }
54.frame { display: flex; align-items: flex-start; min-height: calc(100vh - var(--top-h)); }
55.frame.with-side .content { flex: 1; min-width: 0; }
56.content { flex: 1; min-width: 0; display: flex; justify-content: center; align-items: flex-start; }
57main, main.wide {
58 width: min(100%, var(--content));
59 max-width: var(--content);
60 min-width: 0;
61 margin: 0;
62 padding: var(--sp-4) var(--sp-5) var(--sp-6);
63}
64.sidenav {
65 width: var(--sidebar); flex: none; position: sticky; top: var(--top-h);
66 height: calc(100vh - var(--top-h)); overflow: auto;
67 background: var(--card); border-right: 1px solid var(--line);
68}
69.sidecontext {
70 display: flex; align-items: center; gap: var(--sp-2);
71 min-height: 56px; padding: var(--sp-3);
72 border-bottom: 1px solid var(--line);
73 color: inherit; text-decoration: none;
74}
75.sidename { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
76.sidenav-links { display: flex; flex-direction: column; padding: var(--sp-2) 0; }
77.sidenav-links a {
78 display: flex; align-items: center; min-height: var(--control-h);
79 margin: 1px var(--sp-2); padding: 0 var(--sp-3);
80 border-radius: var(--radius); text-decoration: none; color: var(--ink);
81 font-weight: 400; box-shadow: inset 3px 0 0 transparent;
82}
83.sidenav-links a.on {
84 background: var(--blue-soft); color: var(--blue-deep); font-weight: 400;
85 box-shadow: inset 3px 0 0 var(--blue);
86}
87.pagehead {
88 display: flex; align-items: center; justify-content: space-between;
89 gap: var(--sp-3); min-height: 40px; margin: 0 0 var(--sp-4);
90}
91.pagehead h1 {
92 margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
93}
94.pageacts { display: flex; align-items: center; gap: var(--sp-2); flex: none; }
95.pageacts .menu-panel { text-align: left; }
96.hero { display: grid; grid-template-columns: 120px 1fr; gap: 1.2rem; align-items: center; }
97.hero img { width: 120px; }
98.card, .panel {
99 background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
100 padding: var(--sp-4); margin: var(--sp-3) 0;
101}
102.flash { padding: var(--sp-2) var(--sp-3); border-radius: var(--radius); background: #e5f6ec; color: var(--ok); }
103.flash.bad { background: #fde8e8; color: var(--bad); }
104.tabs, .sub {
105 display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: flex-end;
106 margin: 0 0 var(--sp-4); min-height: 40px; border-bottom: 1px solid var(--line);
107}
108.sub a {
109 text-decoration: none; color: var(--muted); font-weight: 400;
110 padding: var(--sp-2) 0; margin-bottom: -1px; border-bottom: 2px solid transparent;
111}
112.muted { color: var(--muted); }
113.preview {
114 margin: 0 0 var(--sp-2); color: var(--muted); word-break: break-all;
115 min-height: 1.2rem; display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap;
116}
117.preview:empty { display: none; }
118label { display: block; margin: 0.55rem 0; }
119input[type="checkbox"], input[type="radio"], input[type="hidden"] { width: auto; min-height: 0; }
120input, textarea, select {
121 width: 100%; min-height: var(--control-h); padding: 4px var(--sp-2);
122 border: 1px solid var(--line); border-radius: var(--radius);
123 font: inherit; font-size: var(--fs); background: white;
124}
125textarea { min-height: 7rem; }
126.row { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
127.row > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
128.row > select, .row > button, .row > .btn { width: auto; flex: 1 1 8rem; min-width: 0; }
129code, pre { font-family: var(--mono); }
130pre, .code {
131 background: #0f1b2d; color: #e7eef8; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-lg); overflow: auto;
132}
133form.wh .wh-field { display: none; }
134form.wh[data-preset="custom"] .for-custom,
135form.wh[data-preset="generic"] .for-generic,
136form.wh[data-preset="discord"] .for-discord,
137form.wh[data-preset="slack"] .for-slack,
138form.wh[data-preset="teams"] .for-teams,
139form.wh[data-preset="mattermost"] .for-mattermost,
140form.wh[data-preset="rocketchat"] .for-rocketchat,
141form.wh[data-preset="telegram"] .for-telegram,
142form.wh[data-preset="matrix"] .for-matrix,
143form.wh[data-preset="googlechat"] .for-googlechat,
144form.wh[data-preset="ntfy"] .for-ntfy,
145form.wh[data-preset="gotify"] .for-gotify,
146form.wh[data-preset="grok"] .for-grok { display: block; }
147form.wh .wh-field .muted { display: block; margin-top: 0.25rem; }
148ul.clean { list-style: none; padding: 0; }
149ul.clean li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
150.pill { font-size: 0.78rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.45rem; }
151table { width: 100%; border-collapse: collapse; }
152.hscroll { overflow-x: auto; max-width: 100%; }
153.heat, .heat-scroll { max-width: 100%; }
154td, th { text-align: left; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); vertical-align: top; font-size: var(--fs); }
155.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
156@media (max-width: 720px) {
157 .hero, .grid-2 { grid-template-columns: 1fr; }
158 main, main.wide { padding: var(--sp-3); }
159 .brand { font-size: 0; gap: 0; }
160 .brand img { width: 28px; height: 28px; }
161 .top { padding: 0 var(--sp-2); gap: var(--sp-2); }
162 .top nav { gap: var(--sp-2); min-width: 0; overflow-x: auto; }
163}
164.sub a.on { border-bottom-color: var(--blue); color: var(--blue-deep); background: var(--blue-soft); font-weight: 400; }
165.crumbs { color: var(--muted); margin: 0 0 var(--sp-2); min-height: 20px; font-size: var(--fs-sm); }
166.crumbs a { color: var(--muted); text-decoration: none; }
167.projhead { display: flex; align-items: center; gap: 0.7rem; }
168.projhead h1 { margin: 0; font-size: var(--fs-h); }
169.tile {
170 width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center;
171 background: #e56a93; color: white; font-weight: 700; font-size: 1.2rem;
172}
173.vis { width: 18px; height: 18px; color: var(--muted); }
174.ficon { width: 16px; height: 16px; vertical-align: -2px; margin-right: 0.25rem; }
175.proj { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.2rem; align-items: start; }
176.toolbar { display: flex; justify-content: space-between; gap: 0.8rem; align-items: center; margin: 0.9rem 0; flex-wrap: wrap; }
177.toolbar .left, .toolbar .right { display: flex; gap: 0.45rem; align-items: center; flex-wrap: wrap; }
178.branch select { width: auto; border-radius: 8px; padding: 0.35rem 0.5rem; background: #f6f8fa; }
179.pathnow { color: var(--ink); }
180.pathnow a { color: inherit; text-decoration: none; }
181.menu { position: relative; }
182.menu summary { list-style: none; cursor: pointer; }
183.menu summary::-webkit-details-marker { display: none; }
184.menu-panel {
185 position: absolute; right: 0; top: 2.3rem; z-index: 4; width: min(420px, 80vw);
186 background: white; border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem;
187 box-shadow: var(--shadow);
188}
189.copyline { display: flex; gap: 0.4rem; }
190.copyline input { font-family: ui-monospace, monospace; font-size: 0.85rem; }
191.commitbar {
192 display: flex; gap: 0.7rem; align-items: center; background: #f6f8fa;
193 border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.75rem; margin: 0.4rem 0 0.8rem;
194}
195.commitbar .grow { flex: 1; min-width: 0; }
196.commitbar .subject { display: block; font-weight: 650; color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
197.avatar {
198 width: 32px; height: 32px; border-radius: 50%; background: #d5e0ee; color: var(--ink);
199 display: grid; place-items: center; font-size: 0.85rem; font-weight: 700; flex: none;
200}
201img.avatar { object-fit: cover; display: block; }
202.avatar.lg { width: 64px; height: 64px; font-size: 1.35rem; }
203.commitwho a { color: var(--ink); font-weight: 650; text-decoration: none; }
204.commitwho a:hover { text-decoration: underline; }
205ul.clean li.commitline { display: flex; gap: 0.65rem; align-items: center; }
206.sha { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 0.15rem 0.4rem; }
207table.files { background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
208table.files th { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
209table.files td.msg { max-width: 280px; }
210table.files td.msg a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
211table.tags { width: 100%; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); border-collapse: collapse; }
212table.tags th, table.tags td { text-align: left; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); vertical-align: top; }
213table.tags th { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
214table.tags td.acts { white-space: nowrap; }
215table.tags td.acts a { margin-right: 0.55rem; }
216.tagmsg { white-space: pre-wrap; }
217.readme, .codebox, .side {
218 background: white; border: 1px solid var(--line); border-radius: 12px; margin-top: 1rem;
219}
220.readme header, .codebox header { padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); font-weight: 600; }
221.mdbody { padding: 0.2rem 1.1rem 1rem; }
222.mdbody h1, .mdbody h2, .mdbody h3 { margin: 1rem 0 0.4rem; }
223table.md { margin: 0.6rem 0 1rem; }
224table.md th, table.md td { border: 1px solid var(--line); padding: 0.4rem 0.6rem; }
225.side { margin-top: 0.2rem; padding: 0.9rem 1rem; }
226.side h2 { margin: 0 0 0.5rem; font-size: 1rem; }
227.counts { list-style: none; padding: 0; margin: 0.6rem 0; }
228.counts li { padding: 0.28rem 0; }
229.counts a { text-decoration: none; }
230.fileview { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1rem; align-items: start; }
231.treebox h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
232.treelist { list-style: none; padding: 0; margin: 0.5rem 0 0; }
233.treelist li { padding: 0.18rem 0.3rem; border-radius: 6px; white-space: nowrap; }
234.treelist li a { color: inherit; text-decoration: none; }
235.treelist li.active { background: #ddf4ff; }
236.treelist li.depth-1 { padding-left: 0.9rem; }
237.treelist li.depth-2 { padding-left: 1.6rem; }
238.treelist li.depth-3 { padding-left: 2.3rem; }
239.treelist li.depth-4 { padding-left: 3rem; }
240.treelist li.depth-5 { padding-left: 3.7rem; }
241.treelist li.depth-6, .treelist li.depth-7, .treelist li.depth-8 { padding-left: 4.4rem; }
242.filename { display: flex; align-items: center; gap: 0.35rem; margin: 0.2rem 0 0.6rem; }
243.codebox { margin-top: 0.8rem; overflow: auto; }
244table.code { border-collapse: collapse; width: 100%; }
245table.code td { border: 0; padding: 0 0.7rem; vertical-align: top; font-family: ui-monospace, monospace; font-size: 0.86rem; line-height: 1.45; }
246table.code td.ln { color: #8c959f; text-align: right; width: 1%; user-select: none; background: #f6f8fa; }
247table.code td.src { white-space: pre; }
248.hl-k { color: #8250df; }
249.hl-s { color: #cf222e; }
250.hl-c { color: #6e7781; }
251.hl-n { color: #0550ae; }
252.heat {
253 background: white; border: 1px solid var(--line); border-radius: 16px;
254 padding: 1rem 1.1rem 0.8rem; box-shadow: var(--shadow); margin: 0.4rem 0 1.1rem;
255}
256.heat h2 { margin: 0 0 0.55rem; font-size: 1.05rem; }
257.heat-scroll { overflow-x: auto; padding: 1.7rem 0.2rem 0.15rem; }
258.heat-months, .heat-cols {
259 display: grid; grid-auto-flow: column; grid-auto-columns: 11px; column-gap: 3px;
260}
261.heat-months { margin: 0 0 0.25rem 20px; height: 1rem; font-size: 0.68rem; color: var(--muted); }
262.heat-months span { white-space: nowrap; line-height: 1rem; }
263.heat-body { display: flex; gap: 4px; }
264.heat-dow {
265 display: grid; grid-template-rows: repeat(7, 11px); row-gap: 3px;
266 width: 16px; font-size: 0.65rem; color: var(--muted); line-height: 11px;
267}
268.heat-col { display: grid; grid-auto-rows: 11px; row-gap: 3px; }
269.sq { width: 11px; height: 11px; border-radius: 2px; display: block; position: relative; }
270.sq[title]:hover::after, .sq[title]:focus::after {
271 content: attr(title);
272 position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%);
273 background: #142033; color: white; padding: 0.28rem 0.5rem; border-radius: 6px;
274 font-size: 0.78rem; line-height: 1.2; white-space: nowrap; z-index: 5; pointer-events: none;
275}
276.sq.off { background: transparent; }
277.sq.lv0 { background: #e6edf5; }
278.sq.lv1 { background: #b9d4f6; }
279.sq.lv2 { background: #6eacf0; }
280.sq.lv3 { background: #1f6feb; }
281.sq.lv4 { background: #0c3f86; }
282.heat-foot {
283 display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
284 margin-top: 0.7rem; color: var(--muted); font-size: 0.85rem;
285}
286.heat-total, .heat-legend, .heat-foot .muted { margin: 0; }
287.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
288.heat-foot .muted { text-align: right; margin-top: 0.2rem; }
289.chooser { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.2rem 0 0.4rem; transition: opacity .28s ease, transform .28s ease; }
290.chooser.away { opacity: 0; transform: translateY(-10px) scale(.97); pointer-events: none; }
291.pick { min-width: 11rem; padding: 1rem 1.3rem; font-size: 1.05rem; }
292.sheet { transform-origin: top center; }
293.sheet.open { animation: unfold .32s ease; }
294.sheet.closing { animation: fold .28s ease forwards; }
295@keyframes unfold {
296 from { opacity: 0; transform: scaleY(.55); }
297 to { opacity: 1; transform: scaleY(1); }
298}
299@keyframes fold {
300 from { opacity: 1; transform: scaleY(1); }
301 to { opacity: 0; transform: scaleY(.45); }
302}
303.flag.ok { color: var(--ok); font-weight: 600; }
304.flag.bad { color: var(--bad); font-weight: 600; }
305.form-err:empty { display: none; }
306.form-err { color: var(--bad); margin: 0.2rem 0; }
307.bar { display: flex; gap: .6rem; align-items: center; margin: .4rem 0 .2rem; }
308.bar input[type="search"] { flex: 1; }
309.sortlabel { color: var(--muted); }
310.iconbtn, .copyline button {
311 text-decoration: none; background: white; color: var(--ink);
312 border: 1px solid var(--line); border-radius: var(--radius);
313 min-height: var(--control-h); padding: 0 var(--sp-2); cursor: pointer; font: inherit;
314}
315.repolist { list-style: none; padding: 0; margin: .4rem 0 1rem; }
316.repolist > li { display: flex; align-items: center; gap: .7rem; padding: .75rem .2rem; border-bottom: 1px solid var(--line); }
317.reponame { font-weight: 600; text-decoration: none; }
318.stars { color: #9a6700; white-space: nowrap; }
319.grown { flex: 1; }
320.rowmenu { position: relative; }
321.rowmenu > summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: .15rem .55rem; background: white; }
322.rowmenu > summary::-webkit-details-marker { display: none; }
323.rowmenu .menu-panel { position: absolute; right: 0; z-index: 3; min-width: 9rem; }
324.rowmenu .menu-panel button, .rowmenu .menu-panel form { width: 100%; }
325.rowmenu .menu-panel button { text-align: left; border-radius: 8px; }
326img.tile { object-fit: cover; background: #fff; }
327@font-face {
328 font-family: "Noto Sans Cuneiform";
329 src: url("/assets/NotoSansCuneiform-Regular.ttf") format("truetype");
330 font-display: swap;
331}
332html.cunei, html.cunei body, html.cunei button, html.cunei input, html.cunei select, html.cunei textarea {
333 font-family: "Noto Sans Cuneiform", "Segoe UI", sans-serif;
334}
335.applybar {
336 position: sticky; top: 0; z-index: 6; display: flex; justify-content: flex-end;
337 padding: 0.45rem 0; background: rgba(243, 246, 251, 0.94);
338}
339.applybar[hidden] { display: none; }
340.sugmodal {
341 border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem;
342 width: min(32rem, 92vw); box-shadow: var(--shadow);
343}
344.sugmodal::backdrop { background: rgba(20, 32, 51, 0.45); }
345.sugmodal h2 { margin: 0 0 0.4rem; }
346.diff {
347 background: white; border: 1px solid var(--line); border-radius: 12px;
348 overflow: auto; user-select: none; margin: 0.4rem 0 1rem;
349}
350.difffile + .difffile { border-top: 1px solid var(--line); }
351.difffile header {
352 padding: 0.5rem 0.75rem; background: #f6f8fa; border-bottom: 1px solid var(--line); font-weight: 650;
353}
354.diffline {
355 position: relative; display: grid; grid-template-columns: 16px 3.2rem minmax(0, 1fr);
356 font-family: ui-monospace, monospace; font-size: 0.84rem; line-height: 1.5;
357}
358.diffline code { white-space: pre; padding: 0 0.7rem 0 0.35rem; }
359.diffline .ln { color: #8c959f; text-align: right; padding-right: 0.45rem; }
360.gutter { background: #eef2f7; cursor: ns-resize; }
361.gutter.off { background: transparent; cursor: default; }
362.kind-add { background: #e6ffec; }
363.kind-del { background: #ffebe9; }
364.kind-hunk { color: #8c959f; background: #f6f8fa; }
365.diffline.picked { box-shadow: inset 3px 0 0 var(--blue); }
366.diffline.picked .gutter { background: #bfdbfe; }
367.linenote, .lineform {
368 margin: 0.35rem 0.6rem 0.55rem 2.6rem; background: #f6f8fa;
369 border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.7rem;
370}
371.linenote pre.note, ul.clean pre.note {
372 background: white; color: var(--ink); border: 1px solid var(--line); margin: 0.35rem 0;
373}
374label.sugcheck { display: flex; align-items: center; gap: 0.45rem; }
375label.sugcheck input { width: auto; }
376.bubble {
377 position: absolute; left: 18px; top: 0.15rem; z-index: 3;
378 width: 28px; height: 28px; padding: 0; border-radius: 8px;
379 background: white; border: 1px solid var(--line); box-shadow: var(--shadow);
380}
381.bubble-icon {
382 width: 14px; height: 10px; border: 2px solid var(--blue); border-radius: 7px;
383 display: inline-block; position: relative; background: white;
384}
385.bubble-icon::after {
386 content: ""; position: absolute; left: 2px; bottom: -6px;
387 border-width: 6px 5px 0 0; border-style: solid;
388 border-color: var(--blue) transparent transparent transparent;
389}
390.pipebar { display: flex; justify-content: space-between; gap: 0.8rem; align-items: center; margin: 0.4rem 0 1rem; }
391.pipe-filter {
392 display: flex; align-items: stretch; flex: 1; max-width: 42rem;
393 border: 1px solid var(--line); border-radius: 8px; background: white; overflow: hidden;
394}
395.pipe-filter input { border: 0; border-radius: 0; width: 100%; }
396.pipe-filter button.iconbtn {
397 width: 2.6rem; border: 0; border-left: 1px solid var(--line); border-radius: 0;
398 background: white; color: var(--ink); padding: 0;
399}
400.showid { position: relative; }
401.showid summary {
402 list-style: none; cursor: pointer; background: white; color: var(--ink);
403 border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.75rem;
404}
405.showid summary::-webkit-details-marker { display: none; }
406.showid summary::after { content: "▾"; margin-left: 0.45rem; color: var(--muted); }
407.showid form {
408 position: absolute; right: 0; top: calc(100% + 6px); z-index: 6;
409 display: flex; gap: 0.4rem; width: 18rem; padding: 0.6rem;
410 background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
411}
412.showid form input { width: auto; flex: 1; }
413table.pipes td { padding: var(--sp-2) var(--sp-3); }
414table.pipes .pipeid { font-weight: 700; }
415.ellip { display: block; max-width: 28rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
416.chips { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; margin-top: 0.28rem; }
417.chip {
418 display: inline-flex; align-items: center; gap: 0.15rem;
419 background: #eef2f7; color: var(--ink); text-decoration: none;
420 border-radius: 999px; padding: 0.05rem 0.5rem; font-size: 0.78rem;
421}
422.when { display: flex; align-items: center; gap: 0.3rem; color: var(--muted); font-size: 0.82rem; margin-top: 0.18rem; }
423svg.ico { width: 14px; height: 14px; flex: none; }
424.avatar.sm { width: 20px; height: 20px; font-size: 0.68rem; }
425.status {
426 display: inline-flex; align-items: center; gap: 0.32rem;
427 border-radius: 999px; padding: 0.12rem 0.55rem 0.12rem 0.28rem;
428 font-weight: 650; font-size: 0.84rem; background: #eef2f7; color: var(--ink);
429}
430.status.passed { background: #e5f6ec; color: #146c43; }
431.status.failed { background: #fde8e8; color: #9f2d2d; }
432.status.warning { background: #fff4e0; color: #8a5a00; }
433.status.running { background: #e7f0ff; color: #1f6feb; }
434.status.canceled { background: #f3f0f0; color: #57606a; }
435.mark { position: relative; width: 16px; height: 16px; border-radius: 50%; display: inline-block; flex: none; background: #8c959f; }
436.status.passed .mark, .stage-dot.passed .mark { background: #1aaa55; }
437.status.failed .mark, .stage-dot.failed .mark { background: #dd2b0e; }
438.status.warning .mark, .stage-dot.warning .mark { background: #c17d10; }
439.status.running .mark, .stage-dot.running .mark { background: #1f75cb; }
440.status.canceled .mark, .stage-dot.canceled .mark { background: #8c959f; }
441.passed .mark::after {
442 content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px;
443 border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
444}
445.failed .mark::before, .failed .mark::after {
446 content: ""; position: absolute; left: 3px; top: 7px; width: 10px; height: 2px; background: #fff;
447}
448.failed .mark::before { transform: rotate(45deg); }
449.failed .mark::after { transform: rotate(-45deg); }
450.warning .mark::before {
451 content: ""; position: absolute; left: 7px; top: 3px; width: 2px; height: 6px; background: #fff;
452}
453.warning .mark::after {
454 content: ""; position: absolute; left: 7px; top: 11px; width: 2px; height: 2px; background: #fff;
455}
456.skipped .mark::after, .canceled .mark::after {
457 content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 2px; background: #fff;
458}
459.running .mark::after {
460 content: ""; position: absolute; left: 4px; top: 4px; width: 8px; height: 8px;
461 border: 2px solid #fff; border-radius: 50%; border-right-color: transparent; box-sizing: border-box;
462}
463.stages { display: flex; align-items: center; }
464.mrpipe { display: flex; align-items: center; gap: 0.8rem; margin: 0.2rem 0 1rem; }
465.danger-modal {
466 border: 6px solid #a31212;
467 background: #fde8e8;
468 color: #6d1212;
469 width: min(92vw, 52rem);
470 padding: 2.2rem 2rem;
471 border-radius: 16px;
472}
473.danger-modal::backdrop { background: rgba(80, 8, 8, 0.55); }
474.danger-modal p { font-size: 1.7rem; line-height: 1.45; margin: 0 0 1.2rem; }
475.danger-modal [data-transfer-submit], .danger-modal [data-tag-submit] { background: #a31212; color: #fff; }
476.danger-modal [data-transfer-submit]:disabled { opacity: 0.45; }
477.stage { position: relative; display: flex; align-items: center; }
478.stage + .stage::before { content: ""; width: 14px; height: 2px; background: #c5d0dc; margin: 0 2px; }
479button.stage-dot {
480 width: 26px; height: 26px; min-height: 0; padding: 0; border: 0; border-radius: 50%;
481 background: transparent; display: grid; place-items: center; position: relative;
482}
483button.stage-dot:hover::after, button.stage-dot:focus-visible::after {
484 content: attr(data-tip);
485 position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
486 background: #24292f; color: white; font-size: 0.75rem; font-weight: 600;
487 padding: 0.28rem 0.5rem; border-radius: 6px; white-space: nowrap; z-index: 7;
488}
489.stage.open button.stage-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1f75cb; }
490.stage-pop {
491 position: absolute; top: calc(100% + 10px); left: 0; z-index: 8; min-width: 220px;
492 background: white; border: 1px solid var(--line); border-radius: 8px;
493 box-shadow: var(--shadow); padding: 0.7rem 0.85rem;
494}
495.stage-pop[hidden] { display: none; }
496.stage-pop ul { list-style: none; margin: 0.35rem 0 0; padding: 0; }
497.stage-pop a, .related a { display: flex; align-items: center; gap: 0.4rem; text-decoration: none; padding: 0.22rem 0; color: var(--ink); }
498.stage-dot.sm { width: 16px; height: 16px; display: inline-grid; place-items: center; }
499.stage-dot.sm .mark { width: 14px; height: 14px; }
500.stage-dot.sm.passed .mark::after { left: 4px; top: 2px; width: 3px; height: 6px; }
501.jobhead { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
502.joblayout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1rem; align-items: start; }
503.console-wrap { border: 1px solid #2a2a2a; border-radius: 8px; overflow: hidden; background: #1e1e1e; }
504.conbar {
505 display: flex; justify-content: space-between; gap: 0.6rem; align-items: center; flex-wrap: wrap;
506 background: #f6f8fa; padding: 0.45rem 0.55rem; border-bottom: 1px solid var(--line);
507}
508.conbar .pipe-filter { max-width: none; flex: 1; min-width: 12rem; }
509.contools { display: flex; gap: 0.3rem; align-items: center; flex-wrap: wrap; }
510.contools .ghost, .contools a.ghost { padding: 0.3rem 0.55rem; background: white; }
511.console {
512 color: #e6edf3; font-family: ui-monospace, monospace; font-size: 0.82rem;
513 max-height: 68vh; overflow: auto; padding: 0.35rem 0 0.8rem;
514}
515.console.wrap code { white-space: pre-wrap; word-break: break-word; }
516.console code { white-space: pre; }
517.ansi-bold { font-weight: 700; }
518.ansi-dim { opacity: 0.65; }
519.ansi-italic { font-style: italic; }
520.ansi-underline { text-decoration: underline; }
521.ansi-fg-black { color: #6e7681; }
522.ansi-fg-red { color: #ff7b72; }
523.ansi-fg-green { color: #3fb950; }
524.ansi-fg-yellow { color: #d29922; }
525.ansi-fg-blue { color: #79c0ff; }
526.ansi-fg-magenta { color: #d2a8ff; }
527.ansi-fg-cyan { color: #56d4dd; }
528.ansi-fg-white { color: #f0f6fc; }
529.ansi-fg-bright-black { color: #8b949e; }
530.ansi-fg-bright-red { color: #ffa198; }
531.ansi-fg-bright-green { color: #56d364; }
532.ansi-fg-bright-yellow { color: #e3b341; }
533.ansi-fg-bright-blue { color: #a5d6ff; }
534.ansi-fg-bright-magenta { color: #e2c5ff; }
535.ansi-fg-bright-cyan { color: #7ee7ef; }
536.ansi-fg-bright-white { color: #ffffff; }
537.ansi-bg-black { background: #1c2128; }
538.ansi-bg-red { background: #6e2b29; }
539.ansi-bg-green { background: #1f4d32; }
540.ansi-bg-yellow { background: #5c4a1f; }
541.ansi-bg-blue { background: #1f3b5c; }
542.ansi-bg-magenta { background: #4a2d5c; }
543.ansi-bg-cyan { background: #1c4a4e; }
544.ansi-bg-white { background: #d0d7de; color: #1c2128; }
545.ansi-bg-bright-black { background: #2d333b; }
546.ansi-bg-bright-red { background: #8a3834; }
547.ansi-bg-bright-green { background: #2a6b3c; }
548.ansi-bg-bright-yellow { background: #7a641f; }
549.ansi-bg-bright-blue { background: #2a5580; }
550.ansi-bg-bright-magenta { background: #684080; }
551.ansi-bg-bright-cyan { background: #2a666c; }
552.ansi-bg-bright-white { background: #f0f6fc; color: #1c2128; }
553.lognote { margin: 0.2rem 0.8rem 0.45rem; color: #8b949e; font-family: inherit; }
554.logline, .logsec ol li {
555 display: grid; grid-template-columns: 3rem 5.4rem minmax(0, 1fr);
556 gap: 0.45rem; padding: 0 0.7rem; line-height: 1.45;
557}
558.logsec ol { list-style: none; margin: 0; padding: 0; display: none; }
559.logsec.open ol { display: block; }
560.ln, .ts { color: #8b949e; }
561.ln { text-align: right; }
562.logline.hit, .logsec li.hit { background: #3d3416; }
563.logline.hit.on, .logsec li.hit.on { background: #6b5710; }
564button.section-toggle {
565 width: 100%; min-height: 0; background: transparent; color: #9ecbff; border: 0; border-radius: 0;
566 display: flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.7rem; text-align: left; font-weight: 650;
567}
568.section-toggle .pill { margin-left: auto; background: #2d333b; color: #d0d7de; border-color: #444c56; }
569.chev {
570 width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
571 border-left: 6px solid currentColor; display: inline-block;
572}
573.logsec.open .chev { transform: rotate(90deg); }
574.console-wrap:fullscreen { display: flex; flex-direction: column; background: #111; border-radius: 0; }
575.console-wrap:fullscreen .console { max-height: none; flex: 1; }
576.console-wrap.full { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; border-radius: 0; }
577.console-wrap.full .console { max-height: none; flex: 1; }
578.jobside {
579 background: white; border: 1px solid var(--line); border-radius: 12px; padding: 0.85rem 1rem;
580}
581.jobside dt { color: var(--muted); font-size: 0.78rem; margin-top: 0.7rem; }
582.jobside dd { margin: 0.12rem 0 0; }
583.jobside h2 { font-size: 0.95rem; margin: 0.9rem 0 0.3rem; }
584.related { list-style: none; margin: 0; padding: 0; }
585.related li { display: flex; align-items: center; gap: 0.3rem; }
586.related .arrow { width: 1rem; color: var(--muted); }
587.editorhead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.7rem; }
588.editorhead h2 { margin: 0; font-size: 1.15rem; }
589.editorhead .status { margin: 0; }
590.ciedit {
591 display: grid; grid-template-columns: 3.2rem minmax(0, 1fr);
592 border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: white;
593}
594.ci-gutter {
595 overflow: hidden; background: #f6f8fa; color: #8c959f; text-align: right;
596 font-family: ui-monospace, monospace; font-size: 0.86rem; line-height: 1.45;
597 padding: 0.55rem 0.45rem; user-select: none;
598}
599.ci-gutter span { display: block; }
600.ci-gutter span.bad { background: #fde8e8; color: var(--bad); font-weight: 700; }
601.ci-stage { position: relative; height: 24rem; }
602.ci-back, .ciedit textarea {
603 font-family: ui-monospace, monospace; font-size: 0.86rem; line-height: 1.45;
604 padding: 0.55rem 0.7rem; margin: 0; white-space: pre; tab-size: 2;
605}
606.ci-back { position: absolute; inset: 0; overflow: hidden; color: var(--ink); pointer-events: none; }
607.codeline { min-height: 1.45em; }
608.codeline.bad { background: #fff5f5; }
609.ciedit textarea {
610 position: relative; width: 100%; height: 100%; border: 0; border-radius: 0;
611 background: transparent; color: transparent; caret-color: var(--ink); resize: none; overflow: auto;
612}
613.ciedit textarea::selection { background: rgba(31, 111, 235, 0.25); }
614.ci-issues { list-style: none; padding: 0; margin: 0.7rem 0 0; }
615.ci-issues li.bad { color: var(--bad); }
616.ci-issues li.warn { color: #8a5a00; }
617.hero h1 { font-size: 32px; }
618.mdbody h1 { font-size: 24px; }
619.sidecontext .tile { width: 32px; height: 32px; font-size: 1rem; }
620.filename { font-size: 16px; font-weight: 600; }
621@media (max-width: 960px) {
622 .frame.with-side { flex-direction: column; align-items: stretch; }
623 .sidenav, .content { width: 100%; max-width: 100%; min-width: 0; }
624 .sidenav {
625 position: sticky; top: var(--top-h); height: auto;
626 border-right: 0; border-bottom: 1px solid var(--line); z-index: 20;
627 }
628 .sidenav-links {
629 flex-direction: row; overflow-x: auto; min-width: 0; padding: 0 var(--sp-2);
630 scrollbar-width: none;
631 }
632 .sidenav-links::-webkit-scrollbar { display: none; }
633 .sidenav-links a {
634 flex: none; white-space: nowrap; margin: 0; border-radius: 0;
635 box-shadow: inset 0 -2px 0 transparent; padding: var(--sp-2) var(--sp-3);
636 }
637 .sidenav-links a.on { background: transparent; font-weight: 400; box-shadow: inset 0 -2px 0 var(--blue); }
638}
639@media (max-width: 800px) {
640 .proj, .fileview, .joblayout { grid-template-columns: minmax(0, 1fr); }
641 .proj > *, .fileview > *, .toolbar, .commitbar, .hscroll { min-width: 0; max-width: 100%; }
642 .heat-foot { flex-direction: column; align-items: flex-start; }
643 .heat-legend, .heat-foot .muted { justify-content: flex-start; text-align: left; }
644 .repolist > li { flex-wrap: wrap; }
645 .pagehead { align-items: flex-start; }
646 .pageacts { flex-wrap: wrap; justify-content: flex-end; }
647}