From 8ecc41388af280aa685ebfb89fb0dd305ddf1dc6 Mon Sep 17 00:00:00 2001 From: c727 Date: Wed, 9 May 2018 00:14:29 +0200 Subject: [PATCH] Fix issues with new weather card (#1149) * Fix issues with new weather card * New line --- src/cards/ha-weather-card.html | 75 ++++++++++++------- .../more-info/controls/more-info-weather.html | 40 +++++----- 2 files changed, 70 insertions(+), 45 deletions(-) diff --git a/src/cards/ha-weather-card.html b/src/cards/ha-weather-card.html index 8c5145f1fe..db421a6fdf 100644 --- a/src/cards/ha-weather-card.html +++ b/src/cards/ha-weather-card.html @@ -22,12 +22,33 @@ .now { display: flex; justify-content: space-between; + align-items: center; + flex-wrap: wrap; } - .state { + .main { + display: flex; + align-items: center; + margin-right: 32px; + } + + .main iron-icon { --iron-icon-height: 72px; --iron-icon-width: 72px; + margin-right: 8px; + } + + .main .temp { font-size: 52px; + line-height: 1em; + position: relative; + } + + .main .temp span { + font-size: 24px; + line-height: 1em; + position: absolute; + top: 4px; } .now-text { @@ -62,30 +83,38 @@
-
+
- [[getTemperature(stateObj.attributes.temperature)]] +
+ [[stateObj.attributes.temperature]][[getUnit('temperature')]] +
-
- [[localize('ui.card.weather.attributes.humidity')]]: - [[stateObj.attributes.humidity]] % -
-