1
0
mirror of https://github.com/thangisme/notes.git synced 2024-12-21 12:46:32 -05:00

Better code scrolling for touch

This commit is contained in:
Patrick Marsceill 2018-12-16 15:23:18 -05:00
parent eaf1247911
commit 20970ca9e6
No known key found for this signature in database
GPG Key ID: 286B93882D828F40

View File

@ -15,6 +15,7 @@ pre.highlight {
padding: $sp-3; padding: $sp-3;
margin-bottom: 0; margin-bottom: 0;
background-color: $code-background-color; background-color: $code-background-color;
-webkit-overflow-scrolling: touch;
code { code {
padding: 0; padding: 0;
@ -104,7 +105,7 @@ pre.highlight {
.code-example { .code-example {
padding: $sp-3; padding: $sp-3;
margin-bottom: $sp-3; margin-bottom: $sp-3;
overflow: scroll; overflow: auto;
border: 1px solid $border-color; border: 1px solid $border-color;
border-radius: $border-radius; border-radius: $border-radius;