Files
mmm-screenlogic/screenlogic.css
Parnic 641bd83207 Show different colors based on filled value
This shows green until the bar is at 50%, yellow until 33%, and red
below that.

This also fixes the bar to show white when "colored" is disabled in the
config.
2021-10-13 13:49:34 -05:00

139 lines
3.0 KiB
CSS

.MMM-ScreenLogic table.colored .cold-temp {
color: #BCDDFF;
}
.MMM-ScreenLogic table.colored .hot-temp {
color: #FF8E99;
}
.MMM-ScreenLogic td {
width: 33%;
}
.MMM-ScreenLogic .control {
background: #000;
border: 1px solid #6c757d;
font-size: .8rem;
color: #fff;
display: block;
text-align: center;
line-height: 1.5;
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
box-sizing: border-box;
position: relative;
width: 80%;
height: 5rem;
margin: auto;
font-weight: bold;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: none;
outline: none;
}
.MMM-ScreenLogic .control:after {
padding-bottom: 100%;
content: "";
display: block;
}
.MMM-ScreenLogic .content {
position: absolute;
width: 90%;
height: 90%;
left: 0px;
top: 0px;
padding: 5%;
display: flex;
justify-content: center;
align-items: center;
}
.MMM-ScreenLogic .control-on {
background: #28a745 !important;
border-color: #28a745 !important;
}
.MMM-ScreenLogic .control-off {
background: transparent !important;
border-color: #6c757d !important;
}
.MMM-ScreenLogic .temperature-container {
font-size: .9rem;
font-weight: bold;
color: #fff;
text-align: center;
line-height: 1;
border: 1px solid #6c757d;
width: 80%;
margin: auto;
}
.MMM-ScreenLogic .temperature-label {
height: 0;
transform: translateY(-.5em);
}
.MMM-ScreenLogic .temperature {
background: #000;
border: 0px solid #6c757d;
color: #fff;
position: relative;
width: 80%;
height: 2.45rem;
margin: auto;
font-weight: bold;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: none;
outline: none;
}
.MMM-ScreenLogic .vertical {
display: inline-block;
width: 20%;
height: 0.7em;
-webkit-transform: rotate(-90deg); /* Chrome, Safari, Opera */
transform: rotate(-90deg);
}
.MMM-ScreenLogic .vertical {
box-shadow: inset 0px 0px 3px #ccc;
}
.MMM-ScreenLogic .progress-bar {
box-shadow: inset 0px 0px 3px rgba(100, 100, 100, 0.6);
}
.MMM-ScreenLogic .progress-bar {
float: left;
width: 0;
height: 100%;
font-size: 12px;
line-height: 20px;
color: #fff;
text-align: center;
background-color: #fff;
-webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
-webkit-transition: width .6s ease;
-o-transition: width .6s ease;
transition: width .6s ease;
}
.MMM-ScreenLogic .progress-bar-success {
background-color: #5cb85c;
}
.MMM-ScreenLogic .progress-bar-warning {
background-color: #ffc107;
}
.MMM-ScreenLogic .progress-bar-danger {
background-color: #dc3545;
}