Update sass reset and componets to use modern css and internal mixins to replace typey.

This commit is contained in:
Fredrik Jonsson 2023-01-25 10:05:44 +01:00
commit 3fdb351a8a

View file

@ -7,14 +7,13 @@
code,
kbd,
samp {
@extend %monospace;
font-family: var(--ff-monospace);
}
// Small text
// Mark text
small {
// Add the correct font size in all browsers.
@include font-size(s);
mark {
@extend %highlight-mark;
}
// Superscript / Subscript
@ -23,7 +22,7 @@ sub,
sup {
// Prevent `sub` and `sup` elements from affecting the line height in
// all browsers.
@include font-size(xs);
font-size: var(--fs-xs);
line-height: 0;
position: relative;
vertical-align: baseline;