add website focus overlay

This commit is contained in:
_Bastler
2021-05-16 18:48:48 +02:00
parent 6ebec9ce68
commit 3e66a541e3
5 changed files with 42 additions and 4 deletions
+4
View File
@@ -78,6 +78,10 @@
<button class="top-right-btn" id="cowebsite-close" alt="close the iframe">
<img src="resources/logos/close.svg"/>
</button>
<button class="top-right-btn" id="cowebsite-focus" alt="focus the iframe">
<img id="cowebsite-focus-inactive" src="resources/logos/cinema.svg"/>
<img id="cowebsite-focus-active" style="display: none;" src="resources/logos/cinema-close.svg"/>
</button>
</div>
<div id="audioplayerctrl" class="hidden">
+3
View File
@@ -43,6 +43,9 @@
&#cowebsite-fullscreen {
left: 0;
}
&#cowebsite-focus {
left: 25px;
}
}
}
}
+7 -1
View File
@@ -4,12 +4,15 @@
position: fixed;
transition: transform 0.5s;
background-color: white;
z-index: 999;
&.loading {
background-color: gray;
}
&.focus {
z-index: 999;
}
main {
iframe {
width: 100%;
@@ -85,6 +88,9 @@
&#cowebsite-fullscreen {
top: 25px;
}
&#cowebsite-focus {
top: 50px;
}
}
}
}
+2 -2
View File
@@ -166,8 +166,8 @@ video#myCamVideo {
position: absolute;
bottom: 0px;
right: 0px;
width: 450px;
height: 150px;
width: 300px;
height: 50px;
}