Skip to content

Commit

Permalink
Themes: Normalized the font-size of pre and code (#1791)
Browse files Browse the repository at this point in the history
Normalized the font-size of pre and code in all themes. This fixes a Coy line drift issue.
  • Loading branch information
RunDevelopment authored Mar 5, 2019
1 parent c37c90d commit 878ef29
Show file tree
Hide file tree
Showing 8 changed files with 8 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 @@ -9,6 +9,7 @@ pre[class*="language-"] {
color: black;
background: none;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
text-align: left;
white-space: pre;
word-spacing: normal;
Expand Down
1 change: 1 addition & 0 deletions themes/prism-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pre[class*="language-"] {
background: none;
text-shadow: 0 -.1em .2em black;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
text-align: left;
white-space: pre;
word-spacing: normal;
Expand Down
1 change: 1 addition & 0 deletions themes/prism-funky.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
code[class*="language-"],
pre[class*="language-"] {
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
text-align: left;
white-space: pre;
word-spacing: normal;
Expand Down
1 change: 1 addition & 0 deletions themes/prism-okaidia.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pre[class*="language-"] {
background: none;
text-shadow: 0 1px rgba(0, 0, 0, 0.3);
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
text-align: left;
white-space: pre;
word-spacing: normal;
Expand Down
1 change: 1 addition & 0 deletions themes/prism-solarizedlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ code[class*="language-"],
pre[class*="language-"] {
color: #657b83; /* base00 */
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
text-align: left;
white-space: pre;
word-spacing: normal;
Expand Down
1 change: 1 addition & 0 deletions themes/prism-tomorrow.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pre[class*="language-"] {
color: #ccc;
background: none;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
text-align: left;
white-space: pre;
word-spacing: normal;
Expand Down
1 change: 1 addition & 0 deletions themes/prism-twilight.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pre[class*="language-"] {
color: white;
background: none;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
text-align: left;
text-shadow: 0 -.1em .2em black;
white-space: pre;
Expand Down
1 change: 1 addition & 0 deletions themes/prism.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pre[class*="language-"] {
background: none;
text-shadow: 0 1px white;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
text-align: left;
white-space: pre;
word-spacing: normal;
Expand Down

0 comments on commit 878ef29

Please sign in to comment.