Negative margins were too large on mobile
authorAlexander Ebert <ebert@woltlab.com>
Fri, 19 Aug 2016 11:22:55 +0000 (13:22 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 19 Aug 2016 11:23:00 +0000 (13:23 +0200)
wcfsetup/install/files/style/layout/box.scss

index c0c1c22f5f382e54dc5c86fadefc46099847c601..e8136712d6741e659e19d6d2ff376d3bd22c5c9e 100644 (file)
        }
        
        .boxContainer {
-               margin-left: -15px;
-               margin-right: -15px;
-               
                @include screen-sm-up {
                        display: flex;
                        flex-wrap: wrap;
                @include screen-md-down {
                        padding: 40px 0;
                        margin-bottom: -40px;
+                       margin-left: -10px;
+                       margin-right: -10px;
                }
                
                @include screen-lg {
                        padding: 60px 0;
                        margin-bottom: -60px;
+                       margin-left: -15px;
+                       margin-right: -15px;
                }
        }
        
        }
        
        .boxContainer {
-               margin-left: -15px;
-               margin-right: -15px;
-               
                @include screen-sm-down {
                        padding: 40px 0;
                }
                
+               @include screen-md-down {
+                       margin-left: -10px;
+                       margin-right: -10px;
+               }
+               
                @include screen-md-up {
                        display: flex;
                        flex-wrap: wrap;
                        margin-bottom: -60px;
                        padding: 60px 0;
                }
+               
+               @include screen-lg {
+                       margin-left: -15px;
+                       margin-right: -15px;
+               }
        }
        
        .box {