2020-03-30 12:07:49 +00:00
|
|
|
.wc-block-card-elements {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
2020-08-06 19:30:27 +00:00
|
|
|
|
|
|
|
.wc-block-components-validation-error {
|
|
|
|
position: static;
|
|
|
|
}
|
2020-03-30 12:07:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-gateway-container {
|
|
|
|
position: relative;
|
2020-06-08 10:55:10 +00:00
|
|
|
margin-bottom: em($gap-large);
|
2024-02-16 21:50:11 +00:00
|
|
|
margin-top: $gap-smaller;
|
2020-03-30 12:07:49 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
&.wc-card-number-element {
|
2020-07-20 11:56:22 +00:00
|
|
|
flex-basis: 15em;
|
|
|
|
flex-grow: 1;
|
|
|
|
// Currently, min() CSS function calls need to be wrapped with unquote.
|
2022-03-28 13:00:20 +00:00
|
|
|
min-width: string.unquote("min(15em, 60%)");
|
2020-07-20 11:56:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.wc-card-expiry-element {
|
|
|
|
flex-basis: 7em;
|
|
|
|
margin-left: $gap-small;
|
2022-03-28 13:00:20 +00:00
|
|
|
min-width: string.unquote("min(7em, calc(24% - #{$gap-small}))");
|
2020-03-30 12:07:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.wc-card-cvc-element {
|
2020-07-20 11:56:22 +00:00
|
|
|
flex-basis: 7em;
|
2020-03-30 12:07:49 +00:00
|
|
|
margin-left: $gap-small;
|
2020-07-20 11:56:22 +00:00
|
|
|
// Notice the min width ems value is smaller than flex-basis. That's because
|
|
|
|
// by default we want it to have the same width as `expiry-element`, but
|
|
|
|
// if available space is scarce, `cvc-element` should get smaller faster.
|
2022-03-28 13:00:20 +00:00
|
|
|
min-width: string.unquote("min(5em, calc(16% - #{$gap-small}))");
|
2020-03-30 12:07:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.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-07-20 11:56:22 +00:00
|
|
|
padding: em($gap-small) 0 em($gap-small) $gap;
|
2023-10-11 16:04:45 +00:00
|
|
|
border-radius: $universal-border-radius;
|
2020-03-30 12:07:49 +00:00
|
|
|
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;
|
2020-06-08 10:55:10 +00:00
|
|
|
cursor: text;
|
2020-03-30 12:07:49 +00:00
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
label {
|
2023-04-21 20:11:10 +00:00
|
|
|
@include reset-color();
|
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;
|
2020-10-22 10:40:32 +00:00
|
|
|
color: $gray-700;
|
2020-03-30 12:07:49 +00:00
|
|
|
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;
|
2020-07-20 11:56:22 +00:00
|
|
|
max-width: calc(100% - #{$gap + $gap-smaller});
|
2020-06-08 10:55:10 +00:00
|
|
|
cursor: text;
|
2020-03-30 12:07:49 +00:00
|
|
|
|
|
|
|
@media screen and (prefers-reduced-motion: reduce) {
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.wc-inline-card-element {
|
|
|
|
label {
|
2020-07-20 11:56:22 +00:00
|
|
|
// $gap is the padding of the input box, 1.5em the width of the card
|
|
|
|
// icon and $gap-smaller the space between the card
|
|
|
|
// icon and the label.
|
|
|
|
margin-left: calc(#{$gap + $gap-smaller} + 1.5em);
|
2020-03-30 12:07:49 +00:00
|
|
|
}
|
|
|
|
.wc-block-gateway-input.focused.empty,
|
|
|
|
.wc-block-gateway-input:not(.empty) {
|
2022-03-28 13:00:20 +00:00
|
|
|
+ label {
|
2020-03-30 12:07:49 +00:00
|
|
|
margin-left: $gap;
|
|
|
|
transform: translateY(#{$gap-smallest}) scale(0.75);
|
|
|
|
}
|
|
|
|
}
|
2022-03-28 13:00:20 +00:00
|
|
|
+ .wc-block-components-validation-error {
|
2020-03-30 12:07:49 +00:00
|
|
|
position: static;
|
|
|
|
margin-top: -$gap-large;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-gateway-input.focused.empty,
|
|
|
|
.wc-block-gateway-input:not(.empty) {
|
2020-07-20 11:56:22 +00:00
|
|
|
padding: em($gap-large) 0 em($gap-smallest) $gap;
|
2022-03-28 13:00:20 +00:00
|
|
|
+ label {
|
2020-03-30 12:07:49 +00:00
|
|
|
transform: translateY(#{$gap-smallest}) scale(0.75);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-gateway-input.has-error {
|
2020-10-22 10:40:32 +00:00
|
|
|
border-color: $alert-red;
|
2020-03-30 12:07:49 +00:00
|
|
|
&:focus {
|
2020-10-22 10:40:32 +00:00
|
|
|
outline-color: $alert-red;
|
2020-03-30 12:07:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-gateway-input.has-error + label {
|
2020-10-22 10:40:32 +00:00
|
|
|
color: $alert-red;
|
2020-03-30 12:07:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-08 10:55:10 +00:00
|
|
|
// These elements have available space below, so we can display errors with a
|
|
|
|
// larger line height.
|
|
|
|
.is-medium,
|
|
|
|
.is-large {
|
|
|
|
.wc-card-expiry-element,
|
|
|
|
.wc-card-cvc-element {
|
2020-06-17 09:53:42 +00:00
|
|
|
.wc-block-components-validation-error > p {
|
2020-06-08 10:55:10 +00:00
|
|
|
line-height: 16px;
|
|
|
|
padding-top: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-mobile,
|
|
|
|
.is-small {
|
|
|
|
.wc-card-expiry-element,
|
|
|
|
.wc-card-cvc-element {
|
2020-06-17 09:53:42 +00:00
|
|
|
.wc-block-components-validation-error > p {
|
2020-06-08 10:55:10 +00:00
|
|
|
min-height: 28px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2020-07-20 11:56:22 +00:00
|
|
|
.is-mobile,
|
|
|
|
.is-small {
|
2020-04-24 12:23:25 +00:00
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
2021-02-02 04:51:47 +00:00
|
|
|
|
|
|
|
.wc-block-checkout__payment-method {
|
|
|
|
.wc-block-components-radio-control__option {
|
Update the border colors in the Cart and Checkout blocks (https://github.com/woocommerce/woocommerce-blocks/pull/11474)
* Change border color to Gutenberg 100 for Cart and Checkout blocks
* Change form input color to Gutenberg 900 for Cart and Checkout blocks
* Fix additional border colors of Checkout block
* Update borders and form field colors in Cart Block
* Change border color to $universal-border-light
* Change border color for cart line items to $universal-border-light
* Change form input fields border color to $universal-border-dark
- Add $universal-border-dark color variable for woocommerce/woocommerce-blocks#1e1e1e on white.
* Fix colors of text area border and form steps
* Change form input fields border color to $universal-border-dark
- Add $universal-border-dark color variable for woocommerce/woocommerce-blocks#1e1e1e on white.
* Fix form steps
* Update universal dark border rgba value
- Update universal dark border rgba value from rgba(0, 0, 0, 0.882) to rgba(17, 17, 17, .80) to keep it consistent with universal-border colors
* Update $universal-border-light color
* Update the opacity of the borders
* Update the border color to rgba (17, 17, 17, 0.12)
* Roll back $universal-border-light value to the original value: 0.115
* Remove Opacity and pass it as argument in with-translucent-border
- We have with-translucent-border option that accepts border and opacity for pseudo elements.
* Remove additional spaces
* Replace with-translucent-border with normal border
- Since we're are not mixing the opacity to the border color so we don't need to use mixin with-translucent-border.
* Fix applied css and add low contrast Color usage details
- Fix minor CSS as per the standards.
- Add comments for universal border colors that they're low contrast colors and should be used for decorative elements only
* Fix border gap and double border for multiple shipping packages
* Fix payment method borders and Cart line items borders
- Change border bottom to border-top for cart line items.
- Fix payment method radio control borders.
* Fix local pickup border
- Local pickup was using with-translucent-borders so it has some opacity, changed it to border-bottom.
* Add border-bottom to cart items
* Remove additional border from Cart items
* Fix radio and checkbox borders as per the design
* Fix shipping method borders and background color as per the design.
* Force align left on the description for the local pickup options.
* Update border color in quantity selector component
* Fix Shipping options radio selection alignment
- Add left padding to wc-block-components-shipping-rates-control__package element.
* Update colors and variables
* Change checkbox and radio button colors
- Change checkbox and radio button colors from rgba(25, 23, 17, 0.3) to rgba(25, 23, 17, 0.48).
* Remove bottom property from express payment style
2023-12-07 17:37:48 +00:00
|
|
|
padding-left: em($gap-huge);
|
2024-04-10 09:54:05 +00:00
|
|
|
padding-right: em($gap-small);
|
2021-02-09 08:10:45 +00:00
|
|
|
|
2021-02-02 04:51:47 +00:00
|
|
|
&::after {
|
|
|
|
content: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-components-radio-control__input {
|
|
|
|
left: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-09 08:10:45 +00:00
|
|
|
// We need to add the first-child and last-child pseudoclasses for specificity.
|
|
|
|
.wc-block-components-radio-control__option,
|
|
|
|
.wc-block-components-radio-control__option:first-child,
|
|
|
|
.wc-block-components-radio-control__option:last-child {
|
|
|
|
margin: 0;
|
2024-03-29 09:30:55 +00:00
|
|
|
padding-bottom: em($gap);
|
|
|
|
padding-top: em($gap);
|
2021-02-09 08:10:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-components-radio-control__option-checked {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
Update the border colors in the Cart and Checkout blocks (https://github.com/woocommerce/woocommerce-blocks/pull/11474)
* Change border color to Gutenberg 100 for Cart and Checkout blocks
* Change form input color to Gutenberg 900 for Cart and Checkout blocks
* Fix additional border colors of Checkout block
* Update borders and form field colors in Cart Block
* Change border color to $universal-border-light
* Change border color for cart line items to $universal-border-light
* Change form input fields border color to $universal-border-dark
- Add $universal-border-dark color variable for woocommerce/woocommerce-blocks#1e1e1e on white.
* Fix colors of text area border and form steps
* Change form input fields border color to $universal-border-dark
- Add $universal-border-dark color variable for woocommerce/woocommerce-blocks#1e1e1e on white.
* Fix form steps
* Update universal dark border rgba value
- Update universal dark border rgba value from rgba(0, 0, 0, 0.882) to rgba(17, 17, 17, .80) to keep it consistent with universal-border colors
* Update $universal-border-light color
* Update the opacity of the borders
* Update the border color to rgba (17, 17, 17, 0.12)
* Roll back $universal-border-light value to the original value: 0.115
* Remove Opacity and pass it as argument in with-translucent-border
- We have with-translucent-border option that accepts border and opacity for pseudo elements.
* Remove additional spaces
* Replace with-translucent-border with normal border
- Since we're are not mixing the opacity to the border color so we don't need to use mixin with-translucent-border.
* Fix applied css and add low contrast Color usage details
- Fix minor CSS as per the standards.
- Add comments for universal border colors that they're low contrast colors and should be used for decorative elements only
* Fix border gap and double border for multiple shipping packages
* Fix payment method borders and Cart line items borders
- Change border bottom to border-top for cart line items.
- Fix payment method radio control borders.
* Fix local pickup border
- Local pickup was using with-translucent-borders so it has some opacity, changed it to border-bottom.
* Add border-bottom to cart items
* Remove additional border from Cart items
* Fix radio and checkbox borders as per the design
* Fix shipping method borders and background color as per the design.
* Force align left on the description for the local pickup options.
* Update border color in quantity selector component
* Fix Shipping options radio selection alignment
- Add left padding to wc-block-components-shipping-rates-control__package element.
* Update colors and variables
* Change checkbox and radio button colors
- Change checkbox and radio button colors from rgba(25, 23, 17, 0.3) to rgba(25, 23, 17, 0.48).
* Remove bottom property from express payment style
2023-12-07 17:37:48 +00:00
|
|
|
.wc-block-components-radio-control-accordion-option
|
|
|
|
.wc-block-components-radio-control__option {
|
|
|
|
border-width: 0;
|
2021-04-09 15:19:32 +00:00
|
|
|
}
|
|
|
|
|
2023-10-11 16:04:45 +00:00
|
|
|
.wc-block-components-radio-control-accordion-option:first-child::after {
|
|
|
|
border-top-left-radius: $universal-border-radius;
|
|
|
|
border-top-right-radius: $universal-border-radius;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-components-radio-control-accordion-option:last-child::after {
|
|
|
|
border-bottom-left-radius: $universal-border-radius;
|
|
|
|
border-bottom-right-radius: $universal-border-radius;
|
|
|
|
}
|
|
|
|
|
2021-04-09 15:19:32 +00:00
|
|
|
.wc-block-components-radio-control__option:last-child::after,
|
|
|
|
.wc-block-components-radio-control-accordion-option:last-child::after {
|
|
|
|
border-width: 1px;
|
2021-02-02 04:51:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-components-radio-control-accordion-option {
|
2021-04-09 15:19:32 +00:00
|
|
|
.wc-block-components-radio-control__option::after {
|
2021-02-02 04:51:47 +00:00
|
|
|
border-width: 0;
|
|
|
|
}
|
2021-07-06 08:30:02 +00:00
|
|
|
.wc-block-components-radio-control__label {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-start;
|
Update the border colors in the Cart and Checkout blocks (https://github.com/woocommerce/woocommerce-blocks/pull/11474)
* Change border color to Gutenberg 100 for Cart and Checkout blocks
* Change form input color to Gutenberg 900 for Cart and Checkout blocks
* Fix additional border colors of Checkout block
* Update borders and form field colors in Cart Block
* Change border color to $universal-border-light
* Change border color for cart line items to $universal-border-light
* Change form input fields border color to $universal-border-dark
- Add $universal-border-dark color variable for woocommerce/woocommerce-blocks#1e1e1e on white.
* Fix colors of text area border and form steps
* Change form input fields border color to $universal-border-dark
- Add $universal-border-dark color variable for woocommerce/woocommerce-blocks#1e1e1e on white.
* Fix form steps
* Update universal dark border rgba value
- Update universal dark border rgba value from rgba(0, 0, 0, 0.882) to rgba(17, 17, 17, .80) to keep it consistent with universal-border colors
* Update $universal-border-light color
* Update the opacity of the borders
* Update the border color to rgba (17, 17, 17, 0.12)
* Roll back $universal-border-light value to the original value: 0.115
* Remove Opacity and pass it as argument in with-translucent-border
- We have with-translucent-border option that accepts border and opacity for pseudo elements.
* Remove additional spaces
* Replace with-translucent-border with normal border
- Since we're are not mixing the opacity to the border color so we don't need to use mixin with-translucent-border.
* Fix applied css and add low contrast Color usage details
- Fix minor CSS as per the standards.
- Add comments for universal border colors that they're low contrast colors and should be used for decorative elements only
* Fix border gap and double border for multiple shipping packages
* Fix payment method borders and Cart line items borders
- Change border bottom to border-top for cart line items.
- Fix payment method radio control borders.
* Fix local pickup border
- Local pickup was using with-translucent-borders so it has some opacity, changed it to border-bottom.
* Add border-bottom to cart items
* Remove additional border from Cart items
* Fix radio and checkbox borders as per the design
* Fix shipping method borders and background color as per the design.
* Force align left on the description for the local pickup options.
* Update border color in quantity selector component
* Fix Shipping options radio selection alignment
- Add left padding to wc-block-components-shipping-rates-control__package element.
* Update colors and variables
* Change checkbox and radio button colors
- Change checkbox and radio button colors from rgba(25, 23, 17, 0.3) to rgba(25, 23, 17, 0.48).
* Remove bottom property from express payment style
2023-12-07 17:37:48 +00:00
|
|
|
border-width: 0;
|
2021-07-06 08:30:02 +00:00
|
|
|
}
|
2021-02-02 04:51:47 +00:00
|
|
|
.wc-block-components-radio-control__label img {
|
|
|
|
height: 24px;
|
2021-07-06 08:30:02 +00:00
|
|
|
max-height: 24px;
|
|
|
|
object-fit: contain;
|
|
|
|
object-position: left;
|
2021-02-02 04:51:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-components-radio-control.disable-radio-control {
|
|
|
|
.wc-block-components-radio-control__option {
|
|
|
|
padding-left: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-components-radio-control__input {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-components-checkout-step__description-payments-aligned {
|
|
|
|
padding-top: 14px;
|
|
|
|
height: 28px;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
.wc-block-components-radio-control-accordion-content {
|
2024-02-16 21:50:11 +00:00
|
|
|
padding: $gap-smaller $gap;
|
2021-03-12 14:40:09 +00:00
|
|
|
|
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-02-02 04:51:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-checkout__order-notes {
|
|
|
|
.wc-block-components-checkout-step__content {
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|