Glossary tooltip

Hover/focus tooltip that shows wiki definitions inline over `.glossary-term` links inside article bodies.

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

On this page

.glossary-tooltip is the floating panel that appears when a reader hovers or keyboard-focuses a .glossary-term link — typically the dotted underline wiki links rendered by the wiki shortcode. The panel previews the linked wiki entry’s summary so readers don’t have to leave the page to recall what a term means.

Source: themes/bifrost/sass/components/_glossary-tooltip.scss · themes/bifrost/templates/partials/glossary-tooltip.html

Anatomy#

ClassWhat it does
.glossary-termThe link itself: dotted underline (text-decoration-style: dotted) in --color-accent-primary, cursor: help. On hover the underline solidifies.
.glossary-tooltipThe panel — position: absolute, 300px wide, fades in on --visible.
.glossary-tooltip--belowVariant placed below the term when there’s no room above (set by JS).
ArrowCSS triangle pointing at the term; flips top/bottom with --below.

JavaScript handles fetching the summary, positioning above/below based on viewport room, and the visibility toggle. The panel content is preloaded into the page at build time so it doesn’t need a network round trip.

Live examples#

Hover any dotted wiki link inside an article body, e.g. the wikilinks in /articles/.

Edit this page on GitHub