2018-11-19 16:33:17 +00:00
|
|
|
// Import the woocommerce components stylesheet
|
2019-01-14 20:33:17 +00:00
|
|
|
@import "~@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;
|
|
|
|
}
|
|
|
|
|
2019-02-18 14:48:34 +00:00
|
|
|
// Align the block icons in edit mode
|
|
|
|
.components-placeholder__label .gridicon,
|
|
|
|
.components-placeholder__label .material-icon {
|
|
|
|
margin-right: 1ch;
|
|
|
|
fill: currentColor;
|
|
|
|
}
|
|
|
|
|
2019-05-21 20:34:48 +00:00
|
|
|
// Remove the list styling, which is added back by core GB styles.
|
2019-05-28 10:17:45 +00:00
|
|
|
.editor-styles-wrapper {
|
|
|
|
.wc-block-grid {
|
|
|
|
.wc-block-grid__products {
|
|
|
|
list-style: none;
|
2019-10-28 13:53:09 +00:00
|
|
|
margin: 0 (-$gap/2) $gap;
|
2020-11-23 19:21:36 +00:00
|
|
|
padding: 0;
|
2019-05-28 10:17:45 +00:00
|
|
|
|
2019-10-24 13:39:50 +00:00
|
|
|
.wc-block-grid__product {
|
|
|
|
margin: 0 0 $gap-large 0;
|
|
|
|
}
|
2019-05-16 13:03:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-28 10:17:45 +00:00
|
|
|
&.components-placeholder {
|
|
|
|
padding: 2em 1em;
|
2018-12-04 20:40:00 +00:00
|
|
|
}
|
|
|
|
|
2019-05-28 10:17:45 +00:00
|
|
|
&.is-loading,
|
|
|
|
&.is-not-found {
|
|
|
|
display: block;
|
2018-12-04 20:40:00 +00:00
|
|
|
}
|
|
|
|
}
|
2018-11-19 16:33:17 +00:00
|
|
|
}
|
2019-11-26 10:56:14 +00:00
|
|
|
|
2020-03-06 12:20:17 +00:00
|
|
|
// Style inline notices in the inspector.
|
|
|
|
.components-base-control {
|
|
|
|
+ .wc-block-base-control-notice {
|
|
|
|
margin: -$gap 0 $gap;
|
|
|
|
}
|
|
|
|
|
|
|
|
& + .wc-block-base-control-notice:last-child {
|
|
|
|
margin: -$gap 0 $gap-small;
|
|
|
|
}
|
|
|
|
}
|
2020-05-28 10:20:47 +00:00
|
|
|
|
2020-12-29 16:02:09 +00:00
|
|
|
// This border has been upstreamed to WooCommerce Admin, so it can be removed
|
|
|
|
// from here once @woocommerce/components gets updated.
|
|
|
|
// https://github.com/woocommerce/woocommerce-admin/pull/5901
|
|
|
|
.woocommerce-search-list__list {
|
2020-10-22 10:40:32 +00:00
|
|
|
border: 1px solid $gray-200;
|
2020-05-28 10:20:47 +00:00
|
|
|
}
|