From 30b491b8b1490db03e644689dedd170d5ea8af65 Mon Sep 17 00:00:00 2001 From: Alex Guerra Date: Wed, 13 Nov 2019 08:37:04 -0600 Subject: [PATCH] Fix light background in docusaurus night mode (#7936) * Fix light background in docusaurus night mode Closes #7930 * Rename lightBackground to gettingStartedSection --- docusaurus/website/src/pages/index.js | 2 +- docusaurus/website/src/pages/styles.module.css | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docusaurus/website/src/pages/index.js b/docusaurus/website/src/pages/index.js index d6036001c3d..f04c6168b2d 100644 --- a/docusaurus/website/src/pages/index.js +++ b/docusaurus/website/src/pages/index.js @@ -79,7 +79,7 @@ function Home() { )} -
+
diff --git a/docusaurus/website/src/pages/styles.module.css b/docusaurus/website/src/pages/styles.module.css index 60c7acff20a..e678866e9a1 100644 --- a/docusaurus/website/src/pages/styles.module.css +++ b/docusaurus/website/src/pages/styles.module.css @@ -40,7 +40,10 @@ margin: 0 auto; } -.lightBackground { +.gettingStartedSection { background-color: #f7f7f7; - color: rgb(31, 34, 39); +} + +html[data-theme='dark'] .gettingStartedSection { + background-color: #33363b; }