_addons.scss
2 days ago
_badges.scss
2 days ago
_button.scss
2 days ago
_checkbox.scss
2 days ago
_color_palette.scss
2 days ago
_data_table_ui.scss
2 days ago
_faqs.scss
2 days ago
_fly_icons.scss
2 days ago
_form.scss
2 days ago
_global.scss
2 days ago
_gradient_color_picker.scss
2 days ago
_input.scss
2 days ago
_list_links.scss
2 days ago
_loading.scss
2 days ago
_modal.scss
2 days ago
_notice.scss
2 days ago
_radio.scss
2 days ago
_range.scss
2 days ago
_repeatable.scss
2 days ago
_select.scss
2 days ago
_textarea.scss
2 days ago
_toggle.scss
2 days ago
_wp.scss
2 days ago
_select.scss
58 lines
| 1 | @use 'sass:color'; |
| 2 | @use "../utilities/variables"; |
| 3 | |
| 4 | @mixin wppd-select { |
| 5 | select { |
| 6 | color: variables.$dark; |
| 7 | border: 1px solid variables.$input_border_color; |
| 8 | padding: 8px 12px; |
| 9 | border-radius: 10px; corner-shape: squircle; |
| 10 | font-weight: 400; |
| 11 | width: 100%; |
| 12 | max-width: 500px; |
| 13 | |
| 14 | &:not([multiple]) { |
| 15 | -webkit-appearance: none; |
| 16 | background: white url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUgNmw1IDUgNS01IDIgMS03IDctNy03IDItMXoiIGZpbGw9IiNFNkUyRjUiLz48L3N2Zz4=") no-repeat right 10px top 55%; |
| 17 | |
| 18 | &:focus { |
| 19 | background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUgNmw1IDUgNS01IDIgMS03IDctNy03IDItMXoiIGZpbGw9IiM0ZjhjY2YiLz48L3N2Zz4="); |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | &:hover { |
| 24 | color: variables.$dark; |
| 25 | border-color: color.scale(variables.$input_border_color, $lightness: -5%); |
| 26 | } |
| 27 | |
| 28 | &:focus { |
| 29 | box-shadow: none; |
| 30 | //outline-offset: 2px; |
| 31 | outline: variables.$primary solid 2px; |
| 32 | } |
| 33 | |
| 34 | &:disabled { |
| 35 | color: variables.$gray_light; |
| 36 | border-color: color.scale(variables.$input_border_color, $lightness: 40%); |
| 37 | } |
| 38 | |
| 39 | &[multiple]] { |
| 40 | &:focus { |
| 41 | &:checked { |
| 42 | background: variables.$primary; |
| 43 | color: white; |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | option { |
| 49 | background-color: white; |
| 50 | |
| 51 | &:checked { |
| 52 | background: variables.$primary; |
| 53 | color: white; |
| 54 | } |
| 55 | } |
| 56 | } |
| 57 | } |
| 58 |