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); 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 */ /* Blockquotes */
blockquote { blockquote {
position: relative; position: relative;
@ -123,14 +141,15 @@ blockquote::before {
/* Code */ /* Code */
pre, pre,
code, code,
kbd { kbd,
overflow-x: auto; samp {
background: var(--dark-bg) !important; background: var(--dark-bg) !important;
font-family: var(--font-monospace); font-family: var(--font-monospace);
color: var(--bright-bg); color: var(--bright-bg);
} }
pre { pre {
overflow-x: auto;
padding: 1.5rem; padding: 1.5rem;
margin: 0 0 1.5rem 0; margin: 0 0 1.5rem 0;
} }
@ -158,6 +177,7 @@ hr:after {
color: var(--bright-bg); color: var(--bright-bg);
} }
/* Prevent super/sub from affecting line height */ /* Prevent super/sub from affecting line height */
sup, sub { sup, sub {
vertical-align: baseline; vertical-align: baseline;