summaryrefslogtreecommitdiff
path: root/design/sass/_details.scss
blob: 74965fdd9e28f900db46159ce7d87e8df664c5ba (plain)
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
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
.content {
    margin-top: 3rem;
}
//************** archive grids  **********************************{{{
.archive-grid {
    margin-top: 2rem;
    list-style-type: none;
    padding: 0;
    @include constrain_wide;
    @include breakpoint(alpha) {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-gap: 20px;
        row-gap: 1rem;
    }
}
.archive-grid-quad {
    //used for books and related posts in detail pages
    list-style-type: none;
    padding: 0;
    @include breakpoint(alpha) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 15px;
    }
    @include breakpoint(beta) {
        grid-template-columns: 1fr 1fr 1fr;
    }
    @include breakpoint(epsilon) {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}
.related .archive-grid-quad {
    //there's only 4 related items so override the 
    //3-grid at breakpoint beta
    @include breakpoint(beta) {
        grid-template-columns: 1fr 1fr;
    }
}
.archive-grid-double {
    // homepage recent
    @include breakpoint(alpha) {
        grid-template-columns: 1fr 1fr;
        row-gap: 1rem;
        grid-gap: 16px;
    }
}
.archive-grid-single {
    // homepage popular
    @include breakpoint(alpha) {
        grid-template-columns: 1fr;
        row-gap: 1rem;
        grid-gap: 16px;
    }
}
.recent-popular {
    // get popular and recent lined up
    // side by side on the hompage
    @include constrain_wide;
    @include breakpoint(alpha) {
        display: flex;
        flex-direction: row;
        width: calc(100% + 30px);
        .popular {
            margin-left: 30px;
        }
    }
}
.archive-grid-card {
    //container object for cards (usually an article tag)
    a {
        text-decoration: none;
    }
}
.archive-grid-card-simple {
    //container object for cards with no dek
    line-height: 1;
    margin-bottom: 1.4rem;
}
.related {
    //special rules for related post grid
    //on detail pages in jrnl and src
    ul {
        list-style-type: none;
        padding: 0;
    }
    .card-hed {
        text-align: center;
        @include fancy_sans;
        @include fontsize(20);
        margin: 1rem auto .25rem;
    }
    .card-smcap {
        text-align: center;
    }
}
//}}}
//************** archive cards **********************************{{{
.card-smcaps, .post-smcaps {
    // formats date and location lines as small caps
    @include smcaps;
    @include fontsize(13);
    font-weight: bold;
    margin: 0;
    color: $body_font_light;
}
.card-hed {
    // main headline of the card
    @include fontsize(32);
    color: darken($body_font_light,15);
    margin: 0;
    line-height: 1;
}
.card-hed-it {
    // italic variant of card hed
    // used on jrnl archives
    @include fontsize(26);
    line-height: 1.3;
    font-style: italic;
    margin: .25rem 0 .5rem;

}
.card-hed-smit {
    // smaller italic variant of card hed
    // used on homepage
    @include fontsize(22);
    line-height: 1.3;
    font-style: italic;
    margin: .25rem 0 .5rem;

}
.card-hed-btm {
    // hed with a little bottom margin
    // used in book list
    margin-bottom: .5rem;
}
.card-image-sm {
    // smaller card image
    // used on homepage
    max-height: 180px;
    overflow: hidden;
    margin-bottom: .5rem;
    img {
        margin-top: -20%;
    }
}
.card-image-tiny {
    // even smaller card image used for 
    // related posts on detail pages
    max-height: 120px;
    overflow: hidden;
    margin-bottom: .5rem;
    img {
        width: 100%;
        margin-top: -20%;
    }
}
.card-lede {
    // subtitle or lede
    @include fontsize(20);
    color: darken($body_font_light,5);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}
.card-dek {
    // used for p test on jrnl page and elsewhere
    @include fontsize(16);
    line-height: 1.6;
    margin: 0 0 .5rem;
}
.card-stars {
    // ratings on books
    @include fontsize(16);
    display: block;
}
.read-in {
    // makes read in date in books look good
    display: block;
}
.circle-img-wrapper {
    // small images next to archive lists
    border-radius: 50%;
    width: 106px;
    height: 106px;
    overflow: hidden;
    float: left;
    border: 3px solid #666;
    img {
        width: 160px;
        max-width: 160px;
    }
    @include breakpoint(beta) {
        margin-left: -128px;
        margin-top: -2px;
    }
}
//}}}
//************** header, dateline and expanding map **************{{{
.post-header {
    @include constrain_narrow;
    color: #555;
    padding-bottom: 2.6rem;
    margin-bottom: 2.6rem;
    border-bottom: 1px solid #efefef;
    text-align: center;
    @include breakpoint(beta) {
        text-align: left;
    }
}
.post-linewrapper {
    border-top: 1px solid #efefef;
}
.post-linewrapper, .post-linewrapper h3 {
    color: lighten($secondary-link-color, 15);
    margin-top: 1rem;
    padding-top: 1rem;
    display: inline-block;
    @include smcaps;
    @include fancy_sans;
    @include fontsize(14);
    font-weight: 600;
    text-align: center;
    a {
        color: lighten($secondary-link-color, 15);
    }
    time {
        color: $secondary-link-color
    }
    @include breakpoint(beta) {
        text-align: left;
    }
}
.post-linewrapper h3 {
    display: inline;
}
.post-source {
    @include smcaps;
    @include fancy_sans;
    @include fontsize(14);
    font-weight: 600;
    margin: 0;
}
.map {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
#detail-map-canvas {
    height: 400px;
    width: 98vw;
    position: relative;
    left: 49%;
    right: 49%;
    margin-left: -48vw;
    margin-right: -49vw;
}
.lttr .post-header, .lttr .post-linewrapper, .lttr .post-linewrapper h3 {
    text-align: center;
}
.post-title {
    letter-spacing: -1px;
    margin-bottom: .25rem;
}
.post-subtitle {
    @include fontsize(22);
    font-style: italic;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
    @include breakpoint(beta) {
        text-align: left;
    }
}
//}}}
//************** post detail *************************************{{{
.post-body > *:not(.picwide):not(.cluster), .post-article > *:not(.picwide):not(.cluster):not(.highlight) {
    @include constrain_narrow;
}
.post-body .picwide, .post-body .cluster {
    @include constrain_wide;
}
.post-article {
    h3  {
        @include fancy_sans;
        @include fontsize(26);
        font-weight: bold;
    }
    h4, h3 {
        margin: 3rem 0 0 0;
        line-height: 1.4;
    }
    h4+p, h3+p {
        margin-top: .125rem;
    }
    h5 {
        @include fancy_sans;
        @include fontsize(20);
    }
    ul {
        @include fontsize(22);
        list-style: circle;
        margin-left: 2.5em;
        list-style-position: outside;
        margin-bottom: 2.4em;
    }
}
.picwide {
    @include breakpoint(alpha) {
    }
}
.picwide img {
    max-width: 98%;
    @include breakpoint(alpha) {
        max-width: 100%;
    }
}
p + .picwide {
    margin-top: 1.75rem;
    @include breakpoint(alpha) {
        margin-top: 2.6rem;
    }
}
.row-2 {
    display: flex;
    flex-direction: row;
    gap: .5rem;
    * > {
        margin-left: 5px;
    }
}
//}}}
//************** post footer *************************************{{{
.entry-footer {
    @include constrain_narrow;
    border-top: 3px double #efefef;
    border-bottom: 3px double #efefef;
    margin-top: 3rem;
    padding: 2rem;
    h3 {
        font-weight: 600;
        @include smcaps;
        @include fontsize(16);
    }
    ul {
        padding: 0;
        font-size: 96%;
        list-style-type: none;
        ul {
            list-style-type: disc;
            padding-left: 2rem;
            li {
                color: $secondary-link-color;
            }
        }
    }
    @include breakpoint(gamma) {
        display: flex;
        flex-direction: row;
        ul {
            display: flex;
            flex-direction: column;
            font-size: 92%;
        }
    }
}
//}}}
//************** next/previous / you might also / footnotes ******{{{
//}}}
//************** homepage banner and other special elements*******{{{
.homepage-section-header {
    @include fontsize(28);
    @include fancy_sans;
}
.banner {
    .post-image {
        position: relative;
        max-height: 900px;
        overflow: hidden;
    }

    @include breakpoint(beta) {
        figcaption {
            position: absolute;
            margin: 0;
            bottom: 0;
            width: 100%;
            z-index: 100;
            background: rgba(0,0,0,0.6);
        }
    }
    .large-top-image {
        position: relative;
        max-height: 900px;
        overflow: hidden;
        max-width: 100%;
        img {
            margin: 0;
        }
        @include breakpoint(beta) {
            img {
                margin-top: -120px;
            }
        }
    }
}
.hero-text-wrapper {
    text-align: center;
    margin-bottom: 1rem;
    .post-title {
        @include fontsize(36);
    }
    @include breakpoint(beta) {
        color: white;
        .post-title {
            @include fontsize(42);
            margin-bottom: .5rem;
        }
        .post-subtitle, .post-date, .post-location {
            text-align: center;
            a {
                text-decoration: none;
                @include fontsize(14);
                padding: 0;
                border: none;
            }
        }
    }
    .post-date {
        display: none;
    }
    .post-linewrapper {
        border-color: #6a6a6a;
        text-align: center;
        margin-top: .25rem;
        padding-top: .25rem;
    }
    .btn {
        color: white;
        text-align: center;
        margin: .5rem auto;
    }
}
.homepage-bio {
    margin: 3rem auto;
    @include constrain_wide;
    @include breakpoint(alpha) {
        margin: 6rem auto;
    }
}
.homepage-map-img {
    @include breakpoint(alpha) {
        float: left;
        width: 350px;
        margin-right: 2rem;
    }
}
.homepage-next {
    margin-top: 3rem;
    @include constrain_wide;
    h5  {
        text-align: center;
    }
    a {
        @include fontsize(14);
        @include fancy_sans;
        @include smcaps;
        font-weight: 500;
        text-decoration: none;
        padding: 12px 10px 12px;
        border: $link_color 1px solid;
        &:after {
            content: "\21E2";
            margin-left: 4px;
        }
        &:hover {
            background: $link_color;
            color: white;
        }
    }
}
// About page
#about-luxagraf .circle-pic {
    margin: 0 auto;
    display: block;
    @include breakpoint(gamma) {
        float: left;
        margin-left: -250px;
    }
}
.circle-pic {
    border-radius: 50%;
    border: 3px solid #000;
}
//}}}
//A few Mailing list specific styles
.large-top-image{
    background: #f7f7f7;
    img {
        max-width: 100%;
        margin: 4rem 0;
    }
}
.list-hed{
    @include fontsize(32);
}
.list-subhed {
    @include fontsize(26);
    font-style: italic;
    margin-bottom: 0;

}
//
.section {
    margin-top: 6rem;
}