Skip to content

Commit 8d2139a

Browse files
committed
ipywidgets -- fix according by adding appropriate styles
1 parent 191336a commit 8d2139a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/packages/frontend/_jupyter.sass

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
44
*/
55

6+
// I just noticed there is another version of this file in jupyter/_jupyter.sass
7+
// They need to be carefully merged into one! But not today.
8+
69
.smc-jupyter-nbviewer-content
710
border: 1px solid lightgray
811

@@ -114,6 +117,12 @@
114117
.katex
115118
padding: 0 2.5px
116119

120+
// this seems to be missing from jupyter widgets, but is used to implement the according
121+
// https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20List.html#accordion
122+
// I.e., without this css rule, accordian is just broken.
123+
.lm-Widget.lm-mod-hidden
124+
display: none !important
125+
117126
.cc-jupyter-buttonbar-dropdown
118127
.ant-dropdown-menu-item
119128
color: $COL_GRAY_D !important

src/packages/frontend/jupyter/_jupyter.sass

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
44
*/
55

6+
// I just noticed there is another version of this file in ../_jupyter.sass
7+
// They need to be carefully merged into one! But not today.
8+
69
.cocalc-jupyter-rendered
710
img
811
max-width: 100%

0 commit comments

Comments
 (0)