mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT Added generic 'small' form style
This commit is contained in:
parent
ca047b64b8
commit
041da993fa
@ -101,6 +101,10 @@ form.nostyle .middleColumn { margin-left: 0; }
|
|||||||
form.stacked .field label, .field.stacked label { display: block; float: none; padding-bottom: 10px; }
|
form.stacked .field label, .field.stacked label { display: block; float: none; padding-bottom: 10px; }
|
||||||
form.stacked .field .middleColumn, .field.stacked .middleColumn { margin-left: 0px; clear: left; }
|
form.stacked .field .middleColumn, .field.stacked .middleColumn { margin-left: 0px; clear: left; }
|
||||||
|
|
||||||
|
form.small .field label.left, .field.small label.left { width: 112px; }
|
||||||
|
form.small .field .middleColumn, .field.small .middleColumn { margin-left: 120px; }
|
||||||
|
form.small .field input.text, form.small .field textarea, form.small .field select, form.small .field .TreeDropdownField, .field.small input.text, .field.small textarea, .field.small select, .field.small .TreeDropdownField { width: auto; }
|
||||||
|
|
||||||
.field { /* TreeDropdowns */ /* dropdowns */ /* chzn override */ /* Date Fields */ }
|
.field { /* TreeDropdowns */ /* dropdowns */ /* chzn override */ /* Date Fields */ }
|
||||||
.field .TreeDropdownField { padding: 0; }
|
.field .TreeDropdownField { padding: 0; }
|
||||||
.field .TreeDropdownField .treedropdownfield-panel { border: 1px solid #b3b3b3; border-top: none; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -o-border-bottom-left-radius: 4px; -ms-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -o-border-bottom-right-radius: 4px; -ms-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
|
.field .TreeDropdownField .treedropdownfield-panel { border: 1px solid #b3b3b3; border-top: none; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -o-border-bottom-left-radius: 4px; -ms-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -o-border-bottom-right-radius: 4px; -ms-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
|
||||||
|
@ -204,6 +204,25 @@ form.stacked .field, .field.stacked {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
form.small .field, .field.small {
|
||||||
|
label {
|
||||||
|
&.left {
|
||||||
|
width: $grid-horizontal * 14;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.middleColumn {
|
||||||
|
margin-left: $grid-horizontal * 15;
|
||||||
|
}
|
||||||
|
|
||||||
|
input.text,
|
||||||
|
textarea,
|
||||||
|
select,
|
||||||
|
.TreeDropdownField {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.field {
|
.field {
|
||||||
/* TreeDropdowns */
|
/* TreeDropdowns */
|
||||||
.TreeDropdownField {
|
.TreeDropdownField {
|
||||||
|
Loading…
Reference in New Issue
Block a user