_button.scss
5 years ago
_checkbox.scss
5 years ago
_collapse.scss
5 years ago
_colorpicker.scss
5 years ago
_dimensions.scss
5 years ago
_f-select.scss
5 years ago
_iconpicker.scss
5 years ago
_input.scss
5 years ago
_list-table.scss
5 years ago
_notice.scss
5 years ago
_pagination.scss
5 years ago
_radio.scss
5 years ago
_repeater.scss
5 years ago
_select.scss
5 years ago
_switcher.scss
5 years ago
_tabs.scss
5 years ago
_textarea.scss
5 years ago
_time.scss
5 years ago
_wp-media.scss
5 years ago
_button.scss
186 lines
| 1 | .cx-vui-button { |
| 2 | cursor: pointer; |
| 3 | display: inline-block; |
| 4 | padding: 0; |
| 5 | margin: 0; |
| 6 | border: none; |
| 7 | box-shadow: 0px 4px 4px rgba(35, 40, 45, 0.24); |
| 8 | border-radius: 4px; |
| 9 | transition: all 150ms linear; |
| 10 | font-weight: 500; |
| 11 | font-family: $font_family; |
| 12 | outline: none; |
| 13 | position: relative; |
| 14 | box-sizing: border-box; |
| 15 | text-decoration: none; |
| 16 | &__content { |
| 17 | display: flex; |
| 18 | justify-content: center; |
| 19 | align-items: center; |
| 20 | .cx-vui-button--loading & { |
| 21 | opacity: 0; |
| 22 | } |
| 23 | } |
| 24 | &--style { |
| 25 | &-default { |
| 26 | background: $color__bg-input; |
| 27 | color: $color__accent; |
| 28 | &:hover { |
| 29 | box-shadow: none; |
| 30 | color: $color__accent; |
| 31 | background: $color__bg-input-hover; |
| 32 | } |
| 33 | } |
| 34 | &-accent { |
| 35 | background: $color__accent; |
| 36 | color: #fff; |
| 37 | &:hover { |
| 38 | box-shadow: none; |
| 39 | color: #fff; |
| 40 | background: $color__accent-hover; |
| 41 | } |
| 42 | } |
| 43 | &-default-border { |
| 44 | border: 1px solid $color__border-off-panel; |
| 45 | background: transparent; |
| 46 | color: $color__text; |
| 47 | box-shadow: none; |
| 48 | &:hover { |
| 49 | border: 1px solid $color__border-off-panel; |
| 50 | color: $color__text; |
| 51 | background: #f3f5f6; |
| 52 | } |
| 53 | } |
| 54 | &-accent-border { |
| 55 | border: 1px solid $color__accent; |
| 56 | background: transparent; |
| 57 | color: $color__accent; |
| 58 | box-shadow: none; |
| 59 | &:hover { |
| 60 | border: 1px solid $color__accent-hover; |
| 61 | color: $color__accent-hover; |
| 62 | background: #f3f5f6; |
| 63 | } |
| 64 | } |
| 65 | &-link-accent { |
| 66 | color: $color__accent; |
| 67 | background: none; |
| 68 | box-shadow: none; |
| 69 | path { |
| 70 | fill: $color__accent; |
| 71 | } |
| 72 | &:hover { |
| 73 | color: $color__accent-hover; |
| 74 | path { |
| 75 | fill: $color__accent-hover; |
| 76 | } |
| 77 | } |
| 78 | } |
| 79 | &-link-error { |
| 80 | color: $color__error; |
| 81 | background: none; |
| 82 | box-shadow: none; |
| 83 | path { |
| 84 | fill: $color__error; |
| 85 | } |
| 86 | &:hover { |
| 87 | color: $color__error; |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | &--size { |
| 92 | &-default { |
| 93 | font-size: 15px; |
| 94 | line-height: 21px; |
| 95 | padding: 12px 25px 13px; |
| 96 | .cx-vui-button__content { |
| 97 | .dashicons { |
| 98 | margin: 0 5px 0 -8px; |
| 99 | .rtl & { |
| 100 | margin: 0 -8px 0 5px; |
| 101 | } |
| 102 | } |
| 103 | span + .dashicons { |
| 104 | margin: -8px 0 0 5px; |
| 105 | .rtl & { |
| 106 | margin: -8px 5px 0 0; |
| 107 | } |
| 108 | } |
| 109 | } |
| 110 | } |
| 111 | &-link { |
| 112 | font-size: 15px; |
| 113 | line-height: 18px; |
| 114 | .cx-vui-button__content { |
| 115 | svg { |
| 116 | margin: 0 5px 1px 0; |
| 117 | .rtl & { |
| 118 | margin: 0 0 1px 5px; |
| 119 | } |
| 120 | } |
| 121 | span + svg { |
| 122 | margin: 0 0 1px 5px; |
| 123 | .rtl & { |
| 124 | margin: 0 5px 1px 0; |
| 125 | } |
| 126 | } |
| 127 | } |
| 128 | } |
| 129 | &-mini { |
| 130 | font-size: 13px; |
| 131 | line-height: 19px; |
| 132 | padding: 6px 14px 7px; |
| 133 | .cx-vui-button__content { |
| 134 | .dashicons { |
| 135 | margin: 0 4px 0 -5px; |
| 136 | .rtl & { |
| 137 | margin: 0 -5px 0 4px; |
| 138 | } |
| 139 | } |
| 140 | span + .dashicons { |
| 141 | margin: -5px 0 0 4px; |
| 142 | .rtl & { |
| 143 | margin: -5px 4px 0 0; |
| 144 | } |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | } |
| 149 | } |
| 150 | &--disabled { |
| 151 | cursor: default; |
| 152 | opacity: .3; |
| 153 | pointer-events: none; |
| 154 | } |
| 155 | &--loading { |
| 156 | cursor: default; |
| 157 | } |
| 158 | &__loader { |
| 159 | position: absolute; |
| 160 | right: 0; |
| 161 | top: 0; |
| 162 | bottom: 0; |
| 163 | left: 0; |
| 164 | display: flex; |
| 165 | align-items: center; |
| 166 | justify-content: center; |
| 167 | .loader-icon { |
| 168 | animation: spin 1200ms infinite linear; |
| 169 | path { |
| 170 | fill: currentColor; |
| 171 | } |
| 172 | } |
| 173 | @keyframes spin { |
| 174 | from { |
| 175 | transform:rotate(0deg); |
| 176 | } |
| 177 | to { |
| 178 | transform:rotate(360deg); |
| 179 | } |
| 180 | } |
| 181 | } |
| 182 | &.fullwidth { |
| 183 | width: 100%; |
| 184 | } |
| 185 | } |
| 186 |