diff --git a/docs/admonition-test.md b/docs/admonition-test.md new file mode 100644 index 00000000..e3846d8d --- /dev/null +++ b/docs/admonition-test.md @@ -0,0 +1,15 @@ +# Custom Genestack Admonition + +There is now a 'genestack' admonition type: + +``` +!!! genestack + [Genestack](https://github.com/rackerlabs/genestack){:target="_blank"} + is a cool new project! +``` + +It renders like this: + +!!! genestack + [Genestack](https://github.com/rackerlabs/genestack){:target="_blank"} + is a cool new project! diff --git a/docs/assets/images/genestack-mono.svg b/docs/assets/images/genestack-mono.svg new file mode 100644 index 00000000..8dc4582c --- /dev/null +++ b/docs/assets/images/genestack-mono.svg @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/overrides/stylesheets/admonition.css b/docs/overrides/stylesheets/admonition.css new file mode 100644 index 00000000..6cbc2ab7 --- /dev/null +++ b/docs/overrides/stylesheets/admonition.css @@ -0,0 +1,25 @@ + +/* +Custom Genestack Admonition Type +*/ + +:root { + --md-admonition-icon--genestack: url('/assets/images/genestack-mono.svg'); +} + +.md-typeset .admonition.genestack, +.md-typeset details.genestack { + border-color: rgb(158, 0, 0); +} + +.md-typeset .genestack>.admonition-title, +.md-typeset .genestack>summary { + background-color: rgba(158, 0, 0, 0.1); +} + +.md-typeset .genestack>.admonition-title::before, +.md-typeset .genestack>summary::before { + background-color: rgb(158, 0, 0); + -webkit-mask-image: var(--md-admonition-icon--genestack); + mask-image: var(--md-admonition-icon--genestack); +} diff --git a/mkdocs.yml b/mkdocs.yml index 70d80861..a09bd0c6 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -83,6 +83,7 @@ extra: extra_css: - overrides/stylesheets/adr.css + - overrides/stylesheets/admonition.css plugins: - search