Skip to content

Commit 5976c33

Browse files
authored
Merge pull request #23 from brichet/fix_style
Fix CSS for Jupyterlab>4.1 and Notebook
2 parents f14b9e5 + 0f71508 commit 5976c33

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

js/jupyterlab-slideshow/style/notebook.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,21 +57,29 @@
5757
background: transparent;
5858
}
5959

60-
.jp-Deck .jp-Notebook.jp-WindowedPanel-outer,
60+
.jp-Deck .jp-Notebook .jp-WindowedPanel-outer,
6161
.jp-Deck .jp-Notebook .jp-WindowedPanel-inner,
6262
body[data-notebook='notebooks'] .jp-Deck .jp-WindowedPanel-window,
6363
body[data-notebook='notebooks'] .jp-Deck .jp-Notebook-cell {
6464
background: transparent;
6565
}
6666

67+
/* Remove shadow around notebook widget for Notebook application */
68+
body[data-jp-deck-mode='presenting'] .jp-Deck .jp-Notebook .jp-WindowedPanel-viewport {
69+
box-shadow: unset;
70+
}
71+
6772
body[data-notebook='notebooks']
6873
.jp-Deck
6974
.jp-Notebook.jp-mod-commandMode
7075
.jp-Cell.jp-mod-active.jp-mod-selected:not(.jp-mod-multiSelected) {
7176
background: transparent !important;
7277
}
7378

74-
.jp-Deck .jp-Notebook.jp-mod-scrollPastEnd::after {
79+
/* Both are required for compatibility with Jupyterlab before and after 4.1.0, after
80+
https://github.com/jupyterlab/jupyterlab/commit/6a86d8f163fe11cf7b1964b1ed54999ee2234c8c#diff-ccf3f53605be6603fd5fd949742f25ea8919c48dcc75322c483ebf9988404 */
81+
.jp-Deck .jp-Notebook.jp-mod-scrollPastEnd::after,
82+
.jp-Deck .jp-Notebook.jp-mod-scrollPastEnd > .jp-WindowedPanel-outer::after {
7583
display: none;
7684
}
7785

js/jupyterlab-slideshow/style/shell.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
body[data-jp-deck-mode='presenting'],
2-
body[data-jp-deck-mode='presenting'] .jp-ThemedContainer:has(.jp-Deck),
3-
body[data-jp-deck-mode='presenting'][data-notebook='notebooks'] .jp-WindowedPanel-outer {
4-
background: var(--jp-layout-color0);
2+
body[data-jp-deck-mode='presenting'] .jp-ThemedContainer:has(.jp-Deck) {
3+
/* 'important' is required for Notebook application which add again this rule */
4+
background: var(--jp-layout-color0) !important;
55
}
66

77
body[data-jp-deck-mode='presenting'] #jp-main-content-panel {

0 commit comments

Comments
 (0)