Skip to content
Browse files

Fix line-height of CodeMirror editor.

Some previous <pre>-related style tweaks resulted in <pre> line height
being no more applied to the CodeMirror editor.  Now explicitly stored
the line-height style.
  • Loading branch information...
1 parent cba534d commit 4de0de5b9dc994b1c65e11d2392c8b926cdfea92 @nene nene committed Apr 10, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 template/resources/sass/_examples.scss
View
5 template/resources/sass/_examples.scss
@@ -42,7 +42,10 @@ pre.inline-example {
@include border-radius(5px);
// Create exactly the same amount of padding as normal code <pre> has
padding: 5px 15px !important;
- background: #f7f7f7; } }
+ background: #f7f7f7; }
+ // same line height as for non-live code examples
+ .CodeMirror pre {
+ line-height: 1.3em; } }
.inline-example-cmp {
margin-bottom: 10px;

0 comments on commit 4de0de5

Please sign in to comment.
Something went wrong with that request. Please try again.