Add css to style tags in admin
This commit is contained in:
parent
1784b44680
commit
c11141e74b
2 changed files with 30 additions and 0 deletions
|
@ -18,6 +18,7 @@ class PostAdmin(EnhancedModelAdminMixin, FrontendEditableAdmin,
|
|||
raw_id_fields = ['author']
|
||||
frontend_editable_fields = ("title", "abstract")
|
||||
enhance_exclude = ('main_image', 'tags')
|
||||
change_form_template = "admin/djangocms_blog/post_change_form.html"
|
||||
|
||||
fieldsets = [
|
||||
(None, {
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
{% extends "admin/hvad/change_form.html" %}
|
||||
{% load i18n admin_modify %}
|
||||
|
||||
{% block extrahead %}
|
||||
{{ block.super }}
|
||||
<style type="text/css">
|
||||
.as-selections.vTextField {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.as-results ul.as-list {
|
||||
margin-left:9em;
|
||||
padding-left:0;
|
||||
box-shadow: none !important;
|
||||
border: 1px solid #888888 !important;
|
||||
}
|
||||
.as-results ul.as-list li {
|
||||
list-style: none;
|
||||
}
|
||||
ul.as-selections.vTextField {
|
||||
padding-left: 10px;
|
||||
margin-left:9em;
|
||||
}
|
||||
|
||||
ul.as-selections li {
|
||||
list-style: none;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
Loading…
Reference in a new issue