Files
docker-webserver0/docker-persist/app/css/_typography.scss
2024-10-19 18:11:09 +00:00

122 lines
2.0 KiB
SCSS
Executable File

// Font Sizes
$base-font-size: 1em;
$h1-font-size: $base-font-size * 2.25;
$h2-font-size: $base-font-size * 2;
$h3-font-size: $base-font-size * 1.75;
$h4-font-size: $base-font-size * 1.5;
$h5-font-size: $base-font-size * 1.25;
$h6-font-size: $base-font-size;
// Line height
$base-line-height: 1.5;
$header-line-height: 1.25;
// Other Sizes
$base-border-radius: 3px;
$base-spacing: $base-line-height * 1em;
$base-z-index: 0;
// Borders
$base-border: 1px solid $base-border-color;
body {
@include font-feature-settings("kern","liga","frac", "pnum");
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
background-color: $base-background-color;
color: $base-font-color;
font-family: $base-font-family;
font-size: $base-font-size;
line-height: $base-line-height;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: $header-font-family;
line-height: $header-line-height;
margin: 0;
color: $base-heading-font-color;
}
h1 {
font-size: $h1-font-size;
}
h2 {
font-size: $h2-font-size;
}
h3 {
font-size: $h3-font-size;
}
h4 {
font-size: $h4-font-size;
}
h5 {
font-size: $h5-font-size;
}
h6 {
font-size: $h6-font-size;
}
p {
margin: 0 0 ($base-spacing / 2);
font-family: $paragraph-font-family;
}
a {
@include transition(color 0.1s linear);
color: $base-link-color;
text-decoration: none;
&:hover {
color: $base-hover-link-color;
border-color: $base-hover-link-color;
}
&:active, &:focus {
color: $base-hover-link-color;
border-color: $base-hover-link-color;
outline: none;
}
}
header {
color: $base-header-font-color;
}
hr {
border-bottom: $base-border;
border-left: none;
border-right: none;
border-top: none;
margin: $base-spacing 0;
}
img,
picture {
margin: 0;
max-width: 100%;
}
blockquote {
border-left: 2px solid $base-border-color;
color: lighten($base-font-color, 15);
margin: $base-spacing 0;
padding-left: $base-spacing / 2;
}
cite {
color: lighten($base-font-color, 25);
font-style: italic;
&:before {
content: "\2014 \00A0";
}
}