Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: Update Media component styles to support MediaElement.js (fixes #523) #524

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Replace big play button
swashbuck committed Sep 26, 2024
commit 8019394f75abc7f667e88edee6e22c1ac0aa0bae
80 changes: 37 additions & 43 deletions less/plugins/adapt-contrib-media/mep.less
Original file line number Diff line number Diff line change
@@ -24,48 +24,43 @@
.mejs__container {
// Play icon override
// --------------------------------------------------
// .mejs__overlay {
// .mejs__overlay-button {
// .transform(translate(-50%,-50%));
// height: (@icon-size * 2) + @icon-padding;
// width: (@icon-size * 2) + @icon-padding;
// margin: 0;
// padding: @icon-padding / 2;
// background: none;
// box-shadow: 0 0 0 3px @white;
// border-radius: 50%;
// color: @white;
// opacity: .75;

// @media (min-width: @device-width-small) {
// height: (@icon-size * 3) + @icon-padding;
// width: (@icon-size * 3) + @icon-padding;
// }
// }

// .invert-play-icon & .mejs__overlay-button {
// color: @black;
// box-shadow: 0 0 0 3px @black;
// }

// .no-touch &:hover .mejs__overlay-button {
// background-position: 0 0;
// opacity: 1;
// .transition(opacity @duration ease-in);
// }

// .icon {
// .icon-video-play;
// }

// .icon:before {
// font-size: @icon-size * 2;

// @media (min-width: @device-width-small) {
// font-size: @icon-size * 3;
// }
// }
// }
.mejs__overlay {
.mejs__overlay-button {
height: (@icon-size * 2) + @icon-padding;
width: (@icon-size * 2) + @icon-padding;
box-shadow: 0 0 0 3px @white;
border-radius: 50%;
color: @white;
opacity: 0.75;
.icon;
.icon-video-play;

@media (min-width: @device-width-small) {
height: (@icon-size * 3) + @icon-padding;
width: (@icon-size * 3) + @icon-padding;
}

&::before {
font-size: @icon-size * 2;

@media (min-width: @device-width-small) {
font-size: @icon-size * 3;
}
}

svg { display: none }
}

.invert-play-icon & .mejs__overlay-button {
color: @black;
box-shadow: 0 0 0 3px @black;
}

.no-touch &:hover .mejs__overlay-button {
opacity: 1;
.transition(opacity @duration ease-in);
}
}

// Colour overrides
// --------------------------------------------------
@@ -276,7 +271,6 @@
// width: auto;
// margin-left: @mejs-margin;
// padding: 0;

// line-height: 1;
// }