From cd211f7025e54ef2d536230da4ca0676ba96b441 Mon Sep 17 00:00:00 2001 From: Alfred Egger Date: Mon, 16 Mar 2020 09:27:32 +0100 Subject: [PATCH] Change arrangement of sunrise and sunset --- css/style.css | 6 +++--- templates/main.php | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/css/style.css b/css/style.css index de5fd17..1d0c5fe 100644 --- a/css/style.css +++ b/css/style.css @@ -171,7 +171,7 @@ #city-right .city-current-pressure, #city-right .city-current-wind, #city-right .city-current-weather, #city-right .city-current-humidity, -#city-right .city-current-sunrise { +#city-right .city-current-sunrise, #city-right .city-current-sunset { font-size: 3em; } #city-forecast-panel { @@ -190,7 +190,7 @@ #city-right .city-current-pressure, #city-right .city-current-wind, #city-right .city-current-weather, #city-right .city-current-humidity, -#city-right .city-current-sunrise { +#city-right .city-current-sunrise, #city-right .city-current-sunset { font-size: 2.2em; } #city-forecast-panel { @@ -214,7 +214,7 @@ #city-right .city-current-pressure, #city-right .city-current-wind, #city-right .city-current-weather, #city-right .city-current-humidity, -#city-right .city-current-sunrise { +#city-right .city-current-sunrise, #city-right .city-current-sunset { font-size: 1.6em; } } diff --git a/templates/main.php b/templates/main.php index ab37da5..ead3b29 100644 --- a/templates/main.php +++ b/templates/main.php @@ -58,7 +58,8 @@
t('Humidity')); ?>: {{ currentCity.main.humidity}}%
t('Cloudiness')); ?>: {{ currentCity.weather[0].description }}
t('Wind')); ?>: {{ currentCity.wind.speed }} m/s - {{ currentCity.wind.desc }}
-
t('Sunrise')); ?>: {{ currentCity.sys.sunrise * 1000 | date:'HH:mm' }} t('Sunset')); ?>: {{ currentCity.sys.sunset * 1000 | date:'HH:mm' }}
+
t('Sunrise')); ?>: {{ currentCity.sys.sunrise * 1000 | date:'HH:mm' }}
+
t('Sunset')); ?>: {{ currentCity.sys.sunset * 1000 | date:'HH:mm' }}