Skip to content

Commit

Permalink
fix(ads): Fix the skip ad button not being clickable shaka-project#3284
Browse files Browse the repository at this point in the history
  • Loading branch information
mariocynicys committed Apr 14, 2021
1 parent c1e817d commit 78e181d
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions ui/less/ad_controls.less
Expand Up @@ -21,32 +21,30 @@
}
}

.shaka-server-side-ad-container {
.fill-container();

&:not([ad-active="true"]) {
pointer-events: none;
}
}

.shaka-client-side-ad-container {
.shaka-client-side-ad-container, .shaka-server-side-ad-container {
.absolute-position();
}

.shaka-controls-container {
/* IMA SDK adds their own ad UI into an iframe element.
* Adjust its position to fit in with our UI, when
* Shaka UI is enabled. */
iframe {
.shaka-video-container[shaka-controls="true"] & {
/* This moves the iframe up a little bit, so it
* doesn't operlap with our controls. */
height: 92%;
z-index: 1;
height: 90%;
}
}
}

.shaka-server-side-ad-container {
.fill-container();
.shrinkable();

&:not([ad-active="true"]) {
pointer-events: none;
}
}

.shaka-ad-controls {
.hide-when-shaka-controls-disabled();

Expand Down

0 comments on commit 78e181d

Please sign in to comment.