Skip to content

Commit deabd7a

Browse files
committed
adopt latest version of style_jb2.css
1 parent 601c2ac commit deabd7a

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

notebooks/_static/style.css

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

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

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+
*+div.group\/block>div.myst-code {
311+
margin-top: 0.3em;
312+
}
313+
314+
*:has(+div.group\/block>div.myst-code) {
315+
margin-bottom: 0.3em;
316+
}

0 commit comments

Comments
 (0)