Add deprecated admonition
This commit is contained in:
parent
5b4a0a8845
commit
e305c9a8df
2 changed files with 33 additions and 0 deletions
|
@ -1,3 +1,21 @@
|
|||
:root {
|
||||
--md-admonition-icon--deprecated: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 2h4c3.31 0 5 2.69 5 6v10.66C16.88 17.63 15.07 17 12 17s-4.88.63-7 1.66V8c0-3.31 1.69-6 5-6M8 8v1.5h8V8zm1 4v1.5h6V12zM3 22v-.69c2.66-1.69 10.23-5.47 18-.06V22z"/></svg>')
|
||||
}
|
||||
.md-typeset .admonition.deprecated,
|
||||
.md-typeset details.deprecated {
|
||||
border-color: rgb(98, 114, 164);
|
||||
}
|
||||
.md-typeset .deprecated > .admonition-title,
|
||||
.md-typeset .deprecated > summary {
|
||||
background-color: rgba(98, 114, 164, 0.1);
|
||||
}
|
||||
.md-typeset .deprecated > .admonition-title::before,
|
||||
.md-typeset .deprecated > summary::before {
|
||||
background-color: rgb(98, 114, 164);
|
||||
-webkit-mask-image: var(--md-admonition-icon--deprecated);
|
||||
mask-image: var(--md-admonition-icon--deprecated);
|
||||
}
|
||||
|
||||
.note-blue {
|
||||
color: #448AFF;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue