.details, .stateOff => config.less

This commit is contained in:
Patrick Haßel 2024-11-21 13:33:45 +01:00
parent cd84f25577
commit 4fd227b19c
4 changed files with 30 additions and 45 deletions

View File

@ -13,8 +13,7 @@
<div class="switchOff" (click)="deviceService.setState(device, false)"></div> <div class="switchOff" (click)="deviceService.setState(device, false)"></div>
</div> </div>
<div class="timestamp"> <div class="timestamp details">
{{ device.stateProperty?.state?.timestamp | relative:now }}
{{ device.stateProperty?.lastValueChange | relative:now }} {{ device.stateProperty?.lastValueChange | relative:now }}
</div> </div>

View File

@ -14,7 +14,6 @@
clear: left; clear: left;
float: left; float: left;
font-size: 80%; font-size: 80%;
color: gray;
} }
.actions { .actions {
@ -41,17 +40,4 @@
} }
.stateOn {
background-color: palegreen;
}
.stateOff {
background-color: indianred;
.timestamp {
color: lightgray;
}
}
} }

View File

@ -10,34 +10,6 @@
margin-bottom: @space; margin-bottom: @space;
} }
.details {
font-size: 80%;
color: gray;
.stackLeft {
float: left;
margin-right: @space;
}
.stackRight {
float: right;
margin-left: @space;
}
}
}
.stateOn {
background-color: palegreen;
}
.stateOff {
background-color: indianred;
.details {
color: lightgray;
}
} }
} }

View File

@ -1,5 +1,5 @@
@space: 0.4em; @space: 0.4em;
@border: 0.1em; @border: 0.05em;
.flexBox { .flexBox {
display: flex; display: flex;
@ -16,6 +16,34 @@
} }
.details {
font-size: 80%;
color: gray;
.stackLeft {
float: left;
margin-right: @space;
}
.stackRight {
float: right;
margin-left: @space;
}
}
.stateOn {
background-color: palegreen;
}
.stateOff {
background-color: indianred;
.details {
color: #575757;
}
}
.tileContainer { .tileContainer {
padding: calc(@space / 2); padding: calc(@space / 2);