Skip to content

Commit

Permalink
Normalize padding between normal and Torchlight code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Nov 17, 2024
1 parent fcf8c69 commit baaf8de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _media/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/assets/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
*/

pre code.torchlight {
@apply block py-4 min-w-max;
@apply block py-4 px-0 min-w-max;
}

pre code.torchlight .line {
Expand Down
2 changes: 2 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ module.exports = {
marginTop: '1rem',
marginBottom: '1rem',
overflowX: 'auto',
padding: '0',
code: {
fontFamily: "'Fira Code Regular', Consolas, Monospace, 'Courier New'",
padding: '0.75rem 1rem',
}
}
},
Expand Down

0 comments on commit baaf8de

Please sign in to comment.