2018-11-19 16:33:17 +00:00
|
|
|
// Import the woocommerce components stylesheet
|
2018-11-27 17:12:48 +00:00
|
|
|
@import "../../node_modules/@woocommerce/components/build-style/style.css";
|
2018-11-19 16:33:17 +00:00
|
|
|
|
2018-12-04 20:40:00 +00:00
|
|
|
// Hack to hide preview overflow.
|
|
|
|
.editor-block-preview__content {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2018-12-13 17:19:55 +00:00
|
|
|
.wc-block-products-grid {
|
2018-11-19 16:33:17 +00:00
|
|
|
overflow: hidden;
|
2018-12-13 17:19:06 +00:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
|
|
|
&.is-loading,
|
|
|
|
&.is-not-found,
|
|
|
|
&.cols-1 {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-product-preview {
|
|
|
|
flex: 1;
|
|
|
|
padding: $gap/2;
|
|
|
|
}
|
|
|
|
|
|
|
|
@for $i from 2 to 7 {
|
|
|
|
&.cols-#{$i} .wc-product-preview {
|
|
|
|
max-width: calc(#{ 100% / $i });
|
|
|
|
min-width: calc(#{ 100% / $i });
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
}
|
2018-11-29 18:10:08 +00:00
|
|
|
|
|
|
|
&.components-placeholder {
|
|
|
|
padding: 2em 1em;
|
|
|
|
}
|
2018-12-04 20:40:00 +00:00
|
|
|
|
2019-01-10 18:16:37 +00:00
|
|
|
// Styles for "resuable block" preview.
|
2018-12-04 20:40:00 +00:00
|
|
|
.editor-block-preview & {
|
|
|
|
min-width: 5em;
|
|
|
|
|
2018-12-13 17:19:06 +00:00
|
|
|
@for $i from 1 to 7 {
|
|
|
|
&.cols-#{$i} {
|
|
|
|
min-width: $i * 5em;
|
|
|
|
}
|
2018-12-04 20:40:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-loading,
|
|
|
|
&.is-not-found {
|
|
|
|
min-width: auto;
|
|
|
|
}
|
|
|
|
}
|
2018-11-19 16:33:17 +00:00
|
|
|
}
|