Skip to content

Commit f07e646

Browse files
committed
adopt latest version of style_jb2.css
1 parent 506f8c7 commit f07e646

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

notebooks/_static/style_jb2.css

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,4 +294,23 @@ article main table {
294294

295295
html[data-theme='dark'] .corrige {
296296
background-image: radial-gradient(circle at top left, #0e3852, #0c5517);
297-
}
297+
}
298+
299+
/* our exercises often do
300+
1. the thing to do
301+
302+
```{code-cell} ipython3
303+
# your code
304+
```
305+
306+
it would be better if we could indent the code cell but if we do, we lose the overall cell structure
307+
as the code cell is then part of the list item, in markdown, and is no longer deemed a code cell by jupyter
308+
*/
309+
310+
ol+div.group\/block>div.myst-code {
311+
margin-top: 0px;
312+
}
313+
314+
ol:has(+div.group\/block>div.myst-code) {
315+
margin-bottom: 0px;
316+
}

0 commit comments

Comments
 (0)