From d1f3c8421288458e738dc51da323dd8f492a82d5 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 1 Nov 2014 08:16:34 -0700 Subject: [PATCH] State card for light will show actual color of light --- .../http/www_static/polymer/state-card.html | 68 ++++++++++++++----- 1 file changed, 51 insertions(+), 17 deletions(-) diff --git a/homeassistant/components/http/www_static/polymer/state-card.html b/homeassistant/components/http/www_static/polymer/state-card.html index 59df3cb5c40..0bf21695b7d 100755 --- a/homeassistant/components/http/www_static/polymer/state-card.html +++ b/homeassistant/components/http/www_static/polymer/state-card.html @@ -27,13 +27,14 @@ state-badge { float: left; cursor: pointer; - transition: background-color .2s; + transition: background-color .2s ease-in-out, color .5s ease-in-out; } state-badge:hover { background-color: #039be5; } + /* Color the icon if light or sun is on */ state-badge[data-domain=light][data-state=on], state-badge[data-domain=sun][data-state=above_horizon] { color: #fff176; @@ -77,7 +78,8 @@
-