Skip to content

Commit

Permalink
Merge pull request #136 from jasongrout/index.js
Browse files Browse the repository at this point in the history
Add style index.js files to optionally consume the CSS via a js module import
  • Loading branch information
blink1073 authored Dec 1, 2020
2 parents 4576993 + 21bf18c commit c847ff4
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/default-theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"src/*",
"types/*",
"images/*.png",
"style/*.css"
"style/*.css",
"style/index.js"
],
"style": "style/index.css",
"repository": {
Expand Down
16 changes: 16 additions & 0 deletions packages/default-theme/style/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*-----------------------------------------------------------------------------
| Copyright (c) 2014-2018, PhosphorJS Contributors
|
| Distributed under the terms of the BSD 3-Clause License.
|
| The full license is in the file LICENSE, distributed with this software.
|----------------------------------------------------------------------------*/
import '@lumino/dragdrop/style/index';
import '@lumino/widgets/style/index';
import './commandpalette.css';
import './datagrid.css';
import './dockpanel.css';
import './menu.css';
import './menubar.css';
import './scrollbar.css';
import './tabbar.css';
3 changes: 2 additions & 1 deletion packages/dragdrop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"dist/*",
"src/*",
"types/*",
"style/*.css"
"style/*.css",
"style/index.js"
],
"main": "dist/index.js",
"unpkg": "dist/index.min.js",
Expand Down
10 changes: 10 additions & 0 deletions packages/dragdrop/style/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*-----------------------------------------------------------------------------
| Copyright (c) Jupyter Development Team.
| Copyright (c) 2014-2017, PhosphorJS Contributors
|
| Distributed under the terms of the BSD 3-Clause License.
|
| The full license is in the file LICENSE, distributed with this software.
|----------------------------------------------------------------------------*/

import './index.css';
3 changes: 2 additions & 1 deletion packages/widgets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"dist/*",
"src/*",
"types/*",
"style/*.css"
"style/*.css",
"style/index.js"
],
"main": "dist/index.js",
"unpkg": "dist/index.min.js",
Expand Down
10 changes: 10 additions & 0 deletions packages/widgets/style/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*-----------------------------------------------------------------------------
| Copyright (c) Jupyter Development Team.
| Copyright (c) 2014-2017, PhosphorJS Contributors
|
| Distributed under the terms of the BSD 3-Clause License.
|
| The full license is in the file LICENSE, distributed with this software.
|----------------------------------------------------------------------------*/

import './index.css';

0 comments on commit c847ff4

Please sign in to comment.