Skip to content

Commit d52ceba

Browse files
committed
Create stylesheet
1 parent 74d4a0a commit d52ceba

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

source/docs/stylesheets/extra.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
:root {
2+
--md-admonition-icon--caution: .icons/material/error.svg
3+
}
4+
.md-typeset .admonition.caution,
5+
.md-typeset details.caution {
6+
border-color: rgb(192, 189, 0);
7+
}
8+
.md-typeset .caution > .admonition-title,
9+
.md-typeset .caution > summary {
10+
background-color: rgba(192, 189, 0, 0.1);
11+
}
12+
.md-typeset .caution > .admonition-title::before,
13+
.md-typeset .caution > summary::before {
14+
background-color: rgb(192, 189, 0);
15+
-webkit-mask-image: var(--md-admonition-icon--caution);
16+
mask-image: var(--md-admonition-icon--caution);
17+
}

source/mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ theme:
9393
toggle:
9494
icon: material/brightness-4
9595
name: Switch to system preference
96+
extra_css:
97+
- stylesheets/extra.css
9698
plugins:
9799
- git-committers:
98100
repository: Skyhawkbotics/firstdocs

0 commit comments

Comments
 (0)