From c3bf0a2fec66a348a3e86a2c6d33b0b32a9f10ab Mon Sep 17 00:00:00 2001 From: Kelly Choyce-Dwan Date: Mon, 15 Feb 2021 18:31:01 +0000 Subject: [PATCH] Twenty Thirteen: Fix alignment of child blocks within the Cover block. Props kjellr, melchoyce. Fixes #51224. git-svn-id: https://develop.svn.wordpress.org/trunk@50346 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentythirteen/css/blocks.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/wp-content/themes/twentythirteen/css/blocks.css b/src/wp-content/themes/twentythirteen/css/blocks.css index a08ddfd1a5..b74497f698 100644 --- a/src/wp-content/themes/twentythirteen/css/blocks.css +++ b/src/wp-content/themes/twentythirteen/css/blocks.css @@ -194,6 +194,20 @@ p.has-drop-cap:not(:focus)::first-letter { display: flex; } +body:not(.sidebar) .wp-block-cover > .wp-block-cover__inner-container > * { + width: 604px; + max-width: 100%; + margin-left: auto; + margin-right: auto; +} + +@media screen and (min-width: 665px) { + body:not(.sidebar) .wp-block-cover__inner-container > .wp-block-group.alignfull, + body:not(.sidebar) .wp-block-cover__inner-container > .wp-block-group.has-background.alignfull { + padding: 20px; + } +} + /* File */ .wp-block-file .wp-block-file__button {