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

Page is really hard to use with dark mode #34

Open
dustin-we opened this issue Oct 18, 2022 · 1 comment
Open

Page is really hard to use with dark mode #34

dustin-we opened this issue Oct 18, 2022 · 1 comment

Comments

@dustin-we
Copy link

Hi,

I set my firefox to dark mode, which automatically sets django admin to dark mode.

What is not affected is the page for this project. It looks as follows:

grafik

I have never done open source, but this seems like an "easy" to fix issue, I'll get on to fixing it.

Creating issue to make it known :)

@jaredhendrickson13
Copy link

If it helps, I was able to workaround this by just adding a block to my admin site CSS. Probably not the ideal solution, but it at least makes things readable and changes based on the systems color scheme preference.

/* Fixes dark mode in django-log-viewer */
@media (prefers-color-scheme: dark) {
    #log-entries td {
        background-color: #1c1c1c !important;
    }

    .sorting_1 {
        background-color: #2e2e2e !important;
    }

    label, .dataTables_info, #log-entries_info, #log-files-list_previous, #log-files-list_next, #log-entries_previous, #log-entries_next {
        color: white !important;
    }
}

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