Browse Source

Varia: Minor improvements on latest-posts layout, code tidying

Allan Cole 6 năm trước cách đây
mục cha
commit
b0086eca6c
3 tập tin đã thay đổi với 18 bổ sung0 xóa
  1. 6 0
      varia/sass/blocks/latest-posts/_style.scss
  2. 6 0
      varia/style-rtl.css
  3. 6 0
      varia/style.css

+ 6 - 0
varia/sass/blocks/latest-posts/_style.scss

@@ -43,5 +43,11 @@
 	&.alignfull {
 		padding-left: #{map-deep-get($config-global, "spacing", "unit")};
 		padding-right: #{map-deep-get($config-global, "spacing", "unit")};
+
+		.entry-content [class*="inner-container"] &,
+		.entry-content .has-background & {
+			padding-left: 0;
+			padding-right: 0;
+		}
 	}
 }

+ 6 - 0
varia/style-rtl.css

@@ -1507,6 +1507,12 @@ img {
 	padding-left: 16px;
 }
 
+.entry-content [class*="inner-container"] .wp-block-latest-posts.alignfull,
+.entry-content .has-background .wp-block-latest-posts.alignfull {
+	padding-right: 0;
+	padding-left: 0;
+}
+
 .gallery-item {
 	display: inline-block;
 	text-align: center;

+ 6 - 0
varia/style.css

@@ -1507,6 +1507,12 @@ img {
 	padding-right: 16px;
 }
 
+.entry-content [class*="inner-container"] .wp-block-latest-posts.alignfull,
+.entry-content .has-background .wp-block-latest-posts.alignfull {
+	padding-left: 0;
+	padding-right: 0;
+}
+
 .gallery-item {
 	display: inline-block;
 	text-align: center;