63 lines
1.5 KiB
SCSS
63 lines
1.5 KiB
SCSS
:host {
|
|
width: 100%;
|
|
height: auto;
|
|
overflow: auto;
|
|
|
|
// Hide scrollbar: IE and Edge
|
|
-ms-overflow-style: none;
|
|
|
|
// Hide scrollbar: Firefox
|
|
scrollbar-width: none;
|
|
|
|
--frigate-card-gallery-gap: 3px;
|
|
--frigate-card-gallery-columns: 4;
|
|
|
|
display: grid;
|
|
grid-template-columns: repeat(var(--frigate-card-gallery-columns), minmax(0, 1fr));
|
|
grid-auto-rows: 1fr;
|
|
gap: var(--frigate-card-gallery-gap);
|
|
}
|
|
|
|
// Hide scrollbar for Chrome, Safari and Opera
|
|
:host::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
:host ha-card {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
text-align: center;
|
|
color: var(--primary-text-color, white);
|
|
border: 1px solid var(--primary-color);
|
|
border-radius: var(--ha-card-border-radius, 4px);
|
|
|
|
// Folder background color should match the thumbnail element background
|
|
// color.
|
|
background-color: var(--primary-background-color, black);
|
|
padding: 10px;
|
|
line-height: 1;
|
|
overflow: hidden;
|
|
|
|
// Some themes override these values (with high CSS specificity) which is
|
|
// intended for full cards rather than internal ones. Since we use multiple of
|
|
// these for folders, we cannot use an ID and need to resort to !important.
|
|
margin: 0px !important;
|
|
box-shadow: none !important;
|
|
|
|
transition: transform 0.2s linear;
|
|
}
|
|
ha-card:hover {
|
|
transform: scale(1.04);
|
|
}
|
|
|
|
ha-card,
|
|
frigate-card-thumbnail {
|
|
height: 100%;
|
|
max-height: var(--frigate-card-thumbnail-size);
|
|
}
|
|
frigate-card-thumbnail:not([details]) {
|
|
width: 100%;
|
|
}
|