瀏覽代碼

Quadrat: Fix post meta offset (#4752)

* Quadrat: Fix post meta offset

* Remove padding on site tagline.

* Remove inline spacing rules on site tagline.

* Use content: none to hide icon and add comment about configuring in Blockbase.

* Fix comment typo.

Co-authored-by: Jeff Ong <jonger4@gmail.com>
Daniel Dudzic 3 年之前
父節點
當前提交
30ee449139
共有 3 個文件被更改,包括 5 次插入7 次删除
  1. 1 3
      quadrat/assets/theme.css
  2. 1 1
      quadrat/block-template-parts/header.html
  3. 3 3
      quadrat/sass/templates/_meta.scss

+ 1 - 3
quadrat/assets/theme.css

@@ -588,9 +588,7 @@ textarea:focus {
 }
 
 .post-meta > *:first-child:before {
-	background: transparent;
-	-webkit-mask-image: none;
-	mask-image: none;
+	content: none;
 }
 
 .post-meta > * > * {

+ 1 - 1
quadrat/block-template-parts/header.html

@@ -2,7 +2,7 @@
 <header class="wp-block-group site-header" style="padding-bottom:170px">
 	<!-- wp:site-logo /-->
 	<!-- wp:site-title /-->
-	<!-- wp:site-tagline {"style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"20px"},"margin":{"right":"auto"}},"typography":{"fontSize":"var(--wp--custom--font-sizes--tiny)"}}} /-->
+	<!-- wp:site-tagline {"style":{"typography":{"fontSize":"var(--wp--custom--font-sizes--tiny)"}}} /-->
 	<!-- wp:navigation {"isResponsive":true,"__unstableLocation":"primary"} /-->
 </header>
 <!-- /wp:group -->

+ 3 - 3
quadrat/sass/templates/_meta.scss

@@ -25,9 +25,9 @@
 		}
 
 		&:first-child:before {
-			background: transparent;
-			-webkit-mask-image: none;
-			mask-image: none;
+			// Hide the date icon. This should be configurable in Blockbase:
+			// https://github.com/Automattic/themes/issues/4704
+			content: none;
 		}
 
 		> * {