Skip to content

Commit

Permalink
Put padding for code blocks inside the scrollbar, add bottom margin f…
Browse files Browse the repository at this point in the history
…or code blocks
  • Loading branch information
sisou committed Apr 13, 2024
1 parent 8cfcb06 commit 7a18760
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .vitepress/theme/components/Doc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,13 @@ div[class*="language"]:has(.copy + .lang) {
}
div[class*="language"] {
pre {
margin-bottom: 1.5rem;
padding: 0;
}
code {
--uno: w-[calc(100%+48px)] inline-block mx--24 px-24;
--uno: block p-24;
.diff {
--uno: mx--24 px-24 w-[calc(100%+48px)] inline-block;
Expand Down

0 comments on commit 7a18760

Please sign in to comment.