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