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",
|
"Content",
|
||||||
|
{"fields": ("content",)},
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"Custom CSS",
|
||||||
{
|
{
|
||||||
"fields": (
|
"fields": ("custom_css",),
|
||||||
"content",
|
"classes": ("collapse",),
|
||||||
"custom_css",
|
|
||||||
)
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue