Category rail

Horizontal scroll-snap rail of category tiles — traditions on /library/, categories on /wiki/, reading paths on /read/.

≈ 2 min read 218 words Updated 2026-08-23

On this page

.category-rail is the horizontal scroll-snap showcase that sits near the top of section indexes — traditions on /library/, categories on /wiki/, reading paths on /read/. Each tile carries an icon, a label, and an optional count; clicking jumps the reader into the matching filtered view.

Source: themes/bifrost/sass/components/_category-rail.scss

Anatomy#

ClassWhat
.category-railContainer — top + bottom margin ($spacing-xl 0 $spacing-2xl).
.category-rail__headerTitle row with optional “see all” link.
.category-rail__titlefont-family-lead, prominent heading.
.category-rail__trackScroll-snap horizontal flex container.
.category-rail__tileOne tile — built on glass-cloud-card.
.category-rail__arrowsDesktop-only prev/next nav.
BehaviourWhat
TouchNative horizontal swipe.
DesktopTwo arrows (prev / next) advance one viewport at a time.
AutoplayNone. The rail is reader-driven.
ScrollbarHidden (scrollbar-width: none, ::-webkit-scrollbar).
SnapMandatory, snap-start on every tile.

Live examples#

  • Library traditions rail/library/ top of page.
  • Wiki categories rail/wiki/ top of page.
  • Reading paths rail/read/ top of page.

Edit this page on GitHub