Fixed borders in double/triple columned container-list
authorMarcel Werk <burntime@woltlab.com>
Wed, 20 Jun 2018 15:48:38 +0000 (17:48 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 20 Jun 2018 15:48:38 +0000 (17:48 +0200)
wcfsetup/install/files/style/layout/containerList.scss

index 63645ba07aaaf0fff04d77b5cff25e8b3eb3073b..06fc0960896e264925bf1db591f7ab4b1c461250 100644 (file)
                &.doubleColumned > li {
                        flex: 0 0 50%;
                        max-width: 50%;
+                       
+                       &:nth-child(2n+1):nth-last-child(-n+2) {
+                               border-bottom: none;
+                       }
                }
                
                &.tripleColumned > li {
                        flex: 0 0 calc(100% / 3);
                        /* work-around for IE10 */
                        width: calc(100% / 3);
+                       
+                       &:nth-child(3n+1):nth-last-child(-n+3),
+                       &:nth-child(3n+1):nth-last-child(-n+3) ~ li {
+                               border-bottom: none;
+                       }
                }
        }
 }