-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
304 lines (266 loc) · 6.46 KB
/
Copy pathstyles.css
File metadata and controls
304 lines (266 loc) · 6.46 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
/* --- 1. The Layout Skeleton (Crucial Fixes) --- */
body {
/* Center the page content */
max-width: 800px;
margin: 0 auto;
padding: 40px 20px;
/* Top/Bottom padding, Side gutters */
/* Typography Foundation */
font-family: "Charter", "Bitstream Charter", "Sitka Text", Cambria, serif;
background-color: #FDFCF9;
color: #292524;
line-height: 1.6;
}
/* --- 2. Taming the "Overblown" Images --- */
/* This forces images to never exceed the text column width */
img,
figure {
max-width: 100%;
height: auto;
display: block;
margin: 2rem auto;
/* Center images vertically and horizontally */
border-radius: 2px;
/* Slight polish */
}
/* Optional: Add a subtle border to white-background charts so they don't bleed into the page */
img {
border: 1px solid rgba(0, 0, 0, 0.05);
}
/* --- 3. Math & Code Layout --- */
/* Ensure code blocks don't stretch the page */
pre,
code {
background-color: #F7F5F0;
/* Slightly darker than body */
border-radius: 4px;
font-size: 0.9em;
overflow-x: auto;
/* Scroll horizontally if code is too long */
}
/* Display Math Spacing */
.katex-display {
margin: 2em 0;
overflow-x: auto;
overflow-y: hidden;
}
/* --- 4. Navigation & Header Polish --- */
/* If you have a navbar, we need to constrain it too if theme is 'none' */
header,
nav {
max-width: 100%;
margin-bottom: 3rem;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
padding-bottom: 1rem;
}
.site-nav {
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin-bottom: 1rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.08em;
align-items: center;
}
.site-nav-spacer {
flex: 1;
}
/* Search page input */
.post-search {
width: 100%;
max-width: 750px;
display: block;
margin: 1.25rem auto 2rem;
padding: 0.7rem 0.9rem;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 6px;
background: #FDFCF9;
color: #292524;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 1rem;
}
.post-search:focus {
outline: none;
border-color: #A55233;
box-shadow: 0 0 0 3px rgba(165, 82, 51, 0.15);
}
.site-nav a {
border-bottom: none;
}
a {
color: #8B4513;
text-decoration: none;
border-bottom: 1px solid rgba(0, 75, 135, 0.2);
border-bottom-color: rgba(139, 69, 19, 0.2);
}
a:hover {
color: #A55233;
/* Rust */
border-bottom-color: #A55233;
}
/* --- 5. Theorem Environments (Refined) --- */
.theorem,
.lemma,
.proof {
margin: 2em 0;
padding-left: 1.5em;
border-left: 3px solid #2E2E2E;
}
.theorem-title {
font-weight: bold;
font-family: sans-serif;
/* Contrast against serif body */
font-size: 0.9em;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 0.5em;
display: block;
}
/* --- MAIN PAGE: The "Journal" Listing Layout --- */
/* 1. Container Reset */
.quarto-listing-default {
max-width: 750px;
/* Slightly narrower than posts for elegance */
margin: 0 auto;
}
.list {
list-style: none;
/* No bullets */
padding: 0;
}
/* 2. The Individual Article Card */
.quarto-post {
padding-bottom: 1.5rem;
margin-bottom: 1.5rem;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
transition: transform 0.2s ease;
}
/* Optional: Slight shift on hover */
.quarto-post:hover {
transform: translateX(5px);
}
/* 3. The Date & Metadata (Top Line) */
.listing-date,
.listing-reading-time {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: #666;
margin-bottom: 0.5rem;
display: inline-block;
}
/* Add a separator between date and reading time */
.listing-reading-time::before {
content: "•";
margin: 0 0.5em;
color: #ccc;
}
/* 4. The Title */
a.listing-title {
display: block;
font-family: "Charter", serif;
font-size: 1.8rem;
/* Large and confident */
font-weight: 700;
color: #2E2B2B !important;
/* Almost black */
line-height: 1.2;
margin-bottom: 0.75rem;
border-bottom: none !important;
/* Remove link underline for title */
}
a.listing-title:hover {
color: #A55233 !important;
/* Oxford Blue on hover */
}
/* 5. The Abstract/Description */
.listing-description {
font-family: "Charter", serif;
font-size: 1.1rem;
color: #444;
line-height: 1.6;
margin-bottom: 1rem;
}
.listing-description .toc {
display: none;
}
/* 6. Categories (Tags) */
/* --- Minimalist Categories (No Box) --- */
.listing-categories {
margin-top: 0.5rem;
/* Tighter to the description */
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
/* --- Listing pagination polish --- */
.listing-no-matching {
display: none;
}
.listing-pagination .pagination {
list-style: none;
padding: 0;
margin: 2rem 0 0;
display: flex;
gap: 0.5rem;
justify-content: center;
}
.listing-pagination .page-item {
margin: 0;
}
.listing-pagination .page-link {
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 4px;
padding: 0.35rem 0.6rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 0.85rem;
color: #2E2B2B;
text-decoration: none;
border-bottom: none;
}
.listing-pagination .page-link:hover {
border-color: #A55233;
color: #A55233;
}
.listing-pagination .page-item.active .page-link {
background-color: #A55233;
color: #fff;
border-color: #A55233;
}
.listing-category {
/* Resetting the box model */
border: none;
background-color: transparent;
border-radius: 0;
padding: 0;
/* Typography */
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
/* Wide spacing for elegance */
color: #78716C;
/* Light grey, subtle */
/* Layout */
margin-right: 0;
cursor: pointer;
transition: color 0.2s ease;
}
/* Optional: Add a subtle hash symbol before tags to denote topic */
.listing-category::before {
content: "#";
color: #ddd;
/* Very faint hash */
margin-right: 2px;
}
/* Interaction */
.listing-category:hover {
color: #A55233;
/* Oxford Blue */
background-color: transparent;
border-color: transparent;
}