Render the menu as its own component.
This commit is contained in:
@@ -0,0 +1,24 @@
|
|||||||
|
.frigate-card-menu {
|
||||||
|
position: absolute;
|
||||||
|
top: 0px;
|
||||||
|
z-index: 1;
|
||||||
|
height: 56px;
|
||||||
|
width: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.frigate-card-menu-expanded {
|
||||||
|
@extend .frigate-card-menu;
|
||||||
|
width: 100%;
|
||||||
|
background-color: rgba(0, 0, 0, 0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
ha-icon-button.button {
|
||||||
|
position: relative;
|
||||||
|
z-index: 10;
|
||||||
|
color: white;
|
||||||
|
opacity: 0.8;
|
||||||
|
background-color: rgba(0, 0, 0, 0.6);
|
||||||
|
border-radius: 50%;
|
||||||
|
padding: 0px;
|
||||||
|
margin: 3px;
|
||||||
|
}
|
||||||
@@ -55,31 +55,6 @@
|
|||||||
border-color: var(--primary-color);
|
border-color: var(--primary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.frigate-card-menubar {
|
|
||||||
position: absolute;
|
|
||||||
top: 0px;
|
|
||||||
z-index: 1;
|
|
||||||
height: 56px;
|
|
||||||
width: 50px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.frigate-card-menubar-full {
|
|
||||||
@extend .frigate-card-menubar;
|
|
||||||
width: 100%;
|
|
||||||
background-color: rgba(0, 0, 0, 0.6);
|
|
||||||
}
|
|
||||||
|
|
||||||
ha-icon-button.button {
|
|
||||||
position: relative;
|
|
||||||
z-index: 10;
|
|
||||||
color: white;
|
|
||||||
opacity: 0.8;
|
|
||||||
background-color: rgba(0, 0, 0, 0.6);
|
|
||||||
border-radius: 50%;
|
|
||||||
padding: 0px;
|
|
||||||
margin: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.invisible {
|
.invisible {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user