Sfoglia il codice sorgente

Merge pull request #764 from jasongrout/notebookless

Clean up less files
Brian E. Granger 8 anni fa
parent
commit
88c5b1e982
2 ha cambiato i file con 17 aggiunte e 15 eliminazioni
  1. 0 1
      scripts/copyfiles.js
  2. 17 14
      src/default-theme/notebook.less

+ 0 - 1
scripts/copyfiles.js

@@ -2,6 +2,5 @@
 // Distributed under the terms of the Modified BSD License.
 
 var fs = require('fs-extra');
-fs.copySync('src/', 'lib/', { filter: /\.css$/ });
 fs.copySync('src/', 'lib/', { filter: /\.svg$/ });
 fs.copySync('src/', 'lib/', { filter: /\.gif$/ });

+ 17 - 14
src/default-theme/notebook.less

@@ -45,11 +45,6 @@
 }
 
 
-.jp-CellEditor .CodeMirror-lines {
-    padding: 0.4em;
-}
-
-
 .jp-MarkdownCell {
   outline: 0;
 }
@@ -317,6 +312,23 @@ img.jp-mod-unconfined {
 }
 
 
+.jp-CellEditor > .CodeMirror pre {
+  /* In CM3 this went to 4px from 0 in CM2. We need the 0 value because of how we size */
+  /* .CodeMirror-lines */
+  padding: 0;
+  border: 0;
+  border-radius: 0;
+}
+
+
+/* This causes https://github.com/jupyter/jupyterlab/issues/522 */
+.jp-CellEditor .CodeMirror-lines {
+  padding: 0.4em;
+}
+
+
+/* The following selectors never apply since .CodeMirror is the only child of .jp-CellEditor */
+
 .jp-CellEditor > .CodeMirror-scroll {
   /*  The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/
   /*  We have found that if it is visible, vertical scrollbars appear with font size changes.*/
@@ -341,12 +353,3 @@ img.jp-mod-unconfined {
   border-bottom-left-radius: 2px;
   border-top-left-radius: 2px;
 }
-
-
-.jp-CellEditor > .CodeMirror pre {
-  /* In CM3 this went to 4px from 0 in CM2. We need the 0 value because of how we size */
-  /* .CodeMirror-lines */
-  padding: 0;
-  border: 0;
-  border-radius: 0;
-}