BlueGit

timfa bluegit

Files

bluegit / internal / server / static / style.css

style.css

feat: suggesties op merge requests
timfa project_87923614_bot_3aff574f6f98414b945a8799374f9092 · pushed by timfa · 3 weeks ago
Failed 3902d232 History
style.css 15.5 KiB Download Raw
1:root {
2 --ink: #142033;
3 --blue: #1f6feb;
4 --blue-deep: #0c3f86;
5 --paper: #f3f6fb;
6 --card: #ffffff;
7 --line: #d5e0ee;
8 --muted: #5c6b80;
9 --bad: #9f2d2d;
10 --ok: #146c43;
11 --shadow: 0 10px 30px rgba(20, 32, 51, 0.06);
12 font-family: "Segoe UI", "Avenir Next", "Trebuchet MS", sans-serif;
13}
14* { box-sizing: border-box; }
15body { margin: 0; background: var(--paper); color: var(--ink); }
16a { color: var(--blue-deep); }
17.top {
18 display: flex; justify-content: space-between; align-items: center;
19 padding: 0.8rem 1.4rem; background: var(--ink); color: white;
20}
21.top a { color: white; text-decoration: none; }
22.brand { display: flex; gap: 0.6rem; align-items: center; font-weight: 700; letter-spacing: 0.02em; }
23.brand img { width: 32px; height: 32px; }
24.top nav { display: flex; gap: 1rem; align-items: center; }
25.top button, .btn, button {
26 background: var(--blue); color: white; border: 0; border-radius: 999px;
27 padding: 0.45rem 0.9rem; cursor: pointer; font: inherit;
28}
29.btn.ghost, button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
30.top button { background: transparent; border: 1px solid rgba(255,255,255,.35); }
31main { max-width: 980px; margin: 0 auto; padding: 1.4rem; }
32.hero { display: grid; grid-template-columns: 120px 1fr; gap: 1.2rem; align-items: center; }
33.hero img { width: 120px; }
34.card, .panel {
35 background: var(--card); border: 1px solid var(--line); border-radius: 16px;
36 padding: 1rem 1.1rem; box-shadow: var(--shadow); margin: 0.8rem 0;
37}
38.flash { padding: 0.7rem 0.9rem; border-radius: 12px; background: #e5f6ec; color: var(--ok); }
39.flash.bad { background: #fde8e8; color: var(--bad); }
40.tabs, .sub { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 0.4rem 0 1rem; }
41.sub a { text-decoration: none; padding-bottom: 0.2rem; }
42.muted { color: var(--muted); }
43.preview { margin: 0.15rem 0 0.7rem; color: var(--muted); word-break: break-all; }
44.preview:empty { display: none; }
45label { display: block; margin: 0.55rem 0; }
46input[type="checkbox"] { width: auto; }
47input, textarea, select {
48 width: 100%; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 10px;
49 font: inherit; background: white;
50}
51textarea { min-height: 7rem; }
52.row { display: flex; gap: 0.6rem; align-items: center; }
53.row input, .row select { width: auto; flex: 1; }
54code, pre { font-family: "IBM Plex Mono", "ui-monospace", monospace; }
55pre, .code {
56 background: #0f1b2d; color: #e7eef8; padding: 0.8rem 1rem; border-radius: 12px; overflow: auto;
57}
58form.wh .wh-field { display: none; }
59form.wh[data-preset="custom"] .for-custom,
60form.wh[data-preset="generic"] .for-generic,
61form.wh[data-preset="discord"] .for-discord,
62form.wh[data-preset="slack"] .for-slack,
63form.wh[data-preset="teams"] .for-teams,
64form.wh[data-preset="mattermost"] .for-mattermost,
65form.wh[data-preset="rocketchat"] .for-rocketchat,
66form.wh[data-preset="telegram"] .for-telegram,
67form.wh[data-preset="matrix"] .for-matrix,
68form.wh[data-preset="googlechat"] .for-googlechat,
69form.wh[data-preset="ntfy"] .for-ntfy,
70form.wh[data-preset="gotify"] .for-gotify,
71form.wh[data-preset="grok"] .for-grok { display: block; }
72form.wh .wh-field .muted { display: block; margin-top: 0.25rem; }
73ul.clean { list-style: none; padding: 0; }
74ul.clean li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
75.pill { font-size: 0.78rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.45rem; }
76table { width: 100%; border-collapse: collapse; }
77td, th { text-align: left; padding: 0.4rem 0.3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
78.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
79@media (max-width: 720px) {
80 .hero, .grid-2 { grid-template-columns: 1fr; }
81 main { padding: 0.8rem; }
82}
83main.wide { max-width: 1180px; }
84.sub a.on { border-bottom: 2px solid var(--blue); color: var(--ink); }
85.crumbs { color: var(--muted); margin: 0 0 0.4rem; }
86.crumbs a { color: var(--muted); text-decoration: none; }
87.projhead { display: flex; align-items: center; gap: 0.7rem; }
88.projhead h1 { margin: 0; font-size: 1.6rem; }
89.tile {
90 width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center;
91 background: #e56a93; color: white; font-weight: 700; font-size: 1.2rem;
92}
93.vis { width: 18px; height: 18px; color: var(--muted); }
94.ficon { width: 16px; height: 16px; vertical-align: -2px; margin-right: 0.25rem; }
95.proj { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.2rem; align-items: start; }
96.toolbar { display: flex; justify-content: space-between; gap: 0.8rem; align-items: center; margin: 0.9rem 0; flex-wrap: wrap; }
97.toolbar .left, .toolbar .right { display: flex; gap: 0.45rem; align-items: center; flex-wrap: wrap; }
98.branch select { width: auto; border-radius: 8px; padding: 0.35rem 0.5rem; background: #f6f8fa; }
99.pathnow { color: var(--ink); }
100.pathnow a { color: inherit; text-decoration: none; }
101.menu { position: relative; }
102.menu summary { list-style: none; cursor: pointer; }
103.menu summary::-webkit-details-marker { display: none; }
104.menu-panel {
105 position: absolute; right: 0; top: 2.3rem; z-index: 4; width: min(420px, 80vw);
106 background: white; border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem;
107 box-shadow: var(--shadow);
108}
109.copyline { display: flex; gap: 0.4rem; }
110.copyline input { font-family: ui-monospace, monospace; font-size: 0.85rem; }
111.commitbar {
112 display: flex; gap: 0.7rem; align-items: center; background: #f6f8fa;
113 border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.75rem; margin: 0.4rem 0 0.8rem;
114}
115.commitbar .grow { flex: 1; min-width: 0; }
116.commitbar .subject { display: block; font-weight: 650; color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
117.avatar {
118 width: 32px; height: 32px; border-radius: 50%; background: #d5e0ee; color: var(--ink);
119 display: grid; place-items: center; font-size: 0.85rem; font-weight: 700; flex: none;
120}
121img.avatar { object-fit: cover; display: block; }
122.avatar.lg { width: 64px; height: 64px; font-size: 1.35rem; }
123.commitwho a { color: var(--ink); font-weight: 650; text-decoration: none; }
124.commitwho a:hover { text-decoration: underline; }
125ul.clean li.commitline { display: flex; gap: 0.65rem; align-items: center; }
126.sha { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 0.15rem 0.4rem; }
127.iconbtn, .copyline button {
128 background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 8px;
129 padding: 0.3rem 0.55rem; cursor: pointer; font: inherit;
130}
131table.files { background: white; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
132table.files th { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
133table.files td.msg { max-width: 280px; }
134table.files td.msg a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
135.readme, .codebox, .side {
136 background: white; border: 1px solid var(--line); border-radius: 12px; margin-top: 1rem;
137}
138.readme header, .codebox header { padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); font-weight: 600; }
139.mdbody { padding: 0.2rem 1.1rem 1rem; }
140.mdbody h1, .mdbody h2, .mdbody h3 { margin: 1rem 0 0.4rem; }
141table.md { margin: 0.6rem 0 1rem; }
142table.md th, table.md td { border: 1px solid var(--line); padding: 0.4rem 0.6rem; }
143.side { margin-top: 0.2rem; padding: 0.9rem 1rem; }
144.side h2 { margin: 0 0 0.5rem; font-size: 1rem; }
145.counts { list-style: none; padding: 0; margin: 0.6rem 0; }
146.counts li { padding: 0.28rem 0; }
147.counts a { text-decoration: none; }
148.fileview { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1rem; align-items: start; }
149.treebox h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
150.treelist { list-style: none; padding: 0; margin: 0.5rem 0 0; }
151.treelist li { padding: 0.18rem 0.3rem; border-radius: 6px; white-space: nowrap; }
152.treelist li a { color: inherit; text-decoration: none; }
153.treelist li.active { background: #ddf4ff; }
154.treelist li.depth-1 { padding-left: 0.9rem; }
155.treelist li.depth-2 { padding-left: 1.6rem; }
156.treelist li.depth-3 { padding-left: 2.3rem; }
157.treelist li.depth-4 { padding-left: 3rem; }
158.treelist li.depth-5 { padding-left: 3.7rem; }
159.treelist li.depth-6, .treelist li.depth-7, .treelist li.depth-8 { padding-left: 4.4rem; }
160.filename { display: flex; align-items: center; gap: 0.35rem; margin: 0.2rem 0 0.6rem; }
161.codebox { margin-top: 0.8rem; overflow: auto; }
162table.code { border-collapse: collapse; width: 100%; }
163table.code td { border: 0; padding: 0 0.7rem; vertical-align: top; font-family: ui-monospace, monospace; font-size: 0.86rem; line-height: 1.45; }
164table.code td.ln { color: #8c959f; text-align: right; width: 1%; user-select: none; background: #f6f8fa; }
165table.code td.src { white-space: pre; }
166.hl-k { color: #8250df; }
167.hl-s { color: #cf222e; }
168.hl-c { color: #6e7781; }
169.hl-n { color: #0550ae; }
170.heat {
171 background: white; border: 1px solid var(--line); border-radius: 16px;
172 padding: 1rem 1.1rem 0.8rem; box-shadow: var(--shadow); margin: 0.4rem 0 1.1rem;
173}
174.heat h2 { margin: 0 0 0.55rem; font-size: 1.05rem; }
175.heat-scroll { overflow-x: auto; padding: 1.7rem 0.2rem 0.15rem; }
176.heat-months, .heat-cols {
177 display: grid; grid-auto-flow: column; grid-auto-columns: 11px; column-gap: 3px;
178}
179.heat-months { margin: 0 0 0.25rem 20px; height: 1rem; font-size: 0.68rem; color: var(--muted); }
180.heat-months span { white-space: nowrap; line-height: 1rem; }
181.heat-body { display: flex; gap: 4px; }
182.heat-dow {
183 display: grid; grid-template-rows: repeat(7, 11px); row-gap: 3px;
184 width: 16px; font-size: 0.65rem; color: var(--muted); line-height: 11px;
185}
186.heat-col { display: grid; grid-auto-rows: 11px; row-gap: 3px; }
187.sq { width: 11px; height: 11px; border-radius: 2px; display: block; position: relative; }
188.sq[title]:hover::after, .sq[title]:focus::after {
189 content: attr(title);
190 position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%);
191 background: #142033; color: white; padding: 0.28rem 0.5rem; border-radius: 6px;
192 font-size: 0.78rem; line-height: 1.2; white-space: nowrap; z-index: 5; pointer-events: none;
193}
194.sq.off { background: transparent; }
195.sq.lv0 { background: #e6edf5; }
196.sq.lv1 { background: #b9d4f6; }
197.sq.lv2 { background: #6eacf0; }
198.sq.lv3 { background: #1f6feb; }
199.sq.lv4 { background: #0c3f86; }
200.heat-foot {
201 display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
202 margin-top: 0.7rem; color: var(--muted); font-size: 0.85rem;
203}
204.heat-total, .heat-legend, .heat-foot .muted { margin: 0; }
205.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
206.heat-foot .muted { text-align: right; margin-top: 0.2rem; }
207.chooser { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.2rem 0 0.4rem; transition: opacity .28s ease, transform .28s ease; }
208.chooser.away { opacity: 0; transform: translateY(-10px) scale(.97); pointer-events: none; }
209.pick { min-width: 11rem; padding: 1rem 1.3rem; font-size: 1.05rem; }
210.sheet { transform-origin: top center; }
211.sheet.open { animation: unfold .32s ease; }
212.sheet.closing { animation: fold .28s ease forwards; }
213@keyframes unfold {
214 from { opacity: 0; transform: scaleY(.55); }
215 to { opacity: 1; transform: scaleY(1); }
216}
217@keyframes fold {
218 from { opacity: 1; transform: scaleY(1); }
219 to { opacity: 0; transform: scaleY(.45); }
220}
221.preview { min-height: 1.2rem; display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; }
222.flag.ok { color: var(--ok); font-weight: 600; }
223.flag.bad { color: var(--bad); font-weight: 600; }
224.form-err:empty { display: none; }
225.form-err { color: var(--bad); margin: 0.2rem 0; }
226.bar { display: flex; gap: .6rem; align-items: center; margin: .4rem 0 .2rem; }
227.bar input[type="search"] { flex: 1; }
228.sortlabel { color: var(--muted); }
229.iconbtn { text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: .35rem .55rem; background: white; color: var(--ink); }
230.repolist { list-style: none; padding: 0; margin: .4rem 0 1rem; }
231.repolist > li { display: flex; align-items: center; gap: .7rem; padding: .75rem .2rem; border-bottom: 1px solid var(--line); }
232.reponame { font-weight: 600; text-decoration: none; }
233.stars { color: #9a6700; white-space: nowrap; }
234.grown { flex: 1; }
235.rowmenu { position: relative; }
236.rowmenu > summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: .15rem .55rem; background: white; }
237.rowmenu > summary::-webkit-details-marker { display: none; }
238.rowmenu .menu-panel { position: absolute; right: 0; z-index: 3; min-width: 9rem; }
239.rowmenu .menu-panel button, .rowmenu .menu-panel form { width: 100%; }
240.rowmenu .menu-panel button { text-align: left; border-radius: 8px; }
241img.tile { object-fit: cover; background: #fff; }
242@font-face {
243 font-family: "Noto Sans Cuneiform";
244 src: url("/assets/NotoSansCuneiform-Regular.ttf") format("truetype");
245 font-display: swap;
246}
247html.cunei, html.cunei body, html.cunei button, html.cunei input, html.cunei select, html.cunei textarea {
248 font-family: "Noto Sans Cuneiform", "Segoe UI", sans-serif;
249}
250.applybar {
251 position: sticky; top: 0; z-index: 6; display: flex; justify-content: flex-end;
252 padding: 0.45rem 0; background: rgba(243, 246, 251, 0.94);
253}
254.applybar[hidden] { display: none; }
255.sugmodal {
256 border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem;
257 width: min(32rem, 92vw); box-shadow: var(--shadow);
258}
259.sugmodal::backdrop { background: rgba(20, 32, 51, 0.45); }
260.sugmodal h2 { margin: 0 0 0.4rem; }
261.diff {
262 background: white; border: 1px solid var(--line); border-radius: 12px;
263 overflow: auto; user-select: none; margin: 0.4rem 0 1rem;
264}
265.difffile + .difffile { border-top: 1px solid var(--line); }
266.difffile header {
267 padding: 0.5rem 0.75rem; background: #f6f8fa; border-bottom: 1px solid var(--line); font-weight: 650;
268}
269.diffline {
270 position: relative; display: grid; grid-template-columns: 16px 3.2rem minmax(0, 1fr);
271 font-family: ui-monospace, monospace; font-size: 0.84rem; line-height: 1.5;
272}
273.diffline code { white-space: pre; padding: 0 0.7rem 0 0.35rem; }
274.diffline .ln { color: #8c959f; text-align: right; padding-right: 0.45rem; }
275.gutter { background: #eef2f7; cursor: ns-resize; }
276.gutter.off { background: transparent; cursor: default; }
277.kind-add { background: #e6ffec; }
278.kind-del { background: #ffebe9; }
279.kind-hunk { color: #8c959f; background: #f6f8fa; }
280.diffline.picked { box-shadow: inset 3px 0 0 var(--blue); }
281.diffline.picked .gutter { background: #bfdbfe; }
282.linenote, .lineform {
283 margin: 0.35rem 0.6rem 0.55rem 2.6rem; background: #f6f8fa;
284 border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.7rem;
285}
286.linenote pre.note, ul.clean pre.note {
287 background: white; color: var(--ink); border: 1px solid var(--line); margin: 0.35rem 0;
288}
289label.sugcheck { display: flex; align-items: center; gap: 0.45rem; }
290label.sugcheck input { width: auto; }
291.bubble {
292 position: absolute; left: 18px; top: 0.15rem; z-index: 3;
293 width: 28px; height: 28px; padding: 0; border-radius: 8px;
294 background: white; border: 1px solid var(--line); box-shadow: var(--shadow);
295}
296.bubble-icon {
297 width: 14px; height: 10px; border: 2px solid var(--blue); border-radius: 7px;
298 display: inline-block; position: relative; background: white;
299}
300.bubble-icon::after {
301 content: ""; position: absolute; left: 2px; bottom: -6px;
302 border-width: 6px 5px 0 0; border-style: solid;
303 border-color: var(--blue) transparent transparent transparent;
304}
305@media (max-width: 800px) {
306 .proj, .fileview { grid-template-columns: 1fr; }
307 .heat-foot { flex-direction: column; align-items: flex-start; }
308 .heat-legend, .heat-foot .muted { justify-content: flex-start; text-align: left; }
309 .repolist > li { flex-wrap: wrap; }
310}