浏览代码

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

Varia: Removes custom code for dealing with Galleries in varia based themes
Ben Dwyer 4 年之前
父节点
当前提交
acf9d9fa11
共有 4 个文件被更改,包括 1 次插入17 次删除
  1. 1 1
      seedlet/assets/sass/blocks/gallery/_style.scss
  2. 0 6
      varia/sass/blocks/gallery/_style.scss
  3. 0 5
      varia/style-rtl.css
  4. 0 5
      varia/style.css

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

@@ -24,4 +24,4 @@
 	&.alignright {
 		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.
 	&.alignleft,
 	&.alignright {

+ 0 - 5
varia/style-rtl.css

@@ -1697,11 +1697,6 @@ button[data-load-more-btn], .button {
 	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 {
 	max-width: 50%;
 }

+ 0 - 5
varia/style.css

@@ -1697,11 +1697,6 @@ button[data-load-more-btn], .button {
 	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 {
 	max-width: 50%;
 }