From bd1dd9d93ad81c58e707b7e75f856ca39953aacf Mon Sep 17 00:00:00 2001 From: prcdevgitbot Date: Thu, 29 Feb 2024 23:26:06 +0000 Subject: [PATCH] See https://github.com/pewresearch/pewresearch-org/commit/426cc28b1ad60db30d4cfe41a204cf35bbb1fd9b from refs/heads/release/5.0 --- includes/embeds/class-embeds.php | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/includes/embeds/class-embeds.php b/includes/embeds/class-embeds.php index d61a93ca..d6068c27 100644 --- a/includes/embeds/class-embeds.php +++ b/includes/embeds/class-embeds.php @@ -24,7 +24,8 @@ class Embeds { 'prc-block/tabs', 'prc-block/accordion-controller', 'prc-block/chart', - 'prc-block/quiz' + 'prc-block/audio-player', + 'prc-block/quiz', ); public static $handle = 'prc-platform-iframe-embeds'; @@ -344,6 +345,30 @@ public function template_default() { html { margin: 0!important; } + .prc-platform__iframe__content { + container-type: inline-size; + container-name: prcIframeContent; + } + @container prcIframeContent (width < 480px) { + .wp-block-image.alignright, + .wp-block-image.alignleft { + float: none!important; + margin: auto!important; + margin-inline-start: auto!important; + margin-inline-end: auto!important; + } + } + @container prcIframeContent (width > 480px) { + .wp-block-image.alignright { + float: right!important; + margin: 5px 0px 15px 15px!important; + } + + .wp-block-image.alignleft { + float: left!important; + margin: 5px 15px 15px 0px!important; + } + }