Content hero

Shared hero-section styling for pages with featured imagery — gradient background, image overlay, responsive height collapse.

Updated 2026-08-23

On this page

.content-hero is the shared hero-section primitive used by templates that want a featured image or animated gradient header above the content body. Used by Articles, Newsroom Dispatches, and other long-form templates with featured imagery.

Source: themes/bifrost/sass/components/_content-shared.scss

Anatomy#

ClassWhat
.content-hero300px tall (200px on < 768px), rounded 12px corners.
.content-hero--no-imageVariant — animated gradient blend ($color-primary → $color-secondary → $color-accent). 15s ease-in-out loop.
.content-hero__imageThe featured image, object-fit cover.
.content-hero__overlayGradient overlay so text on top stays legible.
.content-hero__contentCentred title + meta block on top of the image.

The animated gradient on the --no-image variant uses @keyframes gradient-shift to slowly cycle the gradient position — similar in spirit to glass-cloud-card, but full-bleed and not blur-treated.

Live examples#

  • Articles — top of any /articles/ page when the page has a featured image.
  • Dispatches — top of any /news/ entry.

Edit this page on GitHub