Quellcode durchsuchen

Consolidate the theming

Steven Silvester vor 9 Jahren
Ursprung
Commit
001123c1c1

+ 1 - 1
examples/lab/index.html

@@ -5,7 +5,7 @@
   <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
   <script id='jupyter-config-data' type="application/json">{ "baseUrl": "{{base_url}}", "wsUrl": "{{ws_url}}" }</script>
   <script src="build/bundle.js" main="index"></script>
-  <link rel="stylesheet" type="text/css" href="build/theme.css">
+  <link rel="stylesheet" type="text/css" href="build/index.css">
 </head>
 <body>
 </body>

+ 1 - 1
scripts/copythemecss.js

@@ -1,2 +1,2 @@
 var fs = require('fs-extra');
-fs.copySync('src/theme/index.css', 'example/build/theme.css');
+fs.copySync('src/default-theme/', 'example/build/');

+ 1 - 0
src/filebrowser/plugin.css → src/default-theme/filebrowser.css

@@ -7,6 +7,7 @@
   color: #757575;
   font: 13px Helvetica, Arial, sans-serif;
   height: 500px;
+  min-width: 350px;
 }
 
 

+ 4 - 0
src/theme/index.css → src/default-theme/index.css

@@ -2,6 +2,10 @@
 | Copyright (c) Jupyter Development Team.
 | Distributed under the terms of the Modified BSD License.
 |----------------------------------------------------------------------------*/
+@import './filebrowser.css';
+@import './notebook.css';
+@import './terminal.css';
+
 body {
   margin: 0;
   padding: 0;

+ 0 - 0
src/notebook/plugin.css → src/default-theme/notebook.css


+ 0 - 0
src/terminal/plugin.css → src/default-theme/terminal.css


+ 0 - 2
src/filebrowser/plugin.ts

@@ -18,8 +18,6 @@ import {
   IServicesProvider
 } from '../index';
 
-import './plugin.css';
-
 
 /**
  * Register the plugin contributions.

+ 0 - 2
src/notebook/plugin.ts

@@ -41,8 +41,6 @@ import {
   WidgetManager
 } from './widgetmanager';
 
-import './plugin.css';
-
 
 /**
  * Register the plugin contributions.

+ 0 - 2
src/terminal/plugin.ts

@@ -22,8 +22,6 @@ import {
   TabPanel
 } from 'phosphor-tabs';
 
-import './plugin.css';
-
 
 export
 function resolve(container: Container): Promise<void> {