Skip to content
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

Add dark-mode toggler for navbar-light #26

Open
ghost opened this issue May 15, 2020 · 0 comments
Open

Add dark-mode toggler for navbar-light #26

ghost opened this issue May 15, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented May 15, 2020

Hi,

please add a dark-mode toggle for the "light navbar". Downstream on doc.o.o, I added this:

@media (prefers-color-scheme: dark) {
      .navbar-light .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
      }
}

This is currently an issue e.g. on the wiki where you need to tap a pitch-black area to bring up the menu on mobile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants