48 lines
888 B
SCSS
48 lines
888 B
SCSS
:host {
|
|
display: flex;
|
|
flex-direction: row;
|
|
box-sizing: border-box;
|
|
|
|
// Ensure control icons are relative to the thumbnail.
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
transition: transform 0.2s linear;
|
|
}
|
|
|
|
: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);
|
|
}
|
|
|
|
:host(:hover) {
|
|
transform: scale(1.04);
|
|
}
|
|
|
|
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;
|
|
} |