Skip to content

Commit 656e6fd

Browse files
committed
Fix box shadows
1 parent b4a5431 commit 656e6fd

File tree

1 file changed

+38
-3
lines changed
  • packages/notebook-extension/style

1 file changed

+38
-3
lines changed

packages/notebook-extension/style/base.css

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ body[data-notebook='notebooks'] .jp-WindowedPanel-inner {
3030
}
3131

3232
body[data-notebook='notebooks'] .jp-Notebook > *:first-child:not(:last-child) {
33-
box-shadow: 0px 0px 12px 1px rgb(87 87 87 / 20%);
33+
box-shadow: 0px 0px 12px 1px var(--jp-shadow-umbra-color);
3434
}
3535

3636
body[data-notebook='notebooks'] .jp-Notebook {
@@ -47,8 +47,11 @@ body[data-notebook='notebooks'] .jp-Notebook {
4747

4848
body[data-notebook='notebooks'] .jp-Notebook.jp-mod-scrollPastEnd::after {
4949
background: var(--jp-layout-color0);
50-
min-height: var(--jp-notebook-toolbar-margin-bottom);
51-
margin-top: var(--jp-cell-padding);
50+
min-height: 0;
51+
}
52+
53+
body[data-notebook='notebooks'] .jp-WindowedPanel-window > *:last-child {
54+
padding-bottom: 10px;
5255
}
5356

5457
body[data-notebook='notebooks']
@@ -190,3 +193,35 @@ body[data-notebook='notebooks'] .jp-Notebook-cell {
190193
padding-left: calc(2 * var(--jp-cell-padding));
191194
padding-right: calc(2 * var(--jp-cell-padding));
192195
}
196+
197+
/* Notebook box shadow */
198+
199+
body[data-notebook='notebooks'] .jp-Notebook > *:first-child:not(:last-child) {
200+
box-shadow: 0px 0px 12px 1px var(--jp-shadow-umbra-color);
201+
}
202+
203+
body[data-notebook='notebooks']
204+
.jp-Notebook
205+
> *:first-child:last-child::before {
206+
content: '';
207+
position: absolute;
208+
top: 0;
209+
bottom: 0;
210+
left: 0;
211+
right: 0;
212+
box-shadow: 0px 0px 12px 1px var(--jp-shadow-umbra-color);
213+
margin-bottom: -11px;
214+
}
215+
216+
body[data-notebook='notebooks']
217+
.jp-Notebook
218+
.jp-Notebook-cell:not(:first-child)::after,
219+
body[data-notebook='notebooks']
220+
.jp-Notebook
221+
.jp-Notebook-cell:not(:first-child)::before {
222+
content: ' ';
223+
height: 100%;
224+
position: absolute;
225+
top: 0;
226+
width: 11px;
227+
}

0 commit comments

Comments
 (0)