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;
|
2021-08-24 11:37:43 +00:00
|
|
|
margin: 0 (-$gap*0.5) $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
|
|
|
|
2021-12-10 10:07:10 +00:00
|
|
|
// Display white icon when block is selected in list view.
|
|
|
|
.block-editor-list-view-leaf.is-selected {
|
|
|
|
.block-editor-list-view-block-contents {
|
|
|
|
svg {
|
|
|
|
fill: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-20 08:58:59 +00:00
|
|
|
// Selectors with extra specificity to override some editor styles.
|
|
|
|
.woocommerce-search-list__list.woocommerce-search-list__list {
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-search-list__selected.woocommerce-search-list__selected > ul {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2020-05-28 10:20:47 +00:00
|
|
|
}
|
2021-09-15 11:35:06 +00:00
|
|
|
|
|
|
|
.theme-twentytwenty {
|
|
|
|
.wp-block {
|
|
|
|
.wc-block-grid__product-title,
|
|
|
|
.wc-block-active-filters__title,
|
|
|
|
.wc-block-attribute-filter__title,
|
|
|
|
.wc-block-price-filter__title,
|
|
|
|
.wc-block-stock-filter__title {
|
|
|
|
@include font-size(regular);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|