From 3dd29d7d38194fba57583bcb3a21d356628af657 Mon Sep 17 00:00:00 2001 From: Vincent Date: Fri, 31 Jan 2020 10:19:14 +0100 Subject: [PATCH] . --- .idea/workspace.xml | 67 +++++++--------------------------- scripts/lib/weatherstation.php | 6 ++- style/weatherstation.css | 4 ++ style/weatherstation.less | 6 +++ 4 files changed, 28 insertions(+), 55 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index d8027ba..d7fc086 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,51 +2,10 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -1232,12 +1191,12 @@ - + - + diff --git a/scripts/lib/weatherstation.php b/scripts/lib/weatherstation.php index 8809d68..263b966 100644 --- a/scripts/lib/weatherstation.php +++ b/scripts/lib/weatherstation.php @@ -84,7 +84,11 @@ function _curve($weather, $curve) $res = '
'; $res .= '
'; - $res .= '
'; + if($curve==='sun') { + $res .= '
'; + }else{ + $res .= '
'; + } $res .= '
'; $res .= '
' . date('H:i', $rise) . '
'; $res .= '
' . date('H:i', $set) . '
'; diff --git a/style/weatherstation.css b/style/weatherstation.css index 538d22d..e8422de 100644 --- a/style/weatherstation.css +++ b/style/weatherstation.css @@ -222,6 +222,10 @@ top: 5px; left: 12px; } +#weatherstation .curves .curve.curve-sun .orbit.earth { + background-position: 50% 50%; + background-size: 100% 100%; +} #weatherstation .curves .curve.curve-moon { position: absolute; width: 120px; diff --git a/style/weatherstation.less b/style/weatherstation.less index f4d081e..d9ecaac 100644 --- a/style/weatherstation.less +++ b/style/weatherstation.less @@ -193,6 +193,12 @@ .curve { &.curve-sun { .curvemix(150, 10, #fc0); + + .orbit.earth { + background-position: 50% 50%; + background-size: 100% 100%; + + } } &.curve-moon { -- 2.39.5