Display custom list field as scrollable list, fixes #54

This commit is contained in:
mrliptontea
2017-09-03 22:55:03 +01:00
parent 1abd5d2c59
commit 8e5378b65b
3 changed files with 20 additions and 2 deletions

View File

@@ -329,6 +329,7 @@ $label-space: 10px !default;
$legend-color: $gray-dark !default;
$legend-border-color: #e5e5e5 !default;
$list-max-height: 10 * $line-height-computed;
//== Top
//

View File

@@ -572,7 +572,7 @@ label[for=closed] {
}
//== Custom logic (boolean) field displayed as radio buttons
//== Custom fields
//
.check_box_group {
@@ -589,6 +589,7 @@ label[for=closed] {
text-align: left;
}
// Custom logic (boolean) field displayed as radio buttons
&.bool_cf {
label {
@extend %clearfix;
@@ -605,6 +606,22 @@ label[for=closed] {
}
}
}
// Custom list field displayed as checkboxes
&.list_cf {
width: 90%;
max-height: $list-max-height;
padding-top: $input-padding-vertical + 1px;
label {
@include checkbox;
margin-top: 0;
input[type="checkbox"] {
top: -1px;
}
}
}
}

File diff suppressed because one or more lines are too long