File tree 5 files changed +24
-8
lines changed 5 files changed +24
-8
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ const path = require('path');
2
2
const $ = require ( 'jquery' ) ;
3
3
require ( "jquery-ui" ) ;
4
4
5
- function vp_css_loader ( path ) {
5
+ global . vp_css_loader = function ( path ) {
6
6
return path + '.css' ;
7
7
}
8
8
9
- function vp_text_loader ( path ) {
9
+ global . vp_text_loader = function ( path ) {
10
10
return '!!text-loader!' + path ;
11
11
}
12
12
13
- function vp_raw_loader ( path ) {
13
+ global . vp_raw_loader = function ( path ) {
14
14
return path ;
15
15
}
16
16
Original file line number Diff line number Diff line change 9
9
* Change Date :
10
10
*/
11
11
# vp_wrapper {
12
+ display : none;
13
+
14
+ position : fixed;
15
+ height : calc (100% - 110px );
16
+ overflow : hidden;
17
+ left : unset !important ;
18
+ object-fit : contain;
19
+ color : var (--font-primary );
20
+ font-family : AppleSDGothicNeo;
21
+ border : 1px solid var (--border-gray-color );
22
+ top : 110px ;
23
+ right : 0 ;
24
+ background : white;
25
+ z-index : 100 ;
26
+ }
27
+ # vp_wrapper .colab {
12
28
/* CHROME: edited to show */
13
29
display : none;
14
30
30
46
z-index : 100 ;
31
47
}
32
48
/* CHROME: set default box-sizing for vp area */
33
- div # vp_wrapper * {
49
+ div # vp_wrapper . colab * {
34
50
box-sizing : border-box !important ;
35
51
}
36
52
/* LAB: reset position and size */
Original file line number Diff line number Diff line change @@ -226,9 +226,7 @@ define([
226
226
//========================================================================
227
227
renderMainFrame ( ) {
228
228
this . $pageDom = $ ( vpHtml ) ;
229
- if ( vpConfig . extensionType === 'lab' ) {
230
- this . $pageDom . addClass ( 'lab' ) ;
231
- }
229
+ this . $pageDom . addClass ( vpConfig . extensionType ) ;
232
230
return this . $pageDom ;
233
231
}
234
232
afterAttach ( ) {
Original file line number Diff line number Diff line change 14
14
//============================================================================
15
15
require . config ( {
16
16
paths : {
17
- 'vp_base' : '../nbextensions/visualpython/visualpython ' ,
17
+ 'vp_base' : '../nbextensions/visualpython' ,
18
18
'css' : 'vp_base/lib/require/css.min'
19
19
} ,
20
20
config : {
@@ -48,6 +48,8 @@ function vp_raw_loader(path) {
48
48
return 'text!' + path ;
49
49
}
50
50
51
+ window . vpBase = "/nbextensions/" ;
52
+
51
53
//============================================================================
52
54
// Load extension
53
55
//============================================================================
File renamed without changes.
You can’t perform that action at this time.
0 commit comments