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

Dark-Mode CSS erstellen #90

Open
zdavatz opened this issue Oct 25, 2019 · 3 comments
Open

Dark-Mode CSS erstellen #90

zdavatz opened this issue Oct 25, 2019 · 3 comments

Comments

@zdavatz
Copy link
Owner

zdavatz commented Oct 25, 2019

Das neue Dunkel-Modus CSS muss in den Einstellungen angewählt werden können: https://ch.oddb.org/de/gcc/preferences/

Der Hintergrund muss schwarz sein, so wie bei einem Editor mit schwarzem Hintergrund.

siehe auch: https://github.com/zdavatz/AmiKo-iOS/blob/master/AmiKoDesitin/color-scheme-dark.css

@zdavatz
Copy link
Owner Author

zdavatz commented Oct 25, 2019

Kontrolle ob der Browser Dark-Mode unterstützt oder nicht:

Light Mode

/* Light mode */
@media (prefers-color-scheme: light) {
    body {
        background-color: #000;
        color: white;
    }

Dark Mode

}
/* Dark mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #000;
        color: white;
    }
}

https://stackoverflow.com/questions/50840168/how-to-detect-if-the-os-is-in-dark-mode-in-browsers

@zdavatz
Copy link
Owner Author

zdavatz commented Oct 30, 2019

@zdavatz
Copy link
Owner Author

zdavatz commented Oct 30, 2019

ngiger added a commit to ngiger/oddb.org that referenced this issue Jan 9, 2020
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

1 participant