Skip to content

Commit c2346a8

Browse files
committed
Adjusted css so the 'Click to add a cell' button is included on the windowed panel
Addresses #7565
1 parent 357229d commit c2346a8

File tree

1 file changed

+30
-17
lines changed
  • packages/notebook-extension/style

1 file changed

+30
-17
lines changed

packages/notebook-extension/style/base.css

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,37 @@ body[data-notebook='notebooks'] .jp-NotebookPanel-toolbar {
3333
padding-right: calc(calc(100% - var(--jp-notebook-max-width)) * 0.5);
3434
}
3535

36-
body[data-notebook='notebooks'] .jp-WindowedPanel-outer {
37-
width: unset !important;
38-
padding-top: unset;
36+
body[data-notebook='notebooks'] .jp-WindowedPanel {
37+
background: var(--jp-layout-color2);
3938
padding-left: calc(calc(100% - var(--jp-notebook-max-width)) * 0.5);
4039
padding-right: calc(
4140
calc(
42-
100% - var(--jp-notebook-max-width) - var(--jp-notebook-padding-offset)
43-
) * 0.5
41+
100% - var(--jp-notebook-max-width) - var(--jp-notebook-padding-offset)
42+
) * 0.5
4443
) !important;
45-
background: var(--jp-layout-color2);
44+
padding-top: calc(1*var(--jp-notebook-padding-offset));
45+
height: 100%;
46+
overflow-y: auto;
47+
48+
}
49+
50+
body[data-notebook='notebooks'] .jp-WindowedPanel-outer {
51+
width: unset !important;
52+
height: fit-content;
53+
54+
55+
background: var(--jp-layout-color0);
56+
box-shadow: var(--jp-elevation-z4);
57+
58+
/* Extra padding at the top and bottom so the notebook looks nicer */
59+
padding-top: calc(2 * var(--jp-notebook-padding));
60+
padding-bottom: calc(2 * var(--jp-notebook-padding));
4661
}
4762

4863
body[data-notebook='notebooks'] .jp-WindowedPanel-inner {
4964
margin-top: var(--jp-notebook-toolbar-margin-bottom);
5065
/* Adjustments for the extra top and bottom notebook padding */
51-
margin-bottom: calc(4 * var(--jp-notebook-padding));
66+
margin-bottom: calc(1.5 * var(--jp-notebook-padding));
5267
}
5368

5469
body[data-notebook='notebooks'] .jp-Notebook-cell {
@@ -57,8 +72,7 @@ body[data-notebook='notebooks'] .jp-Notebook-cell {
5772

5873
/* Empty space at the bottom of the notebook (similar to classic) */
5974
body[data-notebook='notebooks']
60-
.jp-Notebook.jp-mod-scrollPastEnd
61-
.jp-WindowedPanel-outer::after {
75+
.jp-Notebook.jp-mod-scrollPastEnd {
6276
min-height: 100px;
6377
}
6478

@@ -112,13 +126,17 @@ body[data-notebook='notebooks']
112126
body[data-notebook='notebooks'] .jp-RawCell .jp-cell-toolbar {
113127
top: calc(0.5 * var(--jp-notebook-padding));
114128
}
129+
130+
body[data-notebook='notebooks'] .jp-Notebook-footer {
131+
width: calc(100vw - 43px);
132+
margin-left: 28px;
133+
margin-right: 15px;
134+
margin-top: 10px;
135+
}
115136
}
116137

117138
/* Tweak the notebook footer (to add a new cell) */
118139
body[data-notebook='notebooks'] .jp-Notebook-footer {
119-
background: unset;
120-
width: 100%;
121-
margin-left: unset;
122140
}
123141

124142
/* Mobile View */
@@ -136,12 +154,7 @@ body[data-format='mobile'] .jp-ToolbarButton .jp-DebuggerBugButton {
136154
}
137155

138156
body[data-notebook='notebooks'] .jp-WindowedPanel-viewport {
139-
background: var(--jp-layout-color0);
140-
box-shadow: var(--jp-elevation-z4);
141157

142-
/* Extra padding at the top and bottom so the notebook looks nicer */
143-
padding-top: calc(2 * var(--jp-notebook-padding));
144-
padding-bottom: calc(2 * var(--jp-notebook-padding));
145158
}
146159

147160
/* Notebook box shadow */

0 commit comments

Comments
 (0)