django-markdown-editor icon indicating copy to clipboard operation
django-markdown-editor copied to clipboard

Newer Django dark mode looks horrible when combined with Martor

Open yatahaze opened this issue 3 years ago • 1 comments
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.

yatahaze avatar Nov 25 '21 23:11 yatahaze

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 avatar Nov 25 '21 23:11 yatahaze

@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
image image

agusmakmun avatar Mar 02 '23 01:03 agusmakmun