Skip to content

Commit

Permalink
09-21-2024
Browse files Browse the repository at this point in the history
  • Loading branch information
midkiffaries committed Sep 21, 2024
1 parent afa0e6f commit 4681299
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,24 @@
.is-style-embed-youtube img {
border: 3px solid #f00;
box-shadow: 0 2px 1px #0002, 0 4px 2px #0002, 0 8px 4px #0002, 0 16px 8px #0002;
}'
]);
// Embed: Youtube Thumbnail style
register_block_style( 'core/embed', [
'name' => 'embed-thumbnail',
'label' => __( 'Thumbnail', 'm20t1' ),
'is_default' => false,
'inline_style' => '.is-style-embed-thumbnail {
height: 170px !important;
width: auto !important;
aspect-ratio: 21 / 9;
margin-bottom: 15px;
}
.is-style-embed-youtube img {
border-radius: 3px;
.is-style-embed-thumbnail iframe,
.is-style-embed-thumbnail video,
.is-style-embed-thumbnail img {
border: 3px solid #f00;
box-shadow: 0 2px 1px #0002, 0 4px 2px #0002, 0 8px 4px #0002, 0 12px 8px #0002;
}'
]);
// Video Embed: Shadow style
Expand Down

0 comments on commit 4681299

Please sign in to comment.