Files
advanced-camera-card/src/frigate-hass-card.scss
T
2021-08-27 21:55:34 -07:00

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%;
max-height: 277px; /* Max Lovelace 16/9 video height */
}
.frigate-card-gallery {
overflow: auto;
max-height: 277px; /* Max Lovelace 16/9 video height */
-ms-overflow-style: none; /* Hide scrollbar: IE and Edge */
scrollbar-width: none; /* Hide scrollbar: Firefox */
}
/* 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);
}