trwnh.com/unified.test.hugo/assets/styles/common/typography.scss

60 lines
984 B
SCSS
Raw Permalink Normal View History

h1 {font-size: 2.027rem}
h2 {font-size: 1.802rem}
h3 {font-size: 1.602rem}
h4 {font-size: 1.424rem}
h5 {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;
}
ul, ol {
padding-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: -1em;
}
sub {
position: relative;
font-size: var(--script-size);
}