Skip to content

Commit

Permalink
add styles for uni bremen, test build page
Browse files Browse the repository at this point in the history
  • Loading branch information
minhnh committed Nov 21, 2024
1 parent 5f36280 commit a702204
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
- feature/gh-page-action-setup

jobs:
build:
Expand Down
6 changes: 6 additions & 0 deletions docs/styles/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
:root {
--md-primary-fg-color: #9d2246;
--md-primary-fg-color--light: #d50c2f;
--md-primary-fg-color--dark: #9d2246;
--md-accent-fg-color: #f39ca9;
}
24 changes: 21 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,29 @@ theme:
icon:
repo: fontawesome/brands/github
palette:
- scheme: slate
# Palette toggle for automatic mode
- media: "(prefers-color-scheme)"
primary: custom
accent: custom
toggle:
icon: material/brightness-4
icon: material/brightness-auto
name: Switch to light mode
- scheme: default
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: custom
accent: custom
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: custom
accent: custom
toggle:
icon: material/brightness-4
name: Switch to system preference

plugins:
- search
Expand All @@ -35,6 +50,9 @@ plugins:
FILE_PATTERNS: "*.py"
RECURSIVE: True

extra_css:
- styles/extra.css

extra:
social:
- icon: fontawesome/brands/github
Expand Down

0 comments on commit a702204

Please sign in to comment.