Files
advanced-camera-card/src/scss/thumbnail.scss
T

42 lines
805 B
SCSS

:host {
display: flex;
flex-direction: row;
box-sizing: border-box;
// Ensure control icons are relative to the thumbnail.
position: relative;
overflow: hidden;
}
:host(:not([details])) {
aspect-ratio: 1 / 1;
}
:host([details]) {
border: 1px solid var(--primary-color);
border-radius: var(--ha-card-border-radius, 4px);
padding: 2px;
// When details are enabled, use a background color so that the details have
// contrast with the background.
background-color: var(--primary-background-color, black);
}
ha-icon {
position: absolute;
border-radius: 50%;
opacity: 0.8;
}
ha-icon.favorite {
color: gold;
}
ha-icon.timeline {
color: var(--primary-color);
right: 0px;
}
frigate-card-thumbnail-details-event, frigate-card-thumbnail-details-recording {
flex: 1;
}