瀏覽代碼

Adds homepage padding fix for when hiding page title.
Refactor SCSS block styles for a few common block styles.

Jeffrey Pearce 6 年之前
父節點
當前提交
5b00cf9b77
共有 3 個文件被更改,包括 32 次插入37 次删除
  1. 14 25
      stow/sass/_extra-child-theme.scss
  2. 8 0
      stow/style-rtl.css
  3. 10 12
      stow/style.css

+ 14 - 25
stow/sass/_extra-child-theme.scss

@@ -24,6 +24,16 @@
  */
 body {
 	font-weight: 300;
+	&.hide-homepage-title {
+		.site-main {
+			padding: 0;
+			article {
+				.entry-content {
+					margin-top: 0;
+				}
+			}
+		}
+	}
 }
 
 a {
@@ -320,36 +330,15 @@ a {
 
 /**
  * 7.6. Button Block
- */
- .wp-block-button {
-	a {
-		&.wp-block-button__link {
-			text-transform: uppercase;
-		}
-	}
-}
-
-/**
  * 7.7. Posts List Block
- */
-.a8c-posts-list {
-	a {
-		&.a8c-posts-list__view-all {
-			text-transform: uppercase;
-		}
-	}
-}
-
-/**
  * 7.8. Search Block
  */
-.wp-block-search {
-	.wp-block-search__button {
-		text-transform: uppercase;
-	}
+ .wp-block-button a.wp-block-button__link,
+ .a8c-posts-list a.a8c-posts-list__view-all,
+ .wp-block-search .wp-block-search__button {
+	text-transform: uppercase;
 }
 
-
 /**
  * 8. Widgets
  */

+ 8 - 0
stow/style-rtl.css

@@ -3584,3 +3584,11 @@ a {
 		margin-top: 32px;
 	}
 }
+
+body.hide-homepage-title .site-main {
+	padding: 0;
+}
+
+body.hide-homepage-title .site-main article .entry-content {
+	margin-top: 0;
+}

+ 10 - 12
stow/style.css

@@ -3241,6 +3241,14 @@ body {
 	font-weight: 300;
 }
 
+body.hide-homepage-title .site-main {
+	padding: 0;
+}
+
+body.hide-homepage-title .site-main article .entry-content {
+	margin-top: 0;
+}
+
 a {
 	text-decoration: none;
 }
@@ -3532,21 +3540,11 @@ a {
 
 /**
  * 7.6. Button Block
- */
-.wp-block-button a.wp-block-button__link {
-	text-transform: uppercase;
-}
-
-/**
  * 7.7. Posts List Block
- */
-.a8c-posts-list a.a8c-posts-list__view-all {
-	text-transform: uppercase;
-}
-
-/**
  * 7.8. Search Block
  */
+.wp-block-button a.wp-block-button__link,
+.a8c-posts-list a.a8c-posts-list__view-all,
 .wp-block-search .wp-block-search__button {
 	text-transform: uppercase;
 }