Skip to content

Commit

Permalink
style: update css for inline/block <code> element
Browse files Browse the repository at this point in the history
  • Loading branch information
kimminss0 committed Oct 29, 2024
1 parent 246fef0 commit f801d41
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,30 @@ article .header {

}

:not(pre) > code {
background: #f5f5f5;
padding: 2px 4px;
border-radius: 3px;
color: #444;
code {
font-size: 95%;
font-family: Menlo, Monaco, Consolas, 'Lucida Console', monospace;
margin: 0;
hyphens: manual;
}

pre {
background: #f5f5f5;
margin: 1em 0;
background-color: #f5f5f5;
padding: 8px 15px;
border-radius: 5px;
overflow-x: auto;
overflow: auto;
}
pre code {
padding: 0;
overflow: visible;
overflow-wrap: normal;
}
.sourceCode {
background-color: #f5f5f5;
overflow: visible;
}
div.sourceCode {
border-radius: 5px;
}

img {
Expand Down

0 comments on commit f801d41

Please sign in to comment.