From b78479792d173ea2b720baea300b9c6086581de5 Mon Sep 17 00:00:00 2001 From: Xiang ZHU Date: Mon, 11 Dec 2023 23:00:06 +0100 Subject: [PATCH] tune inline code color --- docs/stylesheets/extra.css | 16 +++++++++++++++- .../migrating_from_jekyll_to_mkdocs_material.md | 6 ++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 8b29d901..5e6260d4 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -5,7 +5,21 @@ /* inline code */ .md-typeset p > code { background-color: #c9c6c6; - color: #0d0d0d; + color: #000000; +} +[data-md-color-scheme="slate"] .md-typeset p > code { + background-color: #525252; + color: #c9c6c6; +} +@media (prefers-color-scheme: dark) { + .md-typeset p > code { + background-color: #c9c6c6; + color: #000000; + } + [data-md-color-scheme="slate"] .md-typeset p > code { + background-color: #525252; + color: #c9c6c6; + } } /* https://blog.ktz.me/making-mkdocs-tables-look-like-github-markdown-tables/ */ diff --git a/draft/migrating_from_jekyll_to_mkdocs_material.md b/draft/migrating_from_jekyll_to_mkdocs_material.md index 5cad5331..8f68abef 100644 --- a/draft/migrating_from_jekyll_to_mkdocs_material.md +++ b/draft/migrating_from_jekyll_to_mkdocs_material.md @@ -17,3 +17,9 @@ Use VSCode replace ## View Source URL bound to `master` branch, not `main` branch. + +## GH Pages deploy source + +From `gh-pages` branch to github action. + +## Add excerpt to all posts