mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
docs: add dark mode (#1412)
This commit is contained in:
parent
faa94c4fd1
commit
a19887546b
2 changed files with 16 additions and 3 deletions
|
@ -6,6 +6,10 @@
|
||||||
--md-accent-fg-color--transparent: #00334310;
|
--md-accent-fg-color--transparent: #00334310;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[data-md-color-scheme="slate"] {
|
||||||
|
--md-typeset-a-color: #7f9ece;
|
||||||
|
}
|
||||||
|
|
||||||
.md-header-nav__button.md-logo {
|
.md-header-nav__button.md-logo {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
@ -13,4 +17,4 @@
|
||||||
.md-header-nav__button.md-logo img {
|
.md-header-nav__button.md-logo img {
|
||||||
width: 1.6rem;
|
width: 1.6rem;
|
||||||
height: 1.6rem;
|
height: 1.6rem;
|
||||||
}
|
}
|
||||||
|
|
13
mkdocs.yml
13
mkdocs.yml
|
@ -5,7 +5,16 @@ edit_uri: edit/main/docs/
|
||||||
theme:
|
theme:
|
||||||
name: 'material'
|
name: 'material'
|
||||||
palette:
|
palette:
|
||||||
scheme: containrrr
|
- media: "(prefers-color-scheme: light)"
|
||||||
|
scheme: containrrr
|
||||||
|
toggle:
|
||||||
|
icon: material/weather-night
|
||||||
|
name: Switch to dark mode
|
||||||
|
- media: "(prefers-color-scheme: dark)"
|
||||||
|
scheme: slate
|
||||||
|
toggle:
|
||||||
|
icon: material/weather-sunny
|
||||||
|
name: Switch to light mode
|
||||||
logo: images/logo-450px.png
|
logo: images/logo-450px.png
|
||||||
favicon: images/favicon.ico
|
favicon: images/favicon.ico
|
||||||
extra_css:
|
extra_css:
|
||||||
|
@ -24,7 +33,7 @@ markdown_extensions:
|
||||||
repo: watchtower
|
repo: watchtower
|
||||||
- pymdownx.saneheaders
|
- pymdownx.saneheaders
|
||||||
- pymdownx.tabbed:
|
- pymdownx.tabbed:
|
||||||
alternate_style: true
|
alternate_style: true
|
||||||
nav:
|
nav:
|
||||||
- 'Home': 'index.md'
|
- 'Home': 'index.md'
|
||||||
- 'Introduction': 'introduction.md'
|
- 'Introduction': 'introduction.md'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue