Skip to content

Commit 2f5b68a

Browse files
committed
switch from abstract to note admonitiion
1 parent a05cbe0 commit 2f5b68a

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

docs/src/static/css/extra.css

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,27 +84,32 @@
8484
border-color: #ffffff17 !important;
8585
}
8686

87-
/* Colors for "abstract" admonition */
88-
[data-md-color-scheme="slate"] .md-typeset .admonition.abstract,
89-
[data-md-color-scheme="slate"] .md-typeset details.abstract {
87+
/* Colors for "note" admonition */
88+
[data-md-color-scheme="slate"] .md-typeset .admonition.note,
89+
[data-md-color-scheme="slate"] .md-typeset details.note {
9090
background: rgb(43 110 98/ 0.2);
9191
padding: 0.8rem 1.4rem;
9292
border-radius: 0.8rem;
9393
}
9494

95-
[data-md-color-scheme="slate"] .md-typeset .abstract .admonition-title,
96-
[data-md-color-scheme="slate"] .md-typeset .abstract summary {
95+
[data-md-color-scheme="slate"] .md-typeset .note .admonition-title,
96+
[data-md-color-scheme="slate"] .md-typeset .note summary {
9797
font-size: 1rem;
9898
background: transparent;
9999
padding-bottom: 0;
100100
color: rgb(68 172 153);
101101
}
102102

103-
[data-md-color-scheme="slate"] .md-typeset .abstract .admonition-title:before {
103+
[data-md-color-scheme="slate"] .md-typeset .note .admonition-title:before {
104104
font-size: 1.1rem;
105105
background-color: rgb(68 172 153);
106106
}
107107

108+
.md-typeset .note>.admonition-title:before,.md-typeset .note>summary:before {
109+
-webkit-mask-image: var(--md-admonition-icon--abstract);
110+
mask-image: var(--md-admonition-icon--abstract)
111+
}
112+
108113
/* Move the sidebars to the edges of the page */
109114
.md-main__inner.md-grid {
110115
margin-left: 0;

0 commit comments

Comments
 (0)