Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
239 lines (222 loc) · 14.5 KB
/
Copy pathstyles.css
File metadata and controls
239 lines (222 loc) · 14.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
:root {
--bg: #faf7f2;
--surface: #ffffff;
--ink: #1f1c18;
--muted: #6b645a;
--faint: #a39b8f;
--rule: #e7e0d5;
--accent: #9a3b1f;
--accent-soft: #f4e4dc;
--shadow: 0 1px 2px rgba(40, 30, 20, .06), 0 2px 8px rgba(40, 30, 20, .04);
--r-extends: #2f6f4f; --r-extends-bg: #e2efe7;
--r-method: #2c5d8a; --r-method-bg: #e1ebf4;
--r-background: #6b645a; --r-background-bg: #eeeae3;
--r-compare: #7a5a12; --r-compare-bg: #f5ecd6;
--r-contrast: #a0311f; --r-contrast-bg: #f7e1dc;
--r-apply: #6a3f8f; --r-apply-bg: #ece2f4;
--r-parallel: #3f6f73; --r-parallel-bg: #dff0ef;
--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #17150f;
--surface: #211e18;
--ink: #ece6dc;
--muted: #a8a093;
--faint: #756e62;
--rule: #332e26;
--accent: #e08a6a;
--accent-soft: #3a261d;
--shadow: none;
--r-extends: #8fd0ab; --r-extends-bg: #1f3329;
--r-method: #92bde6; --r-method-bg: #1c2a38;
--r-background: #b5ad9f; --r-background-bg: #2c2923;
--r-compare: #e2c47c; --r-compare-bg: #362d18;
--r-contrast: #f09a86; --r-contrast-bg: #3d211b;
--r-apply: #c9a6ea; --r-apply-bg: #2e2238;
--r-parallel: #8fd0d3; --r-parallel-bg: #1b3233;
}
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
.bar {
position: sticky; top: 0; z-index: 5;
display: flex; align-items: center; justify-content: space-between;
padding: 10px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent);
backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule);
}
.brand { font: 600 15px var(--serif); letter-spacing: .01em; }
.mark { color: var(--accent); }
.bar-actions { display: flex; gap: 4px; }
.icon { background: none; border: 0; width: 28px; height: 28px; border-radius: 6px; color: var(--muted); font-size: 15px; }
.icon:hover { background: var(--rule); color: var(--ink); }
main { padding: 16px 16px 48px; }
/* ---------- idle / states ---------- */
.idle { padding: 12px 0; }
.idle h2 { font: 500 18px/1.3 var(--serif); margin: 0 0 6px; }
.idle p { color: var(--muted); margin: 0 0 14px; }
.primary {
display: inline-flex; align-items: center; gap: 8px;
background: var(--accent); color: #fff; border: 0; border-radius: 8px;
padding: 9px 14px; font-weight: 600;
}
.primary:hover { filter: brightness(1.08); }
.ghost { background: none; border: 1px solid var(--rule); border-radius: 8px; padding: 7px 12px; color: var(--muted); }
.ghost:hover { border-color: var(--faint); color: var(--ink); }
.status { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 10px 0; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--rule); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { background: var(--r-contrast-bg); color: var(--r-contrast); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.note { background: var(--surface); border: 1px dashed var(--rule); border-radius: 8px; padding: 10px 12px; color: var(--muted); font-size: 13px; }
/* ---------- head ---------- */
.kind { font: 600 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.work-title { font: 500 20px/1.25 var(--serif); margin: 4px 0 6px; text-wrap: balance; }
.meta { color: var(--muted); font-size: 12.5px; }
.meta .sep { margin: 0 6px; color: var(--faint); }
.byline { margin-top: 6px; font-size: 13px; color: var(--muted); }
.crumbs { font-size: 12px; color: var(--faint); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs button { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-decoration-color: var(--rule); }
/* ---------- sections ---------- */
section { margin-top: 22px; }
.section-h {
display: flex; align-items: baseline; justify-content: space-between;
font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
border-bottom: 1px solid var(--rule); padding-bottom: 6px; margin-bottom: 10px;
}
.section-h small { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); }
.prose { font: 15px/1.55 var(--serif); margin: 0 0 10px; }
.prose.lede { font-size: 15.5px; }
.label { font: 600 11px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 6px; }
.tension { border-left: 2px solid var(--r-contrast); padding: 2px 0 2px 10px; margin: 8px 0; font: 14px/1.5 var(--serif); }
.refs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 4px; }
.ref {
font: 11px var(--sans); border: 1px solid var(--rule); background: var(--surface);
border-radius: 999px; padding: 0 7px; color: var(--muted); max-width: 180px;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
}
.ref:hover { border-color: var(--accent); color: var(--accent); }
ol.path { margin: 0; padding-left: 20px; }
ol.path li { margin: 4px 0; font-size: 13.5px; }
ol.path li::marker { color: var(--accent); font-weight: 600; }
/* ---------- lineage ---------- */
details.group { margin: 0 0 8px; }
details.group > summary {
list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
font: 500 15px var(--serif); padding: 6px 0;
}
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary::before { content: "▸"; color: var(--faint); font-size: 11px; transition: transform .15s; }
details.group[open] > summary::before { transform: rotate(90deg); }
.count { font: 12px var(--sans); color: var(--faint); }
.group-desc { font-size: 12.5px; color: var(--faint); margin: -2px 0 8px 19px; }
.items { list-style: none; margin: 0 0 0 7px; padding: 0 0 0 12px; border-left: 1px solid var(--rule); }
.item { position: relative; padding: 8px 0 8px 2px; }
.item::before { content: ""; position: absolute; left: -12px; top: 18px; width: 9px; border-top: 1px solid var(--rule); }
.item-top { display: flex; gap: 8px; align-items: flex-start; }
.item-title { font-size: 13.5px; line-height: 1.35; flex: 1; }
.item-title a { text-decoration: none; }
.item-title a:hover { text-decoration: underline; }
.item-meta { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.item-note { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.item-ctx { font: italic 12.5px/1.45 var(--serif); color: var(--muted); margin-top: 4px; border-left: 2px solid var(--rule); padding-left: 8px; }
.explore { flex: none; background: none; border: 1px solid transparent; border-radius: 6px; color: var(--faint); font-size: 12px; padding: 1px 6px; }
.item:hover .explore { border-color: var(--rule); color: var(--muted); }
.explore:hover { color: var(--accent) !important; border-color: var(--accent) !important; }
.star { color: var(--accent); margin-left: 4px; font-size: 11px; }
.more { margin: 4px 0 0 14px; font-size: 12.5px; background: none; border: 0; color: var(--accent); padding: 4px 0; }
.chip {
display: inline-block; font: 600 10px/1.7 var(--sans); letter-spacing: .03em; text-transform: uppercase;
border-radius: 4px; padding: 0 6px; white-space: nowrap; flex: none; margin-top: 1px;
}
.rel-extends { color: var(--r-extends); background: var(--r-extends-bg); }
.rel-uses_method, .rel-uses_data { color: var(--r-method); background: var(--r-method-bg); }
.rel-background, .rel-surveys { color: var(--r-background); background: var(--r-background-bg); }
.rel-compares { color: var(--r-compare); background: var(--r-compare-bg); }
.rel-contrasts, .rel-critiques { color: var(--r-contrast); background: var(--r-contrast-bg); }
.rel-applies { color: var(--r-apply); background: var(--r-apply-bg); }
.rel-parallel { color: var(--r-parallel); background: var(--r-parallel-bg); }
/* ---------- authors ---------- */
.author { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.author-name { font: 500 15px var(--serif); }
.author-aff { font-size: 12.5px; color: var(--muted); }
.stats { display: flex; gap: 14px; margin: 8px 0; font-size: 12px; color: var(--muted); }
.stats b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.bio { font: 14px/1.5 var(--serif); margin: 6px 0; }
.topics { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.topic { font-size: 11px; background: var(--bg); border: 1px solid var(--rule); border-radius: 999px; padding: 0 8px; color: var(--muted); }
.works { margin: 8px 0 0; padding-left: 16px; font-size: 12px; color: var(--muted); }
.others { font-size: 12.5px; color: var(--muted); }
.footer-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.fine { font-size: 11.5px; color: var(--faint); margin-top: 14px; }
.skeleton { height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--rule), var(--surface), var(--rule)); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin: 8px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
/* ---------- options ---------- */
.form { max-width: 520px; margin: 0 auto; padding: 24px 16px; }
.form h1 { font: 500 24px var(--serif); margin: 0 0 4px; }
.form label { display: block; font-weight: 600; margin: 18px 0 6px; font-size: 13px; }
.form input, .form select { width: 100%; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font: inherit; }
.form .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
/* ---------- discussion ---------- */
details.thread { border-bottom: 1px solid var(--rule); padding: 8px 0; }
details.thread > summary { list-style: none; cursor: pointer; font-size: 13.5px; line-height: 1.35; }
details.thread > summary::-webkit-details-marker { display: none; }
details.thread .item-meta { display: block; }
.src { font: 600 10px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-right: 6px; }
.comment { margin: 8px 0 0; padding: 6px 10px; border-left: 2px solid var(--rule); font: 13px/1.5 var(--serif); color: var(--ink); white-space: pre-line; }
.comment cite { display: block; font: 11px var(--sans); color: var(--faint); margin-top: 4px; font-style: normal; }
.search-links { margin-top: 10px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.webhit { padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid var(--rule); }
.sources { font-size: 11.5px; color: var(--faint); margin-top: 6px; }
.sources a { color: var(--muted); }
/* ---------- keeping ---------- */
.work-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ghost.small { padding: 4px 10px; font-size: 12.5px; }
.ghost.on, .icon.on { color: var(--accent); border-color: var(--accent); }
.ghost:disabled { opacity: .4; cursor: default; }
.pin { flex: none; background: none; border: 0; color: var(--faint); font-size: 14px; line-height: 1; padding: 2px 4px; }
.pin:hover, .pin.on { color: var(--accent); }
textarea#note {
width: 100%; resize: vertical; min-height: 84px; padding: 10px 12px; border-radius: 8px;
border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font: 14px/1.5 var(--serif);
}
textarea#note:focus { outline: none; border-color: var(--accent); }
.qa { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.q { font: 14.5px/1.45 var(--serif); display: flex; gap: 8px; }
.qn { color: var(--accent); font: 600 12px var(--sans); padding-top: 2px; }
.qa .more { margin: 6px 0 0 18px; }
.qa .a { display: none; margin: 6px 0 0 18px; font-size: 13px; color: var(--muted); border-left: 2px solid var(--accent-soft); padding-left: 8px; }
.qa.shown .a { display: block; }
.qa.shown .more { display: none; }
.lib-work, .lib-star { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.lib-note { margin-top: 6px; font: 13.5px/1.5 var(--serif); white-space: pre-line; border-left: 2px solid var(--accent); padding-left: 8px; }
.lib-star.done .item-title { text-decoration: line-through; color: var(--faint); }
.lib-star select { flex: none; font-size: 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--muted); padding: 2px 4px; }
/* ---------- threads ---------- */
.threadbar { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--rule); font-size: 12.5px; }
.threadbar.active { border-color: var(--accent); background: var(--accent-soft); }
.tb-label { font: 600 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.threadbar.active .tb-label { color: var(--accent); }
.threadbar select { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 13px var(--sans); }
.new-thread { display: flex; gap: 6px; margin: -4px 0 12px; }
.new-thread input { flex: 1; min-width: 0; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font: 13px var(--sans); }
.primary.small { padding: 4px 10px; font-size: 12.5px; }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 4px; }
.tchip { border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; color: var(--muted); }
.tchip span { color: var(--faint); font-size: 11px; }
.tchip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
select.move { border: 0; background: transparent; color: var(--faint); font-size: 11px; max-width: 130px; }
ol.trail { margin: 0; padding-left: 20px; font-size: 13px; }
ol.trail li { margin: 3px 0; }
ol.trail li::marker { color: var(--faint); }
/* ---------- options: bridge setup ---------- */
.status-line { margin: 6px 0; }
.cmd { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
.cmd code { flex: 1; font: 12px ui-monospace, Menlo, monospace; word-break: break-all; color: var(--ink); }
details.advanced { margin-top: 10px; }
details.advanced summary { cursor: pointer; color: var(--muted); }