-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
185 lines (166 loc) · 11.3 KB
/
Copy pathstyle.css
File metadata and controls
185 lines (166 loc) · 11.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
:root {
--bg: #f6f7fb;
--panel: #ffffff;
--ink: #1f2330;
--muted: #6b7180;
--faint: #9aa0ad;
--line: #e7e9f0;
--brand: #4f46e5;
--brand-soft: #eef0ff;
--shadow: 0 1px 2px rgba(20, 24, 40, .05), 0 4px 16px rgba(20, 24, 40, .04);
--radius: 14px;
}
* { box-sizing: border-box; }
html, body {
margin: 0;
background: var(--bg);
color: var(--ink);
font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
/* ---- top bar ---- */
.topbar {
position: sticky; top: 0; z-index: 10;
background: rgba(255, 255, 255, .85);
backdrop-filter: saturate(1.4) blur(8px);
border-bottom: 1px solid var(--line);
}
.topbar-inner {
max-width: 920px; margin: 0 auto; padding: 10px 20px;
display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 18px; }
.brand-name { letter-spacing: -.01em; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; min-width: 0; }
.crumbs .sep { color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs .here { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-spacer { flex: 1; }
.signin {
border: 1px solid var(--line); background: var(--panel); color: var(--ink);
padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 600;
cursor: pointer;
}
.signin:hover { border-color: var(--brand); color: var(--brand); }
.account { display: flex; align-items: center; gap: 8px; }
.avatar-sm { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12.5px; background: var(--brand); }
.me-name { font-size: 13.5px; color: var(--ink); font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signout { border: 1px solid var(--line); background: var(--panel); color: var(--muted); padding: 5px 10px; border-radius: 999px; font: inherit; font-size: 12.5px; cursor: pointer; }
.signout:hover { border-color: var(--brand); color: var(--brand); }
/* ---- layout ---- */
main { max-width: 920px; margin: 0 auto; padding: 26px 20px 60px; }
.page-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; }
.page-head h1 { font-size: 22px; margin: 0; letter-spacing: -.02em; }
.page-head p { margin: 0; color: var(--muted); font-size: 14px; }
.btn {
border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 600; font-size: 14px;
padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.btn:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.spacer { flex: 1; }
/* ---- cards / lists ---- */
.list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-top: 1px solid var(--line); cursor: pointer; }
.row:first-child { border-top: 0; }
.row:hover { background: #fafbff; }
/* category row */
.cat-badge { width: 12px; align-self: stretch; border-radius: 6px; flex: none; }
.cat-body { flex: 1; min-width: 0; }
.cat-title { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.cat-desc { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.cat-meta { text-align: right; color: var(--muted); font-size: 13px; flex: none; min-width: 92px; }
.cat-meta b { color: var(--ink); }
/* topic row */
.topic-main { flex: 1; min-width: 0; }
.topic-title { font-weight: 600; font-size: 15.5px; }
.topic-sub { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.topic-stat { text-align: center; flex: none; min-width: 52px; }
.topic-stat .n { font-weight: 700; }
.topic-stat .l { color: var(--faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.topic-when { color: var(--muted); font-size: 13px; flex: none; min-width: 72px; text-align: right; }
/* ---- topic (thread) view ---- */
.thread-head { margin: 0 0 18px; }
.thread-head h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.02em; }
.thread-head .meta { color: var(--muted); font-size: 13.5px; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 14px; display: flex; gap: 14px; }
.post.op { border-color: #d9dcff; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; }
.post-body { flex: 1; min-width: 0; }
.post-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.post-author { font-weight: 700; }
.post-when { color: var(--faint); font-size: 12.5px; }
.edited { color: var(--faint); font-size: 12px; font-style: italic; }
.post-text { color: #2a2f3d; word-wrap: break-word; overflow-wrap: anywhere; }
.post-text p { margin: 0 0 10px; }
.post-text p:last-child { margin-bottom: 0; }
.post-text ul, .post-text ol { margin: 6px 0 10px; padding-left: 22px; }
.post-text li { margin: 2px 0; }
.post-text code { background: #f0f1f6; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.post-text .md-pre { background: #f7f8fb; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; margin: 4px 0 12px; }
.post-text .md-pre code { background: none; border: 0; padding: 0; }
.post-text blockquote { margin: 4px 0 12px; padding: 6px 14px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 8px 8px 0; color: #44485a; }
.post-text .md-h { margin: 6px 0 8px; line-height: 1.25; }
.post-text h3.md-h { font-size: 19px; } .post-text h4.md-h { font-size: 16px; } .post-text h5.md-h { font-size: 14px; }
.post-text a { word-break: break-all; }
.mention { color: var(--brand); font-weight: 600; }
/* new-topic inline form */
.newtopic { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 18px; }
.newtopic .nt-title { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 600; font-size: 16px; margin-bottom: 10px; }
.newtopic .nt-body { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; resize: vertical; min-height: 96px; }
.newtopic input:focus, .newtopic textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
/* compose */
.compose { margin-top: 6px; }
.compose textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; resize: vertical; min-height: 84px; }
.compose textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.compose-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.unsaved { background: #fff4e5; color: #9a5b00; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.new-pill { background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; vertical-align: middle; letter-spacing: .02em; }
/* post action row: like + quote + edit + delete */
.post-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.like { border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; font-size: 13px; padding: 4px 11px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.like:hover { border-color: #f0a; color: #e11d6b; }
.like.liked { border-color: #f5b3cd; background: #fff0f6; color: #e11d6b; }
.like-n { font-weight: 600; }
.pact { border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; font-size: 13px; padding: 4px 11px; border-radius: 999px; cursor: pointer; }
.pact:hover { border-color: var(--brand); color: var(--brand); }
.pact.danger:hover { border-color: #e11d48; color: #e11d48; }
/* inline post edit */
.post-edit { margin-top: 6px; }
.post-edit .pe-title { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.post-edit .pe-body { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; resize: vertical; min-height: 90px; }
.post-edit textarea:focus, .post-edit input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
/* topic-list last poster */
.lastby { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
/* category edit icon + form */
.icon-btn { border: 1px solid var(--line); background: var(--panel); color: var(--muted); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; flex: none; font-size: 14px; line-height: 1; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.catform { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 14px; }
.catform-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.catform .cf-color { width: 40px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; flex: none; }
.catform .cf-name { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 600; font-size: 16px; }
.catform .cf-desc { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; }
.catform input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
/* edit form shown inside a category row breaks to full width */
.row:has(.catform) { flex-wrap: wrap; }
.row .catform { flex-basis: 100%; margin: 12px 0 0; box-shadow: none; border-color: var(--brand-soft); }
/* ---- toast ---- */
.toast {
position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(12px);
background: #1f2330; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13.5px;
box-shadow: 0 6px 24px rgba(20, 24, 40, .25); opacity: 0; pointer-events: none; transition: all .22s ease; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* ---- misc ---- */
.notice { background: #fffaf0; border: 1px solid #f3e2bd; color: #7a5b14; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 18px; }
.foot { max-width: 920px; margin: 0 auto; padding: 24px 20px 40px; color: var(--faint); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.foot-phase { color: var(--brand); opacity: .8; }
@media (max-width: 560px) {
.cat-meta, .topic-stat { display: none; }
.crumbs { display: none; }
}