forge
Explore
Log in

Don't you dare go Hollow

iz_old

Clone
★ 0

0 watching0 forksRustGPL-3.02.2 MiB4c154b4Tahinli2 months ago301 commits

_ledger.scss503 lines, 12.2 KiBHistoryRawDownload
1// Ledger UI skin — warm paper, hairline rules, serif display (Newsreader).
2// Tokens live in main.scss; skin-specific overrides and component rules for
3// [data-ui="ledger"] land here.
4
5// Every selector carries the [data-ui="ledger"] prefix (one nested block
6// below). That attribute+class specificity outranks the same-name class
7// rules in main.scss, so the order of the @use never matters.
8
9[data-ui="ledger"] {
10 // --- Ledger skin: typography -------------------------------------------------
11
12 // The display face carries named things: page/board/panel titles, task
13 // titles, people. Keys, dates, counts and labels stay IBM Plex Mono 10px
14 // uppercase — main.scss's metadata idiom is left alone, and so is the
15 // wordmark, which is the same lockup on both skins.
16 .auth-title,
17 .settings-title,
18 .detail-title,
19 .title-input,
20 .panel-title,
21 .column-name,
22 .card-title,
23 .member-name {
24 font-family: var(--font-display);
25 }
26
27 .settings-title { font-size: 22px; }
28 .panel-title { font-size: 15px; }
29 .card-title { font-size: 16px; }
30
31 // --- Ledger skin: rules & ornaments (no boxes) -------------------------------
32
33 // Panels and cards give up their chrome: the paper itself is the surface
34 // and a hairline separates entries. Section heads sit on a 2px ink rule.
35 .panel {
36 background: transparent;
37 border: none;
38 box-shadow: none;
39 }
40
41 .panel-head {
42 border-bottom: 2px solid var(--rule-strong);
43 padding: 0 0 10px;
44 }
45
46 .auth-card {
47 background: transparent;
48 border: none;
49 box-shadow: none;
50 padding: 0;
51 }
52
53 .column {
54 background: transparent;
55 border-radius: 0;
56 }
57
58 .column-empty {
59 background: transparent;
60 border-color: var(--border-soft);
61 }
62
63 .column-head {
64 padding: 2px 4px 8px;
65 border-bottom: 2px solid var(--rule-strong);
66 }
67
68 // A card is an entry in the ledger: no box, a hairline under it, and the
69 // hover darkens that rule instead of flooding a background.
70 .card {
71 background: transparent;
72 border: none;
73 border-bottom: 1px solid var(--border);
74 border-radius: 0;
75 box-shadow: none;
76 padding: 12px 2px 14px 2px;
77 transition: border-color var(--dur-fast) var(--ease);
78
79 &:hover {
80 background: transparent;
81 border-bottom-color: var(--rule-strong);
82 }
83 }
84
85 .card-done {
86 background: transparent;
87
88 .card-title { text-decoration: line-through; }
89 }
90
91 // Ledger entries stack into a continuous ruled column — no gaps between rows.
92 .column-cards {
93 gap: 0;
94 }
95
96 .rule-row {
97 background: transparent;
98 border: none;
99 border-bottom: 1px solid var(--border);
100 border-radius: 0;
101 padding: 14px 2px;
102
103 &-off { background: transparent; }
104 }
105
106 .tag-row {
107 background: transparent;
108 border: none;
109 border-bottom: 1px solid var(--border);
110 border-radius: 0;
111 padding: 14px 2px;
112 }
113
114 // Activity log reads as a ruled ledger column too: no boxes, the actor
115 // named in the display face like .member-name.
116 .log-row {
117 border-bottom: 1px solid var(--border);
118 }
119
120 .log-actor {
121 font-family: var(--font-display);
122 }
123
124 // --- Ledger skin: baseline header --------------------------------------------
125
126 .topbar {
127 background: transparent;
128 border-bottom: 1px solid var(--rule-strong);
129 }
130
131 .topbar-nav-on {
132 border-bottom: 2px solid var(--rule-strong);
133 box-shadow: none;
134 }
135
136 .detail-tab-on {
137 border-bottom: 2px solid var(--ink);
138 box-shadow: none;
139 }
140
141 // --- Ledger skin: chips as inked text ----------------------------------------
142
143 .chip {
144 display: inline-flex;
145 align-items: baseline;
146 height: auto;
147 padding: 0;
148 background: transparent;
149 border: none;
150 border-bottom: 1px dotted currentColor;
151 border-radius: 0;
152 font-family: var(--font-mono);
153 font-size: 10px;
154 font-weight: 500;
155 letter-spacing: 0.08em;
156 text-transform: uppercase;
157
158 // The tint fills and boxes go; the hue stays on as the ink color.
159 &-overdue,
160 &-blocked,
161 &-role,
162 &-admin,
163 &-connected,
164 &-off { background: transparent; }
165
166 &-role,
167 &-admin { border: none; border-bottom: 1px dotted currentColor; }
168
169 &-role,
170 &-admin,
171 &-connected,
172 &-off { text-transform: uppercase; }
173 }
174
175 // --- Ledger skin: controls -----------------------------------------------------
176
177 // Outlined-ink controls; the primary action is set in solid ink with paper
178 // text, inverting cleanly in the dark set because both sides are tokens.
179 .primary {
180 background: var(--ink);
181 border-color: var(--ink);
182 color: var(--bg);
183
184 &:hover {
185 background: var(--ink-soft);
186 border-color: var(--ink-soft);
187 color: var(--bg);
188 }
189 }
190
191 .auth-submit,
192 .edit-save,
193 .comment-post {
194 background: var(--ink);
195 color: var(--bg);
196 }
197
198 .auth-submit:hover,
199 .edit-save:hover,
200 .comment-post:hover {
201 background: var(--ink-soft);
202 }
203
204 .quiet {
205 background: transparent;
206 border-color: var(--ink-soft);
207
208 &:hover {
209 border-color: var(--ink);
210 color: var(--ink);
211 }
212 }
213
214 .quiet-danger {
215 border-color: var(--danger);
216
217 &:hover {
218 border-color: var(--danger);
219 background: transparent;
220 }
221 }
222
223 .detail-delete {
224 background: transparent;
225 border-color: var(--danger);
226 }
227
228 // Fields rule themselves onto the paper: transparent ground, ink outline.
229 .auth-input,
230 .field-input,
231 .title-input {
232 background: transparent;
233 border-color: var(--ink-soft);
234
235 &:focus-visible {
236 background: transparent;
237 border-color: var(--ink);
238 }
239
240 &:disabled { background: transparent; }
241 }
242
243 .auth-locked,
244 .field-box,
245 .status-form {
246 background: transparent;
247 border-color: var(--ink-soft);
248 }
249
250 // --- Ledger skin: toggles ------------------------------------------------------
251
252 // The switch becomes what a mark is on paper: an empty ink square when
253 // off, a filled one when on. The knob has no role here.
254 .rule-switch {
255 width: 14px;
256 height: 14px;
257 border: 1px solid var(--ink);
258 border-radius: 0;
259 background: transparent;
260
261 .rule-switch-knob { display: none; }
262 }
263
264 .rule-switch-on { background: var(--ink); }
265}
266
267// -- task detail: its own page ------------------------------------------------
268// No chrome, no floating card: the modal opens as an opaque paper page. The
269// scrim carries the paper ground and the invisible panning; the column is
270// static content on top of it, so nothing inside ever scrolls or shows a
271// scrollbar.
272[data-ui="ledger"] .modal-scrim:has(> .modal-task) {
273 background: var(--bg);
274 justify-content: center;
275 // Neither top nor bottom padding: the sticky masthead and foot carry the
276 // page's margins in their own padding, so both sit flush on the pan
277 // surface's edges instead of floating with text showing past them.
278 padding: 0 40px;
279}
280
281[data-ui="ledger"] .modal-task {
282 position: static;
283 width: 720px;
284 max-width: 100%;
285 max-height: none;
286 overflow: visible;
287 display: block;
288 background: transparent;
289 border: none;
290 border-radius: 0;
291 box-shadow: none;
292}
293
294[data-ui="ledger"] .detail-body {
295 overflow: visible;
296}
297
298// Meta row: key + state chip left, `<- Board` right. The panel chrome — Esc
299// hint, close cross — and the body's status fieldbox (the chip already says
300// it) are suppressed.
301[data-ui="ledger"] .modal-task .detail-head {
302 align-items: center;
303 gap: 12px;
304 padding: 0;
305}
306
307[data-ui="ledger"] .detail-tabs {
308 padding: 0;
309 margin-top: 14px;
310}
311
312// The masthead holds at the top of the paper: the task names itself however
313// far down the comments you are.
314[data-ui="ledger"] .detail-mast {
315 position: sticky;
316 top: 0;
317 z-index: 2;
318 padding: 36px 0 6px;
319 background: var(--bg);
320}
321
322[data-ui="ledger"] .modal-task .detail-esc,
323[data-ui="ledger"] .modal-task .detail-close,
324[data-ui="ledger"] .detail-body .detail-field-status {
325 display: none;
326}
327
328// Dependency rows lose the card chrome - the page reads as ruled paper.
329[data-ui="ledger"] .dep-row {
330 border: 0;
331 border-bottom: 1px solid var(--border);
332 border-radius: 0;
333 background: transparent;
334}
335
336[data-ui="ledger"] .modal-task .detail-key {
337 font-size: 10px;
338 letter-spacing: 0.08em;
339 text-transform: uppercase;
340 color: var(--ink);
341 text-decoration: underline dotted;
342 text-underline-offset: 3px;
343}
344
345[data-ui="ledger"] .detail-state {
346 font-family: var(--font-mono);
347 font-size: 10px;
348 letter-spacing: 0.08em;
349 text-transform: uppercase;
350}
351
352[data-ui="ledger"] .detail-state .field-box,
353[data-ui="ledger"] .detail-state .status-form {
354 height: auto;
355 padding: 0;
356 background: transparent;
357 border: none;
358 font: inherit;
359 color: var(--ink);
360}
361
362[data-ui="ledger"] .detail-state .status-select {
363 width: auto;
364 flex: none;
365 font: inherit;
366 text-transform: uppercase;
367}
368
369[data-ui="ledger"] .detail-state .status-dot {
370 display: none;
371}
372
373[data-ui="ledger"] .detail-board {
374 margin-left: auto;
375 font-size: 10px;
376 letter-spacing: 0.08em;
377 text-transform: uppercase;
378 color: var(--ink);
379 background: transparent;
380 border: none;
381 height: auto;
382}
383
384// Serif title over a heavy rule; the edit form gets the same rule so the
385// title area holds still while editing. The title now lives in the header,
386// stacked under the key, ahead of the tab strip.
387[data-ui="ledger"] .detail-head .detail-title,
388[data-ui="ledger"] .title-form {
389 padding-bottom: 10px;
390 border-bottom: 2px solid var(--ink);
391}
392
393[data-ui="ledger"] .detail-title {
394 font-family: var(--font-serif, Georgia, serif);
395 font-size: 32px;
396 font-weight: 400;
397 line-height: 1.15;
398 letter-spacing: 0;
399}
400
401[data-ui="ledger"] .title-input {
402 height: auto;
403 padding: 0;
404 border: none;
405 background: transparent;
406 font-family: var(--font-serif, Georgia, serif);
407 font-size: 32px;
408 font-weight: 400;
409}
410
411// Hairline ruled rows instead of boxed controls.
412[data-ui="ledger"] .detail-fields {
413 display: block;
414 padding: 0;
415 margin-top: 14px;
416 border-top: 1px solid var(--border);
417}
418
419[data-ui="ledger"] .detail-field {
420 display: flex;
421 flex-direction: row;
422 align-items: baseline;
423 gap: 16px;
424 padding: 10px 0;
425 border-bottom: 1px solid var(--border);
426}
427
428[data-ui="ledger"] .detail-field > .detail-label {
429 flex: none;
430 width: 130px;
431}
432
433[data-ui="ledger"] .detail-field .field-box,
434[data-ui="ledger"] .detail-field .status-form {
435 background: transparent;
436 border: none;
437 border-radius: 0;
438 padding: 0;
439 height: auto;
440}
441
442[data-ui="ledger"] .detail-field .status-dot {
443 display: none;
444}
445
446// Long-form sections run as prose on paper.
447[data-ui="ledger"] .detail-block {
448 margin-top: 24px;
449}
450
451[data-ui="ledger"] .comment-list {
452 border-top: 1px solid var(--border);
453}
454
455// Composer sits in the flow at the end of the page — the body above is
456// static, so it simply follows the sections.
457// The page pans, but the way out must not pan with it. The foot and the
458// composer hold at the bottom of the paper with the ground under them, so a
459// description or a comment run of any length still ends within reach.
460[data-ui="ledger"] .detail-foot,
461[data-ui="ledger"] .comment-composer {
462 position: sticky;
463 bottom: 0;
464 margin-top: 24px;
465 padding: 16px 0 36px;
466 background: var(--bg);
467 border-top: 1px solid var(--border);
468}
469
470// Settings rail: a narrower column, mono/uppercase stays, the active section
471// marked with an ink rule rather than a fill.
472[data-ui="ledger"] .settings-sections {
473 width: 170px;
474}
475
476[data-ui="ledger"] .settings-section-link.active {
477 border-bottom: 2px solid var(--ink);
478}
479// -- mobile (narrow viewports) -----------------------------------------------
480// Geometry that the skin sets with [data-ui]-prefixed rules and that the
481// shared mobile layer in main.scss cannot out-specify.
482@media (max-width: 620px) {
483 // The paper page keeps its mast and foot flush; only the side margins give.
484 [data-ui="ledger"] .modal-scrim:has(> .modal-task) { padding: 0 12px; }
485
486 [data-ui="ledger"] .detail-mast { padding: 20px 0 6px; }
487
488 [data-ui="ledger"] .detail-title,
489 [data-ui="ledger"] .title-input { font-size: 24px; }
490
491 // The labeled rows stack: no third of a phone holds label and value side
492 // by side.
493 [data-ui="ledger"] .detail-field {
494 flex-direction: column;
495 align-items: stretch;
496 gap: 4px;
497 }
498
499 [data-ui="ledger"] .detail-field > .detail-label { width: auto; }
500
501 // The rail is a strip; the 170px column is a desktop's.
502 [data-ui="ledger"] .settings-sections { width: auto; }
503}