| 1 |
/** |
| 2 |
* Additional Select2 styling to override WordPress styling defaults that |
| 3 |
* affect the layout of a Select2 dropdown. |
| 4 |
*/ |
| 5 |
.convertkit-select2-container .select2-container .select2-selection--single { |
| 6 |
height: 30px; |
| 7 |
} |
| 8 |
.convertkit-select2-container .select2-container--default .select2-selection--single .select2-selection__rendered { |
| 9 |
line-height: 30px; |
| 10 |
} |
| 11 |
.convertkit-select2-container .select2-search--dropdown .select2-search__field { |
| 12 |
line-height: 1; |
| 13 |
min-height: 24px; |
| 14 |
} |
| 15 |
.convertkit-select2-container li.select2-results__option { |
| 16 |
margin: 0; |
| 17 |
} |
| 18 |
|
| 19 |
/** |
| 20 |
* Force width of Select2 dropdowns, as using JS options dropdownAutoWidth=true and width='auto' |
| 21 |
* result in incorrect layout on some older browsers and our tests fail. |
| 22 |
*/ |
| 23 |
.convertkit-select2-container select + .select2-container { |
| 24 |
width: 50% !important; |
| 25 |
min-width: 350px !important; |
| 26 |
} |
| 27 |
@media screen and (max-width: 782px) { |
| 28 |
.convertkit-select2-container select + .select2-container { |
| 29 |
width: 100% !important; |
| 30 |
font-size: 16px; |
| 31 |
line-height: 2; |
| 32 |
} |
| 33 |
} |
| 34 |
|