forked from rackerlabs/genestack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add custom genestack admonition (rackerlabs#618)
* docs: Add custom genestack admonition type for specific references to the Genestack way... Signed-off-by: Ken Crandall <[email protected]> * fix: fix trailing whitespace (of course) Signed-off-by: Ken Crandall <[email protected]> --------- Signed-off-by: Ken Crandall <[email protected]>
- Loading branch information
1 parent
6aabdf5
commit 2b65c46
Showing
4 changed files
with
237 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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! |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters