hackertours-theme/assets/sass/reset/sections/_sections.scss

76 lines
917 B
SCSS

// Sections
body {
// Remove the margin in all browsers.
margin: 0;
padding: 0;
}
// Headings
//
// All HTML headings, `<h1>` through `<h6>`, are available. `%h1` through `%h6`
// classes are also available, for when you want to match the font styling of a
// heading but not be a heading.
h1,
%h1,
h2,
%h2,
h3,
%h3,
h4,
%h4,
h5,
%h5,
h6,
%h6 {
@include margin-block(1);
color: var(--color-headings);
font-family: var(--ff-headings);
font-weight: var(--fw-headings);
line-height: var(--heading-line-height);
}
h1,
%h1 {
font-size: var(--fs-xxl);
}
h2,
%h2 {
font-size: var(--fs-xl);
}
h3,
%h3 {
font-size: var(--fs-l);
}
h4,
%h4 {
font-size: var(--fs-m);
}
h5,
%h5 {
font-size: var(--fs-s);
}
h6,
%h6 {
font-size: var(--fs-xs);
}
// Set max text line width for readability.
.main {
h2,
h3,
h4,
h5,
h6,
ul,
ol,
dl,
p {
max-width: var(--max-line-width);
}
}