]> git.parisson.com Git - mezzo.git/commitdiff
Reduce the global margins when the screen is smaller than 900 pixels.
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Tue, 11 Oct 2016 14:29:21 +0000 (16:29 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Tue, 11 Oct 2016 14:29:21 +0000 (16:29 +0200)
app/static/src/sass/layout/_global.scss
app/static/src/sass/modules/_page.scss

index 50eaf24b555f2342a7b62487b4a31c41f531b458..2f310228e883531e829e79d17ff20d75b1187604 100755 (executable)
@@ -1,6 +1,12 @@
 .main {
     @include margin(3 0 0 0);
     @include padding(1 0 0 0);
+
+    @media screen and (max-height: 900px) {
+
+        @include margin(.5 0 0 0);
+
+    }
 }
 
 #container {
index afc8735c93a23766551ef5bc6eb231b24ea21c09..fe13ba5c0d8a1b21ec28b0d91200763a5a6ca742 100644 (file)
@@ -85,6 +85,12 @@ $module: ".page";
 
         @include margin(0 0 6 0);
 
+        @media screen and (max-height: 900px) {
+
+            @include margin(0 0 3 0);
+
+        }
+
     }
 
     hr + #{$module}__block--yellow {