From 430ce073d2e00fed8e7fbbe8dae56d4e5338bd9f Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Wed, 18 Sep 2024 12:36:02 +0200 Subject: [PATCH] docs: Improve warning callout docs (#17997) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR is a quick follow-up to https://github.com/zed-industries/zed/pull/1795. 😊 Release Notes: - N/A --- docs/theme/css/general.css | 2 +- docs/theme/css/variables.css | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/theme/css/general.css b/docs/theme/css/general.css index 6f086a1052447b293c7fcb75ab747c9daffad4c9..5567ae7fb07d6cd0d69f05f2056ed1a2351b50ab 100644 --- a/docs/theme/css/general.css +++ b/docs/theme/css/general.css @@ -268,7 +268,7 @@ blockquote .warning:before { .warning { margin: auto; padding: 1rem 1.25rem; - color: var(--fg); + color: var(--full-contrast); background-color: var(--warning-bg); border: 1px solid var(--warning-border); } diff --git a/docs/theme/css/variables.css b/docs/theme/css/variables.css index 59f239826472a83885d2525288ddcf66718b83b9..a7c0ed7114b40550f8fca2571388cafda856656a 100644 --- a/docs/theme/css/variables.css +++ b/docs/theme/css/variables.css @@ -111,7 +111,7 @@ --icons-hover: hsl(220, 14%, 90%); --icon-btn-bg-hover: hsl(220, 93%, 42%, 0.4); - --links: hsl(220, 93%, 70%); + --links: hsl(220, 93%, 75%); --link-line-decoration: hsl(220, 92%, 80%, 0.4); --link-line-decoration-hover: hsl(220, 92%, 80%, 0.8); --full-contrast: #fff; @@ -136,6 +136,10 @@ --table-header-bg: hsl(220, 13%, 25%, 0.5); --table-alternate-bg: hsl(220, 13%, 20%, 0.4); + --warning-border: hsl(25, 100%, 85%, 0.2); + --warning-bg: hsl(42, 100%, 40%, 0.1); + --warning-icon: hsl(42, 100%, 80%); + --searchbar-border-color: hsl(220, 13%, 30%); --searchbar-bg: hsl(220, 13%, 22%, 0.5); --searchbar-fg: hsl(220, 14%, 71%);