Basic working code view
This commit is contained in:
parent
f46ca670fe
commit
fd6b96f03d
3 changed files with 35 additions and 1 deletions
|
@ -0,0 +1,22 @@
|
|||
/* Set the font for code blocks */
|
||||
code {
|
||||
font-family: "Iosevka Web", monospace;
|
||||
}
|
||||
|
||||
/* Styling for inline code blocks */
|
||||
:not(pre) > code {
|
||||
padding: 0 0.25rem;
|
||||
}
|
||||
|
||||
/* Styling for fenced code blocks */
|
||||
pre > code {
|
||||
display: block;
|
||||
white-space: pre-wrap;
|
||||
padding: 1rem;
|
||||
border-radius: 0.55rem / 0.5rem;
|
||||
word-wrap: normal;
|
||||
overflow: auto;
|
||||
}
|
||||
pre {
|
||||
width: 90%;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue