Move scan mode pulsing border to the outer ha-card .

This commit is contained in:
Dermot Duffy
2022-07-23 19:25:03 -07:00
parent df0aec3f1f
commit 46376918e4
2 changed files with 18 additions and 17 deletions
+15 -14
View File
@@ -39,20 +39,6 @@ div.main {
// Hide scrollbar: IE and Edge
-ms-overflow-style: none;
}
div.main.triggered {
@keyframes warning-pulse {
0% {
border: solid 1px rgba(0, 0, 0, 0);
}
50% {
border: solid 1px var(--warning-color);
}
100% {
border: solid 1px rgba(0, 0, 0, 0);
}
}
animation: warning-pulse 5s infinite;
}
/* Hide scrollbar for Chrome, Safari and Opera */
div.main::-webkit-scrollbar {
@@ -89,6 +75,21 @@ ha-card {
// within the radius.
border-radius: var(--ha-card-border-radius, 4px);
}
ha-card.triggered {
@keyframes warning-pulse {
0% {
border: solid 2px rgba(0, 0, 0, 0);
}
50% {
border: solid 2px var(--warning-color);
}
100% {
border: solid 2px rgba(0, 0, 0, 0);
}
}
animation: warning-pulse 5s infinite;
}
frigate-card-live.hidden {
// Live view will be rendered but hidden for live preloading.