[FIX] website_view: css price with position absolute for description
authorChristophe Matthieu <chm@openerp.com>
Wed, 9 Oct 2013 13:59:14 +0000 (15:59 +0200)
committerChristophe Matthieu <chm@openerp.com>
Wed, 9 Oct 2013 13:59:14 +0000 (15:59 +0200)
bzr revid: chm@openerp.com-20131009135914-nq5sr4qi7dc5wbsv

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

index aba10f6..a4cc4b8 100644 (file)
   left: 15px;
   right: 15px;
   border-top: 1px solid #dddddd;
-  max-height: 140px;
+  max-height: 120px;
   overflow: hidden;
+  padding-bottom: 24px;
+}
+
+.product_price {
+  position: absolute;
+  left: 15px;
+  bottom: 5px;
+  z-index: 6;
 }
 
 .oe_mycart .input-group-addon {
   right: 0;
   border-top: none;
   top: 15px;
+  max-height: 94px;
+}
+.oe_list_products .product_price {
+  left: 180px;
 }
 
 .oe_website_sale .row .row .col-md-12 {
index 0704afb..e156224 100644 (file)
     left: 15px
     right: 15px
     border-top: 1px solid #dddddd
-    max-height: 140px
+    max-height: 120px
     overflow: hidden
+    padding-bottom: 24px
+.product_price
+    position: absolute
+    left: 15px
+    bottom: 5px
+    z-index: 6
 
 .oe_mycart
     .input-group-addon
         right: 0
         border-top: none
         top: 15px
+        max-height: 94px
+    .product_price
+        left: 180px
 
 .oe_website_sale .row .row .col-md-12
     float: none
index 8d3eef9..6fdb3d8 100644 (file)
           <a t-href="/shop/product/#{ product.id }/?#{ search and ('search=%s' % search) or ''}#{ category_id and ('&amp;category_id=%s' % category_id) or ''}">
               <b t-field="product.name"/>
           </a>
-          <div class="product_price">
-              <b>
-                  <t t-if="product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price">
-                    <span class="text-danger" style="text-decoration: line-through;">
-                        <t t-esc="product.product_variant_ids[0].lst_price" /> €
-                    </span>&amp;nbsp;
-                  </t>
-                  <t t-esc="product.product_variant_ids[0].price" /> €
-              </b>
-          </div>
       </div>
-
+      <div class="product_price">
+          <b>
+              <t t-if="product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price">
+                <span class="text-danger" style="text-decoration: line-through;">
+                    <t t-esc="product.product_variant_ids[0].lst_price" /> €
+                </span>&amp;nbsp;
+              </t>
+              <t t-esc="product.product_variant_ids[0].price" /> €
+          </b>
+      </div>
       <div class="oe_product_image text-center">
           <a t-href="/shop/product/#{ product.id }/?#{ search and ('search=%s' % search) or ''}#{ category_id and ('&amp;category_id=%s' % category_id) or ''}">
               <img class="img" t-att-src="product.img('image')"/>
     <!-- Product Description-->
 
     <template id="product_description" inherit_option_id="website_sale.products_cart" name="Product Description">
-        <xpath expr="//div[@class='product_price']" position="before">
+        <xpath expr="//div[@class='oe_product_description']" position="inside">
             <p class="text-muted oe_subdescription">
                 <span t-field="product.description_sale"/>
             </p>