Skip to content

Commit

Permalink
revert white-space to normal when code is inline instead of in a pre
Browse files Browse the repository at this point in the history
  • Loading branch information
darobin committed Oct 28, 2015
1 parent ad97b23 commit 1a971b5
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions themes/prism-coy.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ pre[class*="language-"] {
color: #c92c2c;
border: 1px solid rgba(0, 0, 0, 0.1);
display: inline;
white-space: normal;
}

pre[class*="language-"]:before,
Expand Down
1 change: 1 addition & 0 deletions themes/prism-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ pre[class*="language-"] {
border-radius: .3em;
border: .13em solid hsl(30, 20%, 40%);
box-shadow: 1px 1px .3em -.1em black inset;
white-space: normal;
}

.token.comment,
Expand Down
1 change: 1 addition & 0 deletions themes/prism-funky.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ code[class*="language-"] {
padding: .2em;
border-radius: .3em;
box-shadow: none;
white-space: normal;
}

.token.comment,
Expand Down
1 change: 1 addition & 0 deletions themes/prism-okaidia.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pre[class*="language-"] {
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
}

.token.comment,
Expand Down
1 change: 1 addition & 0 deletions themes/prism-tomorrow.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pre[class*="language-"] {
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
}

.token.comment,
Expand Down
1 change: 1 addition & 0 deletions themes/prism-twilight.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ code[class*="language-"]::selection, code[class*="language-"] ::selection {
border: .13em solid hsl(0, 0%, 33%); /* #545454 */
box-shadow: 1px 1px .3em -.1em black inset;
padding: .15em .2em .05em;
white-space: normal;
}

.token.comment,
Expand Down
1 change: 1 addition & 0 deletions themes/prism.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ pre[class*="language-"] {
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
}

.token.comment,
Expand Down

0 comments on commit 1a971b5

Please sign in to comment.