kopia lustrzana https://github.com/wagtail/wagtail
Add helper class to have form without floated elements
and apply for task chooserpull/6257/head
rodzic
fb1674eb57
commit
310ea2af35
|
@ -64,6 +64,27 @@ label,
|
|||
}
|
||||
}
|
||||
|
||||
// Provide a way to "unfloat" all form elements
|
||||
.no-float-elements {
|
||||
label,
|
||||
.label {
|
||||
display: block;
|
||||
float: none;
|
||||
padding: 1.2em 0 0.8em;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
li > label,
|
||||
li > .label {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.helptext {
|
||||
display: inline-block;
|
||||
margin-bottom: 0.8em;
|
||||
}
|
||||
}
|
||||
|
||||
input,
|
||||
textarea,
|
||||
select,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{{ form.media.css }}
|
||||
{{ form.media.js }}
|
||||
|
||||
<form class="task-create" action="{{ add_url }}" enctype="multipart/form-data" method="POST" novalidate>
|
||||
<form class="task-create no-float-elements" action="{{ add_url }}" enctype="multipart/form-data" method="POST" novalidate>
|
||||
{% csrf_token %}
|
||||
|
||||
{{ form }}
|
||||
|
|
Ładowanie…
Reference in New Issue