Improve CSS encapslation (Chrome).

This commit is contained in:
Dermot Duffy
2021-09-20 22:37:08 -07:00
parent 49cbff9b36
commit d02f760793
6 changed files with 6 additions and 15 deletions
-3
View File
@@ -212,7 +212,6 @@ export class FrigateCardViewer extends LitElement {
${this.view.is('clip')
? resolvedMedia?.mime_type.toLowerCase() == 'application/x-mpegurl'
? html`<ha-hls-player
class="media"
.hass=${this.hass}
.url=${resolvedMedia.url}
title="${mediaToRender.title}"
@@ -224,7 +223,6 @@ export class FrigateCardViewer extends LitElement {
>
</ha-hls-player>`
: html`<video
class="media"
title="${mediaToRender.title}"
muted
controls
@@ -237,7 +235,6 @@ export class FrigateCardViewer extends LitElement {
</video>`
: html`<img
src=${resolvedMedia.url}
class="media"
title="${mediaToRender.title}"
@click=${() => {
// Get clips potentially related to this snapshot.
@@ -14,7 +14,3 @@ ha-icon-button.button {
ha-icon-button.button.emphasize {
color: var(--primary-color, white);
}
video, img {
display: block;
}
-3
View File
@@ -1,5 +1,3 @@
@use './common.scss';
.container_16_9 {
/* 16:9 Aspect Ratio. When Safari supports 'aspect-ratio' this should not be
necessary */
@@ -65,7 +63,6 @@ ha-card {
color: var(--secondary-text-color, white);
background-color: var(--secondary-background-color, black);
transform-style: preserve-3d; /* Safari brings video elements forward without this */
}
ha-card a {
+2 -2
View File
@@ -1,4 +1,4 @@
@use './common.scss';
@use './button.scss';
.frigate-card-menu {
z-index: 1;
@@ -37,4 +37,4 @@
.frigate-card-menu.full {
width: 100%;
background: var(--secondary-background-color);
}
}
+2 -2
View File
@@ -1,4 +1,4 @@
@use './common.scss';
@use './button.scss';
.controls {
position: absolute;
@@ -36,4 +36,4 @@
.controls.next.thumbnails:hover {
right: 33px;
}
}
+2 -1
View File
@@ -1,3 +1,4 @@
img.media,video.media,canvas.media {
img,video {
width: 100%;
height: 100%;
}