pico/scss/inline/_superscript.scss
2025-10-24 00:10:27 +02:00

20 lines
421 B
SCSS

/** SASS for the <sup> HTML element
*
* Add your styles here
*/
@use "sass:map";
@use "../settings" as *;
@if map.get($modules, "content/typography") {
// Prevent `sub` and `sup` elements from affecting the line height in all browsers
#{$parent-selector} sup {
position: relative;
font-size: 0.75em;
line-height: 0;
vertical-align: baseline;
}
#{$parent-selector} sup {
top: -0.5em;
}
}