BigW Consortium Gitlab

Commit 45d7083d by Winnie Hellmann

Fix padding for Select2 search field

parent 4ab1a1bd
...@@ -134,19 +134,22 @@ ...@@ -134,19 +134,22 @@
} }
.select2-search { .select2-search {
padding: 15px 15px 5px; padding: $grid-size;
.select2-drop-auto-width & { .select2-drop-auto-width & {
padding: 15px 15px 5px; padding: $grid-size;
} }
input { input {
padding: 2px 25px 2px 5px; padding: $grid-size;
background: $white-light image-url('select2.png'); background: $white-light image-url('select2.png');
background-clip: content-box;
background-origin: content-box;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: right 0 bottom 6px; background-position: right 0 bottom 0 !important;
border: 1px solid $input-border; border: 1px solid $input-border;
border-radius: $border-radius-default; border-radius: $border-radius-default;
line-height: 16px;
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
&:focus { &:focus {
...@@ -156,11 +159,16 @@ ...@@ -156,11 +159,16 @@
&.select2-active { &.select2-active {
background-color: $white-light; background-color: $white-light;
background-image: image-url('select2-spinner.gif') !important; background-image: image-url('select2-spinner.gif') !important;
background-origin: content-box;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: right 5px center !important; background-position: right 6px center !important;
background-size: 16px 16px !important; background-size: 16px 16px !important;
} }
} }
+ .select2-results {
padding-top: 0;
}
} }
.select2-results { .select2-results {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment