Update custom css look

This commit is contained in:
Gabriel Augendre 2020-12-27 15:49:27 +01:00
parent 868df05f2f
commit 59a7207728
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4
2 changed files with 9 additions and 6 deletions

View file

@ -41,11 +41,13 @@ class ArticleAdmin(admin.ModelAdmin):
),
(
"Content",
{"fields": ("content",)},
),
(
"Custom CSS",
{
"fields": (
"content",
"custom_css",
)
"fields": ("custom_css",),
"classes": ("collapse",),
},
),
]

View file

@ -1,13 +1,14 @@
#id_content, #id_custom_css {
font-family: "JetBrains Mono", monospace;
min-height: 30em;
resize: vertical;
}
#id_content {
width: calc(100% - 1em);
height: 44.5em;
resize: vertical;
}
label[for=id_content] {
label[for=id_content], label[for=id_custom_css] {
display: none;
}