swissChili | f0cbdc3 | 2023-01-05 17:21:38 -0500 | [diff] [blame] | 1 | // TODO: Refactor this file to use SCSS syntax. |
| 2 | .wc-stripe-elements-field, |
| 3 | .wc-stripe-iban-element-field { |
| 4 | border: 1px solid #ddd; |
| 5 | margin: 5px 0; |
| 6 | padding: 5px; |
| 7 | background-color: #fff; |
| 8 | outline: 0; |
| 9 | } |
| 10 | #payment .methods li.woocommerce-SavedPaymentMethods-token label { |
| 11 | display: inline; |
| 12 | } |
| 13 | #payment .methods li.woocommerce-SavedPaymentMethods-new label { |
| 14 | display: inline; |
| 15 | } |
| 16 | |
| 17 | .woocommerce-checkout #payment ul.payment_methods li img.stripe-icon, |
| 18 | #add_payment_method #payment ul.payment_methods li img.stripe-icon { |
| 19 | max-width: 40px; |
| 20 | padding-left: 3px; |
| 21 | margin: 0; |
| 22 | } |
| 23 | |
| 24 | .woocommerce-checkout #payment ul.payment_methods li img.stripe-bancontact-icon, |
| 25 | #add_payment_method #payment ul.payment_methods li img.stripe-bancontact-icon { |
| 26 | max-height: 65px; |
| 27 | max-width: 45px; |
| 28 | } |
| 29 | |
| 30 | .woocommerce-checkout #payment ul.payment_methods li img.stripe-ideal-icon, |
| 31 | #add_payment_method #payment ul.payment_methods li img.stripe-ideal-icon { |
| 32 | max-height: 35px; |
| 33 | } |
| 34 | |
| 35 | .woocommerce-checkout #payment ul.payment_methods li img.stripe-p24-icon, |
| 36 | #add_payment_method #payment ul.payment_methods li img.stripe-p24-icon { |
| 37 | max-width: 65px; |
| 38 | } |
| 39 | |
| 40 | .woocommerce-checkout #payment ul.payment_methods li img.stripe-alipay-icon, |
| 41 | #add_payment_method #payment ul.payment_methods li img.stripe-alipay-icon { |
| 42 | max-width: 50px; |
| 43 | } |
| 44 | |
| 45 | .woocommerce-checkout #payment ul.payment_methods li img.stripe-sofort-icon, |
| 46 | #add_payment_method #payment ul.payment_methods li img.stripe-sofort-icon { |
| 47 | max-width: 55px; |
| 48 | } |
| 49 | |
| 50 | .woocommerce-checkout #payment ul.payment_methods li img.stripe-sepa-icon, |
| 51 | #add_payment_method #payment ul.payment_methods li img.stripe-sepa-icon { |
| 52 | max-width: 50px; |
| 53 | } |
| 54 | |
| 55 | .woocommerce-checkout #payment ul.payment_methods li img.stripe-multibanco-icon, |
| 56 | #add_payment_method #payment ul.payment_methods li img.stripe-multibanco-icon { |
| 57 | max-height: 30px; |
| 58 | } |
| 59 | |
| 60 | .woocommerce-checkout #payment ul.payment_methods li img.stripe-eps-icon, |
| 61 | #add_payment_method #payment ul.payment_methods li img.stripe-eps-icon { |
| 62 | max-height: 30px; |
| 63 | } |
| 64 | |
| 65 | .woocommerce-checkout #payment ul.payment_methods li img.stripe-giropay-icon, |
| 66 | #add_payment_method #payment ul.payment_methods li img.stripe-giropay-icon { |
| 67 | max-width: 50px; |
| 68 | } |
| 69 | |
| 70 | .woocommerce-checkout #payment ul.payment_methods li .stripe-credit-card-brand, |
| 71 | #add_payment_method #payment ul.payment_methods li .stripe-credit-card-brand { |
| 72 | position: absolute; |
| 73 | top: 50%; |
| 74 | margin-top: -10px; |
| 75 | right: 10px; |
| 76 | background: no-repeat url( '../images/credit-card.svg' ); |
| 77 | display: block; |
| 78 | width: 30px; |
| 79 | height: 24px; |
| 80 | } |
| 81 | |
| 82 | .woocommerce-checkout #payment ul.payment_methods li .stripe-visa-brand, |
| 83 | #add_payment_method #payment ul.payment_methods li .stripe-visa-brand { |
| 84 | position: absolute; |
| 85 | top: 50%; |
| 86 | margin-top: -10px; |
| 87 | right: 10px; |
| 88 | background: no-repeat url( '../images/visa.svg' ); |
| 89 | display: block; |
| 90 | width: 30px; |
| 91 | height: 24px; |
| 92 | } |
| 93 | |
| 94 | .woocommerce-checkout #payment ul.payment_methods li .stripe-amex-brand, |
| 95 | #add_payment_method #payment ul.payment_methods li .stripe-amex-brand { |
| 96 | position: absolute; |
| 97 | top: 50%; |
| 98 | margin-top: -10px; |
| 99 | right: 10px; |
| 100 | background: no-repeat url( '../images/amex.svg' ); |
| 101 | display: block; |
| 102 | width: 30px; |
| 103 | height: 24px; |
| 104 | } |
| 105 | |
| 106 | .woocommerce-checkout #payment ul.payment_methods li .stripe-diners-brand, |
| 107 | #add_payment_method #payment ul.payment_methods li .stripe-diners-brand { |
| 108 | position: absolute; |
| 109 | top: 50%; |
| 110 | margin-top: -10px; |
| 111 | right: 10px; |
| 112 | background: no-repeat url( '../images/diners.svg' ); |
| 113 | display: block; |
| 114 | width: 30px; |
| 115 | height: 24px; |
| 116 | } |
| 117 | |
| 118 | .woocommerce-checkout #payment ul.payment_methods li .stripe-discover-brand, |
| 119 | #add_payment_method #payment ul.payment_methods li .stripe-discover-brand { |
| 120 | position: absolute; |
| 121 | top: 50%; |
| 122 | margin-top: -10px; |
| 123 | right: 10px; |
| 124 | background: no-repeat url( '../images/discover.svg' ); |
| 125 | display: block; |
| 126 | width: 30px; |
| 127 | height: 24px; |
| 128 | } |
| 129 | |
| 130 | .woocommerce-checkout #payment ul.payment_methods li .stripe-jcb-brand, |
| 131 | #add_payment_method #payment ul.payment_methods li .stripe-jcb-brand { |
| 132 | position: absolute; |
| 133 | top: 50%; |
| 134 | margin-top: -10px; |
| 135 | right: 10px; |
| 136 | background: no-repeat url( '../images/jcb.svg' ); |
| 137 | display: block; |
| 138 | width: 30px; |
| 139 | height: 24px; |
| 140 | } |
| 141 | |
| 142 | .woocommerce-checkout #payment ul.payment_methods li .stripe-maestro-brand, |
| 143 | #add_payment_method #payment ul.payment_methods li .stripe-maestro-brand { |
| 144 | position: absolute; |
| 145 | top: 50%; |
| 146 | margin-top: -10px; |
| 147 | right: 10px; |
| 148 | background: no-repeat url( '../images/maestro.svg' ); |
| 149 | display: block; |
| 150 | width: 30px; |
| 151 | height: 24px; |
| 152 | } |
| 153 | |
| 154 | .woocommerce-checkout #payment ul.payment_methods li .stripe-mastercard-brand, |
| 155 | #add_payment_method #payment ul.payment_methods li .stripe-mastercard-brand { |
| 156 | position: absolute; |
| 157 | top: 50%; |
| 158 | margin-top: -10px; |
| 159 | right: 10px; |
| 160 | background: no-repeat url( '../images/mastercard.svg' ); |
| 161 | display: block; |
| 162 | width: 30px; |
| 163 | height: 24px; |
| 164 | } |
| 165 | |
| 166 | .woocommerce-checkout #payment ul.payment_methods .stripe-card-group, |
| 167 | #add_payment_method #payment ul.payment_methods .stripe-card-group { |
| 168 | position: relative; |
| 169 | } |
| 170 | |
| 171 | .woocommerce-SavedPaymentMethods-token |
| 172 | .stripe-source-errors |
| 173 | .woocommerce-error { |
| 174 | margin-top: 1em; |
| 175 | margin-bottom: 2em; |
| 176 | } |
| 177 | |
| 178 | #wc-stripe-custom-button { |
| 179 | display: block; |
| 180 | width: 100%; |
| 181 | } |
| 182 | |
| 183 | .woocommerce-checkout #payment #stripe_boleto_tax_id { |
| 184 | width: 100%; |
| 185 | } |
| 186 | |
| 187 | .gpay-button { |
| 188 | background-origin: content-box; |
| 189 | background-position: center center; |
| 190 | background-repeat: no-repeat; |
| 191 | background-size: contain; |
| 192 | border: 0; |
| 193 | border-radius: 4px; |
| 194 | cursor: pointer; |
| 195 | height: 40px; |
| 196 | min-height: 40px; |
| 197 | padding: 11px 24px; |
| 198 | width: 100%; |
| 199 | |
| 200 | &.light { |
| 201 | // account for button box-shadow when setting width |
| 202 | width: calc( 100% - 3px ); |
| 203 | background-color: #fff; |
| 204 | |
| 205 | // Add vertical margin to make box-shadow visible in blocks. |
| 206 | margin: 2px 0 3px 0; |
| 207 | |
| 208 | &:active { |
| 209 | background-color: #fff; |
| 210 | } |
| 211 | &:hover { |
| 212 | background-color: #f8f8f8; |
| 213 | } |
| 214 | &:focus { |
| 215 | box-shadow: #e8e8e8 0 1px 1px 0, #e8e8e8 0 1px 3px; |
| 216 | outline: 0; |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | &.light-outline { |
| 221 | // account for button box-shadow when setting width |
| 222 | width: calc( 100% - 3px ); |
| 223 | background-color: #fff; |
| 224 | |
| 225 | // The box-shadow forms the outline and as such is always on. |
| 226 | box-shadow: rgba( 60, 64, 67, 0.3 ) 0px 1px 1px 0, |
| 227 | rgba( 60, 64, 67, 0.15 ) 0 1px 3px 1px; |
| 228 | |
| 229 | // Add vertical margin to make box-shadow visible in blocks. |
| 230 | margin: 2px 0 3px 0; |
| 231 | |
| 232 | &:active { |
| 233 | background-color: #fff; |
| 234 | } |
| 235 | &:hover { |
| 236 | background-color: #f8f8f8; |
| 237 | } |
| 238 | &:focus { |
| 239 | box-shadow: #e8e8e8 0 1px 1px 0, #e8e8e8 0 1px 3px; |
| 240 | outline: 0; |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | &.dark { |
| 245 | background-color: #000; |
| 246 | padding: 12px 24px 10px; |
| 247 | &:active { |
| 248 | background-color: #5f6368; |
| 249 | } |
| 250 | &:hover { |
| 251 | background-color: #3c4043; |
| 252 | } |
| 253 | &:focus { |
| 254 | box-shadow: #5f6368 0 1px 1px 0, #5f6368 0 1px 3px; |
| 255 | outline: 0; |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | &.short { |
| 260 | &.light, |
| 261 | &.light-outline { |
| 262 | background-image: url( https://www.gstatic.com/instantbuy/svg/light_gpay.svg ); |
| 263 | } |
| 264 | &.dark { |
| 265 | background-image: url( https://www.gstatic.com/instantbuy/svg/dark_gpay.svg ); |
| 266 | } |
| 267 | } |
| 268 | } |