Skip to content

Commit

Permalink
Add horizontal scrollbars for code blocks, close #392
Browse files Browse the repository at this point in the history
  • Loading branch information
wwebfor committed Feb 11, 2016
1 parent 375372c commit e6810da
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/styles/theme-default/prism.less
Original file line number Diff line number Diff line change
@@ -45,11 +45,10 @@ pre[class*="language-"] {
background-image: linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%);
background-size: 3em 3em;
background-origin: content-box;
overflow: visible;
overflow: auto;
max-height: inherit;
height: 100%;
padding: 0 1em;
overflow: visible;

/* Margin bottom to accomodate shadow */
-webkit-box-sizing: border-box;
@@ -59,6 +58,12 @@ pre[class*="language-"] {
}
}

.-note {
pre {
max-height: 50rem;
}
}

/* Inline code */
:not(pre) > code {
position: relative;

0 comments on commit e6810da

Please sign in to comment.