Skip to content

Commit

Permalink
Enqueue styles for video, cover and media-text to frontent
Browse files Browse the repository at this point in the history
  • Loading branch information
amitraj2203 committed May 12, 2024
1 parent d5cc81c commit 83bb2b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 25 deletions.
7 changes: 6 additions & 1 deletion packages/block-library/src/latest-posts/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,10 @@
}
},
"editorStyle": "wp-block-latest-posts-editor",
"style": "wp-block-latest-posts"
"style": [
"wp-block-latest-posts",
"wp-block-video",
"wp-block-cover",
"wp-block-media-text"
]
}
24 changes: 0 additions & 24 deletions packages/block-library/src/latest-posts/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 +30,6 @@
}
}

.wp-block-video {
box-sizing: border-box;

video {
vertical-align: middle;
width: 100%;
}

&.aligncenter {
text-align: center;
}

figcaption {
margin-bottom: 1em;
margin-top: 0.5em;
}

@supports (position: sticky) {
[poster] {
object-fit: cover;
}
}
}

@include break-small {
@for $i from 2 through 6 {
&.columns-#{ $i } li {
Expand Down

0 comments on commit 83bb2b2

Please sign in to comment.