-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyles.css
More file actions
368 lines (310 loc) · 6.59 KB
/
Copy pathstyles.css
File metadata and controls
368 lines (310 loc) · 6.59 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
/* Font definition */
@font-face {
font-family: 'BerkeleyMono';
src: url('fonts/2504072KY1XK1K62/TX-02-78ZWYZYW/BerkeleyMonoTrial-Regular.otf') format('opentype');
font-weight: normal;
font-style: normal;
}
/* Common body styling */
body {
font-family: 'BerkeleyMono', monospace;
background-color: #ffffff;
color: #000;
margin: 0;
padding: 50px;
line-height: 1.6;
display: flex;
justify-content: center;
}
.container {
width: 100%;
max-width: 800px;
}
/* Header styling */
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 50px;
}
/* Logo styling and animation */
@keyframes logo-click {
0% {
transform: scale(1);
}
50% {
transform: scale(0.95) rotate(2deg);
}
100% {
transform: scale(1) rotate(0deg);
}
}
.logo img {
max-width: 100px;
height: auto;
transition: transform 0.2s ease;
}
.logo img:active {
animation: logo-click 0.3s ease-in-out;
}
.nav a {
margin-left: 20px;
color: inherit;
text-decoration: none;
transition: font-weight 0.2s;
}
.nav a:hover {
font-weight: bold;
}
/* Content links styling */
.content a {
color: #000;
text-decoration: none;
border-bottom: 1px dotted #000;
}
.content a:hover {
border-bottom: 1px solid #000;
}
/* Article list styling */
.article-list {
width: 100%;
max-width: 800px;
margin-top: 40px;
}
.article-list div {
display: flex;
justify-content: space-between;
border-bottom: 1px dotted #000;
padding: 5px 0;
}
.article-list a:hover div {
border-bottom: 1px solid #000;
}
/* Blog post styling */
.post .content {
font-family: 'Georgia', serif;
}
.post-title {
font-size: 1.5rem;
font-weight: bold;
border-bottom: 1px solid #000;
padding-bottom: 5px;
margin-bottom: 15px;
}
.post-date {
color: #888;
font-size: 1rem;
margin-bottom: 30px;
}
.content {
font-size: 1rem;
}
/* Home page specific */
.title {
font-size: 2rem;
font-weight: bold;
margin-bottom: 20px;
}
.subtitle {
color: #888;
font-size: 1.1rem;
margin-bottom: 40px;
}
/* Form styling */
.subscribe-form {
margin-top: 30px;
width: 100%;
max-width: 500px;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 5px;
}
.form-group input {
width: 100%;
padding: 8px;
font-family: 'BerkeleyMono', monospace;
border: 1px dotted #000;
background-color: transparent;
font-size: 1rem;
box-sizing: border-box;
}
.form-group input:focus {
outline: none;
border: 1px solid #000;
}
.submit-btn {
background-color: transparent;
border: 1px dotted #000;
color: #000;
padding: 8px 16px;
font-family: 'BerkeleyMono', monospace;
font-size: 1rem;
cursor: pointer;
transition: all 0.2s;
}
.submit-btn:hover {
border: 1px solid #000;
font-weight: bold;
}
.success-message {
margin-top: 30px;
padding: 15px;
border: 1px solid #000;
}
.table-scroll {
overflow-x: auto;
margin: 1rem 0;
/* optionally: text-align: center; if you have inline elements you need centered. */
}
.table-scroll table {
margin: 0 auto;
/* <-- this centers the table block */
border-collapse: collapse;
table-layout: fixed;
/* or auto, whatever you prefer */
}
.table-scroll th,
.table-scroll td {
padding: 0.5rem 0.75rem;
border: 1px solid #999;
vertical-align: middle;
}
/* stick the header, give it a thicker bottom rule */
.table-scroll thead th {
position: sticky;
top: 0;
background: #f0f0f0;
border-bottom: 2px solid #666;
font-weight: 600;
text-align: center;
z-index: 2;
}
.table-scroll th {
/* instead of white-space: normal; */
white-space: pre-line;
/* preserve newline characters as breaks */
word-wrap: break-word;
/* fallback for very long words */
overflow-wrap: break-word;
text-align: center;
padding: 0.5rem 0.75rem;
}
/* zebra striping */
.table-scroll tbody tr:nth-child(even) {
background: #fafafa;
}
/* hover highlight */
.table-scroll tbody tr:hover {
background: #f5f5f5;
}
/* make the first column narrow and centered */
.table-scroll th:nth-child(1),
.table-scroll td:nth-child(1) {
width: 6ch;
/* roughly 6 zeroes wide */
text-align: center;
}
/* right-align all other (numeric) columns */
.table-scroll th:nth-child(n+2),
.table-scroll td:nth-child(n+2) {
text-align: right;
white-space: nowrap;
/* prevent numbers wrapping */
}
img {
max-width: 100%;
/* never overflow its parent */
height: auto;
/* preserve aspect ratio */
display: block;
/* prevents stray descender gaps in some layouts */
}
/* Centered figures */
.figure-center {
text-align: center;
/* centers both image and caption */
margin: 2rem 0;
/* breathing room above & below */
}
.figure-center img {
display: inline-block;
/* keeps the SVG’s natural size */
max-width: 100%;
/* responsive down-scaling */
height: auto;
}
.figure-center figcaption {
margin-top: 0.5rem;
font-size: 0.9rem;
/* slightly smaller than body text */
}
/* In your CSS file (or inside a <style> block) */
.code-container {
width: 100%;
background-color: #2e3440;
/* dark background */
border-radius: 6px;
padding: 1rem;
overflow-x: auto;
/* enable horizontal scrolling */
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
margin: 1em 0;
}
.code-container::-webkit-scrollbar {
height: 8px;
}
.code-container::-webkit-scrollbar-thumb {
background-color: rgba(255, 255, 255, 0.3);
border-radius: 4px;
}
.code-container pre {
margin: 0;
font-family: 'BerkeleyMono', monospace;
font-size: 0.95rem;
line-height: 1.4;
color: #eceff4;
/* light text */
white-space: pre;
/* preserve all spacing, no wrapping */
}
/* Optional: highlight comments and keywords */
.code-container code {
display: block;
}
.code-container code span.comment {
color: #616e88;
}
.code-container code span.keyword {
color: #81a1c1;
font-weight: bold;
}
/* Footnote styling */
.footnote-ref {
color: #007bff;
text-decoration: none !important;
vertical-align: super;
font-size: 0.8em;
border-bottom: none !important;
}
.footnotes {
margin-top: 2em;
padding-top: 1em;
border-top: 1px solid #ddd;
font-size: 0.9em;
}
.footnote {
margin-bottom: 0.5em;
}
.footnote-marker {
color: #000;
margin-right: 0.5em;
}
.footnote-return {
color: #007bff;
text-decoration: none;
margin-left: 0.5em;
}