Skip to content

Commit

Permalink
Theme: Enhance display of WordPress Playground blocks in lessons
Browse files Browse the repository at this point in the history
Allow the block to expand to the full width when configured using block settings.
Style the embed container.

See #2664
  • Loading branch information
adamwoodnz committed Aug 29, 2024
1 parent 243564a commit 5080322
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.wp-block-wordpress-playground-playground .wordpress-playground-content-container {
box-shadow: unset;
border: 1px solid var(--wp--custom--color--border);
border-radius: var(--wp--custom--box--border--radius);
}
5 changes: 5 additions & 0 deletions wp-content/themes/pub/wporg-learn-2024/src/style/_sensei.scss
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,11 @@ body.sensei-course-theme {
margin-right: unset;
}
}

// Allow alignfull blocks in the post content to expand beyond the contrained content width, eg. Playground blocks
&.sensei-default .sensei-course-theme__main-content > .entry-content {
max-width: unset !important;
}
}

.course:not(body) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

@import "card-grid";
@import "jetpack";
@import "playground";
@import "print";
@import "sensei";
@import "sidebar";
Expand Down

0 comments on commit 5080322

Please sign in to comment.