fixed select2 paddings/margins

pull/2269/head
REJack 2019-10-31 08:47:54 +01:00
parent 448556d366
commit 60830bb6c7
No known key found for this signature in database
GPG Key ID: 9F3976CC630CC888
5 changed files with 54 additions and 33 deletions

View File

@ -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;
}

27
dist/css/adminlte.css vendored
View File

@ -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