2023-04-11 07:51:09 +00:00
|
|
|
table.wc-block-cart-items,
|
|
|
|
table.wc-block-cart-items th,
|
|
|
|
table.wc-block-cart-items td {
|
|
|
|
// Override Storefront theme gray table background.
|
|
|
|
background: none !important;
|
|
|
|
// Remove borders on default themes.
|
|
|
|
border: 0;
|
2023-04-17 16:52:43 +00:00
|
|
|
margin: 0;
|
2023-04-11 07:51:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.editor-styles-wrapper table.wc-block-cart-items,
|
|
|
|
table.wc-block-cart-items {
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.wc-block-cart-items__header {
|
|
|
|
@include font-size( smaller );
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
|
|
|
.wc-block-cart-items__header-image {
|
|
|
|
width: 100px;
|
|
|
|
}
|
|
|
|
.wc-block-cart-items__header-product {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
.wc-block-cart-items__header-total {
|
|
|
|
width: 100px;
|
|
|
|
text-align: right;
|
|
|
|
}
|
2023-12-07 08:55:47 +00:00
|
|
|
th {
|
|
|
|
font-weight: 700;
|
|
|
|
}
|
2023-04-11 07:51:09 +00:00
|
|
|
}
|
|
|
|
.wc-block-cart-items__row {
|
2024-02-16 21:50:11 +00:00
|
|
|
|
|
|
|
.wc-block-cart-item__wrap > *,
|
|
|
|
.wc-block-components-quantity-selector {
|
|
|
|
margin-bottom: $gap-small;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-cart-item__wrap > *:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2023-04-11 07:51:09 +00:00
|
|
|
.wc-block-cart-item__image img {
|
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2024-02-16 21:50:11 +00:00
|
|
|
.wc-block-cart-item__prices {
|
|
|
|
line-height: 1.2;
|
|
|
|
}
|
|
|
|
|
2023-04-11 07:51:09 +00:00
|
|
|
.wc-block-cart-item__quantity {
|
|
|
|
.wc-block-cart-item__remove-link {
|
2023-11-02 09:16:19 +00:00
|
|
|
@include link-button();
|
|
|
|
@include hover-effect();
|
2023-04-11 07:51:09 +00:00
|
|
|
@include font-size( smaller );
|
|
|
|
|
|
|
|
text-transform: none;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.wc-block-components-product-name {
|
|
|
|
display: block;
|
|
|
|
max-width: max-content;
|
2024-02-16 21:50:11 +00:00
|
|
|
line-height: 1.4;
|
2023-04-11 07:51:09 +00:00
|
|
|
}
|
|
|
|
.wc-block-cart-item__total {
|
|
|
|
@include font-size( regular );
|
|
|
|
text-align: right;
|
2024-02-16 21:50:11 +00:00
|
|
|
line-height: 1.8;
|
2023-04-11 07:51:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-disabled {
|
|
|
|
opacity: 0.5;
|
|
|
|
pointer-events: none;
|
|
|
|
transition: opacity 200ms ease;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-medium,
|
|
|
|
.is-small,
|
|
|
|
.is-mobile {
|
|
|
|
table.wc-block-cart-items {
|
|
|
|
td {
|
|
|
|
padding: 0;
|
2024-02-16 21:50:11 +00:00
|
|
|
margin: 0;
|
2023-04-11 07:51:09 +00:00
|
|
|
}
|
|
|
|
.wc-block-cart-items__header {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.wc-block-cart-item__remove-link {
|
|
|
|
display: none;
|
|
|
|
}
|
2023-11-13 12:52:29 +00:00
|
|
|
&:not(.wc-block-mini-cart-items):not(:last-child) {
|
2023-04-11 07:51:09 +00:00
|
|
|
.wc-block-cart-items__row {
|
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-bottom: 1px solid $universal-border-light;
|
2023-04-11 07:51:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.wc-block-cart-items__row {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 80px 132px;
|
|
|
|
padding: $gap 0;
|
|
|
|
|
|
|
|
.wc-block-cart-item__image {
|
|
|
|
grid-column-start: 1;
|
|
|
|
grid-row-start: 1;
|
|
|
|
padding-right: $gap;
|
|
|
|
}
|
|
|
|
.wc-block-cart-item__product {
|
|
|
|
grid-column-start: 2;
|
|
|
|
grid-column-end: 4;
|
|
|
|
grid-row-start: 1;
|
|
|
|
justify-self: stretch;
|
2024-02-16 21:50:11 +00:00
|
|
|
padding: 0;
|
2023-04-11 07:51:09 +00:00
|
|
|
}
|
|
|
|
.wc-block-cart-item__quantity {
|
|
|
|
grid-column-start: 1;
|
|
|
|
grid-row-start: 2;
|
|
|
|
vertical-align: bottom;
|
|
|
|
padding-right: $gap;
|
|
|
|
align-self: end;
|
2024-02-16 21:50:11 +00:00
|
|
|
padding-top: 0;
|
2023-04-11 07:51:09 +00:00
|
|
|
}
|
|
|
|
.wc-block-cart-item__total {
|
|
|
|
grid-row-start: 1;
|
|
|
|
|
|
|
|
.wc-block-components-formatted-money-amount {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-large.wc-block-cart {
|
|
|
|
margin-bottom: 3em;
|
|
|
|
|
|
|
|
.wc-block-cart-items {
|
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-spacing: 0;
|
|
|
|
border-bottom: 1px solid $universal-border-light;
|
2023-04-11 07:51:09 +00:00
|
|
|
|
|
|
|
th {
|
2024-02-16 21:50:11 +00:00
|
|
|
padding: $gap-smaller $gap $gap-smaller 0;
|
2023-04-11 07:51:09 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
td {
|
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-top: 1px solid $universal-border-light;
|
2024-02-16 21:50:11 +00:00
|
|
|
padding: $gap-large 0 $gap-large $gap;
|
2023-04-11 07:51:09 +00:00
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
th:last-child {
|
2024-02-16 21:50:11 +00:00
|
|
|
padding-right: $gap;
|
2023-04-11 07:51:09 +00:00
|
|
|
}
|
|
|
|
td:last-child {
|
|
|
|
padding-right: $gap;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|