From 0b9947fed61c3c336265455f9654fda0acab580a Mon Sep 17 00:00:00 2001 From: checktheroads Date: Tue, 2 Jun 2020 01:52:13 -0700 Subject: [PATCH] fix logo styling [skip ci] --- docs/src/css/custom.css | 8 ++++++++ docs/src/theme/Navbar/index.js | 20 +++----------------- 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/docs/src/css/custom.css b/docs/src/css/custom.css index 1835ab3..1bd6c68 100755 --- a/docs/src/css/custom.css +++ b/docs/src/css/custom.css @@ -143,6 +143,14 @@ html[data-theme="dark"] a:hover { color: var(--ifm-color-primary-light); } +html[data-theme="dark"] .navbar .navbar__items a.navbar__brand { + color: var(--ifm-color-primary); +} + +.navbar .navbar__items a.navbar__brand { + color: var(--ifm-color-black); +} + @media screen and (max-width: 997px) { .col.footer__col[class][class] { text-align: left; diff --git a/docs/src/theme/Navbar/index.js b/docs/src/theme/Navbar/index.js index f7bb795..643a26b 100644 --- a/docs/src/theme/Navbar/index.js +++ b/docs/src/theme/Navbar/index.js @@ -45,8 +45,6 @@ function NavLink({ to, href, label, position, ...props }) { ); } -const logoColor = { true: "#ff5e5b", false: "#000" }; - function Navbar() { const context = useDocusaurusContext(); const { siteConfig = {} } = context; @@ -101,11 +99,7 @@ function Navbar() {
{!isMobile && ( - + {title != null && ( {isMobile && ( - + {title != null && (
- + {title != null && (