@@ -37,6 +37,8 @@ body[data-notebook='notebooks'] .jp-WindowedPanel-outer {
37
37
38
38
body [data-notebook = 'notebooks' ] .jp-WindowedPanel-inner {
39
39
margin-top : var (--jp-notebook-toolbar-margin-bottom );
40
+ /* Adjustments for the extra top and bottom notebook padding */
41
+ margin-bottom : calc (4 * var (--jp-notebook-padding ));
40
42
}
41
43
42
44
body [data-notebook = 'notebooks' ] .jp-Notebook-cell {
@@ -52,12 +54,6 @@ body[data-notebook='notebooks']
52
54
min-height : 100px ;
53
55
}
54
56
55
- /* Workaround for disabling the full windowing mode */
56
- body [data-notebook = 'notebooks' ]
57
- .jp-Toolbar-item [data-jp-item-name = 'scrollbar' ] {
58
- display : none;
59
- }
60
-
61
57
/* Fix background colors */
62
58
63
59
body [data-notebook = 'notebooks' ] .jp-WindowedPanel-outer > * {
@@ -70,18 +66,6 @@ body[data-notebook='notebooks']
70
66
background : var (--jp-layout-color0 ) !important ;
71
67
}
72
68
73
- /**
74
- Extra padding to the first and and last cell of the notebook.
75
- TODO: revisit when https://github.com/jupyterlab/jupyterlab/issues/13151 is fixed
76
- */
77
- .jp-Notebook-cell [data-windowed-list-index = '0' ] {
78
- padding-top : calc (2 * var (--jp-notebook-padding ));
79
- }
80
-
81
- body [data-notebook = 'notebooks' ] .jp-WindowedPanel-viewport > * : last-child {
82
- padding-bottom : calc (2 * var (--jp-notebook-padding ));
83
- }
84
-
85
69
body [data-notebook = 'notebooks' ]
86
70
.jp-Notebook
87
71
.jp-Notebook-cell : not (: first-child )::before {
@@ -124,9 +108,9 @@ body[data-notebook='notebooks']
124
108
125
109
/* Tweak the notebook footer (to add a new cell) */
126
110
body [data-notebook = 'notebooks' ] .jp-Notebook-footer {
111
+ background : unset;
127
112
width : 100% ;
128
113
margin-left : unset;
129
- background : unset;
130
114
}
131
115
132
116
/* Mobile View */
@@ -143,21 +127,18 @@ body[data-format='mobile'] .jp-ToolbarButton .jp-DebuggerBugButton {
143
127
display : none;
144
128
}
145
129
146
- /* Virtual Notebook fixes */
147
-
148
130
body [data-notebook = 'notebooks' ] .jp-WindowedPanel-viewport {
149
131
background : var (--jp-layout-color0 );
132
+ box-shadow : var (--jp-elevation-z4 );
150
133
padding : unset;
134
+
135
+ /* Extra padding at the top and bottom so the notebook looks nicer */
136
+ padding-top : calc (2 * var (--jp-notebook-padding ));
137
+ padding-bottom : calc (2 * var (--jp-notebook-padding ));
151
138
}
152
139
153
140
/* Notebook box shadow */
154
141
155
- body [data-notebook = 'notebooks' ]
156
- .jp-WindowedPanel-outer
157
- > * : first-child : not (: last-child ) {
158
- box-shadow : var (--jp-elevation-z4 );
159
- }
160
-
161
142
body [data-notebook = 'notebooks' ]
162
143
.jp-Notebook
163
144
> * : first-child : last-child ::before {
0 commit comments