Skip to content

Commit

Permalink
Updated to latest version of material theme and updated the emoji plu…
Browse files Browse the repository at this point in the history
…gin config (#1359)

* Updated to latest version of material theme and updated the emoji plugin.

* Updated the stylesheet and also adding auto brightness option.

* Set dark mode primary color to custom as well.

* Added CSS hover adjustment to improve contrast.

* Adding contrast fix on hover/focus for links in menu as well.

* Updated poety lock file

* Updated lock file.

* Updated to the latest version of mkdocs material.
  • Loading branch information
dmundra authored Aug 16, 2024
1 parent 33d0675 commit 0c7740e
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 303 deletions.
19 changes: 14 additions & 5 deletions .config/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,23 +187,32 @@ theme:
favicon: assets/images/favicon.ico
logo: assets/images/ca-logo-white.svg
palette:
# Palette toggle for automatic mode
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode
# Palette toggle for light mode
- scheme: default
- media: "(prefers-color-scheme: light)"
scheme: default
primary: custom
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- scheme: slate
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: custom
toggle:
icon: material/brightness-4
name: Switch to light mode
name: Switch to system preference
markdown_extensions:
- toc:
title: On this page
- attr_list
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- md_in_html
plugins:
- search
Expand Down
Loading

0 comments on commit 0c7740e

Please sign in to comment.