Fixed wrapping code blocks on iOS Safari

This commit is contained in:
squidfunk 2020-02-15 22:59:29 +01:00
parent 29021a55dc
commit a6b22a4461
2 changed files with 2 additions and 1 deletions

View File

@ -234,6 +234,7 @@ kbd {
box-shadow: none; box-shadow: none;
box-decoration-break: slice; box-decoration-break: slice;
overflow: auto; overflow: auto;
word-break: normal;
// Override native scrollbar styles // Override native scrollbar styles
&::-webkit-scrollbar { &::-webkit-scrollbar {

View File

@ -248,8 +248,8 @@ $codehilite-whitespace: transparent;
// Disable user selection, so code can be easily copied without // Disable user selection, so code can be easily copied without
// accidentally also copying the line numbers // accidentally also copying the line numbers
.linenos { .linenos {
background-color: $md-color-black--lightest;
color: $md-color-black--lighter; color: $md-color-black--lighter;
box-shadow: inset 0 0 0 px2rem(1px) $md-code-background;
user-select: none; user-select: none;
// Reset spacings // Reset spacings