fixed code block indentation in css
This commit is contained in:
parent
245919cb73
commit
c6cd90001a
1 changed files with 11 additions and 3 deletions
|
@ -141,13 +141,20 @@ pre {
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
/* Inline code styling */
|
||||||
background-color: #1d1d1d;
|
:not(pre) > code {
|
||||||
color: #d5d5d5;
|
|
||||||
padding: 0.2em 0.4em;
|
padding: 0.2em 0.4em;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
background-color: #1d1d1d;
|
||||||
|
color: #d5d5d5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Block code styling (inherits from pre) */
|
||||||
|
pre code {
|
||||||
|
padding: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
small {
|
small {
|
||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
|
@ -234,3 +241,4 @@ small a {
|
||||||
color: var(--main-small-text-color);
|
color: var(--main-small-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue