You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
news: design overhaul — sticky feature, disclosure, images for text-only cards, badge size fix, mobile strip scroll [2026-05-15]
- Remove min-height: 100% from .news-feature (inert but confusing; feature was already sized correctly by align-items:start)
- Add position:sticky to .news-feature at min-width:993px — feature card stays in view while scrolling long card grids
- Progressive disclosure: show first 6 cards per section; Show N more button beneath grid; resets cleanly after shuffle
- Fix two text-only cards: WEF UNESCO + National Academies now have Wikimedia thumbnail images; onerror collapses grid column if load fails
- Source badge: 0.67rem→0.72rem, padding 0px 4px→1px 5px (WCAG legibility)
- Mobile (≤700px) news-latest__strip: flex horizontal scroll strip instead of 1-col stack; flex: 0 0 220px per item
- JS: image onerror handler collapses card grid column gracefully; initDisclosure() runs after shuffle on button click
Copy file name to clipboardExpand all lines: _pages/news.md
+50-2Lines changed: 50 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ _styles: |
83
83
</div>
84
84
</article>
85
85
<div class="news-theme__cards">
86
-
<article class="news-card news-card--text-only"><div><div class="news-meta">September 2023</div><h3 class="news-title"><span class="news-source">World Economic Forum</span><a href="https://www.weforum.org/stories/2023/09/unesco-world-heritage-sites-biodiversity/" target="_blank" rel="noopener">UNESCO World Heritage Sites and Biodiversity</a></h3></div></article>
86
+
<article class="news-card"><div><div class="news-meta">September 2023</div><h3 class="news-title"><span class="news-source">World Economic Forum</span><a href="https://www.weforum.org/stories/2023/09/unesco-world-heritage-sites-biodiversity/" target="_blank" rel="noopener">UNESCO World Heritage Sites and Biodiversity</a></h3></div><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/13/Fagus_sylvatica_forest.jpg/480px-Fagus_sylvatica_forest.jpg" alt="Ancient beech forest — UNESCO World Heritage forests harbour exceptional biodiversity and old-growth carbon stores" loading="lazy" onerror="this.closest('.news-card').style.gridTemplateColumns='1fr';this.style.display='none'"></article>
87
87
<article class="news-card"><div><div class="news-meta">June 2023</div><h3 class="news-title"><span class="news-source">Inside Climate News</span><a href="https://insideclimatenews.org/news/01062023/nature-carbon-storage-solutions/" target="_blank" rel="noopener">New Research Shows Global Climate Benefits Of Protecting Nature, but It's Not a Silver Bullet</a></h3></div><img src="https://insideclimatenews.org/wp-content/uploads/2023/05/forest-getty-scaled.jpg" alt="Forest carbon storage" loading="lazy"></article>
88
88
<article class="news-card"><div><div class="news-meta">2023</div><h3 class="news-title"><span class="news-source">NAU News</span><a href="https://news.nau.edu/goetz-forest-research/" target="_blank" rel="noopener">Why protecting forests means reduced emissions at global scale</a></h3></div><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Rainforest_Fatu_Hiva.jpg/960px-Rainforest_Fatu_Hiva.jpg" alt="Tropical rainforest, Fatu Hiva — dense forest canopy as global carbon sink" loading="lazy"></article>
89
89
<article class="news-card"><div><div class="news-meta">August 2022</div><h3 class="news-title"><span class="news-source">Mongabay</span><a href="https://news.mongabay.com/2022/08/protecting-global-forests-with-a-limited-budget-new-study-shows-where-and-when-to-start/" target="_blank" rel="noopener">Protecting global forests with a limited budget? New study shows where and when to start</a></h3></div><img src="https://imgs.mongabay.com/wp-content/uploads/sites/20/2022/06/17045519/sabah_RAB.jpg" alt="Borneo forest conservation" loading="lazy"></article>
@@ -170,7 +170,7 @@ _styles: |
170
170
</div>
171
171
</article>
172
172
<div class="news-theme__cards">
173
-
<article class="news-card news-card--text-only"><div><div class="news-meta">2022</div><h3 class="news-title"><span class="news-source">National Academies of Sciences</span><a href="https://www.nationalacademies.org/projects/DELS-BEST-20-02" target="_blank" rel="noopener">Research at Multiple Scales: A Vision for Continental Scale Biology</a></h3></div></article>
173
+
<article class="news-card"><div><div class="news-meta">2022</div><h3 class="news-title"><span class="news-source">National Academies of Sciences</span><a href="https://www.nationalacademies.org/projects/DELS-BEST-20-02" target="_blank" rel="noopener">Research at Multiple Scales: A Vision for Continental Scale Biology</a></h3></div><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Aerial_view_of_the_Okavango_Delta.jpg/480px-Aerial_view_of_the_Okavango_Delta.jpg" alt="Aerial view of a continental ecosystem — research at multiple biological scales from organisms to landscapes" loading="lazy" onerror="this.closest('.news-card').style.gridTemplateColumns='1fr';this.style.display='none'"></article>
<article class="news-card"><div><div class="news-meta">July 2014</div><h3 class="news-title"><span class="news-source">Phys.org</span><a href="https://phys.org/news/2014-07-ecologists-efficient-theory.html" target="_blank" rel="noopener">Ecologists need ‘efficient theory’ to make sense of all the data</a></h3></div><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/50/Terrestrial_Ecoregions_of_the_World.jpg/960px-Terrestrial_Ecoregions_of_the_World.jpg" alt="WWF Terrestrial Ecoregions of the World — global biodiversity data demanding coherent ecological theory" loading="lazy"></article>
176
176
</div>
@@ -179,6 +179,42 @@ _styles: |
179
179
</div>
180
180
181
181
<script>
182
+
functioninitDisclosure() {
183
+
// Remove any existing show-more buttons before re-initialising
0 commit comments