Skip to content

Commit c4dd2fb

Browse files
committed
Mobile hero: left-justify; force logo heights via CSS classes
- background-position right -> left so the photo aligns left and the gray block + tab stay visible on the right. - Replace the height='15'/'30' HTML attributes on the footer logos with CSS classes (.logo-stanford-medicine, .logo-hhmi) and explicit height rules in the stylesheet — guards against any cached or browser-quirk case where the height attribute didn't win.
1 parent 3435d85 commit c4dd2fb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

_includes/footer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
</div>
66
<div class="institutional-logos">
77
<a href="https://med.stanford.edu/" target="_blank" rel="noopener noreferrer external">
8-
<img src="{{ '/assets/images/site/public/nav_logo_stanford_medicine.png' | relative_url }}" alt="Stanford Medicine" height="15">
8+
<img class="logo-stanford-medicine" src="{{ '/assets/images/site/public/nav_logo_stanford_medicine.png' | relative_url }}" alt="Stanford Medicine">
99
</a>
1010
<a href="https://www.hhmi.org/scientists/rhiju-das" target="_blank" rel="noopener noreferrer external">
11-
<img src="{{ '/assets/images/site/public/nav_logo_hhmi.jpg' | relative_url }}" alt="Howard Hughes Medical Institute" height="30">
11+
<img class="logo-hhmi" src="{{ '/assets/images/site/public/nav_logo_hhmi.jpg' | relative_url }}" alt="Howard Hughes Medical Institute">
1212
</a>
1313
</div>
1414
</footer>

assets/css/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ hr { border: 0; border-top: 1px dotted $text-faint; margin: 2rem 0; }
192192
aspect-ratio: auto;
193193
height: 200px;
194194
background-size: auto 100%;
195-
background-position: right center;
195+
background-position: left center;
196196
}
197197
.page-hero-tab {
198198
width: 80%;

0 commit comments

Comments
 (0)