Skip to content

Commit

Permalink
Corrected column math in galleries - issue WordPress#91
Browse files Browse the repository at this point in the history
contributor: technosiren
  • Loading branch information
briannaorg committed Oct 17, 2018
1 parent f0b3e8c commit f979d1c
Show file tree
Hide file tree
Showing 2 changed files with 131 additions and 440 deletions.
4 changes: 2 additions & 2 deletions sass/media/_galleries.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@

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

// Loops to enumerate the classes for gallery columns.
@for $i from 2 through 9 {
.gallery-columns-#{$i} & {
max-width: map-get( $columns, $i );
max-width: calc( ( 12 / #{$i} ) * (100% / 12) );
}
}
}
Expand All @@ -23,7 +24,6 @@
line-height: $font__line-height-pre;
margin: 0;
padding: ( $size__spacing-unit * .5 );
text-align: left;
}

.gallery-item > div > a {
Expand Down
Loading

0 comments on commit f979d1c

Please sign in to comment.