mirror of https://github.com/ColorlibHQ/AdminLTE
fixed select2 paddings/margins
parent
448556d366
commit
60830bb6c7
|
@ -16,7 +16,7 @@
|
|||
.select2-selection--single {
|
||||
border: $input-border-width solid $input-border-color;
|
||||
//border-radius: $input-radius;
|
||||
padding: 6px 12px;
|
||||
padding: ($input-padding-y * 1.25) $input-padding-y;
|
||||
height: $input-height;
|
||||
}
|
||||
|
||||
|
@ -141,6 +141,38 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.select2-selection__choice {
|
||||
background-color: $primary;
|
||||
border-color: darken($primary, 5%);
|
||||
color: color-yiq($primary);
|
||||
padding: 0 10px;
|
||||
margin-top: .31rem;
|
||||
}
|
||||
|
||||
.select2-selection__choice__remove {
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
float: right;
|
||||
margin-left: 5px;
|
||||
margin-right: -2px;
|
||||
|
||||
&:hover {
|
||||
color: $white;
|
||||
}
|
||||
}
|
||||
|
||||
.text-sm &,
|
||||
&.text-sm {
|
||||
.select2-search.select2-search--inline {
|
||||
.select2-search__field {
|
||||
margin-top: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.select2-selection__choice {
|
||||
margin-top: .4rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.select2-container--focus .select2-selection--multiple {
|
||||
|
@ -152,26 +184,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
.select2-selection--multiple {
|
||||
.select2-selection__choice {
|
||||
background-color: $primary;
|
||||
border-color: darken($primary, 5%);
|
||||
color: color-yiq($primary);
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.select2-selection__choice__remove {
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
float: right;
|
||||
margin-left: 5px;
|
||||
margin-right: -2px;
|
||||
|
||||
&:hover {
|
||||
color: $white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& .select2-selection--single .select2-selection__rendered li {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
|
|
@ -19842,7 +19842,7 @@ html.maximized-card {
|
|||
|
||||
.select2-container--default .select2-selection--single {
|
||||
border: 1px solid #ced4da;
|
||||
padding: 6px 12px;
|
||||
padding: 0.46875rem 0.375rem;
|
||||
height: calc(2.25rem + 2px);
|
||||
}
|
||||
|
||||
|
@ -19950,19 +19950,12 @@ html.maximized-card {
|
|||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.select2-container--default.select2-container--focus .select2-selection--multiple {
|
||||
border-color: #80bdff;
|
||||
}
|
||||
|
||||
.select2-container--default.select2-container--focus .select2-selection--multiple .select2-search__field {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
||||
background-color: #007bff;
|
||||
border-color: #006fe6;
|
||||
color: #ffffff;
|
||||
padding: 0 10px;
|
||||
margin-top: .31rem;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
|
||||
|
@ -19976,6 +19969,22 @@ html.maximized-card {
|
|||
color: #ffffff;
|
||||
}
|
||||
|
||||
.text-sm .select2-container--default .select2-selection--multiple .select2-search.select2-search--inline .select2-search__field, .select2-container--default .select2-selection--multiple.text-sm .select2-search.select2-search--inline .select2-search__field {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.text-sm .select2-container--default .select2-selection--multiple .select2-selection__choice, .select2-container--default .select2-selection--multiple.text-sm .select2-selection__choice {
|
||||
margin-top: .4rem;
|
||||
}
|
||||
|
||||
.select2-container--default.select2-container--focus .select2-selection--multiple {
|
||||
border-color: #80bdff;
|
||||
}
|
||||
|
||||
.select2-container--default.select2-container--focus .select2-selection--multiple .select2-search__field {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered li {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue