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

50 lines
1.1 KiB
SCSS

/* Base: Not used directly */
.frigate-card-menu-base {
z-index: 1;
height: 56px;
overflow: hidden;
/* Menu div itself does not handle click events. Without this, in overlay
mode, the menu div prevents clicking on gallery items 'behind' the overlay.
*/
pointer-events: none;
}
/* Small 'F' button for hidden menu */
.frigate-card-menu-hidden {
@extend .frigate-card-menu-base;
position: absolute;
width: 50px;
}
/* Expanded overlay menu */
.frigate-card-menu-overlay {
@extend .frigate-card-menu-hidden;
width: 100%;
background: linear-gradient(90deg, rgba(0,0,0,0.3), rgba(0,0,0,0))
}
/* Full above/below menu */
.frigate-card-menu-full {
@extend .frigate-card-menu-base;
width: 100%;
background: var(--secondary-background-color);
}
ha-icon-button.button {
position: relative;
z-index: 10;
color: var(--secondary-color, white);
opacity: 0.8;
background-color: rgba(0, 0, 0, 0.6);
border-radius: 50%;
padding: 0px;
margin: 3px;
/* Buttons can always be clicked */
pointer-events: auto;
}
ha-icon-button.emphasized-button {
@extend ha-icon-button, .button;
color: var(--primary-color, white);
}