ソースを参照

Stow: Make sure there is top padding for content

Takashi Irie 5 年 前
コミット
8da210e9b5
3 ファイル変更14 行追加17 行削除
  1. 8 7
      stow/sass/_extra-child-theme.scss
  2. 3 5
      stow/style-rtl.css
  3. 3 5
      stow/style.css

+ 8 - 7
stow/sass/_extra-child-theme.scss

@@ -23,13 +23,14 @@
  */
 body {
 	font-weight: 300;
-	&.hide-homepage-title {
-		.site-main {
-			padding: 0;
-			article {
-				.entry-content {
-					margin-top: 0;
-				}
+}
+
+.home.page.hide-homepage-title {
+	.site-main {
+		padding: 0;
+		article {
+			.entry-content {
+				margin-top: 0;
 			}
 		}
 	}

+ 3 - 5
stow/style-rtl.css

@@ -684,9 +684,7 @@ a {
 .site-header:after,
 .site-content:after,
 .site-footer:after {
-	content: "";
-	display: table;
-	table-layout: fixed;
+	clear: both;
 }
 
 /**
@@ -3622,11 +3620,11 @@ body {
 	font-weight: 300;
 }
 
-body.hide-homepage-title .site-main {
+.home.page.hide-homepage-title .site-main {
 	padding: 0;
 }
 
-body.hide-homepage-title .site-main article .entry-content {
+.home.page.hide-homepage-title .site-main article .entry-content {
 	margin-top: 0;
 }
 

+ 3 - 5
stow/style.css

@@ -684,9 +684,7 @@ a {
 .site-header:after,
 .site-content:after,
 .site-footer:after {
-	content: "";
-	display: table;
-	table-layout: fixed;
+	clear: both;
 }
 
 /**
@@ -3651,11 +3649,11 @@ body {
 	font-weight: 300;
 }
 
-body.hide-homepage-title .site-main {
+.home.page.hide-homepage-title .site-main {
 	padding: 0;
 }
 
-body.hide-homepage-title .site-main article .entry-content {
+.home.page.hide-homepage-title .site-main article .entry-content {
 	margin-top: 0;
 }