Repository navigation
Expand file tree
/
Copy pathnhp.sass
More file actions
392 lines (353 loc) · 6.81 KB
/
Copy pathnhp.sass
File metadata and controls
392 lines (353 loc) · 6.81 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
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
$desktop: 960px
=mobile
@media screen and (max-width: $desktop - 1px)
@content
=desktop
@media screen and (min-width: $desktop)
@content
$pale: #F5EBB0
$purple: #7F4B61
$black: #333
$gray: lighten($black, 20)
$light-gray: lighten($black, 50)
$less-pale: darken($pale, 20)
@font-face
font-family: 'Bona Nova'
font-style: normal
font-weight: 700
src: local('Bona Nova Bold')
src: url('../fonts/BonaNova-Bold.woff2') format('woff2')
@font-face
font-family: 'Bona Nova'
font-style: normal
font-weight: 400
src: local('Bona Nova Regular')
src: url('../fonts/BonaNova-Regular.woff2') format('woff2')
@font-face
font-family: 'Bona Nova'
font-style: italic
font-weight: 400
src: local('Bona Nova Italic')
src: url('../fonts/BonaNova-Italic.woff2') format('woff2')
*
box-sizing: border-box
$width: 800px
html
margin: 0
font-family: Bona Nova, Times New Roman, serif
background: $pale
color: $black
display: flex
justify-content: center
body
width: 100%
max-width: 1200px
margin: 0
+mobile
-webkit-text-size-adjust: 100%
.home
+desktop
flex: 1
display: grid
grid-template-columns: 1fr 320px
grid-template-rows: auto auto
.header
grid-area: 1 / 1 / 2 / 2
.photo
grid-area: 1 / 2 / 3 / 3
.content
padding: 0 30px
+mobile
padding: 0 12px
.photo
margin-top: 30px
+mobile
img
width: 200px
display: block
margin: 0 auto
.main
justify-content: center
p, ul, ol, .date, .blog-navigation
font-size: 24px
+mobile
font-size: 18px
line-height: 1.5
ul
list-style-type: none
padding-left: 32px
+mobile
padding-left: 18px
a
color: $purple
text-decoration: none
&:hover
text-shadow: 0 0 3px $purple
figure
display: flex
flex-direction: column
gap: 12px
figcaption
text-align: center
h1
text-align: center
letter-spacing: 3px
font-size: 72px
+mobile
font-size: 36px
font-variant: small-caps
h2
font-size: 48px
+mobile
font-size: 30px
font-weight: 400
.timeline-item
font-size: 30px
+mobile
font-size: 18px
display: flex
.year
text-align: right
padding-right: 36px
flex: 0
flex-basis: 120px
+mobile
padding-right: 18px
flex-basis: 60px
font-variant-numeric: lining-nums
font-weight: bold
.items
flex: 1
.talk
margin-bottom: 12px
.event
font-variant: small-caps
.event-line
font-size: 22px
+mobile
font-size: 14px
.poems-list
ul
margin: 0 0 1em 0
.author
margin: 0
font-weight: bold
.poem
max-width: 900px
margin: 0 auto
padding-top: 72px
+mobile
padding-top: 36px
.title, .author
line-height: 1.5
margin-top: 0
margin-bottom: 0.5em
text-align: center
.title
font-size: 60px
+mobile
font-size: 30px
.author
font-size: 36px
+mobile
font-size: 24px
.line
line-height: 1.5
min-height: 1rem
text-indent: -3em
margin: 0 0 0 3em
.blog-post &
padding: 1em 0
margin-left: 3em
+mobile
margin-left: 0
.right
text-align: right
.center
text-align: center
.aside
width: 320px
flex: 0
.original-title
font-style: italic
.blog
padding: 0 18px
.blog-post
margin-top: 60px
+mobile
margin-top: 30px
&.has-subtitle
h2.title
margin-bottom: 12px
.post-categories
padding-left: 0
display: inline
list-style: none
li
display: inline
&:after
content: ", "
&:last-child:after
content: ""
h2.title, h3.subtitle
margin-bottom: 24px
font-weight: bold
font-variant-numeric: lining-nums
text-align: center
h2.title
font-size: 48px
+mobile
font-size: 30px
code
font-size: 40px
h3.subtitle
margin-top: 0px
font-size: 36px
+mobile
font-size: 24px
code
font-size: 30px
h2
font-size: 30px
font-weight: bold
h3
font-size: 24px
font-weight: bold
.date
font-style: italic
text-align: center
margin: 0
.body, .blog-navigation, .blog-header
max-width: $width
margin-left: auto
margin-right: auto
.blog-navigation
margin-bottom: 60px
+desktop
display: flex
.prev, .next
flex: 1
+mobile
.prev, .next
display: block
margin-bottom: 12px
.prev
text-align: left
.next
text-align: right
img
display: block
max-width: 100%
margin: 0 auto
ul
list-style-type: disc
table
margin: 0 auto
border-collapse: collapse
tr.header
border-bottom: 1px solid $black
th, td
padding: 6px 12px
font-variant-numeric: lining-nums
font-size: 24px
.center
text-align: center
pre, code
font-family: Ubuntu Mono, Menlo, Inconsolata, Consolas, monospace
font-size: 20px
+mobile
font-size: 16px
line-height: 1.25
pre
width: calc(100vw - 36px)
position: relative
left: calc(-50vw + 50% + 18px)
overflow-x: auto
code
display: block
width: max-content
min-width: $width
margin: 0 auto
padding: 0
hr
border: none
width: 50%
border-bottom: 1px solid $black
.blog-header
margin-top: 60px
+mobile
margin-top: 30px
width: 100%
display: flex
align-items: baseline
justify-content: space-between
.blog-title
+mobile
display: none
.big
text-shadow: 0 0 2px $black
text-align: left
font-size: 30px
line-height: 1.25
margin: 0
font-style: italic
.small
margin: 0
letter-spacing: 1px
text-align: center
font-size: 18px
.blog-header-menu
list-style-type: none
text-align: right
li
display: inline-block
margin-left: 18px
.bubble-wrap
display: flex
flex-direction: row
padding-bottom: 24px
.author
object-fit: contain
width: 48px
height: 48px
align-self: end
flex-grow: 0
flex-shrink: 0
margin-bottom: -24px
.bubble
--r: 1em /* the radius */
--t: 1.5em /* the size of the tail */
flex: 1
max-width: 100%
padding: 1em
border-inline: var(--t) solid #0000
border-radius: calc(var(--r) + var(--t))/var(--r)
mask: radial-gradient(100% 100% at var(--_p) 0,#0000 99%,#000 102%) var(--_p) 100%/var(--t) var(--t) no-repeat, linear-gradient(#000 0 0) padding-box
pre
position: static
width: auto
left: 0
p:first-child
margin-top: 0
p:last-child
margin-bottom: 0
&.me
.author
margin-left: 9px
content: url(/img/dj.jpg)
order: 1
.bubble
background: $less-pale
--_p: 100%
border-bottom-right-radius: 0 0
place-self: end
&.claude
.author
content: url(/img/blog/claude-logo.svg)
margin-right: 9px
.bubble
background: $purple
color: $pale
--_p: 0
border-bottom-left-radius: 0 0
place-self: start