Skip to content

Commit 23b7d6f

Browse files
committed
Publications: drop dividers between papers; one-line layout when no thumb
- Remove the dotted border-top between publications inside a year group. - For pubs without a thumbnail, collapse authors / title / journal / links into one inline-flowing paragraph (matching the original site's typesetting). Pubs with a thumbnail keep the two-column layout.
1 parent a0ccaf2 commit 23b7d6f

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

assets/css/style.scss

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -451,11 +451,7 @@ hr { border: 0; border-top: 1px dotted $text-faint; margin: 2rem 0; }
451451
display: grid;
452452
grid-template-columns: 1fr;
453453
align-items: start;
454-
padding: 0.6rem 0;
455-
456-
/* Dividers only between publications (not before the first or after the
457-
last in a given year group). */
458-
& + .publication { border-top: 1px dotted $text-faint; }
454+
padding: 0.4rem 0;
459455

460456
/* When a thumbnail is present, switch to two-column layout. The thumbnail
461457
is fixed-width; height stays auto so the natural aspect ratio is
@@ -465,6 +461,18 @@ hr { border: 0; border-top: 1px dotted $text-faint; margin: 2rem 0; }
465461
gap: 1.25rem;
466462
}
467463

464+
/* Without a thumbnail, render authors / title / journal / links as a
465+
single flowing line — matching the original site's typesetting. */
466+
&:not(:has(.pub-thumb)) {
467+
.pub-text > p {
468+
display: inline;
469+
margin: 0;
470+
}
471+
.pub-authors::after,
472+
.pub-title::after,
473+
.pub-meta::after { content: " "; }
474+
}
475+
468476
.pub-thumb {
469477
width: 180px;
470478
height: auto;

0 commit comments

Comments
 (0)