瀏覽代碼

made full width galleries stretch to full width

Maggie Cabrera 4 年之前
父節點
當前提交
ff39d059cc
共有 4 個文件被更改,包括 14 次插入0 次删除
  1. 6 0
      seedlet/assets/sass/blocks/gallery/_style.scss
  2. 4 0
      seedlet/style-rtl.css
  3. 4 0
      seedlet/style.css
  4. 0 0
      seedlet/style.css.map

+ 6 - 0
seedlet/assets/sass/blocks/gallery/_style.scss

@@ -20,4 +20,10 @@
 	&.alignright {
 	&.alignright {
 		max-width: 50%;
 		max-width: 50%;
 	}
 	}
+
+	&.alignfull {
+		.blocks-gallery-grid {
+			width: 100%;
+		}
+	}
 }
 }

+ 4 - 0
seedlet/style-rtl.css

@@ -1511,6 +1511,10 @@ object {
 	max-width: 50%;
 	max-width: 50%;
 }
 }
 
 
+.wp-block-gallery.alignfull .blocks-gallery-grid {
+	width: 100%;
+}
+
 .wp-block-group .wp-block-group__inner-container {
 .wp-block-group .wp-block-group__inner-container {
 	margin-right: auto;
 	margin-right: auto;
 	margin-left: auto;
 	margin-left: auto;

+ 4 - 0
seedlet/style.css

@@ -1519,6 +1519,10 @@ object {
 	max-width: 50%;
 	max-width: 50%;
 }
 }
 
 
+.wp-block-gallery.alignfull .blocks-gallery-grid {
+	width: 100%;
+}
+
 .wp-block-group .wp-block-group__inner-container {
 .wp-block-group .wp-block-group__inner-container {
 	margin-left: auto;
 	margin-left: auto;
 	margin-right: auto;
 	margin-right: auto;

文件差異過大導致無法顯示
+ 0 - 0
seedlet/style.css.map


部分文件因文件數量過多而無法顯示