Skip to content

Commit

Permalink
Merge pull request iissnan#1526 from Asing1001/master
Browse files Browse the repository at this point in the history
Adjust code block display in mobile for better UX
  • Loading branch information
iissnan authored Mar 30, 2017
2 parents c8e1cf5 + 83be732 commit ed476ee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions source/css/_common/components/highlight/highlight.styl
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ pre {
}

.code pre {
width: 100%
padding-left: 10px
padding-right: 10px
background-color: $highlight-background
Expand Down
11 changes: 10 additions & 1 deletion source/css/_common/components/post/post-expand.styl
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,21 @@
}

.post-body {
pre, .highlight {
pre {
padding: 10px;
.gutter pre {
padding-right: 10px;
}
}

.highlight {
margin-left: -40px;
margin-right: -40px;
padding: 0;
.gutter pre {
padding-right: 10px;
}
}
}
}

Expand Down

0 comments on commit ed476ee

Please sign in to comment.