From 77218e6bb736bb0502be5d0f452bb192f4a13616 Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Fri, 30 Aug 2024 15:54:30 +1200 Subject: [PATCH] Theme: Enhance display of WordPress Playground blocks in standalone lessons Allow the block to expand to the full width when configured using block settings. See #2664 --- .../patterns/sensei-lesson-standalone.php | 12 ++++++------ .../pub/wporg-learn-2024/src/style/_sensei.scss | 9 ++++++--- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/wp-content/themes/pub/wporg-learn-2024/patterns/sensei-lesson-standalone.php b/wp-content/themes/pub/wporg-learn-2024/patterns/sensei-lesson-standalone.php index e8614ad73..3c5f96ad3 100644 --- a/wp-content/themes/pub/wporg-learn-2024/patterns/sensei-lesson-standalone.php +++ b/wp-content/themes/pub/wporg-learn-2024/patterns/sensei-lesson-standalone.php @@ -34,8 +34,8 @@
- -
+ +
@@ -59,11 +59,11 @@
- -
+ +
- -
+ +
diff --git a/wp-content/themes/pub/wporg-learn-2024/src/style/_sensei.scss b/wp-content/themes/pub/wporg-learn-2024/src/style/_sensei.scss index 291b3aae8..3da5d3645 100644 --- a/wp-content/themes/pub/wporg-learn-2024/src/style/_sensei.scss +++ b/wp-content/themes/pub/wporg-learn-2024/src/style/_sensei.scss @@ -359,9 +359,12 @@ body.sensei { .sensei-course-theme__main-content { margin-left: auto !important; margin-right: auto !important; - max-width: var(--wp--style--global--content-size); - padding-left: var(--wp--preset--spacing--edge-space); - padding-right: var(--wp--preset--spacing--edge-space); + + > *:not(.wp-block-post-content) { + margin-left: auto !important; + margin-right: auto !important; + max-width: var(--content-size); + } } }