Convert viewer to Lit component.

This commit is contained in:
Dermot Duffy
2021-09-20 21:33:37 -07:00
parent 9bbf46d4a5
commit 6498ae22cd
11 changed files with 522 additions and 482 deletions
-40
View File
@@ -50,8 +50,6 @@
padding: 10%;
}
video, img {
display: block;
}
@@ -80,41 +78,3 @@ webrtc-camera ha-card {
border-radius: 0px;
background-color: var(--secondary-background-color, black);
}
.frigate-media-controls {
position: absolute;
z-index: 1;
overflow: hidden;
}
.frigate-media-controls.previous {
left: 45px;
}
.frigate-media-controls.next {
right: 45px;
}
.frigate-media-controls.chevrons {
top: calc(50% - (40px / 2));
}
.frigate-media-controls.thumbnails {
border-radius: 50%;
height: 48px;
top: calc(50% - (48px / 2));
box-shadow: 0px 0px 30px 1px black;
transition: all .2s ease;
opacity: 0.8;
}
.frigate-media-controls.thumbnails:hover {
opacity: 1 !important;
height: 72px;
top: calc(50% - (72px / 2));
}
.frigate-media-controls.previous.thumbnails:hover {
left: 33px;
}
.frigate-media-controls.next.thumbnails:hover {
right: 33px;
}