From abc273e9a1245a9d9cf1df6acfdd4708aef1c23b Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Tue, 24 Sep 2013 10:55:07 +0200 Subject: [PATCH] [IMP] website_sale: change size y when category is displayed bzr revid: chm@openerp.com-20130924085507-9m1gsdnlsfgn4fj4 --- .../static/src/css/website_sale.css | 28 +++++++++++++------ .../static/src/css/website_sale.sass | 28 ++++++++++++------- 2 files changed, 38 insertions(+), 18 deletions(-) diff --git a/addons/website_sale/static/src/css/website_sale.css b/addons/website_sale/static/src/css/website_sale.css index e630e78caef..2495a22c552 100644 --- a/addons/website_sale/static/src/css/website_sale.css +++ b/addons/website_sale/static/src/css/website_sale.css @@ -7,6 +7,7 @@ top: 15px; bottom: 50px; } + .oe_product_description { bottom: 0; position: absolute; @@ -70,28 +71,39 @@ } /* ---- Product Sizes ---- */ -.oe-height-1 { +.col-md-12 .oe-height-1 { height: 170px; } - -.oe-height-2 { +.col-md-12 .oe-height-2 { height: 255px; } - -.oe-height-3 { +.col-md-12 .oe-height-3 { height: 340px; } - -.oe-height-4 { +.col-md-12 .oe-height-4 { height: 510px; } + +.col-md-9 .oe-height-1 { + height: 95px; +} +.col-md-9 .oe-height-2 { + height: 190px; +} +.col-md-9 .oe-height-3 { + height: 285px; +} +.col-md-9 .oe-height-4 { + height: 380px; +} + /* ---- Product list style ---- */ .oe_products { border: 1px solid rgba(100, 100, 100, 0.2); max-width: 100%; max-height: 140px; } -.oe_products .oe_product_image img { +.oe_products .oe_product_list_image img { width: 150px; height: 140px; } diff --git a/addons/website_sale/static/src/css/website_sale.sass b/addons/website_sale/static/src/css/website_sale.sass index 36a6abae385..900c7883a29 100644 --- a/addons/website_sale/static/src/css/website_sale.sass +++ b/addons/website_sale/static/src/css/website_sale.sass @@ -72,17 +72,25 @@ /* ---- Product Sizes ---- */ -.oe-height-1 - height: 170px +.col-md-12 + .oe-height-1 + height: 170px + .oe-height-2 + height: 255px + .oe-height-3 + height: 340px + .oe-height-4 + height: 510px +.col-md-9 + .oe-height-1 + height: 95px + .oe-height-2 + height: 190px + .oe-height-3 + height: 285px + .oe-height-4 + height: 380px -.oe-height-2 - height: 255px - -.oe-height-3 - height: 340px - -.oe-height-4 - height: 510px /* ---- Product list style ---- */ .oe_products