- Timestamp:
- 12/14/2018 02:32:33 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963
- Property svn:mergeinfo changed
-
trunk/src/wp-content/themes/twentynineteen/sass/media/_galleries.scss
r43808 r44149 1 1 .gallery { 2 2 display: flex; 3 flex-flow: row wrap; 4 justify-content: center; 3 5 margin-bottom: calc(1.5 * #{$size__spacing-unit}); 4 6 } … … 6 8 .gallery-item { 7 9 display: inline-block; 8 margin-right: $size__spacing-unit;9 margin-bottom: $size__spacing-unit;10 margin-right: 16px; 11 margin-bottom: 16px; 10 12 text-align: center; 11 13 vertical-align: top; … … 15 17 @for $i from 2 through 9 { 16 18 .gallery-columns-#{$i} & { 17 max-width: calc( ( 12 / #{$i} ) * (100% / 12) ); 19 max-width: calc((100% - 16px * #{ $i - 1 }) / #{ $i }); 20 21 &:nth-of-type(#{$i}n+#{$i}) { 22 margin-right: 0; 23 } 18 24 } 19 25 } 20 26 21 27 &:last-of-type { 22 margin-right: 0;28 padding-right: 0; 23 29 } 24 30 }
Note: See TracChangeset
for help on using the changeset viewer.