From d319382980a5cf845667036baee53ad349c480e1 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Wed, 19 Dec 2018 15:19:06 -0500 Subject: [PATCH] New styles/view for city weather display --- css/front.css | 69 +++++++++++++++++++++------- views/front/members/cityWeather.html | 48 +++++++++++-------- 2 files changed, 81 insertions(+), 36 deletions(-) diff --git a/css/front.css b/css/front.css index 7b424998..caf5ff8a 100644 --- a/css/front.css +++ b/css/front.css @@ -1262,34 +1262,71 @@ glm-member-detail-content-toggle { /* Featured Grid End */ /* City Weather */ -.weatherBlock { +.glm-weather-block { overflow: hidden; width: 48%; float: left; - background: #f5f5f5; + background: #f8f8f8; margin: 8px 1%; - padding: 6px; - border: 1px solid #CBCBAA; + border: 1px solid whitesmoke; border-radius: 8px; - -webkit-box-shadow: 0px 0px 5px rgba(0,0,0,0.3); - -moz-box-shadow: 0px 0px 5px rgba(0,0,0,0.3); - box-shadow: 0px 0px 5px rgba(0,0,0,0.3); + -webkit-box-shadow: 2px 2px 6px -1px rgba(0,0,0,0.3); + -moz-box-shadow: 2px 2px 6px -1px rgba(0,0,0,0.3); + box-shadow: 2px 2px 6px -1px rgba(0,0,0,0.3); } - -.weatherBlock img { - max-width: 100%; - border: 10px solid #FFF; +.glm-weather-block:hover { + background: #f4f4f4; +} +@media (max-width: 640px) { + .glm-weather-block { + width: 98%; + max-width: 360px; + float: none; + margin: 15px auto; + } +} +.glm-weather-image-wrapper { + display: block; + width: 24%; +} +.glm-weather-image-wrapper img { + width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; - -webkit-box-shadow: 0px 0px 5px rgba(0,0,0,0.4); + /* -webkit-box-shadow: 0px 0px 5px rgba(0,0,0,0.4); -moz-box-shadow: 0px 0px 5px rgba(0,0,0,0.4); - box-shadow: 0px 0px 5px rgba(0,0,0,0.4); - margin: 6px; - border-radius: 8px; + box-shadow: 0px 0px 5px rgba(0,0,0,0.4); */ + border-radius: 5px 0 0 5px; } -.weatherIn { +.glm-weather-block-content { overflow: hidden; background: url("../assets/bg-form.jpg"); } +.glm-weather-block-city { + font-size: 18px; + font-weight: bold; + margin: 0; + line-height: 1.4; +} +.glm-weather-block-weather { + font-size: 15px; + font-weight: normal; +} +.glm-weather-block-temp { + font-size: 15px; + font-weight: normal; +} +.glm-weather-block-text { + color: #333333; + margin: 0; + font-weight: bold; + font-size: 15px; + display: block; + float: right; + width: 75%; + padding: 10px; + line-height: 1.4; +} + /* City Weather End */ diff --git a/views/front/members/cityWeather.html b/views/front/members/cityWeather.html index 1dcdbc58..638f06ec 100644 --- a/views/front/members/cityWeather.html +++ b/views/front/members/cityWeather.html @@ -3,29 +3,37 @@ {$a.alpha} {/foreach} -
+
{foreach $cities as $city} {if $city.moreinfo} -
-
- {if $city.moreinfo} - - - - {/if} - {if !$city.moreinfo} - - {/if} -

{$city.name}

-

{$city.weather}

- {if $city.temp_max} -

{$city.temp_max}°/{$city.temp_min}°F

- {/if} - {if !$city.temp_max} -

 

- {/if} + +
+
+ {if $city.moreinfo} +
+ +
+ {/if} + {if !$city.moreinfo} +
+ +
+ {/if} +
+
{$city.name}
+
{$city.weather}
+
+ {if $city.temp_max} + {$city.temp_max}°/{$city.temp_min}°F + {/if} + {if !$city.temp_max} +   + {/if} +
+
+
-
+ {/if} {/foreach}
-- 2.17.1