Skip to content

Commit

Permalink
Merge pull request #221 from thetarnav/fix-overflows
Browse files Browse the repository at this point in the history
Fix document width overflows caused by long links and tables
  • Loading branch information
Kelimion authored Jul 6, 2024
2 parents 7e1195d + b35303c commit efe09e9
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion themes/odin/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,22 @@ code.hljs {
border-radius: 0.5em;
}

/*
prevents tables to grow beyond it's parent width
https://stackoverflow.com/a/25296722/15597880
*/
.table {
display: block;
overflow-x: auto;
}
.table td {
width: 1%;
}

a {
word-wrap: break-word;
}

:root {
--dark-border: #242f3f;
--dark-background: #0d1117;
Expand Down Expand Up @@ -319,4 +335,4 @@ body.dark-mode {

.dark-mode .img-dark-mode-invert {
filter: invert(100%);
}
}

0 comments on commit efe09e9

Please sign in to comment.