_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
_button.scss
80 lines
| 1 | @use 'sass:color'; |
| 2 | @use "../utilities/variables"; |
| 3 | |
| 4 | @mixin wppd-button { |
| 5 | .wppd-button { |
| 6 | background-color: transparent; |
| 7 | color: variables.$dark; |
| 8 | border: 1px solid transparent; |
| 9 | padding: 8px 14px; |
| 10 | border-radius: 10px; |
| 11 | corner-shape: squircle; |
| 12 | font-weight: 500; |
| 13 | cursor: pointer; |
| 14 | -webkit-transition: .2s; |
| 15 | transition: .2s; |
| 16 | |
| 17 | &:hover, &:focus, &:active { |
| 18 | color: variables.$gray; |
| 19 | background-color: rgba(255, 255, 255, 0.5); |
| 20 | } |
| 21 | |
| 22 | &.wppd-button-primary { |
| 23 | background-color: variables.$primary; |
| 24 | border-color: variables.$blue_50; |
| 25 | color: white; |
| 26 | |
| 27 | &:hover, &:focus, &:active { |
| 28 | background-color: color.scale(variables.$primary, $lightness: -5%); |
| 29 | } |
| 30 | |
| 31 | &:focus, &:active { |
| 32 | outline-offset: 2px; |
| 33 | outline: variables.$primary solid 2px; |
| 34 | } |
| 35 | |
| 36 | &:disabled { |
| 37 | color: variables.$gray_light_three; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | &.wppd-button-secondary { |
| 42 | background-color: white; |
| 43 | border-color: variables.$gray_light_two; |
| 44 | |
| 45 | &:hover, &:focus, &:active { |
| 46 | background-color: color.scale(variables.$background_side, $lightness: 2%); |
| 47 | } |
| 48 | |
| 49 | &:focus, &:active { |
| 50 | outline-offset: 2px; |
| 51 | outline: variables.$primary solid 2px; |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | &:disabled { |
| 56 | color: variables.$gray_light; |
| 57 | cursor: default; |
| 58 | } |
| 59 | |
| 60 | &.wppd-button-primary, &.wppd-button-secondary, { |
| 61 | &:disabled { |
| 62 | background-color: variables.$gray_light_three; |
| 63 | |
| 64 | &:hover, &:focus, &:active { |
| 65 | background-color: variables.$gray_light_three; |
| 66 | outline: none; |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | a.wppd-button { |
| 73 | text-decoration: none !important; |
| 74 | |
| 75 | &:hover, &:focus, &:active { |
| 76 | text-decoration: none !important; |
| 77 | } |
| 78 | } |
| 79 | } |
| 80 |