mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-12 17:23:15 +00:00
tweaks to how specific types of field are rendered
This commit is contained in:
parent
ac25b027cf
commit
383bf1e384
4 changed files with 41 additions and 17 deletions
|
|
@ -212,7 +212,7 @@
|
|||
.sequence-member-inner{
|
||||
@include clearfix;
|
||||
position:relative;
|
||||
padding:0em 50px 1em 50px;
|
||||
padding:1.5em 50px;
|
||||
|
||||
> .sequence .sequence-inner{
|
||||
@include column(10);
|
||||
|
|
@ -220,10 +220,6 @@
|
|||
padding-right:0;
|
||||
}
|
||||
|
||||
.sequence-member-inner{
|
||||
padding:0 0 1em 0;
|
||||
}
|
||||
|
||||
> .struct-block > label,
|
||||
> .char_field > label,
|
||||
.sequence > label{
|
||||
|
|
@ -262,21 +258,47 @@
|
|||
padding-bottom:1.2em;
|
||||
}
|
||||
|
||||
.struct-block .char_field > label{
|
||||
.struct-block .widget-text_input > label{
|
||||
display:none;
|
||||
}
|
||||
|
||||
input[type=text], input[type=url], input[type=email], input[type=numeric], .richtext, textarea{
|
||||
.widget-text_input input, .richtext, textarea{
|
||||
border:0;
|
||||
padding-left:0;
|
||||
padding-right:0;
|
||||
padding:0;
|
||||
background-color:transparent;
|
||||
max-width:1024px;
|
||||
}
|
||||
|
||||
.richtext.inEditMode{
|
||||
padding-top:1em;
|
||||
padding-bottom:1em;
|
||||
.widget-admin_image_chooser{
|
||||
label{
|
||||
display:none;
|
||||
}
|
||||
.field-content{
|
||||
display:block;
|
||||
float:none;
|
||||
width:100%;
|
||||
text-align:center;
|
||||
max-width:500px;
|
||||
margin:auto;
|
||||
border:1px solid $color-grey-4;
|
||||
padding:1em;
|
||||
}
|
||||
.chooser{
|
||||
.chosen{
|
||||
padding:0;
|
||||
}
|
||||
.unchosen{
|
||||
&:before{
|
||||
float:none;
|
||||
font-size:4em;
|
||||
margin:0;
|
||||
}
|
||||
}
|
||||
.preview-image{
|
||||
float:none;
|
||||
margin:0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -314,7 +336,6 @@
|
|||
@include box-shadow(inset 0 0 45px rgba(0,0,0,0.3));
|
||||
position:relative;
|
||||
background-color:$color-grey-1;
|
||||
border-top:1px solid transparent;
|
||||
opacity:1;
|
||||
z-index:5;
|
||||
|
||||
|
|
@ -417,7 +438,6 @@
|
|||
&.stream-menu-closed{
|
||||
@include box-shadow(none);
|
||||
height:0px;
|
||||
border-top:1px solid lighten($color-grey-4, 3%);
|
||||
|
||||
.toggle{
|
||||
color:$color-grey-3;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% load wagtailadmin_tags %}
|
||||
<div class="field {{ field|fieldtype }} fieldname-{{ name }} {{ classes }} ">
|
||||
<div class="field {{ field|fieldtype }} widget-{{ field|widgettype }} fieldname-{{ name }} {{ classes }} ">
|
||||
{{ label_tag }}
|
||||
<div class="field-content">
|
||||
<div class="input">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<li id="{{ prefix }}-container" class="sequence-member sequencename-{{ block_type_name }}">
|
||||
<li id="{{ prefix }}-container" class="sequence-member blockname-{{ block_type_name }}">
|
||||
<input type="hidden" id="{{ prefix }}-deleted" name="{{ prefix }}-deleted" value="">
|
||||
<input type="hidden" id="{{ prefix }}-order" name="{{ prefix }}-order" value="{{ index }}">
|
||||
|
||||
|
|
|
|||
|
|
@ -68,7 +68,11 @@ def widgettype(bound_field):
|
|||
try:
|
||||
return camelcase_to_underscore(bound_field.field.widget.__class__.__name__)
|
||||
except AttributeError:
|
||||
return ""
|
||||
try:
|
||||
return camelcase_to_underscore(bound_field.widget.__class__.__name__)
|
||||
except AttributeError:
|
||||
return ""
|
||||
|
||||
|
||||
|
||||
@register.filter
|
||||
|
|
|
|||
Loading…
Reference in a new issue