Skip to content

Commit b9c0c69

Browse files
authored
Only show top overlay when activated (#74)
1 parent c8d18a7 commit b9c0c69

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

β€Žsrc/lib/LiteYouTubeEmbed.css

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
background-size: cover;
88
cursor: pointer;
99
}
10-
.yt-lite:before {
10+
.yt-lite.lyt-activated::before {
1111
content: "";
1212
display: block;
1313
position: absolute;
@@ -20,7 +20,7 @@
2020
width: 100%;
2121
transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
2222
}
23-
.yt-lite:after {
23+
.yt-lite::after {
2424
content: "";
2525
display: block;
2626
padding-bottom: var(--aspect-ratio);
@@ -45,14 +45,14 @@
4545
background-color: red;
4646
opacity: 1;
4747
}
48-
.yt-lite > .lty-playbtn:before {
48+
.yt-lite > .lty-playbtn::before {
4949
content: "";
5050
border-color: transparent transparent transparent #fff;
5151
border-style: solid;
5252
border-width: 11px 0 11px 19px;
5353
}
5454
.yt-lite > .lty-playbtn,
55-
.yt-lite > .lty-playbtn:before {
55+
.yt-lite > .lty-playbtn::before {
5656
position: absolute;
5757
top: 50%;
5858
left: 50%;
@@ -61,7 +61,7 @@
6161
.yt-lite.lyt-activated {
6262
cursor: unset;
6363
}
64-
.yt-lite.lyt-activated:before,
64+
.yt-lite.lyt-activated::before,
6565
.yt-lite.lyt-activated > .lty-playbtn {
6666
opacity: 0;
6767
pointer-events: none;

0 commit comments

Comments
Β (0)