77 * as well as other miscellanous tweaks
88 */
99
10- .primary-scrollbar {
10+ * ---------- the left hand side toc * / .primary-scrollbar {
11+
1112 /* background: var(--jp-border-color3); */
1213 div .w-full {
1314
1415 & [data-state = 'open' ] {
15- border : 1px solid var (--jp-border-color0 );
16+ border : 1px solid var (--jp-border-color0 );
1617 border-radius : 8px ;
1718 padding-top : 0px ;
1819 }
2122 & ::before {
2223 content : '≡ ' ;
2324 }
24- /* font-style: italic; */
2525 }
2626 }
2727
2828 a .p-2 {
29- /* border: 1px solid #000; */
3029 padding : 0.08em 1em ;
3130
3231 & .active {
3332 & ::before {
3433 content : '⌘ ' ;
3534 }
36-
3735 }
3836 }
3937}
4038
41- /* not too much space around lists */
39+ /* ---------- space around lists */
40+
4241/* a paragraph that is just above a list should not have a bottom margin
4342 * thanks SO
4443 * https://stackoverflow.com/questions/1817792/is-there-a-previous-sibling-selector
@@ -47,52 +46,126 @@ article main {
4746 p : has (+ : is (ol , ul )) {
4847 margin-bottom : 0px !important ;
4948 }
50- p + : is (ol , ul ) {
49+
50+ p + : is (ol , ul ) {
5151 margin-top : 0px !important ;
5252 }
5353
54- li > ul {
54+ li > ul {
5555 margin-top : 0px !important ;
5656 }
5757}
5858
59- .article : where (ul ul , ul ol , ol ul , ol ol ): not (: where ([class ~= not-prose ], [class ~= not-prose ] * )) {
59+ .article : where (ul ul , ul ol , ol ul , ol ol ): not (: where ([class ~= not-prose ], [class ~= not-prose ] * )) {
6060 margin-bottom : 0.25em ;
6161}
6262
63+ /* ---------- code */
6364
64- /* @media (min-width: 960px) {
65- .bd-page-width {
66- max- width: initial !important ;
67- }
65+ : root {
66+ --myst-code-border-radius : 0.5 rem ;
67+ --myst-code-border- width: 0.8 px ;
68+ }
6869
69- /* but keep the upper-left logo to grow too much */
70- /* .navbar-brand.logo>img {
71- max-width: 250px;
72- max-height: 170px;
73- } */
74- } * /
70+ /* cell inputs */
71+ html .light {
72+ --myst-input-background-color : rgb (243 , 244 , 245 );
73+ --myst-input-border-color : rgb (209 , 213 , 218 );
74+ --myst-input-left-color : rgb (0 , 128 , 0 );
75+ --myst-input-left-width : 4px ;
76+ }
77+ html .dark {
78+ --myst-input-background-color : rgb (41 , 49 , 61 );
79+ --myst-input-border-color : rgb (206 , 214 , 221 );
80+ --myst-input-left-color : rgb (0 , 128 , 0 );
81+ --myst-input-left-width : 4px ;
82+ }
7583
7684
77- /* :is(.bd-container, .myst) p:has(+ :is(ol, ul)) {
78- margin-bottom: initial !important;
85+ .relative .group\/block > .relative .group : has (> pre ) {
86+ border-radius : var (--myst-code-border-radius );
87+ border : var (--myst-code-border-width ) var (--myst-input-border-color ) solid;
88+ background-color : var (--myst-input-background-color );
89+ border-left-width : var (--myst-input-left-width );
90+ border-left-color : var (--myst-input-left-color );
7991}
8092
81- :is(.bd-container, .myst) li>ul {
82- margin-top: 0.1em !important;
83- } */
8493
94+ /* cell outputs */
95+ html .light {
96+ --myst-output-background-color : rgb (248 , 255 , 248 );
97+ --myst-output-border-color : blue;
98+ }
99+ html .dark {
100+ --myst-output-background-color : rgb (6 , 75 , 6 );
101+ --myst-output-border-color : rgb (35 , 182 , 211 );
102+ }
103+
104+ html article main .relative .group [data-mdast-node-id ] {
105+ border-radius : var (--myst-code-border-radius );
106+ padding : 5px 10px ;
107+ border : var (--myst-code-border-width ) var (--myst-output-border-color ) solid;
108+ background-color : var (--myst-output-background-color );
109+
110+ & > div {
111+ border : 0px solid # 00000000 !important ;
112+ background-color : # 00000000 !important ;
85113
86- /* execution output cells
87- div.cell div.cell_output .output pre {
88- background-color: #f8fff8 !important;
89- border: 0.3px solid blue !important;
114+ & > code {
115+ border : 0 px solid # 00000000 !important ;
116+ }
117+ }
90118}
91119
92- html[data-theme='dark'] div.cell div.cell_output .output pre {
93- background-color: #064b06 !important;
120+ /* code blocks */
121+ html .light {
122+ --myst-block-background-color : rgb (243 , 244 , 245 );
123+ --myst-block-border-color : rgb (209 , 213 , 218 );
124+ --myst-block-left-color : rgb (0 , 0 , 128 );
125+ --myst-block-left-width : 2px ;
94126}
95- */
127+ html .dark {
128+ --myst-block-background-color : rgb (41 , 49 , 61 );
129+ --myst-block-border-color : rgb (72 , 86 , 107 );
130+ --myst-block-left-color : rgb (0 , 0 , 128 );
131+ --myst-block-left-width : 2px ;
132+ }
133+
134+ html body article main div .group .relative : has (> pre > code ) {
135+ padding : .1rem .25rem !important ;
136+ border-radius : var (--myst-code-border-radius );
137+ background-color : var (--myst-block-background-color );
138+ border : var (--myst-code-border-width ) var (--myst-block-border-color ) solid;
139+ border-left-width : var (--myst-block-left-width );
140+ border-left-color : var (--myst-block-left-color );
141+ & > pre .hljs .block {
142+ background-color : # 00000000 !important ;
143+ }
144+ }
145+
146+ /* inline code : use same style as blocks */
147+ p > code {
148+ background-color : var (--myst-block-background-color );
149+ border : var (--myst-code-border-width ) var (--myst-block-border-color ) solid;
150+ padding : 0.1rem 0.20rem ;
151+ margin-left : 0.20rem ;
152+ margin-right : 0.20rem ;
153+ border-radius : 3px ;
154+ }
155+
156+
157+ /* @media (min-width: 960px) {
158+ .bd-page-width {
159+ max-width: initial !important;
160+ }
161+
162+ >>/* but keep the upper-left logo to grow too much */
163+ /* .navbar-brand.logo>img {
164+ max-width: 250px;
165+ max-height: 170px;
166+ } */
167+
168+ * /
96169/* div.prompt.input_prompt, div.prompt.output_prompt {
97170 opacity: 0.6;
98171} */
@@ -134,7 +207,7 @@ html[data-theme='dark'] {
134207}
135208 */
136209
137- /* standard admonition classes */
210+ /* standard admonition classes */
138211.admonition-smaller {
139212 font-size : smaller;
140213 line-height : 1.2 ;
0 commit comments