Fix overlowing caused by pre and tables
This commit is contained in:
parent
1d4ff89f0d
commit
4082b8454f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user