Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #608 from WordPress/update/classic-block-gallery-s…
Browse files Browse the repository at this point in the history
…tyles

Remove our Classic Block gallery shortcode editor styles
  • Loading branch information
allancole authored Nov 15, 2018
2 parents 82fdf18 + c585289 commit 46da458
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 72 deletions.
48 changes: 0 additions & 48 deletions style-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,6 @@ ul.wp-block-archives li ul,

.wp-block-freeform {
/* Add style for galleries in classic-editor block */
/* Add style for galleries in classic-editor block */
}

.wp-block-freeform blockquote {
Expand All @@ -721,50 +720,3 @@ ul.wp-block-archives li ul,
line-height: 1.6;
color: #767676;
}

.wp-block-freeform .gallery {
display: flex;
}

.wp-block-freeform .gallery .gallery-item {
padding: 0.5rem;
text-align: center;
vertical-align: top;
width: 100%;
}

.wp-block-freeform .gallery .gallery-item .gallery-caption {
margin: 0;
}

.wp-block-freeform .gallery.gallery-columns-2 .gallery-item {
max-width: calc( ( 12 / 2 ) * (100% / 12));
}

.wp-block-freeform .gallery.gallery-columns-3 .gallery-item {
max-width: calc( ( 12 / 3 ) * (100% / 12));
}

.wp-block-freeform .gallery.gallery-columns-4 .gallery-item {
max-width: calc( ( 12 / 4 ) * (100% / 12));
}

.wp-block-freeform .gallery.gallery-columns-5 .gallery-item {
max-width: calc( ( 12 / 5 ) * (100% / 12));
}

.wp-block-freeform .gallery.gallery-columns-6 .gallery-item {
max-width: calc( ( 12 / 6 ) * (100% / 12));
}

.wp-block-freeform .gallery.gallery-columns-7 .gallery-item {
max-width: calc( ( 12 / 7 ) * (100% / 12));
}

.wp-block-freeform .gallery.gallery-columns-8 .gallery-item {
max-width: calc( ( 12 / 8 ) * (100% / 12));
}

.wp-block-freeform .gallery.gallery-columns-9 .gallery-item {
max-width: calc( ( 12 / 9 ) * (100% / 12));
}
24 changes: 0 additions & 24 deletions style-editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -694,28 +694,4 @@ ul.wp-block-archives,
color: $color__text-light;
}
}

/* Add style for galleries in classic-editor block */
.gallery {

display: flex;

.gallery-item {
padding: ( $size__spacing-unit * .5 );
text-align: center;
vertical-align: top;
width: 100%;

.gallery-caption {
margin: 0;
}
}

// Loops to enumerate the classes for gallery columns.
@for $i from 2 through 9 {
&.gallery-columns-#{$i} .gallery-item {
max-width: calc( ( 12 / #{$i} ) * (100% / 12) );
}
}
}
}

0 comments on commit 46da458

Please sign in to comment.