Browse Source

Add some top padding if the first item is not full width or a spacer.

Kjell Reigstad 4 years ago
parent
commit
9a70473197
1 changed files with 7 additions and 0 deletions
  1. 7 0
      blankie/style.css

+ 7 - 0
blankie/style.css

@@ -45,6 +45,13 @@ GNU General Public License for more details.
 	margin-bottom: 0;
 }
 
+/* Add some top padding if the first block on the page is not full-width or a spacer. */
+
+.single .entry-content > *:first-child:not(.alignfull):not(.wp-block-spacer),
+.page .entry-content > *:first-child:not(.alignfull):not(.wp-block-spacer) {
+	padding-top: var(--global--spacing-vertical);
+}
+
 /* Remove the top border from the entry-footer. */
 
 .site-main > article > .entry-footer {