Skip to content

Element Module

The Element module provides a flexible base wrapper for inline elements with configurable font size, gaps, height, weight, and strong emphasis handling.

NormalBoldItalicUnderlineStrikeSupSubSmall

Signature:

scss
@mixin use-element();

Example:

scss
@include termeh.use-element();
Dependencies

Element module uses the following Termeh global var():

ComponentTypeUsageDefault
gapmicroNumberSpacing between items8px
controlheightNumberElement line height2.2em
controlweightNumberElement font weightnull
controlstrongNumberFont weight for strong child elementsnull

Element module uses the following Termeh size():

SizeUsageDefault
smallFont size for small itemserror

Child Elements

  • b, strong → applies strong inline style
  • i, em → applies italic inline style
  • u, ins → applies underline style
  • s, del → applies strikethrough style with smaller font
  • sup → applies superscript style with smaller top-aligned text
  • sub → applies subscript style with smaller bottom-aligned text
  • small → applies smaller text style
  • .icon → applies inline icon style, inherits text color