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

Improve default osm dark mode #106

Open
Nekzuris opened this issue Dec 12, 2024 · 2 comments
Open

Improve default osm dark mode #106

Nekzuris opened this issue Dec 12, 2024 · 2 comments

Comments

@Nekzuris
Copy link
Contributor

The tooltip is white in dark mode, see openstreetmap/openstreetmap-website#5329 (comment)
I should PR a fix directly to openstreetmap-website but idk how to integrate it properly with their .scss and test it.

@Nekzuris
Copy link
Contributor Author

I also made a more modern search bar without the rectangular background and transparency like this:
image

my css, works on default but needs integration with your resizable sidebar:

#sidebar, .bg-body-secondary {
    background: none !important;
}    
#sidebar > div:not(:first-child) {
    background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
}
.search_form .form-control {
    background-color: rgba(255,255,255,.75);
}
@media(prefers-color-scheme: dark) {
    .search_form .form-control {
        background-color: rgba(0,0,0,.75) !important;
    }
}

@deevroman
Copy link
Owner

The tooltip is white in dark mode

in general, this is not critical, since users of the extension most likely do not read these tooltips :) But I'll think about it

modern search bar

I'll make a note for #89

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

2 participants