Whilst the Frigate support in this card is the best among camera engines, the name incorrectly suggests that Frigate is a requirement. Instead, to broaden the appeal, change to more camera agnostic name. This does not suggest any change in priority, role or support for Frigate. This change is likely to be bug prone, due to the size of the rename -- the code contains 1500+ references to "Frigate" most of which make sense to rename, some which do not, all of which needed human assessment. - Closes #1298 BREAKING CHANGE: References to `frigate-card` in all kinds of configuration need to be updated to `advanced-camera-card`. An automated config upgrade should take care of the majority of usecases (click `Edit -> Upgrade -> Save`), though may not be perfect.
85 lines
1.5 KiB
SCSS
85 lines
1.5 KiB
SCSS
@use './button.scss';
|
|
|
|
:host {
|
|
--mdc-icon-size: calc(var(--advanced-camera-card-status-bar-height) / 2);
|
|
|
|
display: block;
|
|
width: 100%;
|
|
|
|
pointer-events: auto;
|
|
|
|
opacity: 1;
|
|
transition: opacity 1s;
|
|
}
|
|
|
|
/*******************************************************
|
|
* Non-hover styles should not interact with the pointer
|
|
*******************************************************/
|
|
|
|
:host(:not([data-style*='hover'])) {
|
|
pointer-events: none;
|
|
}
|
|
|
|
/**********************
|
|
* Popup style behavior
|
|
**********************/
|
|
|
|
:host([data-style='popup'][hide]) {
|
|
opacity: 0;
|
|
}
|
|
|
|
/*********************
|
|
* Status bar contents
|
|
*********************/
|
|
|
|
.status {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
|
height: var(--advanced-camera-card-status-bar-height);
|
|
}
|
|
|
|
.item {
|
|
display: inline-block;
|
|
|
|
margin: 3px 5px;
|
|
|
|
align-content: center;
|
|
}
|
|
.item:first-child {
|
|
margin-left: 10px;
|
|
}
|
|
.item:last-child {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.item.expand {
|
|
flex: 1;
|
|
}
|
|
|
|
.item.action {
|
|
cursor: pointer;
|
|
}
|
|
|
|
img.item,
|
|
advanced-camera-card-icon.item {
|
|
display: block;
|
|
|
|
// To ensure images render somewhat reasonably looking their height is kept to
|
|
// the same height as icons.
|
|
height: var(--mdc-icon-size, 24px);
|
|
width: auto;
|
|
}
|
|
|
|
/************************
|
|
* Status bar theme hooks
|
|
************************/
|
|
|
|
// Further theme related styling is dynamically applied by `status-bar.ts`, see
|
|
// `_renderPerInstanceStyle`.
|