| @@ -4,25 +4,22 @@ | ||
| 4 | 4 | */ |
| 5 | 5 | .convertkit-select2-container .select2-container .select2-selection--single { |
| 6 | 6 | height: 32px; |
| 7 | 7 | } |
| 8 | + | |
| 8 | 9 | .convertkit-select2-container .select2-container--default .select2-selection--single .select2-selection__rendered { |
| 9 | 10 | line-height: 32px; |
| 10 | 11 | } |
| 12 | + | |
| 11 | 13 | .convertkit-select2-container .select2-search--dropdown .select2-search__field { |
| 12 | 14 | line-height: 1; |
| 13 | 15 | min-height: 24px; |
| 14 | 16 | } |
| 17 | + | |
| 15 | 18 | .convertkit-select2-container li.select2-results__option { |
| 16 | 19 | margin: 0; |
| 17 | 20 | } |
| 18 | 21 | |
| 19 | -/* Set size of refresh button */ | |
| 20 | -.convertkit-select2-container button.wp-convertkit-refresh-resources { | |
| 21 | - width: 36px; | |
| 22 | - height: 32px; | |
| 23 | -} | |
| 24 | - | |
| 25 | 22 | /* Align select and refresh button onto a single row */ |
| 26 | 23 | .convertkit-select2-container-grid { |
| 27 | 24 | display: grid; |
| 28 | 25 | grid-template-columns: auto 36px; |
| @@ -30,19 +27,23 @@ | ||
| 30 | 27 | align-items: end; |
| 31 | 28 | } |
| 32 | 29 | |
| 33 | 30 | /** |
| 34 | - * Force width of Select2 dropdowns, as using JS options dropdownAutoWidth=true and width='auto' | |
| 35 | - * result in incorrect layout on some older browsers and our tests fail. | |
| 31 | + * Force width of Select2 dropdowns, as using JS options | |
| 32 | + * dropdownAutoWidth=true and width='auto' result in incorrect | |
| 33 | + * layout on some older browsers and our tests fail. | |
| 36 | 34 | */ |
| 37 | 35 | .convertkit-select2-container select + .select2-container { |
| 38 | 36 | width: 50% !important; |
| 39 | 37 | min-width: 350px !important; |
| 40 | 38 | } |
| 39 | + | |
| 41 | 40 | .convertkit-select2-container-grid select + .select2-container { |
| 42 | 41 | width: 100% !important; |
| 43 | 42 | } |
| 43 | + | |
| 44 | 44 | @media screen and (max-width: 782px) { |
| 45 | + | |
| 45 | 46 | .convertkit-select2-container select + .select2-container { |
| 46 | 47 | width: 100% !important; |
| 47 | 48 | } |
| 48 | 49 | } |