forge
Explore
Log in

Don't you dare go Hollow

im_old

Clone
★ 0

0 watching0 forksRustGPL-3.0755.6 KiB84318dcTahinli2 months ago77 commits

_ledger.scss159 lines, 3.9 KiBHistoryRawDownload
1// Ledger UI skin — warm paper, hairline rules, serif display (Newsreader).
2// Ported from izlek/style/_ledger.scss, adapted to im's actual component
3// classes (auth cards, profile section, session list, admin panel). Tokens
4// live in main.scss; skin-specific overrides for [data-ui="ledger"] land
5// here.
6//
7// Every selector carries the [data-ui="ledger"] prefix (one nested block
8// below). That attribute+class specificity outranks the same-name class
9// rules in main.scss, so the @use order never matters.
10
11[data-ui="ledger"] {
12 // --- Ledger skin: typography ---------------------------------------------
13
14 // The display face carries the named thing on each screen: the auth title.
15 // Labels, footers, counts and table headers stay IBM Plex Mono uppercase —
16 // main.scss's metadata idiom is left alone, and so is the wordmark, which
17 // is the same lockup on both skins.
18 .auth-title {
19 font-family: var(--font-display);
20 font-size: 22px;
21 font-weight: 500;
22 letter-spacing: 0;
23 }
24
25 // --- Ledger skin: rules & ornaments (no boxes) ---------------------------
26
27 // Cards give up their chrome: the paper itself is the surface and hairlines
28 // separate entries.
29 .auth-card {
30 background: transparent;
31 border: none;
32 box-shadow: none;
33 padding: 0;
34 }
35
36 .admin-card {
37 background: transparent;
38 border: none;
39 box-shadow: none;
40 padding: 0;
41 }
42
43 .admin-card-head {
44 border-bottom: 2px solid var(--rule-strong);
45 padding: 0 0 10px;
46 }
47
48 // Table rows are entries in the ledger: hairlines only, no hover flooding.
49 .admin-table {
50 td {
51 border-top-color: var(--border);
52 }
53 }
54
55 // Sessions read as a ruled ledger column too.
56 .session-item {
57 border-top-color: var(--border);
58 }
59
60 // Notes and status boxes rule themselves onto the paper: transparent
61 // ground, the hue kept as ink and border.
62 .auth-note,
63 .auth-secret,
64 .auth-ok {
65 background: transparent;
66 }
67
68 .auth-problem {
69 background: transparent;
70 }
71
72 // --- Ledger skin: chips as inked text ------------------------------------
73
74 .chip {
75 display: inline-flex;
76 align-items: baseline;
77 height: auto;
78 padding: 0;
79 background: transparent;
80 border: none;
81 border-bottom: 1px dotted currentColor;
82 border-radius: 0;
83 font-family: var(--font-mono);
84 font-size: 10px;
85 font-weight: 500;
86 letter-spacing: 0.08em;
87 text-transform: uppercase;
88
89 // The tint fills and boxes go; the hue stays on as the ink color.
90 &-muted,
91 &-connected,
92 &-refused,
93 &-accent {
94 background: transparent;
95 }
96
97 &-accent {
98 border: none;
99 border-bottom: 1px dotted currentColor;
100 }
101 }
102
103 // --- Ledger skin: controls -------------------------------------------------
104
105 // The primary action is set in solid ink with paper text, inverting cleanly
106 // in the dark set because both sides are tokens.
107 .auth-submit {
108 background: var(--ink);
109 color: var(--bg);
110
111 &:hover {
112 background: var(--ink-soft);
113 }
114 }
115
116 // Row-level buttons wear the quiet ledger skin: transparent, ink-soft
117 // outline, no flooding on hover.
118 .admin-action {
119 background: transparent;
120 border-color: var(--ink-soft);
121
122 &:hover {
123 background: transparent;
124 border-color: var(--ink);
125 color: var(--ink);
126 }
127 }
128
129 // Delete keeps its danger hue on the outline.
130 .admin-danger {
131 border-color: var(--danger);
132
133 &:hover {
134 border-color: var(--danger);
135 background: transparent;
136 }
137 }
138
139 // Fields rule themselves onto the paper: transparent ground, ink outline.
140 .auth-input {
141 background: transparent;
142 border-color: var(--ink-soft);
143
144 &:focus-visible {
145 background: transparent;
146 border-color: var(--ink);
147 }
148 }
149
150 .auth-locked {
151 background: transparent;
152 border-color: var(--ink-soft);
153 }
154
155 // The active admin tab underlines in ink instead of boxing in shadow.
156 .admin-nav-on {
157 box-shadow: inset 0 -2px 0 var(--ink);
158 }
159}