Update custom css look
This commit is contained in:
parent
868df05f2f
commit
59a7207728
2 changed files with 9 additions and 6 deletions
|
@ -41,11 +41,13 @@ class ArticleAdmin(admin.ModelAdmin):
|
|||
),
|
||||
(
|
||||
"Content",
|
||||
{"fields": ("content",)},
|
||||
),
|
||||
(
|
||||
"Custom CSS",
|
||||
{
|
||||
"fields": (
|
||||
"content",
|
||||
"custom_css",
|
||||
)
|
||||
"fields": ("custom_css",),
|
||||
"classes": ("collapse",),
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Reference in a new issue