-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
341 lines (298 loc) · 6.95 KB
/
Copy pathstyles.css
File metadata and controls
341 lines (298 loc) · 6.95 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
:root {
--bg: #FFFFFF;
--fg: #736955;
--muted: rgba(115, 105, 85, 0.75);
--border: rgba(0, 0, 0, 0.1);
--accent: #EFB33A;
--sidebar-bg: #FFFDF0;
}
[data-theme="dark"] {
--bg: #1a1a1a;
--fg: #e0e0e0;
--muted: rgba(224, 224, 224, 0.75);
--border: rgba(255, 255, 255, 0.1);
--accent: #EFB33A;
--sidebar-bg: #2a2a2a;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Helvetica Neue", Arial, sans-serif;
color: var(--fg);
background: var(--bg);
}
a { color: var(--accent); }
.layout { display: flex; min-height: 100vh; }
.sidebar {
width: 280px;
flex: 0 0 280px;
background: var(--sidebar-bg);
border-right: 1px solid var(--border);
position: sticky;
top: 0;
height: 100vh;
padding-bottom: 24px;
}
.sidebar-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 12px 16px;
border-bottom: 1px solid var(--border);
}
.header-left {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
}
.header-icon {
width: 24px;
height: 24px;
object-fit: contain;
flex-shrink: 0;
}
#closeSidebar {
display: none;
font-size: 16px;
line-height: 1;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
width: 40px;
height: 36px;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
-webkit-tap-highlight-color: transparent;
color: var(--fg);
}
#closeSidebar:hover { background: rgba(0, 0, 0, 0.03); }
[data-theme="dark"] #closeSidebar:hover { background: rgba(255, 255, 255, 0.05); }
#closeSidebar:focus-visible {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(239,179,58,0.25);
}
.theme-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
width: 50px;
height: 28px;
background: transparent;
border: none;
border-radius: 14px;
cursor: pointer;
padding: 0;
transition: all .2s ease;
-webkit-tap-highlight-color: transparent;
}
.toggle-track {
width: 100%;
height: 100%;
background: #e0e0e0;
border-radius: 14px;
position: relative;
transition: background .2s ease;
}
[data-theme="dark"] .toggle-track {
background: var(--accent);
}
.toggle-slider {
width: 20px;
height: 20px;
background: white;
border-radius: 50%;
position: absolute;
top: 4px;
left: 4px;
transition: transform .2s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .toggle-slider {
transform: translateX(22px);
background: var(--sidebar-bg);
}
.theme-toggle:hover .toggle-track {
opacity: 0.8;
}
.theme-toggle:focus-visible {
outline: none;
box-shadow: 0 0 0 3px rgba(239,179,58,0.25);
}
.theme-icon {
font-size: 16px;
line-height: 1;
}
.nav-list { padding: 8px; }
.nav-section-header {
margin: 16px 0 8px 0;
padding: 0 12px;
font-size: 16px;
font-weight: 800;
color: var(--muted);
letter-spacing: 0.5px;
}
.nav-section-header:first-child {
margin-top: 8px;
}
.nav-item {
display: block;
padding: 10px 12px 10px 24px;
margin: 4px 0;
border-radius: 8px;
color: var(--fg);
text-decoration: none;
}
.nav-list a:hover { background: rgba(0, 0, 0, 0.03); }
.nav-list a.active {
background: rgba(239, 179, 58, 0.15);
color: var(--accent);
}
.content-wrap { flex: 1 1 auto; min-width: 0; }
.hamburger {
display: none;
margin: 12px 16px 0;
font-size: 20px;
line-height: 1;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
width: 40px;
height: 36px;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
-webkit-tap-highlight-color: transparent;
color: var(--fg);
}
.hamburger:hover { background: rgba(0, 0, 0, 0.03); }
[data-theme="dark"] .hamburger:hover { background: rgba(255, 255, 255, 0.05); }
.hamburger:focus-visible {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(239,179,58,0.25);
}
.content {
max-width: 820px;
margin: 24px auto 80px;
padding: 0 24px 0 24px;
}
.content .empty { color: var(--muted); }
.content h1, .content h2, .content h3,
.content h4, .content h5, .content h6 {
line-height: 1.3;
margin: 32px 0 16px;
font-weight: 700;
}
.content h1 { font-size: 2rem; }
.content h2 { font-size: 1.6rem; }
.content h3 { font-size: 1.25rem; }
.content p {
line-height: 2.0;
margin: 18px 0;
text-indent: 0;
padding: 0;
letter-spacing: 0.02em;
}
.content ul, .content ol { padding-left: 1.4em; margin: 16px 0; }
.content li {
margin: 12px 0;
line-height: 1.8;
padding-left: 4px;
}
.content img {
max-width: 100%;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--bg);
}
.content blockquote {
margin: 16px 0;
padding: 8px 12px;
border-left: 4px solid var(--border);
color: var(--muted);
background: rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .content blockquote {
background: rgba(255, 255, 255, 0.05);
}
.content aside {
display: block;
align-items: flex-start;
gap: 12px;
margin: 16px 0;
padding: 12px 14px;
border: 1px solid var(--border);
border-left: 4px solid var(--accent);
border-radius: 8px;
background: rgba(239,179,58,0.08);
color: var(--fg);
}
[data-theme="dark"] .content aside {
background: rgba(239,179,58,0.15);
}
.content aside p { margin: 6px 0; }
.content aside > :first-child { margin-top: 0; }
.content pre { overflow: auto; }
.content pre, .content code {
font-family: "D2Coding", monospace;
}
.content pre code {
display: block;
padding: 14px 16px;
background: rgba(0, 0, 0, 0.03);
border: 1px solid var(--border);
border-radius: 8px;
font-weight: normal !important;
color: var(--fg) !important;
font-style: normal !important;
text-decoration: none !important;
}
[data-theme="dark"] .content pre code {
background: rgba(255, 255, 255, 0.05);
}
.content :not(pre) > code {
padding: 2px 6px;
background: rgba(0, 0, 0, 0.03);
border: 1px solid var(--border);
border-radius: 6px;
font-weight: normal !important;
color: var(--fg) !important;
font-style: normal !important;
text-decoration: none !important;
}
[data-theme="dark"] .content :not(pre) > code {
background: rgba(255, 255, 255, 0.05);
}
.content table {
width: 100%;
border-collapse: collapse;
margin: 16px 0;
font-size: 0.95rem;
}
.content th, .content td {
border: 1px solid var(--border);
padding: 8px 10px;
text-align: left;
}
.content thead th { background: var(--sidebar-bg); }
@media (max-width: 960px) {
.sidebar {
position: fixed;
left: -300px;
top: 0;
height: 100vh;
box-shadow: 0 2px 20px rgba(0,0,0,0.12);
transition: left .2s ease;
z-index: 1000;
}
body.sidebar-open .sidebar { left: 0; }
#closeSidebar { display: inline-flex; }
.hamburger { display: inline-flex; }
}