I foudn this on the wiki:
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 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?