From fcc2e00f03cb2bd163bf160df018e0d1e4123ade Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Tue, 14 Oct 2025 00:15:52 +0300 Subject: [PATCH] style/admonitions: add background color --- apps/client/src/stylesheets/style.css | 3 +-- apps/client/src/stylesheets/theme-next/notes/text.css | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css index ff9c30850..d18919fe7 100644 --- a/apps/client/src/stylesheets/style.css +++ b/apps/client/src/stylesheets/style.css @@ -2277,9 +2277,8 @@ footer.webview-footer button { .admonition { --accent-color: var(--card-border-color); + background: color-mix(in srgb, var(--accent-color) 15%, transparent); border: 1px solid var(--accent-color); - box-shadow: var(--card-box-shadow); - background: var(--card-background-color); border-radius: 0.5em; padding: 1em; margin: 1.25em 0; diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.css index a16afb8aa..0cbf00098 100644 --- a/apps/client/src/stylesheets/theme-next/notes/text.css +++ b/apps/client/src/stylesheets/theme-next/notes/text.css @@ -354,6 +354,7 @@ align-items: center; width: 100%; margin: 4px; + background: color-mix(in srgb, var(--accent) 15%, var(--main-background-color)); padding-inline-end: 2em; border: 1px solid var(--accent); border-radius: 6px;