Skip to content

Commit

Permalink
Merge pull request #1 from irfansofyana/improve-code-blocks
Browse files Browse the repository at this point in the history
improve code blocks
  • Loading branch information
irfansofyana authored Jan 9, 2025
2 parents 553cbe1 + 6f3c056 commit 9540963
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1815,3 +1815,35 @@ body:has(.home-wrapper) > .container > *:not(.home-wrapper) {
padding: 0.1rem 0.4rem;
border-radius: 10px;
}

/* Code block styles */
pre {
overflow-x: auto;
white-space: pre;
word-wrap: normal;
background-color: var(--code-bg);
border-radius: 6px;
padding: 1rem;
margin: 1rem 0;
}

pre code {
display: block;
min-width: 100%;
padding: 0;
background: none;
}

code {
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
font-size: 0.9em;
padding: 0.2em 0.4em;
background-color: var(--code-bg);
border-radius: 3px;
}

.highlight {
position: relative;
overflow-x: auto;
background-color: var(--code-bg);
}

0 comments on commit 9540963

Please sign in to comment.