Skip to content

Commit

Permalink
Display: Improve mediaelementjs styles for video poster - refs BT#21628
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Jun 19, 2024
1 parent 0b2f8a3 commit f7e1df4
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions assets/css/scss/libs/mediaelementjs/_styles.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,40 @@
.mejs {
&__container {
@apply bg-transparent rounded-lg inline-block
@apply bg-transparent rounded-lg inline-block max-w-full
md:max-w-none
focus:outline-none focus:drop-shadow-lg;

video {
@apply rounded-lg;
@apply rounded-lg w-full h-full object-contain;
}
}

&__mediaelement {
> [id^="mejs_"] {
@apply w-full h-full;
}
}

&__poster {
@apply rounded-lg max-w-full bg-contain
md:max-w-none;

&-img {
@apply rounded-lg object-contain;
}
}

&__overlay {
@apply bg-support-3 rounded-lg;
@apply bg-support-3 rounded-lg max-w-full
md:max-w-none;

&-error {
@apply w-full h-full;

img {
@apply rounded-lg object-contain w-full h-full;
}
}

&-loading {
svg {
Expand Down

0 comments on commit f7e1df4

Please sign in to comment.