Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 4de0de5b9dc994b1c65e11d2392c8b926cdfea92 1 parent cba534d
Rene Saarsoo nene authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 1 template/resources/sass/_examples.scss
5 template/resources/sass/_examples.scss
@@ -42,7 +42,10 @@ pre.inline-example {
42 42 @include border-radius(5px);
43 43 // Create exactly the same amount of padding as normal code <pre> has
44 44 padding: 5px 15px !important;
45   - background: #f7f7f7; } }
  45 + background: #f7f7f7; }
  46 + // same line height as for non-live code examples
  47 + .CodeMirror pre {
  48 + line-height: 1.3em; } }
46 49
47 50 .inline-example-cmp {
48 51 margin-bottom: 10px;

0 comments on commit 4de0de5

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