updated css
This commit is contained in:
parent
301210fde8
commit
5611df962e
1 changed files with 187 additions and 152 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue