Skip to content

Commit 2c59cee

Browse files
committed
CSS: layout and typography updates across news, people, and research pages
- News: vertically center thumbnail images in desktop grid - People: switch grid to flexbox with justify-content:center so incomplete rows center - People section headings: match publication-year style (2.25rem, weight 400) - Research: add .research-heading class (1.4rem bold, teal .accent at 1.68rem, .large at 2.1rem)
1 parent 750e29e commit 2c59cee

1 file changed

Lines changed: 26 additions & 9 deletions

File tree

assets/css/style.scss

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,20 @@ hr { border: 0; border-top: 1px dotted $text-faint; margin: 2rem 0; }
250250
.word-research-2 { width: 138px; height: 121px; background-position: 0 -69px; }
251251
.word-research-3 { width: 138px; height: 84px; background-position: 0 -191px; }
252252

253+
.research-heading {
254+
margin: 0.5rem 0 0;
255+
align-self: start;
256+
font-family: "Raleway", sans-serif;
257+
font-size: 1.4rem;
258+
font-weight: 700;
259+
color: $text;
260+
line-height: 1.2;
261+
letter-spacing: -0.01em;
262+
.accent { color: $accent-hover; font-size: 1.68rem; }
263+
.thin { font-weight: 300; }
264+
.large { font-size: 2.1rem; }
265+
}
266+
253267
.word-resources-online,
254268
.word-resources-resources {
255269
display: inline-block;
@@ -416,15 +430,17 @@ hr { border: 0; border-top: 1px dotted $text-faint; margin: 2rem 0; }
416430
/* ---------- people ---------- */
417431

418432
.people-grid {
419-
display: grid;
420-
grid-template-columns: repeat(4, 1fr);
433+
display: flex;
434+
flex-wrap: wrap;
435+
justify-content: center;
421436
gap: 1.75rem 1.25rem;
422437
margin: 1.5rem 0 2.5rem;
423438
}
424439

425-
@media (max-width: $bp-tablet) { .people-grid { grid-template-columns: repeat(3, 1fr); } }
426-
@media (max-width: $bp-phone) { .people-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; } }
427-
@media (max-width: 420px) { .people-grid { grid-template-columns: 1fr; } }
440+
.person-card { width: calc(25% - 1rem); }
441+
@media (max-width: $bp-tablet) { .person-card { width: calc(33.33% - 1rem); } }
442+
@media (max-width: $bp-phone) { .person-card { width: calc(50% - 0.75rem); } .people-grid { gap: 1.25rem 1rem; } }
443+
@media (max-width: 420px) { .person-card { width: 100%; } }
428444

429445
.person-card {
430446
display: flex;
@@ -464,8 +480,9 @@ hr { border: 0; border-top: 1px dotted $text-faint; margin: 2rem 0; }
464480

465481
.section-heading {
466482
color: $accent-hover;
467-
font-size: 1.3rem;
468-
font-weight: 800;
483+
font-size: 2.25rem;
484+
font-weight: 400;
485+
line-height: 1;
469486
margin: 2rem 0 1rem;
470487
padding-bottom: 0.5rem;
471488
border-bottom: 1px dotted $text-faint;
@@ -644,7 +661,7 @@ hr { border: 0; border-top: 1px dotted $text-faint; margin: 2rem 0; }
644661
display: grid;
645662
grid-template-columns: 220px 1fr;
646663
gap: 1.5rem;
647-
align-items: start;
664+
align-items: center;
648665
padding: 1.25rem 0;
649666
border-bottom: 1px dotted $text-faint;
650667

@@ -654,7 +671,7 @@ hr { border: 0; border-top: 1px dotted $text-faint; margin: 2rem 0; }
654671
object-fit: contain;
655672
background: transparent;
656673
border-radius: 3px;
657-
align-self: start;
674+
align-self: center;
658675
justify-self: end;
659676
}
660677
.news-date {

0 commit comments

Comments
 (0)