1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-24 07:30:12 +01:00

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-decoration-break: slice;
overflow: auto;
word-break: normal;
// Override native scrollbar styles
&::-webkit-scrollbar {

View File

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