woocommerce/plugins/woocommerce-blocks/assets/js/components/product-preview/style.scss

55 lines
774 B
SCSS
Raw Normal View History

.wc-product-preview {
.wc-product-preview__image {
margin-left: auto;
margin-right: auto;
}
.wp-block-button {
margin-bottom: 0;
}
.wc-product-preview__add-to-cart {
cursor: text;
margin: $gap-small 0 0;
}
.is-hidden-title & {
.wc-product-preview__title {
display: none;
}
}
.is-hidden-price & {
.wc-product-preview__price {
display: none;
}
}
.is-hidden-rating & {
.wc-product-preview__rating {
display: none;
}
}
.is-hidden-button & {
.wp-block-button {
display: none;
}
}
.editor-block-preview & {
.wc-product-preview__title {
font-size: 0.7em;
line-height: 1.2;
}
.wc-product-preview__price {
font-size: 0.6em;
}
.wc-product-preview__add-to-cart {
font-size: 0.6em !important;
}
}
}