File tree Expand file tree Collapse file tree 2 files changed +44
-5
lines changed
Expand file tree Collapse file tree 2 files changed +44
-5
lines changed Original file line number Diff line number Diff 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 1 rem ;
116+ padding : 0px 1 em ;
117117
118118 border-color : var (--myst-output-empty-border-color );
119- margin-bottom : 0.6 rem ;
119+ margin-bottom : 1 rem ;
120120 }
121121
122122 border-radius : var (--myst-code-border-radius );
123123 margin-top : 0px ;
124- padding : 0.25em 1 rem ;
124+ padding : 0.25em 1 em ;
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
296296html [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 {
Original file line number Diff line number Diff line change @@ -294,4 +294,23 @@ article main table {
294294
295295html [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+ }
You can’t perform that action at this time.
0 commit comments