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

48 lines
801 B
SCSS
Raw Normal View History

.wc-product-preview {
text-align: center;
margin-bottom: $gap;
.wc-product-preview__title,
.wc-product-preview__price {
margin-top: $gap-smallest;
}
.wp-block-button {
margin-bottom: 0;
}
.wc-product-preview__add-to-cart {
cursor: text;
margin: $gap-small 0 0;
}
.cols-4 &,
.cols-5 &,
.cols-6 & {
.wc-product-preview__title {
font-size: 0.9em;
line-height: 1.2;
}
.wc-product-preview__price {
font-size: 0.8em;
}
.wc-product-preview__add-to-cart {
font-size: 0.7em !important;
line-height: 1.4 !important;
}
}
.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;
}
}
}