agusmakmun / agusmakmun/django-markdown-editor
CSS styles are conflicting with Django Admin
- 主要言語
- JavaScript
- スター
- 901
- フォーク
- 1.3k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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.
コントリビューションガイド
調査の方向性
Start with martor-admin.css and inspect how its unnamespaced rules are applied in the Django admin, especially the collapse and h2 examples. Scope the affected styles to the preview box, then verify that the Bootstrap collapsible fieldsets, admin headings, and preview styling display correctly.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- css, django
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100