-
Notifications
You must be signed in to change notification settings - Fork 6
Closes #539: Add dark mode and modernise navbar [create website] #540
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
f760945
#539 dark mode and navbar updates
manciniedoardo 574545e
Apply suggestion from @manciniedoardo
manciniedoardo 89cd53b
Apply suggestion from @manciniedoardo
manciniedoardo c13e295
#539: dynamically assign navbar menu height
manciniedoardo 42887ec
Merge branch '539_dark_mode_and_navbar_menu_height' of github.com:pha…
manciniedoardo a0c5f57
Merge branch 'main' into 539_dark_mode_and_navbar_menu_height
bundfussr bfb8183
#539 dark_mode: remove superfluous library calls
bundfussr 57d7793
#539 dark_mode: test pkgdown workflow fix
bundfussr b55dfa1
#539 dark_mode: trigger workflows
bundfussr 927310f
#539 dark_mode: switch back to main workflow
bundfussr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| /* pkgdown/extra.css */ | ||
|
|
||
| /* Force the navbar to be Admiral Blue (#2c3e50) */ | ||
| .navbar { | ||
| background-color: #2c3e50 !important; | ||
|
|
||
| /* Force the text variables to be white/light */ | ||
| --bs-navbar-color: rgba(255, 255, 255, 0.8) !important; | ||
| --bs-navbar-hover-color: #ffffff !important; | ||
| --bs-navbar-active-color: #ffffff !important; | ||
| --bs-navbar-brand-color: #ffffff !important; | ||
| } | ||
|
|
||
| /* Ensure the hamburger menu (mobile) uses white lines */ | ||
| .navbar-toggler { | ||
| border-color: rgba(255,255,255,0.1) !important; | ||
| } | ||
| .navbar-toggler-icon { | ||
| background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important; | ||
| } | ||
|
|
||
| /* Force any "muted" text (like the version number) to be light gray in the navbar */ | ||
| .navbar .text-muted, | ||
| .navbar small, | ||
| .navbar .version { | ||
| color: #d0d0d0 !important; /* Light gray */ | ||
| } | ||
|
|
||
| .dropdown-menu { | ||
| /* Set a larger fixed height (default is usually around 50vh or 300px) */ | ||
| max-height: 100vh !important; | ||
|
|
||
| /* Smooth scrolling if it does eventually need to scroll */ | ||
| overflow-y: auto !important; | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.