From ce7e6d37ed31e5302fdf4e179fbc946f1617abc7 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen <paulus@paulusschoutsen.nl> Date: Wed, 27 May 2015 23:43:00 -0700 Subject: [PATCH] Polymer 1.0: more info content style fixes --- .../polymer/cards/state-card-thermostat.html | 5 +++++ .../www_static/polymer/components/state-info.html | 5 +++++ .../polymer/more-infos/more-info-light.html | 14 ++++++-------- .../polymer/more-infos/more-info-thermostat.html | 4 ++-- 4 files changed, 18 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/frontend/www_static/polymer/cards/state-card-thermostat.html b/homeassistant/components/frontend/www_static/polymer/cards/state-card-thermostat.html index a1620a3b5e7..a86ad51f446 100644 --- a/homeassistant/components/frontend/www_static/polymer/cards/state-card-thermostat.html +++ b/homeassistant/components/frontend/www_static/polymer/cards/state-card-thermostat.html @@ -4,6 +4,10 @@ <dom-module id="state-card-thermostat"> <style> + :host { + line-height: normal; + } + .state { margin-left: 16px; text-align: right; @@ -18,6 +22,7 @@ .current { color: darkgrey; margin-top: -2px; + font-size: 1rem; } </style> <template> diff --git a/homeassistant/components/frontend/www_static/polymer/components/state-info.html b/homeassistant/components/frontend/www_static/polymer/components/state-info.html index 97aeaee680c..44dceac415b 100755 --- a/homeassistant/components/frontend/www_static/polymer/components/state-info.html +++ b/homeassistant/components/frontend/www_static/polymer/components/state-info.html @@ -6,6 +6,10 @@ <dom-module id="state-info"> <style> + :host { + line-height: normal; + } + state-badge { float: left; } @@ -23,6 +27,7 @@ .time-ago { color: darkgrey; margin-top: -2px; + font-size: 1rem; } </style> diff --git a/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-light.html b/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-light.html index 6ccfe296471..32c31948875 100644 --- a/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-light.html +++ b/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-light.html @@ -38,14 +38,12 @@ </style> <template> <div class$='[[computeClassNames(stateObj)]]'> - <div class='brightness'> - <div center horizontal layout> - <div>Brightness</div> - <paper-slider - max='255' flex id='brightness' value='{{brightnessSliderValue}}' - on-change='brightnessSliderChanged'> - </paper-slider> - </div> + <div class='brightness center horizontal layout'> + <div>Brightness</div> + <paper-slider + max='255' id='brightness' value='{{brightnessSliderValue}}' + on-change='brightnessSliderChanged' class='flex'> + </paper-slider> </div> <color-picker on-colorselected='colorPicked' width='350' height='200'> diff --git a/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-thermostat.html b/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-thermostat.html index 0e6ec0f2c24..44aa7f6df10 100644 --- a/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-thermostat.html +++ b/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-thermostat.html @@ -29,8 +29,8 @@ </div> <div class='away-mode-toggle'> - <div center horizontal layout> - <div flex>Away Mode</div> + <div class='center horizontal layout'> + <div class='flex'>Away Mode</div> <paper-toggle-button checked='[[awayToggleChecked]]' on-change='toggleChanged'> </paper-toggle-button> </div> -- GitLab