Skip to content

Commit 4abe120

Browse files
committed
Mobile home: show only first banner pane; expand callouts to single line
- .home-banner mobile: background-size auto 100% -> auto 200%, position top-left. logo_home.png is two carousel panes stacked vertically; at 200% height the top pane fills the 200px container exactly and the bottom (cloud biochemistry) is offscreen below. - Add class='callout-break' to all <br> tags inside .home-callout-left and .home-callout-right; hide them on mobile via media query so the text flows across the page as a single line instead of multiple lines. - .home-callout-right font-weight 700 -> 400 (regular); strong inside drops to 700 — so only 'biomolecule sequences' is bold; the rest of the line is regular weight.
1 parent e6f764a commit 4abe120

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

assets/css/style.scss

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,11 @@ hr { border: 0; border-top: 1px dotted $text-faint; margin: 2rem 0; }
227227
}
228228
.home-callout-right {
229229
font-size: 1.5rem;
230-
font-weight: 700;
230+
font-weight: 400;
231231
text-align: left;
232232
line-height: 1.1;
233233
color: $text;
234-
strong { color: inherit; font-weight: 800; }
234+
strong { color: inherit; font-weight: 700; }
235235
.accent { color: $accent-hover; }
236236
}
237237

@@ -351,6 +351,10 @@ hr { border: 0; border-top: 1px dotted $text-faint; margin: 2rem 0; }
351351
}
352352
.home-callout-left,
353353
.home-callout-right { text-align: center; }
354+
355+
/* Collapse the multi-line line breaks so the callouts flow as a single
356+
line across the page on phone/tablet widths. */
357+
.callout-break { display: none; }
354358
}
355359

356360
/* ---------- people ---------- */
@@ -846,8 +850,12 @@ details.show-more {
846850
.home-banner {
847851
aspect-ratio: auto;
848852
height: 200px;
849-
background-size: auto 100%;
850-
background-position: 100% 50%;
853+
/* logo_home.png is two carousel panes stacked (1022x696 = 1022x348 +
854+
1022x348). Scale the image so its full height = 2x container,
855+
making each pane exactly the container height; then anchor at the
856+
top-left so only the FIRST pane (RNA fold & function) is visible. */
857+
background-size: auto 200%;
858+
background-position: 0 0;
851859
}
852860
/* Drop the desktop 5% breakout — at narrow viewports it caused horizontal
853861
overflow / scroll. */

index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ slug: home
1515
</div>
1616

1717
<div class="home-callouts">
18-
<p class="home-callout-left">what<br><span class="accent">we do</span></p>
18+
<p class="home-callout-left">what<br class="callout-break"><span class="accent">we do</span></p>
1919
<p class="home-mission">
2020
Our lab seeks an agile and predictive understanding of how RNAs code for information processing and replication in living systems. We are creating new computational and chemical tools to enable the precise modeling and design of these RNAs.
2121
</p>
22-
<p class="home-callout-right">we strive to predict<br>how <strong>biomolecule<br><span class="accent">sequences</span></strong> code<br>for their behavior.</p>
22+
<p class="home-callout-right">we strive to predict<br class="callout-break">how <strong>biomolecule<br class="callout-break"><span class="accent">sequences</span></strong> code<br class="callout-break">for their behavior.</p>
2323
</div>

0 commit comments

Comments
 (0)