-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: make dark style of navbar properly #179
Conversation
@@ -156,15 +156,17 @@ html[data-theme='dark'], | |||
|
|||
&--dark { | |||
--ifm-navbar-background-color: #242526; | |||
--ifm-menu-color-background-active: rgba(255, 255, 255, 0.05); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Increased contrast for active link background to make it more visible.
@@ -169,7 +169,7 @@ | |||
</a> | |||
<button type="button" class="clean-btn navbar-sidebar__close"> | |||
<svg viewBox="0 0 413.348 413.348" width="20" height="20"> | |||
<path d="m413.348 24.354-24.354-24.354-182.32 182.32-182.32-182.32-24.354 24.354 182.32 182.32-182.32 182.32 24.354 24.354 182.32-182.32 182.32 182.32 24.354-24.354-182.32-182.32z"/> | |||
<path fill="currentColor" d="m413.348 24.354-24.354-24.354-182.32 182.32-182.32-182.32-24.354 24.354 182.32 182.32-182.32 182.32 24.354 24.354 182.32-182.32 182.32 182.32 24.354-24.354-182.32-182.32z"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using current color for close button to consistency with toggle button (seems better).
Dist CSS Diffdiff --git a/packages/core/dist/css/default/default.css b/packages/core/dist-branch/css/default/default.css
index 553f0d9..c5ab10d 100644
--- a/packages/core/dist/css/default/default.css
+++ b/packages/core/dist-branch/css/default/default.css
@@ -2499,7 +2499,7 @@ html[data-theme='dark'],
}
.navbar__brand:hover {
- color: inherit;
+ color: var(--ifm-navbar-link-hover-color);
text-decoration: none;
}
@@ -2571,16 +2571,18 @@ html[data-theme='dark'],
.navbar--dark {
--ifm-navbar-background-color: #242526;
+ --ifm-menu-color-background-active: rgba(255, 255, 255, 0.05);
--ifm-navbar-link-color: var(--ifm-color-gray-100);
--ifm-navbar-link-hover-color: var(--ifm-color-primary);
--ifm-navbar-search-input-background-color: rgba(255, 255, 255, 0.1);
--ifm-navbar-search-input-color: var(--ifm-color-white);
--ifm-navbar-search-input-placeholder-color: rgba(255, 255, 255, 0.5);
--ifm-menu-color: var(--ifm-color-gray-300);
- --ifm-navbar-toggle-color: var(--ifm-color-white);
}
-.navbar--dark .navbar__toggle {
+.navbar--dark .navbar__toggle,
+ .navbar--dark .navbar-sidebar__close,
+ .navbar--dark .navbar-sidebar__back {
color: var(--ifm-color-white);
}
|
Size Change: +916 B (0%) Total Size: 566 kB
ℹ️ View Unchanged
|
✔️ Deploy Preview for infima ready! 🔨 Explore the source changes: 9c82026 🔍 Inspect the deploy log: https://app.netlify.com/sites/infima/deploys/6155c7f114f1d1000817941c 😎 Browse the preview: https://deploy-preview-179--infima.netlify.app/demo |
thanks 👍 |
Fixes bugs reported in the comment facebook/docusaurus#3937 (comment)