[IMP] website_sale: responsible design for products grid
authorChristophe Matthieu <chm@openerp.com>
Mon, 30 Sep 2013 08:47:08 +0000 (10:47 +0200)
committerChristophe Matthieu <chm@openerp.com>
Mon, 30 Sep 2013 08:47:08 +0000 (10:47 +0200)
bzr revid: chm@openerp.com-20130930084708-is68jozdizp1c9z9

addons/website_sale/static/src/css/website_sale.css
addons/website_sale/static/src/css/website_sale.sass

index 9fad582..f253f5b 100644 (file)
   height: 280px;
 }
 
+@media (max-width: 728px) {
+  .oe_product {
+    float: left;
+    width: 100%;
+    height: 200px;
+    display: inline-block;
+  }
+
+  #products_grid table, #products_grid tbody, #products_grid tr, #products_grid td {
+    float: left;
+    width: 100%;
+    display: inline-block;
+  }
+  #products_grid table td.oe-height-2 {
+    display: none;
+  }
+}
 @media (min-width: 992px) {
   .col-md-12 .oe-height-1 {
     height: 95px;
     height: 288px;
   }
 }
-
 @media (min-width: 1200px) {
   .col-md-12 .oe-height-1 {
     height: 125px;
     height: 380px;
   }
 }
-
 /* ---- Product list style ---- */
 .oe_list_products {
   border: none;
index 2005fba..6edcdae 100644 (file)
     .oe-height-4
         height: 280px
 
+@media (max-width: 728px)
+    .oe_product
+        float: left
+        width: 100%
+        height: 200px
+        display: inline-block
+    #products_grid
+        table, tbody,tr, td
+            float: left
+            width: 100%
+            display: inline-block
+        table td.oe-height-2
+            display: none
+
 @media (min-width: 992px)
     .col-md-12
         .oe-height-1
         .oe-height-4
             height: 380px
 
-
 /* ---- Product list style ---- */
 .oe_list_products
     border: none