|
@@ -78,3 +78,29 @@ Used as block pattern image.
|
|
|
.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,
|
|
|
+.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,
|
|
|
+.page.hide-post-and-page-titles .entry-content > .wp-block-cover.alignfull:first-child,
|
|
|
+.single.hide-post-and-page-titles .entry-content > .wp-block-media-text.alignfull:first-child,
|
|
|
+.page.hide-post-and-page-titles .entry-content > .wp-block-media-text.alignfull:first-child,
|
|
|
+.single.hide-post-and-page-titles .entry-content > .wp-block-group.has-background.alignfull:first-child,
|
|
|
+.page.hide-post-and-page-titles .entry-content > .wp-block-group.has-background.alignfull:first-child {
|
|
|
+ margin-top: calc(-1 * var(--global--spacing-vertical));
|
|
|
+}
|
|
|
+
|
|
|
+/* Remove some bottom padding if the last block on the page is a full-width image, cover, media & text, or group block. */
|
|
|
+
|
|
|
+.page.hide-site-footer .entry-content > .wp-block-image.alignfull:last-child,
|
|
|
+.page.hide-site-footer .entry-content > .wp-block-cover.alignfull:last-child,
|
|
|
+.page.hide-site-footer .entry-content > .wp-block-media-text.alignfull:last-child,
|
|
|
+.single.hide-site-footer.hide-site-footer .entry-content > .wp-block-group.has-background.alignfull:last-child,
|
|
|
+.single.hide-site-footer.hide-comments .entry-content > .wp-block-image.alignfull:last-child,
|
|
|
+.single.hide-site-footer.hide-comments .entry-content > .wp-block-cover.alignfull:last-child,
|
|
|
+.single.hide-site-footer.hide-comments .entry-content > .wp-block-media-text.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));
|
|
|
+}
|