Reorganize style.css a little bit.

This commit is contained in:
Kjell Reigstad 2021-02-02 15:00:42 -05:00
parent 3fb27a0abc
commit de2715bbc5

View file

@ -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. */
.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,
.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,
@ -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 {
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;
}