Browse Source

Reorganize style.css a little bit.

Kjell Reigstad 4 years ago
parent
commit
de2715bbc5
1 changed files with 10 additions and 23 deletions
  1. 10 23
      blank-canvas/style.css

+ 10 - 23
blank-canvas/style.css

@@ -58,29 +58,6 @@ Used as block pattern image.
 
 
 /* Remove some top padding if the first block on the page is a full-width image, cover, media & text, or group block. */
 /* Remove some top padding if the first block on the page is a full-width image, cover, media & text, or group block. */
 
 
-.single .entry-content.hide-post-and-page-titles > .wp-block-image.alignfull:first-child,
-.page .entry-content.hide-post-and-page-titles > .wp-block-image.alignfull:first-child,
-.single .entry-content.hide-post-and-page-titles > .wp-block-cover.alignfull:first-child,
-.page .entry-content.hide-post-and-page-titles > .wp-block-cover.alignfull:first-child,
-.single .entry-content.hide-post-and-page-titles > .wp-block-media-text.alignfull:first-child,
-.page .entry-content.hide-post-and-page-titles > .wp-block-media-text.alignfull:first-child,
-.single .entry-content.hide-post-and-page-titles > .wp-block-group.has-background.alignfull:first-child,
-.page .entry-content.hide-post-and-page-titles > .wp-block-group.has-background.alignfull:first-child {
-	margin-top: calc(-1 * var(--global--spacing-vertical));
-}
-
-/* Center-align headers and footers. */
-
-.entry-header,
-.page-title,
-.entry-footer,
-.site-info,
-.footer-menu {
-	text-align: center;
-}
-
-/* Remove some top padding if the first block on the page is a full-width image, cover, media & text, or group block. */
-
 .single.hide-post-and-page-titles .entry-content > .wp-block-image.alignfull:first-child,
 .single.hide-post-and-page-titles .entry-content > .wp-block-image.alignfull:first-child,
 .page.hide-post-and-page-titles .entry-content > .wp-block-image.alignfull:first-child,
 .page.hide-post-and-page-titles .entry-content > .wp-block-image.alignfull:first-child,
 .single.hide-post-and-page-titles .entry-content > .wp-block-cover.alignfull:first-child,
 .single.hide-post-and-page-titles .entry-content > .wp-block-cover.alignfull:first-child,
@@ -104,3 +81,13 @@ Used as block pattern image.
 .single.hide-site-footer.hide-comments .entry-content > .wp-block-group.has-background.alignfull:last-child {
 .single.hide-site-footer.hide-comments .entry-content > .wp-block-group.has-background.alignfull:last-child {
 	margin-bottom: calc(-1 * var(--global--spacing-vertical));
 	margin-bottom: calc(-1 * var(--global--spacing-vertical));
 }
 }
+
+/* Center-align headers and footers. */
+
+.entry-header,
+.page-title,
+.entry-footer,
+.site-info,
+.footer-menu {
+	text-align: center;
+}