Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
144 lines (129 loc) · 8.77 KB
/
Copy pathstyle.css
File metadata and controls
144 lines (129 loc) · 8.77 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
:root {
--paper: #edf1f5; --card: #fff; --ink: #1b2a41; --muted: #52627a; --line: #d3dbe5;
--orange: #ff8c2b; --purple: #b980ff; --orange-text: #b34700; --purple-text: #7a3fd1;
--ok: #1d6b3a; --err: #b3261e;
--serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
--sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body {
margin: 0; color: var(--ink); font-family: var(--sans); line-height: 1.55; background-color: var(--paper);
background-image:
radial-gradient(circle at 92% -6%, rgba(185,128,255,.35), transparent 38%),
radial-gradient(circle at -8% 6%, rgba(255,140,43,.28), transparent 34%),
radial-gradient(rgba(27,42,65,.09) 1px, transparent 1.5px);
background-size: auto, auto, 22px 22px;
}
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--orange-text); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.top, main, footer, .wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
/* ---------- header ---------- */
.top { padding-top: 56px; position: relative; }
.admin-link { position: absolute; top: 16px; right: 20px; padding: 6px 14px; border: 1.5px solid var(--ink);
border-radius: 999px; background: var(--card); text-decoration: none; font-weight: 600; font-size: .85rem; }
.admin-link:hover { background: var(--ink); color: #fff; }
h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.4rem, 9vw, 4.4rem); line-height: 1.02;
letter-spacing: -0.025em; margin: 0; }
h1::after { content: ""; display: block; height: 6px; width: 140px; margin-top: 18px; border-radius: 3px;
background: linear-gradient(90deg, var(--orange), var(--purple)); }
.tagline { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; margin: 16px 0 0; max-width: 32em; }
#nav { display: flex; flex-wrap: wrap; gap: 10px; padding: 22px 0 6px; }
.chip { padding: 7px 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card);
text-decoration: none; font-weight: 600; font-size: .95rem; }
.chip.c0:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.chip.c1:hover { background: var(--purple); border-color: var(--purple); color: var(--ink); }
/* ---------- sections and projects ---------- */
.c0 { --accent: var(--orange); --accent-text: var(--orange-text); }
.c1 { --accent: var(--purple); --accent-text: var(--purple-text); }
.sec { padding-top: 40px; }
h2 { font-family: var(--serif); font-size: 1.9rem; margin: 0; display: flex; align-items: center; gap: 12px; }
h2::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); flex: none; }
.sec-desc { color: var(--muted); margin: 4px 0 8px 26px; }
.empty { color: var(--muted); padding: 40px 0; }
.project { display: grid; gap: 14px; padding: 18px 20px; margin-top: 14px; background: var(--card);
border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 10px;
box-shadow: 0 10px 24px -16px rgba(27,42,65,.5); transition: transform .15s, box-shadow .15s; }
.project:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(27,42,65,.55); }
h3 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; margin: 0 0 4px; }
.text p { margin: 0 0 8px; max-width: 46em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600;
background: color-mix(in srgb, var(--accent) 18%, white); color: var(--accent-text); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 0; }
.button { display: inline-block; padding: 10px 22px; background: var(--ink); color: #fff; border-radius: 999px;
text-decoration: none; font-weight: 700; }
.button:hover { background: var(--accent); color: var(--ink); }
.source { color: var(--accent-text); font-weight: 600; }
footer { padding-top: 28px; padding-bottom: 48px; color: var(--muted); }
@media (min-width: 760px) {
.project { grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.links { flex-direction: column; align-items: flex-end; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .project { transition: none; } .project:hover { transform: none; } }
/* ---------- admin page ---------- */
[hidden] { display: none !important; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 14px; margin: 14px 0; }
.card .card { background: var(--paper); }
label { display: block; font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
label.chk { color: var(--ink); font-size: 1rem; margin-top: 12px; cursor: pointer; }
input, textarea, select { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line);
border-radius: 6px; background: #fff; color: var(--ink); }
input[type=checkbox] { width: auto; margin-right: 6px; transform: scale(1.2); }
textarea { min-height: 64px; }
.bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
button { font: inherit; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--ink); background: #fff;
color: var(--ink); cursor: pointer; }
button.primary { background: var(--ink); color: #fff; font-weight: 600; }
button.danger { color: var(--err); border-color: var(--err); }
button:disabled { opacity: .45; cursor: default; }
#status { position: sticky; top: 0; z-index: 5; padding: 10px 14px; margin: 14px auto; border-radius: 6px;
width: min(940px, calc(100% - 40px)); background: var(--card); border: 1px solid var(--line); }
#status.ok { border-color: var(--ok); color: var(--ok); }
#status.err { border-color: var(--err); color: var(--err); }
.hint { color: var(--muted); font-size: .9rem; }
/* ---------- admin: in-place editing (same look as the public page) ---------- */
.admin .top { padding-top: 64px; }
.mode { margin: 0 0 8px; color: var(--muted); font-size: .9rem; }
.admin main { padding-bottom: 120px; }
.admin .project:hover { transform: none; }
.ed { font: inherit; color: inherit; letter-spacing: inherit; line-height: inherit; background: transparent;
border: 1px dashed transparent; border-radius: 6px; padding: 2px 6px; margin: 0 -6px;
width: calc(100% + 12px); min-height: 0; resize: none; overflow: hidden; }
.ed:hover { border-color: var(--line); }
.ed:focus { border-color: var(--purple); background: #fff; outline: none; }
.ed::placeholder { color: var(--muted); opacity: .6; font-weight: 400; }
.head-ed h1 .ed { font-weight: 700; }
.head-ed h1 { margin-bottom: 0; }
.head-ed .tagline { display: block; }
.sec-bar { display: flex; align-items: center; gap: 10px; }
.sec-bar h2 { flex: 1; min-width: 0; }
h2 .ed { flex: 1; width: auto; min-width: 0; margin: 0; }
.ed.sec-desc { margin: 4px 0 4px 20px; width: calc(100% - 20px); }
.idrow { margin: 0 0 4px 26px; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.idrow .ed { width: 14em; margin: 0; font-size: .8rem; }
.handle { cursor: grab; user-select: none; color: var(--muted); font-size: 1.3rem; line-height: 1;
padding: 4px 8px; border: 1px dashed var(--line); border-radius: 6px; background: var(--card); flex: none; }
.handle:active { cursor: grabbing; }
.tools, .ptools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ptools { flex-direction: column; align-items: flex-end; }
.ptools select { width: auto; max-width: 12em; font-size: .85rem; padding: 4px 6px; }
button.sm { padding: 3px 10px; font-size: .85rem; }
.plist { min-height: 8px; }
.plist.empty-drop { min-height: 56px; margin-top: 14px; border: 2px dashed var(--line); border-radius: 10px;
display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; }
.plist.drop-in { border-color: var(--purple); background: rgba(185,128,255,.12); }
.sec > button.primary { margin-top: 14px; }
.ed-tags { font-size: .85rem; font-weight: 600; color: var(--accent-text); margin-bottom: 4px; }
.fl { display: flex; align-items: center; gap: 8px; font-size: .92rem; margin-top: 2px; }
.fl-l { flex: none; width: 56px; font-weight: 700; color: var(--accent-text); }
.fl .ed { flex: 1; width: auto; margin: 0; }
.text h3 .ed { font-weight: 700; }
.text textarea.ed { display: block; margin-bottom: 6px; max-width: 46em; }
.is-hidden { opacity: .55; }
.dragging { opacity: .35; }
.mark-before { box-shadow: 0 -5px 0 0 var(--purple) !important; }
.mark-after { box-shadow: 0 5px 0 0 var(--purple) !important; }
.savebar { position: sticky; bottom: 0; z-index: 6; background: rgba(237,241,245,.95); border-top: 1px solid var(--line);
padding: 12px 0; backdrop-filter: blur(4px); }
.savebar-in { max-width: 980px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }