Added media query for double columned container lists
authorMarcel Werk <burntime@woltlab.com>
Sat, 9 Feb 2013 00:22:13 +0000 (01:22 +0100)
committerMarcel Werk <burntime@woltlab.com>
Sat, 9 Feb 2013 00:22:13 +0000 (01:22 +0100)
wcfsetup/install/files/style/layout.less

index 5fb7c8b3322be6b3e23cd96dfd340c21171d297c..bfd52c186ea4f93042b872f201ab8f19e77a6673 100644 (file)
                padding: @wcfGapMedium @wcfGapLarge;
        }
        
-       &.doubleColumned {
-               overflow: hidden;
-               
-               > li {
-                       padding: 0;
-                       float: left;
-                       width: 50%;
-                       height: 90px;
-                       overflow: hidden;
-                       
-                       &:nth-child(even) {
-                               float: right;
-                       }
-                       
-                       &:nth-child(4n), &:nth-child(4n+1) {
-                               background-color: @wcfContainerBackgroundColor;
-                       }
-                       
-                       &:nth-child(4n+2), &:nth-child(4n+3) {
-                               background-color: @wcfContainerAccentBackgroundColor;
-                       }
-                       
-                       &:hover {
-                               background-color: @wcfContainerHoverBackgroundColor;
-                       }
-                       
-                       > div {
-                               padding: 14px 21px;
-                       }
-               }
-               
-               &:after {
-                       content: "";
-                       display: table;
-                       clear: left;
-               }
-       }
-       
        &.styleList > li > div.box64 {
                > span {
                        text-align: center;
        }
 }
 
+@media screen and (min-width: 1240px) { 
+       .containerList {
+               &.doubleColumned {
+                       overflow: hidden;
+                       
+                       > li {
+                               padding: 0;
+                               float: left;
+                               width: 50%;
+                               height: 90px;
+                               overflow: hidden;
+                               
+                               &:nth-child(even) {
+                                       float: right;
+                               }
+                               
+                               &:nth-child(4n), &:nth-child(4n+1) {
+                                       background-color: @wcfContainerBackgroundColor;
+                               }
+                               
+                               &:nth-child(4n+2), &:nth-child(4n+3) {
+                                       background-color: @wcfContainerAccentBackgroundColor;
+                               }
+                               
+                               &:hover {
+                                       background-color: @wcfContainerHoverBackgroundColor;
+                               }
+                               
+                               > div {
+                                       padding: 14px 21px;
+                               }
+                       }
+                       
+                       &:after {
+                               content: "";
+                               display: table;
+                               clear: left;
+                       }
+               }
+       }
+}
+
 .nestedCategoryList {
        > li {
                margin-top: 21px;