Huesos
Style
Guide

Repositoire

GitHub

Preview

Sub Sup

Normalizes font-size and prevents sub and sup elements from affecting the line height in all browsers.

Example

<p>When a <sub>sub</sub> or a <sup>sup</sup> text appears, citations are often the reason behind</p>

Assets

  • Filesystem Path: src/components/typography/sub-sup/_sub-sup.scss
  • Size: 167 Bytes
  • Content:
    sub,
    sup {
    	@include ritmo-font-size($h6-font-size);
    	line-height: 0;
    	position: relative;
    	vertical-align: baseline;
    }
    
    sub {
    	bottom: -.25em;
    }
    
    sup {
    	top: -.5em;
    }