2020-03-09 15:49:01 +00:00
|
|
|
.wc-block-component-express-checkout {
|
2020-01-06 22:28:09 +00:00
|
|
|
margin: auto;
|
|
|
|
border: 2px solid $black;
|
|
|
|
border-radius: 5px;
|
2020-03-16 16:38:24 +00:00
|
|
|
padding: 8px;
|
2020-01-06 22:28:09 +00:00
|
|
|
|
2020-03-09 15:49:01 +00:00
|
|
|
.wc-block-component-express-checkout__title {
|
2020-01-06 22:28:09 +00:00
|
|
|
position: relative;
|
|
|
|
background-color: $white;
|
|
|
|
padding-left: $gap-small;
|
|
|
|
padding-right: $gap-small;
|
2020-03-09 15:49:01 +00:00
|
|
|
margin-top: -24px;
|
|
|
|
margin-left: $gap-small;
|
|
|
|
margin-bottom: $gap-small;
|
2020-01-06 22:28:09 +00:00
|
|
|
color: $black;
|
2020-03-09 15:49:01 +00:00
|
|
|
font-weight: bold;
|
2020-03-13 14:41:04 +00:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
2020-01-06 22:28:09 +00:00
|
|
|
}
|
|
|
|
|
2020-03-09 15:49:01 +00:00
|
|
|
.wc-block-component-express-checkout__content {
|
|
|
|
padding: 0 $gap-large;
|
2020-01-06 22:28:09 +00:00
|
|
|
}
|
|
|
|
|
2020-03-09 15:49:01 +00:00
|
|
|
.wc-block-component-express-checkout-payment-event-buttons {
|
2020-01-06 22:28:09 +00:00
|
|
|
list-style: none;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0;
|
2020-03-09 15:49:01 +00:00
|
|
|
margin: 0 0 $gap;
|
|
|
|
overflow: hidden;
|
2020-01-06 22:28:09 +00:00
|
|
|
> li {
|
|
|
|
display: inline-block;
|
|
|
|
width: 50%;
|
2020-03-09 15:49:01 +00:00
|
|
|
> img {
|
|
|
|
width: 100%;
|
2020-03-30 12:07:49 +00:00
|
|
|
height: 48px;
|
2020-03-09 15:49:01 +00:00
|
|
|
}
|
2020-01-06 22:28:09 +00:00
|
|
|
}
|
2020-03-09 15:49:01 +00:00
|
|
|
> li:nth-child(even) {
|
|
|
|
padding-left: $gap-smaller;
|
|
|
|
}
|
|
|
|
> li:nth-child(odd) {
|
|
|
|
padding-right: $gap-smaller;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-03-30 12:07:49 +00:00
|
|
|
|
|
|
|
.wc-block-card-elements {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-gateway-container {
|
|
|
|
position: relative;
|
2020-05-13 15:48:03 +00:00
|
|
|
margin-bottom: $gap;
|
2020-03-30 12:07:49 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
&.wc-card-number-element {
|
|
|
|
flex: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.wc-card-expiry-element,
|
|
|
|
&.wc-card-cvc-element {
|
|
|
|
width: $card-element-width;
|
|
|
|
margin-left: $gap-small;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-gateway-input {
|
2020-05-29 10:16:33 +00:00
|
|
|
@include font-size(regular);
|
|
|
|
line-height: 1.375; // =22px when font-size is 16px.
|
2020-03-30 12:07:49 +00:00
|
|
|
background-color: #fff;
|
2020-05-29 10:16:33 +00:00
|
|
|
padding: em($gap-small) $gap;
|
2020-03-30 12:07:49 +00:00
|
|
|
border-radius: 4px;
|
|
|
|
border: 1px solid $input-border-gray;
|
|
|
|
width: 100%;
|
|
|
|
font-family: inherit;
|
|
|
|
margin: 0;
|
|
|
|
box-sizing: border-box;
|
2020-04-30 10:18:12 +00:00
|
|
|
height: 3em;
|
2020-03-30 12:07:49 +00:00
|
|
|
color: $input-text-active;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
label {
|
2020-05-14 09:07:21 +00:00
|
|
|
@include reset-typography();
|
2020-05-29 10:16:33 +00:00
|
|
|
@include font-size(regular);
|
|
|
|
line-height: 1.375; // =22px when font-size is 16px.
|
2020-03-30 12:07:49 +00:00
|
|
|
position: absolute;
|
2020-04-30 10:18:12 +00:00
|
|
|
transform: translateY(0.75em);
|
2020-03-30 12:07:49 +00:00
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
transform-origin: top left;
|
|
|
|
color: $gray-50;
|
|
|
|
transition: transform 200ms ease;
|
2020-05-20 13:54:37 +00:00
|
|
|
margin: 0 0 0 #{$gap + 1px};
|
2020-03-30 12:07:49 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
max-width: calc(100% - #{2 * $gap});
|
|
|
|
|
|
|
|
@media screen and (prefers-reduced-motion: reduce) {
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.wc-inline-card-element {
|
|
|
|
label {
|
|
|
|
margin-left: $gap-largest;
|
|
|
|
}
|
|
|
|
.wc-block-gateway-input.focused.empty,
|
|
|
|
.wc-block-gateway-input:not(.empty) {
|
|
|
|
& + label {
|
|
|
|
margin-left: $gap;
|
|
|
|
transform: translateY(#{$gap-smallest}) scale(0.75);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
& + .wc-block-form-input-validation-error {
|
|
|
|
position: static;
|
|
|
|
margin-top: -$gap-large;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-gateway-input.focused.empty,
|
|
|
|
.wc-block-gateway-input:not(.empty) {
|
2020-05-29 10:16:33 +00:00
|
|
|
padding: em($gap-large) $gap em($gap-smallest);
|
2020-03-30 12:07:49 +00:00
|
|
|
& + label {
|
|
|
|
transform: translateY(#{$gap-smallest}) scale(0.75);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-gateway-input.has-error {
|
|
|
|
border-color: $error-red;
|
|
|
|
&:focus {
|
|
|
|
outline-color: $error-red;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-gateway-input.has-error + label {
|
|
|
|
color: $error-red;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-blocks-credit-card-images {
|
|
|
|
padding-top: $gap-small;
|
2020-04-09 19:31:03 +00:00
|
|
|
display: flex;
|
|
|
|
|
|
|
|
.wc-blocks-credit-cart-icon {
|
|
|
|
height: 18px;
|
|
|
|
width: auto;
|
|
|
|
margin-right: $gap-small;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
2020-03-30 12:07:49 +00:00
|
|
|
}
|
2020-04-06 15:35:09 +00:00
|
|
|
|
|
|
|
.wc-block-components-checkout-payment-methods * {
|
|
|
|
pointer-events: all; // Overrides parent disabled component in editor context
|
|
|
|
}
|
2020-04-24 12:23:25 +00:00
|
|
|
|
|
|
|
@include breakpoint( "<782px" ) {
|
|
|
|
.wc-block-card-elements {
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-gateway-container.wc-card-number-element {
|
|
|
|
flex-basis: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-gateway-container.wc-card-expiry-element {
|
|
|
|
flex-basis: calc(50% - #{$gap-smaller});
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: $gap-smaller;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-gateway-container.wc-card-cvc-element {
|
|
|
|
flex-basis: calc(50% - #{$gap-smaller});
|
|
|
|
margin-left: $gap-smaller;
|
|
|
|
}
|
|
|
|
}
|