partially revert previous commit re windy widget size
authorgregor herrmann <gregor@toastfreeware.priv.at>
Mon, 10 Sep 2018 14:23:37 +0000 (16:23 +0200)
committergregor herrmann <gregor@toastfreeware.priv.at>
Mon, 10 Sep 2018 14:41:36 +0000 (16:41 +0200)
don't hardcode small width/height but set max-width for dynamic size

web/static/seepark_web.css
web/templates/seepark_web.html

index 6e7753c8933e53b56bc67ddab1e2d6e718602643..174c4eb8fdaf41b6a5e8ecf08f17fa999719f17b 100644 (file)
@@ -21,12 +21,15 @@ body {
 #openweathermap-widget-15, #windy, .c3 {
     margin: 0 auto;
     text-align: center;
 #openweathermap-widget-15, #windy, .c3 {
     margin: 0 auto;
     text-align: center;
-    padding-top: 1em;
+    padding: 1em 1em 0 1em;
 }
 
 }
 
-#openweathermap-widget-15, #windy {
+#openweathermap-widget-15 {
     width: 300px;
     width: 300px;
-    height: 244px;
+}
+
+#windyiframe {
+    max-width: 100%;
 }
 
 #current, #currentair, #currentwater {
 }
 
 #current, #currentair, #currentwater {
index 013c622d9fbab425b2335bfaced318b51ad30a7d..3f29501be7ee50ea198ceabbeb10e8e442062dec 100644 (file)
@@ -76,8 +76,7 @@
 
                <!-- windy widget -->
                <div id="windy">
 
                <!-- windy widget -->
                <div id="windy">
-               <!-- width="650" height="450" -->
-               <iframe width="300" height="244" src="https://embed.windy.com/embed2.html?lat=47.297&amp;lon=10.927&amp;zoom=10&amp;level=surface&amp;overlay=rain&amp;menu=&amp;message=&amp;marker=&amp;calendar=&amp;pressure=&amp;type=map&amp;location=coordinates&amp;detail=&amp;detailLat=48.200&amp;detailLon=16.350&amp;metricWind=default&amp;metricTemp=default&amp;radarRange=-1" frameborder="0"></iframe> 
+               <iframe id="windyiframe" width="650" height="450" src="https://embed.windy.com/embed2.html?lat=47.297&amp;lon=10.927&amp;zoom=10&amp;level=surface&amp;overlay=rain&amp;menu=&amp;message=&amp;marker=&amp;calendar=&amp;pressure=&amp;type=map&amp;location=coordinates&amp;detail=&amp;detailLat=48.200&amp;detailLon=16.350&amp;metricWind=default&amp;metricTemp=default&amp;radarRange=-1" frameborder="0"></iframe> 
                </div>
 
                <hr />
                </div>
 
                <hr />