trwnh.com/unified.test.hugo/assets/styles/common/typography.scss
2024-11-13 11:24:48 -06:00

67 lines
No EOL
1.1 KiB
SCSS

h1 {font-size: 2.027rem}
h2 {font-size: 1.802rem}
h3 {font-size: 1.602rem}
h4 {font-size: 1.424rem}
h5, .subtitle {font-size: 1.266rem}
h6 {font-size: 1.125rem}
h1, h2, h3, h4, h5, h6 {
line-height: 1.2;
margin-block-start: 2rem;
margin-block-end: 1rem;
font-weight: bold;
}
body {line-height: 2;}
pre {
line-height: 1.2;
font-family: monospace;
font-size: 1rem;
overflow: auto;
white-space: pre-wrap;
word-break: break-word;
tab-size: 3;
}
/* lists */
ul {list-style-type: disc;}
ol {list-style-type: decimal;}
ul, ol {
padding-inline-start: 0;
margin-inline-start: 0;
}
li {
margin-inline-start: 1em;
margin-block: 1em;
}
dt {
font-weight: bold;
}
dd {
margin-inline-start: 1em;
}
code {
font-family: monospace;
font-size: 1rem;
white-space: pre-wrap;
word-break: break-word;
}
a {
word-break: break-word;
}
/* semantics */
em {font-style: italic}
strong {font-weight: bold}
/* script */
html {
--script-size: 0.8em;
}
sup {
position: relative;
font-size: var(--script-size);
inset-block-start: -0.125em;
padding-inline: 0.125em;
}
sub {
position: relative;
font-size: var(--script-size);
inset-block-end: -0.125em;
padding-inline: 0.125em;
}