From a16b6262d9a3f69f1aedd65344d079884d6f7029 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 21 Mar 2023 11:23:02 +0700 Subject: [PATCH] add style for admotion --- mkdocs/docs/stylesheets/style.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mkdocs/docs/stylesheets/style.css b/mkdocs/docs/stylesheets/style.css index e2eec2a..13f465b 100644 --- a/mkdocs/docs/stylesheets/style.css +++ b/mkdocs/docs/stylesheets/style.css @@ -19,6 +19,18 @@ h2 { font-family: Sen-Bold; } +.md-typeset .note > .admonition-title { + background-color: var(--accent-font-dark); +} + +.md-typeset .note > .admonition-title::before { + background-color: var(--main-font); +} + +.md-typeset .admonition.note { + border-color: var(--accent-font-light); +} + [data-md-color-scheme="tubearchivist"] { --md-default-bg-color: var(--main-bg); --md-default-fg-color: var(--main-font); @@ -30,6 +42,8 @@ h2 { --md-code-bg-color: var(--highlight-bg); --md-code-fg-color: var(--accent-font-light); --md-accent-fg-color: var(--accent-font-light); + --md-admonition-bg-color: var(--highlight-bg); + --md-admonition-fg-color: var(--main-font); } :root {