Skip to content

Commit

Permalink
Fix gallery media uploader across blocks (#1730)
Browse files Browse the repository at this point in the history
* use new styles

* use new styles

* Minor tweak

Co-authored-by: Rich Tabor <hi@richtabor.com>
  • Loading branch information
AnthonyLedesma and richtabor committed Oct 13, 2020
1 parent 70bbb37 commit 9eb5c5f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/components/block-gallery/styles/editor.scss
Expand Up @@ -17,3 +17,25 @@
[data-type*="coblocks/gallery"] .is-appender {
outline-offset: -1px;
}

// Apply gallery placeholder styles to gallery blocks.
[data-type*="coblocks/gallery"] {

.coblocks-gallery,
.coblocks-gallery--item,
.components-resizable-box__container {

~ div .coblocks-gallery--figure.is-appender .components-placeholder__label {
display: none; // Gallery has images - hide label div
}
}

.coblocks-gallery--figure.is-appender {
margin-bottom: 12px;
padding: 12px;

.components-placeholder__fieldset .block-editor-media-placeholder__upload-button {
margin-bottom: 0 !important;
}
}
}

0 comments on commit 9eb5c5f

Please sign in to comment.