Browse Source

Merge pull request #2456 from Automattic/fix/gallery-stacking

Varia: Removes custom code for dealing with Galleries in varia based themes
Ben Dwyer 4 years ago
parent
commit
acf9d9fa11

+ 1 - 1
seedlet/assets/sass/blocks/gallery/_style.scss

@@ -24,4 +24,4 @@
 	&.alignright {
 	&.alignright {
 		max-width: 50%;
 		max-width: 50%;
 	}
 	}
-}
+}

+ 0 - 6
varia/sass/blocks/gallery/_style.scss

@@ -13,12 +13,6 @@
 		}
 		}
 	}
 	}
 
 
-	// On mobile and responsive viewports, we allow only 1 or 2 columns at the most.
-	& .blocks-gallery-image,
-	& .blocks-gallery-item {
-		width: calc( (100% - #{map-deep-get($config-global, "spacing", "unit")}) / 2);
-	}
-
 	// Apply max-width to floated items that have no intrinsic width.
 	// Apply max-width to floated items that have no intrinsic width.
 	&.alignleft,
 	&.alignleft,
 	&.alignright {
 	&.alignright {

+ 0 - 5
varia/style-rtl.css

@@ -1697,11 +1697,6 @@ button[data-load-more-btn], .button {
 	font-size: 0.69444rem;
 	font-size: 0.69444rem;
 }
 }
 
 
-.wp-block-gallery .blocks-gallery-image,
-.wp-block-gallery .blocks-gallery-item {
-	width: calc( (100% - 16px) / 2);
-}
-
 .wp-block-gallery.alignleft, .wp-block-gallery.alignright {
 .wp-block-gallery.alignleft, .wp-block-gallery.alignright {
 	max-width: 50%;
 	max-width: 50%;
 }
 }

+ 0 - 5
varia/style.css

@@ -1697,11 +1697,6 @@ button[data-load-more-btn], .button {
 	font-size: 0.69444rem;
 	font-size: 0.69444rem;
 }
 }
 
 
-.wp-block-gallery .blocks-gallery-image,
-.wp-block-gallery .blocks-gallery-item {
-	width: calc( (100% - 16px) / 2);
-}
-
 .wp-block-gallery.alignleft, .wp-block-gallery.alignright {
 .wp-block-gallery.alignleft, .wp-block-gallery.alignright {
 	max-width: 50%;
 	max-width: 50%;
 }
 }