Clean up the CSS for footer boxes
authorAlexander Ebert <ebert@woltlab.com>
Wed, 6 Sep 2023 12:21:55 +0000 (14:21 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 6 Sep 2023 12:21:55 +0000 (14:21 +0200)
wcfsetup/install/files/style/layout/box.scss

index 4b6ba3897a87e191a20e8420ff6a4caff4a8c8a7..c1c01e328bb1bfe4bc3970a55e891d36cdde09f6 100644 (file)
 
        .boxContainer {
                @include screen-sm-down {
+                       display: flex;
+                       flex-direction: column;
                        padding: 40px 0;
-               }
-
-               @include screen-md-down {
-                       margin-left: -10px;
-                       margin-right: -10px;
+                       row-gap: 40px;
                }
 
                @include screen-md-up {
-                       display: flex;
-                       flex-wrap: wrap;
-                       margin-bottom: -60px;
+                       column-gap: 30px;
+                       display: grid;
+                       grid-template-columns: 1fr 1fr;
                        padding: 60px 0;
-               }
-
-               @include screen-lg {
-                       margin-left: -15px;
-                       margin-right: -15px;
+                       row-gap: 60px;
                }
        }
 
-       .box {
-               overflow: hidden;
-               padding-left: 15px;
-               padding-right: 15px;
-
-               @include screen-sm-down {
-                       &:not(:last-child) {
-                               margin-bottom: 40px;
-                       }
-               }
-
-               @include screen-md-up {
-                       flex: 0 0 50%;
-                       margin-bottom: 60px;
-                       max-width: 50%;
-
-                       &.boxFullWidth {
-                               flex-basis: 100%;
-                               max-width: 100%;
-                       }
+       @include screen-md-up {
+               .box.boxFullWidth {
+                       grid-column: span 2;
                }
        }