Skip to content

Commit 545d109

Browse files
committed
adopt latest version of style_jb2.css
1 parent aa565c1 commit 545d109

File tree

2 files changed

+44
-5
lines changed

2 files changed

+44
-5
lines changed

notebooks/_static/style.css

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ html article main .relative.group[data-mdast-node-id] {
113113
content: ' ∅ no output ∅ ';
114114
}
115115
font-size: xx-small;
116-
padding: 0px 1rem;
116+
padding: 0px 1em;
117117

118118
border-color: var(--myst-output-empty-border-color);
119-
margin-bottom: 0.6rem;
119+
margin-bottom: 1rem;
120120
}
121121

122122
border-radius: var(--myst-code-border-radius);
123123
margin-top: 0px;
124-
padding: 0.25em 1rem;
124+
padding: 0.25em 1em;
125125
border-width: var(--myst-code-border-width);
126126
border-color: var(--myst-output-border-color);
127127
background-color: var(--myst-output-background-color);
@@ -295,7 +295,27 @@ 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+
}
318+
/*
299319
* play with custom styles in admonitions
300320
*/
301321
.custom {

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)