nebulosa-css/src/headings.scss

62 lines
814 B
SCSS

@use "palette";
h1, h2, h3, h4, h5, h6 {
font-weight: 200;
margin: .75em 0 .25em 0;
}
h1 {
font-size: 3.2rem;
position: relative;
&::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 5rem;
height: .1rem;
background-color: palette.$primary;
}
}
h2 {
font-size: 2.4rem;
}
h3 {
font-size: 2.0rem;
}
h4 {
font-size: 1.8rem;
}
// NOTE: We don't recommend using h5 or h6...
h5 {
font-size: 1.6rem;
}
h6 {
font-size: 1.4rem;
}
header {
padding: 3rem 0;
> h1 {
margin: 0;
font-size: 6.4rem;
font-weight: 300;
&::before {
content: none;
}
}
> h2 {
margin: 0;
font-size: 4.8rem;
font-weight: 200;
}
}