Format additional elements

Add formatting for dl/dd/dt and samp, remove overflow:auto from inline elements
This commit is contained in:
mntn 2021-08-24 08:26:18 -04:00
parent 2dbfdf52a0
commit 060cea27a7
1 changed files with 22 additions and 2 deletions

View File

@ -101,6 +101,24 @@ ol li::marker {
color: var(--bright-bg);
}
dt {
margin: 0;
font-weight: bold;
}
dd {
margin: 0 0 0 1.5rem;
font-style: italic;
}
dd + dt {
margin-top: 1.5rem;
}
dl {
margin: 0 0 1.5rem 0;
}
/* Blockquotes */
blockquote {
position: relative;
@ -123,14 +141,15 @@ blockquote::before {
/* Code */
pre,
code,
kbd {
overflow-x: auto;
kbd,
samp {
background: var(--dark-bg) !important;
font-family: var(--font-monospace);
color: var(--bright-bg);
}
pre {
overflow-x: auto;
padding: 1.5rem;
margin: 0 0 1.5rem 0;
}
@ -158,6 +177,7 @@ hr:after {
color: var(--bright-bg);
}
/* Prevent super/sub from affecting line height */
sup, sub {
vertical-align: baseline;