Skip to content

Commit

Permalink
set code block font family to monospace
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanThatOneKid committed Mar 28, 2024
1 parent 1c1656e commit d9a653a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions static/md.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,16 @@

.markdown-body pre,
.markdown-body code {
font-family: monospace;
background-color: #f8f8f8;
border: 1px solid #ddd;
border-radius: 3px;
padding: 0.1em 0.2em;
}

.markdown-body pre * {
font-family: monospace;
}

.markdown-body pre code {
display: block;
padding: 1em;
Expand All @@ -94,7 +97,6 @@

.markdown-body pre:before {
content: attr(data-lang);
font-size: 1.2em;
display: block;
text-transform: uppercase;
text-decoration: underline;
Expand Down

0 comments on commit d9a653a

Please sign in to comment.