56 lines
1.3 KiB
SCSS
56 lines
1.3 KiB
SCSS
.frigate-card-menu {
|
|
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;
|
|
}
|
|
.frigate-card-menu.overlay-hidden {
|
|
position: absolute;
|
|
width: 56px;
|
|
}
|
|
.frigate-card-menu.overlay-hidden.left {
|
|
left: 0px;
|
|
}
|
|
.frigate-card-menu.overlay-hidden.right {
|
|
right: 0px;
|
|
}
|
|
.frigate-card-menu.overlay-hidden.top {
|
|
top: 0px;
|
|
}
|
|
.frigate-card-menu.overlay-hidden.bottom {
|
|
bottom: 0px;
|
|
}
|
|
.frigate-card-menu.overlay-hidden.expanded-horizontal {
|
|
width: 100%;
|
|
background: linear-gradient(90deg, rgba(0,0,0,0.3), rgba(0,0,0,0));
|
|
}
|
|
.frigate-card-menu.overlay-hidden.expanded-vertical {
|
|
height: 100%;
|
|
background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0));
|
|
}
|
|
/* Full above/below menu */
|
|
.frigate-card-menu.full {
|
|
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.button.emphasize {
|
|
color: var(--primary-color, white);
|
|
} |