2020-08-31 10:17:42 +00:00
|
|
|
.wc-block-components-form {
|
2020-03-04 15:13:38 +00:00
|
|
|
counter-reset: checkout-step;
|
|
|
|
}
|
|
|
|
|
2020-08-31 10:17:42 +00:00
|
|
|
.wc-block-components-form .wc-block-components-checkout-step {
|
2019-12-06 13:18:55 +00:00
|
|
|
position: relative;
|
2020-01-13 15:21:20 +00:00
|
|
|
border: none;
|
2024-05-22 14:03:48 +00:00
|
|
|
padding: 0;
|
2024-06-03 18:18:42 +00:00
|
|
|
background: none;
|
|
|
|
margin: 0 0 $gap-largest 0;
|
2020-04-03 13:17:09 +00:00
|
|
|
|
2021-09-10 14:04:42 +00:00
|
|
|
.is-mobile &,
|
|
|
|
.is-small & {
|
|
|
|
padding-left: 0;
|
2024-06-03 18:18:42 +00:00
|
|
|
margin-bottom: $gap-larger;
|
|
|
|
|
|
|
|
// The below CSS rules are to show a separator between Checkout steps on mobile.
|
|
|
|
// This media query is required because on themes where the Checkout block is rendered alongside something else,
|
|
|
|
// e.g. Storefront using the "Default Template" (which has a sidebar) the checkout block can get the `.is-small`
|
|
|
|
// class, but the screen itself is larger than 400px.
|
|
|
|
@include breakpoint( "<600px" ) {
|
|
|
|
padding-top: $gap-larger;
|
|
|
|
|
|
|
|
// Remove padding from the first checkout step. First of type is required here as the first-child is the express payment methods block.
|
|
|
|
&:first-of-type {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
position: absolute;
|
|
|
|
content: "";
|
2024-06-14 13:20:03 +00:00
|
|
|
// Required because the box shadows are offset by 1px down so we need to move the element up by 1px.
|
|
|
|
bottom: calc(1px - $gap-larger);
|
|
|
|
width: 100%;
|
2024-06-03 18:18:42 +00:00
|
|
|
height: 1px;
|
|
|
|
opacity: 0.11;
|
2024-06-14 13:20:03 +00:00
|
|
|
background: currentColor;
|
|
|
|
// This box-shadow rule creates two visible shadows:
|
|
|
|
// - One 50vw to the left of the element.
|
|
|
|
// - Another 50vw to the right
|
|
|
|
// Both shadows are sharp (no blur) and use the current color of the element.
|
|
|
|
// Its purpose is to add a full-width divider between checkout sections which is otherwise impossible as
|
|
|
|
// the parent element has padding.
|
|
|
|
box-shadow: -50vw 0 0 0 currentColor, 50vw 0 0 0 currentColor;
|
2024-06-03 18:18:42 +00:00
|
|
|
}
|
|
|
|
}
|
2020-11-20 10:44:24 +00:00
|
|
|
}
|
2019-12-06 13:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-11-20 10:48:26 +00:00
|
|
|
.wc-block-components-checkout-step--disabled {
|
|
|
|
opacity: 0.6;
|
|
|
|
}
|
|
|
|
|
2020-06-17 09:53:42 +00:00
|
|
|
.wc-block-components-checkout-step__container {
|
2020-06-08 11:13:34 +00:00
|
|
|
position: relative;
|
2023-04-21 20:11:10 +00:00
|
|
|
|
|
|
|
textarea {
|
|
|
|
font-style: inherit;
|
|
|
|
font-weight: inherit;
|
|
|
|
}
|
2020-06-08 11:13:34 +00:00
|
|
|
}
|
|
|
|
|
2021-07-22 11:03:00 +00:00
|
|
|
.wc-block-components-checkout-step__content > * {
|
2023-10-13 11:13:50 +00:00
|
|
|
margin-bottom: $gap;
|
2024-06-03 18:18:42 +00:00
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2021-07-22 11:03:00 +00:00
|
|
|
}
|
|
|
|
.wc-block-components-checkout-step--with-step-number .wc-block-components-checkout-step__content > :last-child {
|
|
|
|
margin-bottom: 0;
|
2020-06-08 11:13:34 +00:00
|
|
|
}
|
2024-02-16 21:50:11 +00:00
|
|
|
.wc-block-checkout__contact-fields .wc-block-components-checkout-step__heading {
|
|
|
|
margin-top: em($gap-smaller);
|
|
|
|
}
|
2020-06-17 09:53:42 +00:00
|
|
|
.wc-block-components-checkout-step__heading {
|
2024-06-03 18:18:42 +00:00
|
|
|
margin: 0 0 $gap-smaller;
|
2020-06-05 10:00:19 +00:00
|
|
|
position: relative;
|
2021-09-10 14:04:42 +00:00
|
|
|
|
|
|
|
.wc-block-components-express-payment-continue-rule + .wc-block-components-checkout-step & {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2024-02-16 21:50:11 +00:00
|
|
|
|
2020-06-08 11:13:34 +00:00
|
|
|
}
|
2019-12-06 13:18:55 +00:00
|
|
|
|
2020-06-17 09:53:42 +00:00
|
|
|
.wc-block-components-checkout-step:first-child .wc-block-components-checkout-step__heading {
|
2020-06-12 12:07:02 +00:00
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2020-06-17 09:53:42 +00:00
|
|
|
.wc-block-components-checkout-step__title {
|
2020-06-08 11:13:34 +00:00
|
|
|
margin: 0 $gap-small 0 0;
|
2019-12-06 13:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-17 09:53:42 +00:00
|
|
|
.wc-block-components-checkout-step__heading-content {
|
2020-05-29 10:16:33 +00:00
|
|
|
@include font-size(smaller);
|
2019-12-06 13:18:55 +00:00
|
|
|
|
|
|
|
a {
|
|
|
|
font-weight: bold;
|
2020-06-23 10:13:53 +00:00
|
|
|
color: inherit;
|
2019-12-06 13:18:55 +00:00
|
|
|
}
|
|
|
|
}
|
2020-04-24 12:23:25 +00:00
|
|
|
|
2024-02-16 21:50:11 +00:00
|
|
|
.wc-block-checkout__payment-method .wc-block-components-checkout-step__content {
|
|
|
|
padding-top: $gap-smaller;
|
|
|
|
}
|
|
|
|
|
2020-06-17 09:53:42 +00:00
|
|
|
.wc-block-components-checkout-step__description {
|
2020-05-29 10:16:33 +00:00
|
|
|
@include font-size(small);
|
2024-02-16 21:50:11 +00:00
|
|
|
line-height: 1.2;
|
|
|
|
margin: 0 0 $gap;
|
2019-12-06 13:18:55 +00:00
|
|
|
}
|
|
|
|
|
2024-05-22 14:03:48 +00:00
|
|
|
.wc-block-checkout__form--with-step-numbers {
|
|
|
|
.wc-block-components-checkout-step--with-step-number {
|
|
|
|
padding: 0 0 0 $gap-larger;
|
2021-09-10 14:04:42 +00:00
|
|
|
|
|
|
|
.wc-block-components-checkout-step__title::before {
|
2024-05-22 14:03:48 +00:00
|
|
|
@include reset-box();
|
|
|
|
background: transparent;
|
|
|
|
counter-increment: checkout-step;
|
|
|
|
content: "\00a0" counter(checkout-step) ".";
|
|
|
|
content: "\00a0" counter(checkout-step) "." / "";
|
|
|
|
position: absolute;
|
|
|
|
left: -$gap-large;
|
|
|
|
top: 0;
|
|
|
|
text-align: center;
|
|
|
|
transform: translateX(-50%);
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
.is-mobile &,
|
|
|
|
.is-small & {
|
|
|
|
position: static;
|
|
|
|
transform: none;
|
|
|
|
left: auto;
|
|
|
|
top: auto;
|
|
|
|
content: counter(checkout-step) ".\00a0";
|
|
|
|
content: counter(checkout-step) ".\00a0" / "";
|
|
|
|
}
|
2021-09-10 14:04:42 +00:00
|
|
|
}
|
2024-05-22 14:03:48 +00:00
|
|
|
|
2021-09-10 14:04:42 +00:00
|
|
|
.wc-block-components-checkout-step__container::after {
|
2024-05-22 14:03:48 +00:00
|
|
|
content: "";
|
|
|
|
height: 100%;
|
|
|
|
border-left: 1px solid $universal-border-light;
|
|
|
|
position: absolute;
|
|
|
|
left: -$gap-large;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-mobile &,
|
|
|
|
.is-small & {
|
|
|
|
.wc-block-components-checkout-step__title::before {
|
|
|
|
position: static;
|
|
|
|
transform: none;
|
|
|
|
left: auto;
|
|
|
|
top: auto;
|
|
|
|
content: counter(checkout-step) ".\00a0";
|
|
|
|
content: counter(checkout-step) ".\00a0" / "";
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-components-checkout-step__container::after {
|
|
|
|
content: unset;
|
|
|
|
}
|
2021-09-10 14:04:42 +00:00
|
|
|
}
|
|
|
|
}
|
2020-03-30 12:43:42 +00:00
|
|
|
}
|
2021-09-16 12:16:21 +00:00
|
|
|
|
|
|
|
.editor-styles-wrapper {
|
|
|
|
.wp-block h4.wc-block-components-checkout-step__title {
|
|
|
|
@include font-size(regular);
|
|
|
|
line-height: 24px;
|
|
|
|
margin: 0 $gap-small 0 0;
|
|
|
|
}
|
|
|
|
}
|