]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1567571 - Make featured product list 3+ columns
authorKohei Yoshino <kohei.yoshino@gmail.com>
Fri, 19 Jul 2019 21:19:54 +0000 (17:19 -0400)
committerGitHub <noreply@github.com>
Fri, 19 Jul 2019 21:19:54 +0000 (17:19 -0400)
extensions/BMO/template/en/default/global/choose-product.html.tmpl
extensions/BMO/web/styles/choose_product.css

index 8a5d4264480143d88b03207d40aaf818113d8df4..f877e23de0abb6219369431591e075da8cfcddcd 100644 (file)
@@ -82,7 +82,7 @@
 
 [% IF NOT ((cgi.param("full")) OR (user.settings.product_chooser.value == 'full_product_chooser')) %]
 
-  <div class="tile">
+  <div class="tiles">
     [% INCLUDE easyproduct
       name="Core"
       icon="component.png"
index 07baecf6a26b9923498ab45b3b01335cd0accd5f..f490dbb0481c8d2c8bf611eca3c28ce7e66836c5 100644 (file)
@@ -34,7 +34,7 @@
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
-  margin: 8px auto;
+  margin: 8px 16px;
   padding: 0;
   list-style-type: none;
   font-size: var(--font-size-large);
   margin: 32px 0 0;
 }
 
-#product-list .tile {
+#product-list .tiles {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
-  margin: 0 auto;
 }
 
-#product-list .tile .product {
+#product-list .tiles .product {
   overflow: hidden;
   box-sizing: border-box;
   margin: 16px 0;
-  padding: 0 16px 0 80px;
+  padding: 0 16px 0 96px;
 }
 
-#product-list .tile .product h3 {
+#product-list .tiles .product h3 {
   margin: 0;
 }
 
-#product-list .tile .product img {
+#product-list .tiles .product img {
   float: left;
   margin: 0 0 0 -80px;
 }
 
-#product-list .tile .product p {
+#product-list .tiles .product p {
   margin: 4px 0 0;
   font-size: var(--font-size-large);
   line-height: var(--line-height-comfortable);
 }
 
 @media screen and (min-width: 1024px) {
-  #frequent-components ul,
-  #product-list .tile {
-    width: 960px;
-  }
-
-  #product-list .tile .product {
-    width: 50%;
-  }
-}
-
-@media screen and (min-width: 768px) and (max-width: 1023px) {
-  #frequent-components ul,
-  #product-list .tile {
-    width: 720px;
-  }
-
-  #product-list .tile .product {
-    width: 50%;
+  #product-list .tiles .product {
+    width: 400px;
   }
 }
 
-@media screen and (max-width: 767px) {
-  #frequent-components ul,
-  #product-list .tile {
-    width: auto;
-    max-width: 480px;
-  }
-
-  #product-list .tile .product {
+@media screen and (max-width: 1023px) {
+  #product-list .tiles .product {
     width: 100%;
   }
 }