Unify styles for checkbox/radio lists
This commit is contained in:
@@ -329,7 +329,8 @@ $label-space: 10px !default;
|
|||||||
$legend-color: $gray-dark !default;
|
$legend-color: $gray-dark !default;
|
||||||
$legend-border-color: #e5e5e5 !default;
|
$legend-border-color: #e5e5e5 !default;
|
||||||
|
|
||||||
$list-max-height: 10 * $line-height-computed;
|
$check-list-max-height: 20 * $line-height-computed;
|
||||||
|
$check-list-offset-top: $input-padding-vertical + 1px;
|
||||||
|
|
||||||
//== Top
|
//== Top
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -542,86 +542,50 @@ label[for=closed] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#watchers_form {
|
#watchers_inputs {
|
||||||
overflow: hidden;
|
|
||||||
|
|
||||||
.search_for_watchers {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
#watchers_inputs {
|
|
||||||
display: block;
|
display: block;
|
||||||
max-width: 64em;
|
max-width: 64em;
|
||||||
margin-top: $input-padding-vertical + 1px;
|
max-height: $check-list-max-height;
|
||||||
margin-bottom: $line-height-computed / 2;
|
margin-bottom: $line-height-computed / 2;
|
||||||
|
padding-top: $check-list-offset-top;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
columns: 18em 3;
|
columns: 18em 3;
|
||||||
}
|
|
||||||
|
|
||||||
label.floating {
|
label.floating {
|
||||||
@include checkbox;
|
@include check-list;
|
||||||
display: block;
|
|
||||||
width: auto;
|
|
||||||
margin: 0;
|
|
||||||
float: none;
|
|
||||||
|
|
||||||
input[type="checkbox"] {
|
|
||||||
top: -1px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//== Custom fields
|
//== List of custom field values
|
||||||
//
|
//
|
||||||
|
|
||||||
.check_box_group {
|
.check_box_group {
|
||||||
display: block;
|
display: block;
|
||||||
|
width: 90%;
|
||||||
|
max-height: $check-list-max-height;
|
||||||
|
padding-top: $check-list-offset-top;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|
||||||
label {
|
label {
|
||||||
display: block;
|
@include check-list;
|
||||||
width: auto;
|
|
||||||
margin-bottom: 0;
|
|
||||||
margin-left: 0;
|
|
||||||
float: none;
|
|
||||||
font-weight: normal;
|
|
||||||
text-align: left;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Custom logic (boolean) field displayed as radio buttons
|
// Boolean field displayed as inline radio buttons
|
||||||
&.bool_cf {
|
&.bool_cf {
|
||||||
|
overflow: initial;
|
||||||
|
|
||||||
label {
|
label {
|
||||||
@extend %clearfix;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-right: 10px;
|
margin-right: $padding-base-horizontal;
|
||||||
padding-left: 20px;
|
|
||||||
user-select: none;
|
|
||||||
|
|
||||||
input[type="checkbox"],
|
input[type="checkbox"],
|
||||||
input[type="radio"] {
|
input[type="radio"] {
|
||||||
top: 0;
|
|
||||||
margin-left: -20px;
|
margin-left: -20px;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -138,10 +138,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.splitcontentleft {
|
.splitcontentleft {
|
||||||
margin-bottom: $line-height-computed;
|
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
float: none;
|
float: none;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.splitcontentright {
|
.splitcontentright {
|
||||||
|
|||||||
@@ -41,12 +41,40 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin checkbox() {
|
@mixin checkbox() {
|
||||||
|
@include check;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin radio() {
|
||||||
|
@include check;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin check() {
|
||||||
@extend %clearfix;
|
@extend %clearfix;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
user-select: none;
|
text-align: left;
|
||||||
|
font-weight: $font-weight-normal;
|
||||||
|
|
||||||
input[type="checkbox"] {
|
input[type="checkbox"],
|
||||||
|
input[type="radio"] {
|
||||||
|
width: auto;
|
||||||
margin-left: -20px;
|
margin-left: -20px;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@mixin check-list() {
|
||||||
|
@include check;
|
||||||
|
display: block;
|
||||||
|
width: auto;
|
||||||
|
margin: $btn-padding-vertical 0;
|
||||||
|
float: none;
|
||||||
|
|
||||||
|
@media screen and (min-width: $screen-sm-min) {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"],
|
||||||
|
input[type="radio"] {
|
||||||
|
top: -1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user