Skip to content

Commit

Permalink
Add horizontal scrolling for code tag in blog articles.
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenchio committed Dec 26, 2024
1 parent 37af30b commit 93a4ac4
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions assets/sass/_article.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,20 @@
font-size: 1rem;
padding: 0 .375rem;
line-height: 1.75;
white-space: pre-wrap;
}

pre {
background-color: transparent !important;
padding-left: 5px;
margin-left: 5px;
border: 1px solid #e6e8f0;
border-radius: 4px;
background-color: #f9fafc !important;
overflow: auto;

code {
border: unset;
border-radius: unset;
overflow: visible;
}
}

table {
Expand Down

0 comments on commit 93a4ac4

Please sign in to comment.