139 lines
2.9 KiB
SCSS
139 lines
2.9 KiB
SCSS
.wc-block-components-form {
|
|
counter-reset: checkout-step;
|
|
}
|
|
|
|
.wc-block-components-form .wc-block-components-checkout-step {
|
|
position: relative;
|
|
border: none;
|
|
background: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
.is-mobile &,
|
|
.is-small & {
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
|
|
.wc-block-components-checkout-step--disabled {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.wc-block-components-checkout-step__container {
|
|
position: relative;
|
|
|
|
textarea {
|
|
font-style: inherit;
|
|
font-weight: inherit;
|
|
}
|
|
}
|
|
|
|
.wc-block-components-checkout-step__content > * {
|
|
margin-bottom: $gap;
|
|
}
|
|
.wc-block-components-checkout-step--with-step-number .wc-block-components-checkout-step__content > :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
.wc-block-checkout__contact-fields .wc-block-components-checkout-step__heading {
|
|
margin-top: em($gap-smaller);
|
|
}
|
|
.wc-block-components-checkout-step__heading {
|
|
margin: $gap-larger 0 $gap-smaller;
|
|
position: relative;
|
|
|
|
.wc-block-components-express-payment-continue-rule + .wc-block-components-checkout-step & {
|
|
margin-top: 0;
|
|
}
|
|
|
|
}
|
|
|
|
.wc-block-components-checkout-step:first-child .wc-block-components-checkout-step__heading {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.wc-block-components-checkout-step__title {
|
|
margin: 0 $gap-small 0 0;
|
|
}
|
|
|
|
.wc-block-components-checkout-step__heading-content {
|
|
@include font-size(smaller);
|
|
|
|
a {
|
|
font-weight: bold;
|
|
color: inherit;
|
|
}
|
|
}
|
|
|
|
.wc-block-checkout__payment-method .wc-block-components-checkout-step__content {
|
|
padding-top: $gap-smaller;
|
|
}
|
|
|
|
.wc-block-components-checkout-step__description {
|
|
@include font-size(small);
|
|
line-height: 1.2;
|
|
margin: 0 0 $gap;
|
|
}
|
|
|
|
.wc-block-checkout__form--with-step-numbers {
|
|
.wc-block-components-checkout-step--with-step-number {
|
|
padding: 0 0 0 $gap-larger;
|
|
|
|
.wc-block-components-checkout-step__title::before {
|
|
@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" / "";
|
|
}
|
|
}
|
|
|
|
.wc-block-components-checkout-step__container::after {
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|