@@ -135,3 +135,66 @@ h2:hover a.headerlink, h3:hover a.headerlink {
135135 opacity : 1 ;
136136 transition : opacity 0.5s ;
137137}
138+
139+
140+ /** Copied from the pydata-sphinx-theme **/
141+ div .admonition , .admonition {
142+ margin : 1.5625em auto;
143+ padding : 0 0.6rem 0.8rem ;
144+ overflow : hidden;
145+ box-shadow : 0 .2rem .5rem rgba (0 , 0 , 0 , 0.1 ), 0 0 .0625rem rgba (0 , 0 , 0 , 0.1 ) !important ;
146+ /* break-inside has replaced page-break-inside and is widely usable since 2019 */
147+ page-break-inside : avoid;
148+ break-inside : avoid;
149+ border-left : 0.2rem solid;
150+ border-color : # 276be9 ;
151+ border-radius : 0.25rem ;
152+ background-color : # fff ;
153+ /** * Special-case for a `sidebar` class that makes the admonition float to * the right like the {
154+ sidebar
155+ }
156+ directive. */
157+ }
158+ div .admonition * : last-child , .admonition * : last-child {
159+ margin-bottom : 0 ;
160+ }
161+ div .admonition p .admonition-title ~ * , .admonition p .admonition-title ~ * {
162+ margin-left : 1.4rem ;
163+ margin-right : 1.4rem ;
164+ }
165+ div .admonition > ol , .admonition > ol , div .admonition > ul , .admonition > ul {
166+ margin-left : 1em ;
167+ }
168+ div .admonition > .admonition-title , .admonition > .admonition-title {
169+ margin : 0 -0.6rem ;
170+ padding : 0.4rem 0.6rem 0.4rem 2rem ;
171+ /* font-weight: var(--pst-admonition-font-weight-heading); */
172+ position : relative;
173+ background-color : # dce7fc ;
174+ z-index : 1 ;
175+ }
176+ div .admonition > .admonition-title ::after , .admonition > .admonition-title ::after {
177+ position : absolute;
178+ left : 0.5rem ;
179+ width : 1rem ;
180+ height : 1rem ;
181+ /* color: var(--pst-color-info); */
182+ /* font: var(--fa-font-solid); */
183+ line-height : inherit;
184+ /* content: "\f05a"; */
185+ opacity : 1 ;
186+ }
187+ div .admonition > .admonition-title + * , .admonition > .admonition-title + * {
188+ margin-top : 0.4em ;
189+ }
190+
191+ div .admonition .note , .admonition .note {
192+ border-color : # 276be9 ;
193+ }
194+ div .admonition .note > .admonition-title , .admonition .note > .admonition-title {
195+ background-color : # dce7fc ;
196+ }
197+ div .admonition .note > .admonition-title ::after , .admonition .note > .admonition-title ::after {
198+ color : # 276be9 ;
199+ /* content: "\f05a"; */
200+ }
0 commit comments