updated css

This commit is contained in:
Daniel Fichtinger 2025-07-13 16:03:58 -04:00
parent 301210fde8
commit 5611df962e

View file

@ -98,7 +98,7 @@ h4 {
font-weight: bold;
}
article h1+h4:first-of-type {
article h1 + h4:first-of-type {
margin-block-start: 0rem;
}
@ -128,6 +128,7 @@ li::marker {
a {
color: var(--main-link-color);
text-decoration: underline;
}
a:hover {
@ -170,7 +171,14 @@ pre {
white-space: pre;
word-wrap: break-word;
overflow-wrap: break-word;
font-family: monospace;
font-family:
ui-monospace,
SFMono-Regular,
SF Mono,
Menlo,
Consolas,
Liberation Mono,
monospace;
font-size: 0.95em;
}
@ -186,10 +194,19 @@ pre {
/* Inline code styling */
:not(pre) > code {
padding: 0.2em 0.4em;
border-radius: 3px;
background-color: #1d1d1d;
color: #d5d5d5;
font-size: 0.85em;
line-height: 1;
background-color: #1d1d1d;
border-radius: 6px;
vertical-align: middle;
font-family:
ui-monospace,
SFMono-Regular,
SF Mono,
Menlo,
Consolas,
Liberation Mono,
monospace;
}
/* Block code styling (inherits from pre) */
@ -323,7 +340,14 @@ tbody tr:hover {
}
table code {
font-family: monospace;
font-family:
ui-monospace,
SFMono-Regular,
SF Mono,
Menlo,
Consolas,
Liberation Mono,
monospace;
font-size: 0.85em;
background: #1d1d1d;
padding: 0.1em 0.25em;
@ -336,4 +360,15 @@ caption {
color: var(--main-small-text-color);
}
a > code {
text-decoration: none;
color: inherit;
}
a:has(> code) {
text-decoration: none;
}
a:hover > code {
background-color: var(--main-transparent);
}