wp-73k/assets/css/_svg-icons.scss

28 lines
377 B
SCSS
Executable file

/*
SVG ICON SYSTEM
per https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
*/
.icon {
display: inline-flex;
align-self: center;
}
.icon svg,
.icon img {
height: 1em;
width: 1em;
fill: currentColor;
}
.icon.baseline svg,
.icon img {
top: 0.15em;
position: relative;
}
svg {
&.img {
fill: currentColor;
}
}