-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
540 lines (509 loc) · 16.3 KB
/
Copy pathstyles.css
File metadata and controls
540 lines (509 loc) · 16.3 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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
/* Plainnote.io — tokens lifted from the app (app/styles.css) */
:root {
--bg: #ffffff;
--tint: #f7f7f5; /* section tint, between app bg and sidebar */
--sidebar-bg: #f1f1ef;
--text: #161616;
--text-soft: #4a4a4a;
--muted: #8f8f8b;
--border: #e6e6e2;
--border-soft: #efefec;
--pill: #e9e9e5;
--code-bg: #f5f5f2;
--maxw: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 17px;
line-height: 1.6;
color: var(--text);
background: var(--bg);
-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p a, footer a { border-bottom: 1px solid var(--border); }
p a:hover, footer a:hover { border-bottom-color: var(--muted); }
img { max-width: 100%; height: auto; display: block; }
code {
font-family: ui-monospace, "SF Mono", Menlo, monospace;
font-size: 0.9em;
background: var(--code-bg);
border: 1px solid var(--border-soft);
border-radius: 4px;
padding: 1px 5px;
}
/* Buttons */
.btn {
display: inline-block;
border-radius: 8px;
padding: 8px 16px;
font-size: 15px;
font-weight: 500;
background: var(--pill);
transition: background 0.15s ease;
}
.btn:hover { background: var(--border); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #333; }
.btn-big { padding: 13px 26px; font-size: 17px; }
/* Nav */
nav {
max-width: var(--maxw);
margin: 0 auto;
padding: 22px 28px;
display: flex;
align-items: center;
justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.brand img { border-radius: 6px; }
.nav-right { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-right a:not(.btn) { color: var(--text-soft); }
.nav-right a:not(.btn):hover { color: var(--text); }
.gh { display: flex; align-items: center; }
/* Hero */
.hero {
max-width: var(--maxw);
margin: 0 auto;
padding: 72px 28px 0;
text-align: center;
}
.hero h1 {
font-size: clamp(38px, 6vw, 58px);
line-height: 1.1;
letter-spacing: -0.02em;
font-weight: 700;
}
.lede {
max-width: 540px;
margin: 22px auto 0;
font-size: 19px;
color: var(--text-soft);
}
.hero-actions { margin-top: 32px; }
/* Screenshots */
.shot {
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
box-shadow: 0 24px 60px -24px rgba(22, 22, 22, 0.18);
background: var(--bg);
}
.shot-hero { margin-top: 56px; }
/* Hero demo — an interactive replica of the app; rules adapted from app/styles.css.
Tokens are redefined on .demo so the theme toggle only affects the demo. */
.demo {
--bg: #ffffff;
--sidebar-bg: #f1f1ef;
--sidebar-hover: #e6e6e3;
--sidebar-active: #dededa;
--text: #161616;
--text-soft: #4a4a4a;
--muted: #8f8f8b;
--border: #e6e6e2;
--border-soft: #efefec;
--pill: #e9e9e5;
--code-bg: #f5f5f2;
}
.demo.theme-dark {
--bg: #1e1e1d;
--sidebar-bg: #262625;
--sidebar-hover: #323230;
--sidebar-active: #3c3c39;
--text: #e9e9e6;
--text-soft: #bcbcb7;
--muted: #85857f;
--border: #363634;
--border-soft: #2b2b29;
--pill: #343432;
--code-bg: #2a2a28;
}
.demo-hint { font-size: 14px; color: var(--muted); margin-top: 16px; }
.demo .demo-app {
display: flex;
position: relative;
height: 640px;
text-align: left;
font-size: 15px;
line-height: 1.5;
color: var(--text);
background: var(--bg);
cursor: default;
}
.demo button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
.demo .sidebar {
width: 250px;
min-width: 250px;
background: var(--sidebar-bg);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
user-select: none;
}
.demo .sidebar-header { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; }
.demo .sidebar-header .sidebar-actions { margin-left: auto; display: flex; gap: 2px; }
.demo .app-name { font-weight: 700; font-size: 14px; letter-spacing: 0.01em; }
.demo .side-icon {
width: 26px;
height: 26px;
min-width: 26px;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-soft);
}
.demo button.side-icon:hover { background: var(--sidebar-hover); color: var(--text); }
.demo .pane-header .side-icon, .demo .sidebar-footer .side-icon { color: var(--muted); }
.demo .search-wrap { padding: 0 12px 10px; position: relative; }
.demo .d-search {
width: 100%;
font: inherit;
font-size: 13px;
padding: 6px 10px;
border: 1px solid var(--border);
border-radius: 7px;
background: var(--bg);
color: var(--text);
outline: none;
}
.demo .d-search:focus { border-color: #c9c9c4; }
.demo.theme-dark .d-search:focus { border-color: #55554f; }
.demo .d-search::placeholder { color: var(--muted); }
.demo .d-search-clear {
position: absolute;
right: 18px;
top: 0;
bottom: 10px;
margin: auto 0;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
color: var(--muted);
border-radius: 4px;
}
.demo .d-search-clear:hover { color: var(--text); background: var(--sidebar-hover); }
.demo .d-search-clear[hidden] { display: none; }
.demo .d-tree, .demo .d-results { flex: 1; padding: 2px 8px 10px; overflow-y: auto; }
.demo .d-tree[hidden], .demo .d-results[hidden] { display: none; }
.demo .tree-row {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 8px;
min-height: 28px;
border-radius: 6px;
font-size: 13px;
color: var(--text-soft);
cursor: pointer;
white-space: nowrap;
}
.demo .tree-row:hover { background: var(--sidebar-hover); color: var(--text); }
.demo .tree-row.active { background: var(--sidebar-active); color: var(--text); font-weight: 500; }
.demo .tree-row .row-name { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.demo .folder-row { color: var(--text); }
.demo .folder-row .row-name { font-weight: 600; }
.demo .folder-row.selected { background: var(--sidebar-hover); }
.demo .chevron {
width: 14px;
min-width: 14px;
color: var(--muted);
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.12s ease;
}
.demo .tree-row.collapsed .chevron { transform: rotate(-90deg); }
.demo .tree-children { margin-left: 14px; }
.demo .tree-row.open-elsewhere .row-name { text-decoration: underline; text-decoration-color: #c9c9c3; text-underline-offset: 3px; }
.demo.theme-dark .tree-row.open-elsewhere .row-name { text-decoration-color: #55554f; }
.demo .search-hit { padding: 6px 8px; border-radius: 6px; cursor: pointer; margin-bottom: 2px; }
.demo .search-hit:hover { background: var(--sidebar-hover); }
.demo .hit-name { font-size: 13px; font-weight: 500; }
.demo .hit-snippet { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo .search-empty { padding: 10px; font-size: 12px; color: var(--muted); }
.demo .section-label {
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--muted);
margin-bottom: 8px;
}
.demo .tags-section { border-top: 1px solid var(--border); padding: 10px 12px; }
.demo .d-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.demo .tag-pill, .demo .backlink-pill {
font-size: 11.5px;
line-height: 1.5;
background: var(--pill);
color: var(--text-soft);
padding: 3px 9px;
border-radius: 99px;
cursor: pointer;
}
.demo .tag-pill:hover, .demo .backlink-pill:hover { background: var(--sidebar-active); color: var(--text); }
.demo .tag-count { color: var(--muted); margin-left: 4px; }
.demo .sidebar-footer { border-top: 1px solid var(--border); padding: 8px 10px; display: flex; gap: 4px; align-items: center; }
.demo .vault {
display: flex;
align-items: center;
gap: 7px;
flex: 1;
min-width: 0;
padding: 6px 8px;
border-radius: 6px;
font-size: 12px;
color: var(--muted);
white-space: nowrap;
}
.demo .d-main { flex: 1; display: flex; min-width: 0; position: relative; background: var(--bg); }
.demo .d-panes { flex: 1; display: flex; min-width: 0; }
.demo .d-expand {
position: absolute;
top: 12px;
left: 12px;
z-index: 8;
color: var(--muted);
}
.demo .d-expand[hidden] { display: none; }
.demo-app.sidebar-hidden .sidebar { display: none; }
.demo .pane { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.demo .pane + .pane { border-left: 1px solid var(--border); }
.demo .pane-header { display: flex; align-items: center; gap: 8px; padding: 12px 24px 6px; }
.demo .pane-header-spacer { flex: 1; }
.demo .pane-mode { display: flex; background: var(--pill); border-radius: 8px; padding: 2px; }
.demo .pane-mode button { font-size: 11.5px; padding: 3px 11px; border-radius: 6px; color: var(--muted); }
.demo .pane-mode button.active { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.demo.theme-dark .pane-mode button.active { box-shadow: none; }
.demo .pane-scroll { flex: 1; overflow-y: auto; padding: 8px 32px 24px; display: flex; flex-direction: column; }
.demo .pane-content { flex: 0 0 auto; margin-bottom: 48px; }
.demo .markdown { line-height: 1.65; font-size: 14px; }
.demo .markdown h1, .demo .markdown h2, .demo .markdown h3 { margin: 1.4em 0 0.5em; line-height: 1.3; }
.demo .markdown h1 { font-size: 24px; }
.demo .markdown h2 { font-size: 19px; }
.demo .markdown h3 { font-size: 16px; }
.demo .markdown p { margin: 0.6em 0; }
.demo .markdown ul, .demo .markdown ol { margin: 0.6em 0; padding-left: 1.5em; }
.demo .markdown pre {
background: var(--code-bg);
padding: 14px 16px;
border-radius: 8px;
overflow-x: auto;
margin: 0.8em 0;
}
.demo .markdown pre code { background: none; padding: 0; }
.demo .markdown li.task {
list-style: none;
margin-left: -1.4em;
padding-left: 1.4em;
position: relative;
}
.demo .markdown li.task.done { color: var(--muted); text-decoration: line-through; }
.demo .markdown input.task-check {
appearance: none;
-webkit-appearance: none;
position: absolute;
left: 0;
top: 0.35em;
width: 0.95em;
height: 0.95em;
margin: 0;
border: 1.5px solid var(--muted);
border-radius: 4px;
background: none;
cursor: pointer;
flex: none;
}
.demo .markdown input.task-check:hover { border-color: var(--text); }
.demo .markdown input.task-check:checked { border-color: var(--text-soft); background: var(--text-soft); }
.demo .markdown input.task-check:checked::after {
content: "";
position: absolute;
left: 0.28em;
top: 0.08em;
width: 0.22em;
height: 0.48em;
border: solid var(--bg);
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
.demo .markdown li { margin: 0.2em 0; }
.demo .markdown blockquote { margin: 0.8em 0; padding: 2px 16px; border-left: 3px solid #d4d4d0; color: var(--text-soft); }
.demo .markdown code { font-size: 0.84em; background: var(--code-bg); border: none; padding: 2px 5px; border-radius: 4px; }
.demo .markdown a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; border-bottom: none; }
.demo .markdown a.wikilink { text-decoration: none; border-bottom: 1.5px solid var(--text); font-weight: 500; cursor: pointer; }
.demo .markdown .tag {
font-size: 0.82em;
background: var(--pill);
color: var(--text-soft);
padding: 1px 8px;
border-radius: 99px;
cursor: pointer;
}
.demo .markdown .tag:hover { background: var(--sidebar-active); }
.demo .live-line { padding: 1px 10px; margin: 0 -10px; cursor: text; border-radius: 4px; }
.demo .live-line:hover { background: var(--code-bg); }
.demo .live-line > * { margin: 0; }
.demo .live-line ul, .demo .live-line ol { margin: 0; padding-left: 1.5em; }
.demo .live-line li { margin: 0; }
.demo .live-line pre { margin: 0.3em 0; }
.demo .live-line blockquote { margin: 0; }
.demo .live-line.blank { min-height: 0.45em; }
.demo .live-line.live-h1 { margin-top: 25px; margin-bottom: 4px; }
.demo .live-line.live-h2 { margin-top: 19px; }
.demo .live-line.live-h3 { margin-top: 15px; }
.demo .live-line.live-h:first-child { margin-top: 0; }
.demo .live-editor {
display: block;
width: 100%;
border: none;
outline: none;
resize: none;
overflow: hidden;
font: inherit;
font-size: 14px;
line-height: 1.65;
color: var(--text);
background: var(--code-bg);
padding: 1px 10px;
margin: 0 -10px;
border-radius: 4px;
caret-color: var(--text);
}
.demo .live-edit-wrap.live-h1 { margin-top: 25px; margin-bottom: 4px; }
.demo .live-edit-wrap.live-h2 { margin-top: 19px; }
.demo .live-edit-wrap.live-h3 { margin-top: 15px; }
.demo .live-hint { color: var(--muted); font-size: 13px; padding: 8px 0; cursor: text; }
.demo .d-suggest {
position: absolute;
z-index: 60;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 9px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
padding: 4px;
min-width: 160px;
max-width: 320px;
}
.demo .d-suggest[hidden] { display: none; }
.demo .d-suggest .menu-item {
padding: 5px 10px;
border-radius: 6px;
font-size: 12.5px;
cursor: pointer;
color: var(--text-soft);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.demo .d-suggest .menu-item:hover, .demo .d-suggest .menu-item.sel { background: var(--code-bg); color: var(--text); }
.demo.theme-dark .d-suggest { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.demo .d-modal-overlay {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.18);
display: flex;
align-items: flex-start;
justify-content: center;
padding-top: 14%;
z-index: 20;
}
.demo .d-modal-overlay[hidden] { display: none; }
.demo .d-modal {
background: var(--bg);
border-radius: 12px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
padding: 18px;
width: 300px;
}
.demo.theme-dark .d-modal { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.demo .d-modal-label { font-size: 12.5px; font-weight: 600; margin-bottom: 10px; }
.demo .d-modal-input {
width: 100%;
font: inherit;
font-size: 13px;
color: var(--text);
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 7px 10px;
outline: none;
}
.demo .d-modal-input:focus { border-color: #b9b9b4; }
.demo.theme-dark .d-modal-input:focus { border-color: #55554f; }
.demo .d-modal-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.demo .d-modal-buttons button { font-size: 12.5px; padding: 6px 14px; border-radius: 7px; }
.demo .d-modal-cancel { color: var(--muted); }
.demo .d-modal-cancel:hover { background: var(--code-bg); color: var(--text); }
.demo .d-modal-ok { background: var(--text); color: var(--bg); }
.demo .d-modal-ok:hover { opacity: 0.85; }
.demo .pane-backlinks { margin-top: auto; border-top: 1px solid var(--border-soft); padding-top: 12px; }
.demo .backlinks-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; align-items: center; }
.demo .backlinks-empty { font-size: 12px; color: var(--muted); }
@media (max-width: 720px) {
.demo .sidebar { display: none; }
.demo .pane-split { display: none !important; }
.demo .demo-app { height: 520px; }
.demo .pane-scroll { padding: 8px 20px 20px; }
}
/* Trust strip */
.trust {
background: var(--tint);
border-top: 1px solid var(--border-soft);
border-bottom: 1px solid var(--border-soft);
margin-top: 96px;
}
.trust ul {
list-style: none;
max-width: var(--maxw);
margin: 0 auto;
padding: 64px 28px;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 40px;
}
.trust svg {
width: 26px;
height: 26px;
fill: none;
stroke: var(--text);
stroke-width: 1.6;
stroke-linecap: round;
stroke-linejoin: round;
margin-bottom: 14px;
}
.trust h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.trust p { font-size: 14.5px; color: var(--text-soft); line-height: 1.55; }
/* Download */
.download {
text-align: center;
padding: 104px 28px 96px;
}
.download h2 { font-size: 34px; letter-spacing: -0.015em; }
.download-sub { color: var(--text-soft); margin: 10px 0 28px; }
.download-version { color: var(--muted); font-size: 14px; margin-top: 14px; }
/* Footer */
footer {
max-width: var(--maxw);
margin: 0 auto;
padding: 36px 28px;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
font-size: 14px;
color: var(--muted);
}
footer img { border-radius: 5px; opacity: 0.9; }
footer .dot { color: var(--border); }
/* Responsive */
@media (max-width: 860px) {
.trust ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
.trust ul { grid-template-columns: 1fr; }
}