Procházet zdrojové kódy

Restore styles needed for Google maps display

Scot Hacker před 8 roky
rodič
revize
89acb88252
1 změnil soubory, kde provedl 11 přidání a 6 odebrání
  1. 11 6
      bakerydemo/templates/locations/location_page.html

+ 11 - 6
bakerydemo/templates/locations/location_page.html

@@ -2,12 +2,17 @@
 {% load wagtailimages_tags navigation_tags %}
 
 {% block head-extra %}
-  <style>
-      /* Needed for Google map embed */
-      #map {
-        height: 100%;
-      }
-  </style>
+    <style>
+        /* Following two selectors needed for Google map embed */
+        #map {
+          height: 100%;
+        }
+        html, body {
+          height: 100%;
+          margin: 0;
+          padding: 0;
+        }
+    </style>
 {% endblock head-extra %}