Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.

Commit

Permalink
Fixed gallery item margins in block editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
peiche committed Nov 1, 2021
1 parent 879a235 commit 0cbe84b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions resources/scss/blocks/editor/_gallery.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
/// @link https://boldoak.design/work/garrick
////

@use '~codyhouse-framework/main/assets/css/base/breakpoints' as *;

.wp-block-gallery {

.components-form-file-upload {
Expand Down Expand Up @@ -34,3 +36,16 @@
.blocks-gallery-item {
margin-bottom: 0; // override margin-based gap
}

@include breakpoint(sm) {

@for $i from 2 through 8 {

.columns-#{ $i } {

.blocks-gallery-item {
margin-right: 0;
}
}
}
}

0 comments on commit 0cbe84b

Please sign in to comment.