django-markdown-editor
django-markdown-editor copied to clipboard
Newer Django dark mode looks horrible when combined with Martor
trafficstars
The newer version of Django where the admin supports auto dark mode, it looks quite bad when dark mode is initiated on admin pages that have martor fields.
It looks like everything still functions, it just looks bad.
If anyone needs an immediate fix:
MARTOR_ALTERNATIVE_CSS_FILE_THEME = "fix-martor.css"
@media (prefers-color-scheme: dark) {
body {
background-color: black!important;
}
}
I also had to include all stock bootstrap code minus the body to this file.
@yatahaze now it fixed already, please upgrade your martor version:
pip install martor --upgrade
https://github.com/agusmakmun/django-markdown-editor/releases/tag/v1.6.19
Previews
| Bootstrap | Semantic-UI |
|---|---|
![]() |
![]() |

