diff --git a/sass/style.scss b/sass/style.scss index ab484c8..594735e 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -38,6 +38,9 @@ grid-template-columns: 10em auto; grid-column-gap: 2em; + /* Do not let wide blocks, such as pre, expand the column and overflow */ + &>*{ min-width: 0 } + & aside>*:first-child, & main>*:first-child, & main>article:first-child h2 @@ -140,6 +143,8 @@ main { max-width: 100%; margin: 0 auto; text-align: left; + display: block; + overflow: auto; td, th { padding: 0 1em } } @@ -153,16 +158,16 @@ main { } } + code { font-size: 14px } + li>code { word-wrap: break-word } p>code { background-color: #2b303b; color: #fff; - font-size: 14px; padding: .3em .5em; border-radius: .3em; } pre { - font-size: 14px; padding: 1em; overflow: auto; border-radius: .3em;