Skip to content

Commit 50f13d0

Browse files
committed
feat: adding more content 🚀
Signed-off-by: Sven Gerber <[email protected]>
1 parent a315595 commit 50f13d0

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

‎docs/stylesheets/extra.css

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#logo_light_mode {
2+
display: var(--md-footer-logo-light-mode);
3+
}
4+
5+
#logo_dark_mode {
6+
display: var(--md-footer-logo-dark-mode);
7+
}
8+
9+
[data-md-color-scheme="default"] {
10+
--md-footer-logo-dark-mode: none;
11+
--md-footer-logo-light-mode: block;
12+
}
13+
14+
[data-md-color-scheme="slate"] {
15+
--md-footer-logo-dark-mode: block;
16+
--md-footer-logo-light-mode: none;
17+
}
18+

‎mkdocs.yaml

+10-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ nav:
3030
# Configuration
3131
theme:
3232
favicon: assets/images/favicon.png
33-
logo: assets/images/icon_dark.png
33+
#logo: assets/images/icon_dark.png
34+
custom_dir: overrides
35+
logo_dark_mode: assets/images/icon_white.png
36+
logo_light_mode: assets/images/icon_dark.png
3437
name: material
3538
language: en
3639
font:
@@ -53,14 +56,14 @@ theme:
5356
- media: "(prefers-color-scheme: light)"
5457
scheme: default
5558
primary: white
56-
accent: indigo
59+
accent: blue
5760
toggle:
5861
icon: material/weather-night
5962
name: Switch to dark mode
6063
- media: "(prefers-color-scheme: dark)"
6164
scheme: slate
6265
primary: black
63-
accent: indigo
66+
accent: blue
6467
toggle:
6568
icon: material/weather-sunny
6669
name: Switch to light mode
@@ -78,6 +81,10 @@ extra:
7881
- icon: fontawesome/brands/linkedin
7982
link: https://www.linkedin.com/company/natron-tech
8083

84+
# Extra CSS
85+
extra_css:
86+
- stylesheets/extra.css
87+
8188
# Markdown extensions
8289
markdown_extensions:
8390
- pymdownx.emoji:

‎overrides/partials/logo.html

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<img id="logo_light_mode" src="{{ config.theme.logo_light_mode | url }}" alt="logo">
2+
<img id="logo_dark_mode" src="{{ config.theme.logo_dark_mode | url }}" alt="logo">

0 commit comments

Comments
 (0)