Browse Source

Merge pull request #1558 from blink1073/fix-cm-padding

Fix CodeMirror gutter offset
Afshin Darian 8 years ago
parent
commit
24649b5d7e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/codemirror/index.css

+ 5 - 0
src/codemirror/index.css

@@ -62,6 +62,11 @@
 }
 }
 
 
 
 
+.CodeMirror-gutter-wrapper {
+  margin-left: calc(-1 * var(--jp-code-padding));
+}
+
+
 /*
 /*
   Here is our jupyter theme for CodeMirror syntax highlighting
   Here is our jupyter theme for CodeMirror syntax highlighting
   This is used in our marked.js syntax highlighting and CodeMirror itself
   This is used in our marked.js syntax highlighting and CodeMirror itself