Element Module
The Element module provides a flexible base wrapper for inline elements with configurable font size, gaps, height, weight, and strong emphasis handling.
Signature:
scss
@mixin use-element();
Example:
scss
@include termeh.use-element();
Dependencies
Element module uses the following Termeh global var()
:
Component | Type | Usage | Default |
---|---|---|---|
gap → micro | Number | Spacing between items | 8px |
control → height | Number | Element line height | 2.2em |
control → weight | Number | Element font weight | null |
control → strong | Number | Font weight for strong child elements | null |
Element module uses the following Termeh size()
:
Size | Usage | Default |
---|---|---|
small | Font size for small items | error |
Child Elements
b
,strong
→ applies strong inline stylei
,em
→ applies italic inline styleu
,ins
→ applies underline styles
,del
→ applies strikethrough style with smaller fontsup
→ applies superscript style with smaller top-aligned textsub
→ applies subscript style with smaller bottom-aligned textsmall
→ applies smaller text style.icon
→ applies inline icon style, inherits text color