Skip to content

Commit

Permalink
See pewresearch/pewresearch-org@426cc28 from refs/heads/release/5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
prcdevgitbot committed Feb 29, 2024
1 parent 2210107 commit bd1dd9d
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion includes/embeds/class-embeds.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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;
}
}
</style>
<?php
wp_footer();
Expand Down

0 comments on commit bd1dd9d

Please sign in to comment.