diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css new file mode 100644 index 00000000..6f13a2ab --- /dev/null +++ b/docs/stylesheets/extra.css @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2016-2023 Martin Donath + * Alex Voss + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + +:root { + --md-status--alert: url('data:image/svg+xml;charset=utf-8,'); + --md-status--deprecated: url('data:image/svg+xml;charset=utf-8,'); + --md-status--new: url('data:image/svg+xml;charset=utf-8,'); +} + +.md-status--alert::after { + mask-image: var(--md-status--alert); + -webkit-mask-image: var(--md-status--alert); +} + +.md-status--deprecated::after { + mask-image: var(--md-status--deprecated); + -webkit-mask-image: var(--md-status--deprecated); +} + +.md-status--new::after { + mask-image: var(--md-status--new); + -webkit-mask-image: var(--md-status--new); +} \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 66e8a2e9..41aac802 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -181,10 +181,16 @@ markdown_extensions: class: mermaid format: !!python/name:pymdownx.superfences.fence_code_format extra: + status: + alert: "Warning present" + deprecated: "Deprecated content included" + new: "New content available" social: - icon: fontawesome/brands/github link: https://github.com/SagerNet/sing-box generator: false +extra_css: + - stylesheets/extra.css plugins: - search - i18n: