agusmakmun / agusmakmun/django-markdown-editor

CSS styles are conflicting with Django Admin

Abierto
#185 9 comentarios 2 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
901
Forks
1.3k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

When loading martor in the admin, it loads CSS rules which overrides many admin styles. For example, when using bootstrap theme, it causes collapsible fieldsets to be completely hidden:

```css
.collapse:not(.show) {
display: none;
}
```

Even when using the "semantic" theme, there are many style definitions that are not namespaced, and causes default admin styles to be overriden, for example, `h2` headings look way to big because of this rule in `martor-admin.css`:

```css
h2 {
font-size: 16px!important;
margin: 1em 0 0.5em 0!important;
}
```

I'm assuming these style definitions are only meant for the preview. If that's the case, then they should be namespaced to the preview box.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.