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", "Content",
{"fields": ("content",)},
),
(
"Custom CSS",
{ {
"fields": ( "fields": ("custom_css",),
"content", "classes": ("collapse",),
"custom_css",
)
}, },
), ),
] ]

View file

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