updated css

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

View file

@ -128,6 +128,7 @@ li::marker {
a { a {
color: var(--main-link-color); color: var(--main-link-color);
text-decoration: underline;
} }
a:hover { a:hover {
@ -170,7 +171,14 @@ pre {
white-space: pre; white-space: pre;
word-wrap: break-word; word-wrap: break-word;
overflow-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; font-size: 0.95em;
} }
@ -186,10 +194,19 @@ pre {
/* Inline code styling */ /* Inline code styling */
:not(pre) > code { :not(pre) > code {
padding: 0.2em 0.4em; padding: 0.2em 0.4em;
border-radius: 3px;
background-color: #1d1d1d;
color: #d5d5d5;
font-size: 0.85em; 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) */ /* Block code styling (inherits from pre) */
@ -323,7 +340,14 @@ tbody tr:hover {
} }
table code { table code {
font-family: monospace; font-family:
ui-monospace,
SFMono-Regular,
SF Mono,
Menlo,
Consolas,
Liberation Mono,
monospace;
font-size: 0.85em; font-size: 0.85em;
background: #1d1d1d; background: #1d1d1d;
padding: 0.1em 0.25em; padding: 0.1em 0.25em;
@ -336,4 +360,15 @@ caption {
color: var(--main-small-text-color); 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);
}