Render the menu as its own component.

This commit is contained in:
Dermot Duffy
2021-08-14 08:09:45 -07:00
parent 5061c17f75
commit cde325f30d
2 changed files with 24 additions and 25 deletions
+24
View File
@@ -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;
}
-25
View File
@@ -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;
} }