0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 09:33:54 +01:00

only direct children of streamfield should be made full-width/borderless

This commit is contained in:
Matt Westcott 2015-06-06 00:09:47 +01:00
parent 0d5d50cd12
commit 8ee2529bc1
3 changed files with 17 additions and 8 deletions

View File

@ -284,13 +284,6 @@
display:none;
}
.widget-text_input input, .richtext, textarea{
border:0;
padding:0;
background-color:transparent;
max-width:1024px;
}
.widget-admin_image_chooser{
label{
display:none;
@ -322,6 +315,20 @@
}
}
}
/*
Text inputs, rich text fields and textareas that are direct children of streamfield
should be borderless and full-width
*/
.stream-member-inner > .widget-text_input > .field-content > .input > input,
.stream-member-inner > .field > .field-content > .input > .richtext,
.stream-member-inner > .field > .field-content > .input > textarea{
border:0;
padding:0;
background-color:transparent;
max-width:1024px;
}
}
/* Object controls */

View File

@ -20,7 +20,7 @@
{% block header_controls %}{% endblock %}
<div class="sequence-member-inner">{{ child.render_form }}</div>
<div class="sequence-member-inner {% block sequence_member_inner_classes %}{% endblock %}">{{ child.render_form }}</div>
{% block footer_controls %}{% endblock %}
</li>

View File

@ -16,6 +16,8 @@
</div>
{% endblock %}
{% block sequence_member_inner_classes %}stream-member-inner{% endblock %}
{% block footer_controls %}
{% include "wagtailadmin/block_forms/stream_menu.html" with menu_id=prefix|add:"-appendmenu" state="closed" %}
{% endblock %}