Did find the right div to add to custom.css
Code: Select all
/* Thin white border around blocks !! */
div.col-sm-4.col-xs-12 {
border: 1px solid rgba(255,255,255,0.0);
}
Moderators: leecollings, htilburgs, robgeerts
Did find the right div to add to custom.css
Code: Select all
/* Thin white border around blocks !! */
div.col-sm-4.col-xs-12 {
border: 1px solid rgba(255,255,255,0.0);
}
Code: Select all
.containsicalendar {
}
.containsicalendar .items {
font-size: 150%;
}
Oh yeah that did it, thanks!Lokonli wrote: ↑Saturday 08 December 2018 23:00 Try adding the following to custom.css:Code: Select all
.containsicalendar { } .containsicalendar .items { font-size: 150%; }
Lokonli wrote: ↑Saturday 08 December 2018 23:00 Try adding the following to custom.css:Code: Select all
.containsicalendar { } .containsicalendar .items { font-size: 150%; }
Code: Select all
.warning {
background: rgba(199,44,44,0.3) !important;
background-clip: padding-box;
border: 7px solid rgba(255,255,255,0);
-webkit-animation: BLINK-ANIMATION 1s infinite;
-moz-animation: BLINK-ANIMATION 1s infinite;
-o-animation: BLINK-ANIMATION 1s infinite;
animation: BLINK-ANIMATION 1s infinite;
}
@-webkit-keyframes BLINK-ANIMATION {
0%, 49% {
background-color: rgba(199,44,44,0.3);
background-clip: padding-box;
border: 7px solid rgba(255,255,255,0);
}
50%, 100% {
background-color: rgba(199,44,44,0.7);
background-clip: padding-box;
border: 7px solid rgba(255,255,255,0);
}
}
.warningblue {
background: rgba(45,119,204,0.3) !important;
background-clip: padding-box;
border: 7px solid rgba(255,255,255,0);
-webkit-animation: BLINK-ANIMATION-BLUE 1s infinite;
-moz-animation: BLINK-ANIMATION-BLUE 1s infinite;
-o-animation: BLINK-ANIMATION-BLUE 1s infinite;
animation: BLINK-ANIMATION-BLUE 1s infinite;
}
@-webkit-keyframes BLINK-ANIMATION-BLUE {
0%, 49% {
background-color: rgba(45,119,204,0.3);
background-clip: padding-box;
border: 7px solid rgba(255,255,255,0);
}
50%, 100% {
background-color: rgba(45,119,204,0.7);
background-clip: padding-box;
border: 7px solid rgba(255,255,255,0);
}
}
I think the example in the wiki more or less should work. Add the following code to custom/custom.js:EdwinK wrote: ↑Sunday 10 March 2019 22:50 I foudn this on the wiki:
I don't need/want this blinking, but the colours need to change depending on the out-side temperature for some buttons. How does this need to be changed?Code: Select all
.warning { background: rgba(199,44,44,0.3) !important; background-clip: padding-box; border: 7px solid rgba(255,255,255,0); -webkit-animation: BLINK-ANIMATION 1s infinite; -moz-animation: BLINK-ANIMATION 1s infinite; -o-animation: BLINK-ANIMATION 1s infinite; animation: BLINK-ANIMATION 1s infinite; } @-webkit-keyframes BLINK-ANIMATION { 0%, 49% { background-color: rgba(199,44,44,0.3); background-clip: padding-box; border: 7px solid rgba(255,255,255,0); } 50%, 100% { background-color: rgba(199,44,44,0.7); background-clip: padding-box; border: 7px solid rgba(255,255,255,0); } } .warningblue { background: rgba(45,119,204,0.3) !important; background-clip: padding-box; border: 7px solid rgba(255,255,255,0); -webkit-animation: BLINK-ANIMATION-BLUE 1s infinite; -moz-animation: BLINK-ANIMATION-BLUE 1s infinite; -o-animation: BLINK-ANIMATION-BLUE 1s infinite; animation: BLINK-ANIMATION-BLUE 1s infinite; } @-webkit-keyframes BLINK-ANIMATION-BLUE { 0%, 49% { background-color: rgba(45,119,204,0.3); background-clip: padding-box; border: 7px solid rgba(255,255,255,0); } 50%, 100% { background-color: rgba(45,119,204,0.7); background-clip: padding-box; border: 7px solid rgba(255,255,255,0); } }
Code: Select all
function getStatus_145(idx,value,device){
if(parseFloat(device['Data'])>23){
$('div.block_145').addClass('warning');
}
else {
$('div.block_145').removeClass('warning');
}
}
Code: Select all
.warning {
background: rgba(199,44,44,0.3) !important;
background-clip: padding-box;
}
This seems to work So, I was close , but now I want several temperature 'levels'. >20 >25 >30 to have different colors. Would that also be possible?Lokonli wrote: ↑Monday 11 March 2019 12:40 I think the example in the wiki more or less should work. Add the following code to custom/custom.js:In the above code replace 145 with the correct device ID (3 times). Replace ">23" with the condition that you want to use. Replace 'warning' with the name of the class that will be added to the block.Code: Select all
function getStatus_145(idx,value,device){ if(parseFloat(device['Data'])>23){ $('div.block_145').addClass('warning'); } else { $('div.block_145').removeClass('warning'); } }
You have to add the class definition to custom.css, like:Code: Select all
.warning { background: rgba(199,44,44,0.3) !important; background-clip: padding-box; }
Code: Select all
/* DISHWASHER*/
function getStatus_478(idx,value,device){
if(parseFloat(device['Data'])>=1) {
/* DISHWASHER Working W is over >=1 */
$("div.block_478").animate({'background-color': 'rgba(255, 0, 0, 1)'},550);
}
if(parseFloat(device['Data'])<=1) {
/* Watt below <=1 */
$("div.block_478").animate({'background-color': 'rgba(0, 128, 0, 1)'},550);
}
}
If you want to remove hover completely add the following to the afterGetDevices function in custom.js:EastXIII wrote: ↑Wednesday 12 June 2019 18:43 I really want to remove the transition the block's make on hovering. I don't mind the color change on clicking, but the transition needs to go.
I've searched CSS tutorials but whatever I try in the custom.css, even with the "!important" addition, I cannot get it to work.
I'm sure it's simple as heck... but so am I
The hover:hover addition like mentioned a few posts before does remove the color/transparancy change, but the transition (size adjustment on hover/click) stays.
Can someone help me out??
Code: Select all
$(".hover").removeClass('hover');
Code: Select all
function afterGetDevices(){
$(".hover").removeClass('hover');
}
Code: Select all
.block_72 {
font-size:20px !important;
height: 130px !important;
}
Can you try with: .block_72 .btn {... and .block_72 .btn.active {...
Thanks.. I found the issue. Forgot an { somewhere
Users browsing this forum: Google [Bot] and 1 guest