From d844ef210b1e673d73069a6c1975ce4badf26569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matev=C5=BE=20Jekovec?= Date: Fri, 19 Apr 2024 10:12:02 +0200 Subject: [PATCH 1/2] logo: Workaround for browsers that don't pass CSS to external SVGs --- docusaurus.config.ts | 2 +- static/img/logo.svg | 4 ++-- static/img/logo_dark.svg | 30 ++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 static/img/logo_dark.svg diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 864499e8f1..fef9a26a8b 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -91,7 +91,7 @@ const config: Config = { logo: { alt: 'Oasis Docs', src: 'img/logo.svg', - //srcDark: 'img/logo_dark.svg', + srcDark: 'img/logo_dark.svg', // Workaround for browsers that don't support @media (prefers-color-scheme: dark) in external SVGs. // Uncomment src and style below to enable christmas mode ;) //src: 'img/logo_christmas.png', //style: {height: '48px', maxWidth: '58px', marginTop: '-15px', marginLeft: '-15px'}, diff --git a/static/img/logo.svg b/static/img/logo.svg index 2e236d5321..67ee283ea5 100644 --- a/static/img/logo.svg +++ b/static/img/logo.svg @@ -2,12 +2,12 @@