Files
advanced-camera-card/src/frigate-hass-card.scss
T

59 lines
1.3 KiB
SCSS

@use "@material/image-list/mdc-image-list";
@use "@material/image-list";
.frigate-card-contents {
width: 100%;
}
.frigate-card-viewer {
width: 100%;
}
.frigate-card-gallery {
overflow: auto;
aspect-ratio: 16 / 9;
-ms-overflow-style: none; /* Hide scrollbar: IE and Edge */
scrollbar-width: none; /* Hide scrollbar: Firefox */
max-height: 277px; /* Safari does not support aspect-ratio yet */
}
/* Hide scrollbar for Chrome, Safari and Opera */
.frigate-card-gallery::-webkit-scrollbar {
display: none;
}
.frigate-card-attention {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
.frigate-card-image-list {
@include image-list.standard-columns(5, 1px);
@include image-list.shape-radius(5px);
}
video, img {
display: block;
}
ha-card {
display: flex;
flex-direction: column;
margin: auto;
overflow: hidden;
width: 100%;
height: 100%;
position: relative;
background-color: var(--secondary-background-color, black);
transform-style: preserve-3d; /* Safari brings video elements forward without this */
}
/* Don't drop shadow or have radius for nested cards: webrtc */
ha-card ha-card {
box-shadow: none;
border-radius: 0px;
background-color: var(--secondary-background-color, black);
}