From 6bdb979b39dc1905bbfe0466463e463fd1559e66 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Mon, 29 Jan 2018 12:05:08 +0100 Subject: [PATCH 1/2] [REF] *: rename sass files to less files * note, payment, website_forum, website_sale(_options) This is a simple renaming of sass files to less files. The real convertion will be done in the commit that follows. --- addons/note/static/src/{css/note.sass => less/note.less} | 0 .../src/{css/portal_payment.sass => less/portal_payment.less} | 0 .../src/{css/website_forum.sass => less/website_forum.less} | 0 .../static/src/{css/website_mail.sass => less/website_mail.less} | 0 .../static/src/{css/website_sale.sass => less/website_sale.less} | 0 .../static/src/{css/website_sale.sass => less/website_sale.less} | 0 6 files changed, 0 insertions(+), 0 deletions(-) rename addons/note/static/src/{css/note.sass => less/note.less} (100%) rename addons/payment/static/src/{css/portal_payment.sass => less/portal_payment.less} (100%) rename addons/website_forum/static/src/{css/website_forum.sass => less/website_forum.less} (100%) rename addons/website_sale/static/src/{css/website_mail.sass => less/website_mail.less} (100%) rename addons/website_sale/static/src/{css/website_sale.sass => less/website_sale.less} (100%) rename addons/website_sale_options/static/src/{css/website_sale.sass => less/website_sale.less} (100%) diff --git a/addons/note/static/src/css/note.sass b/addons/note/static/src/less/note.less similarity index 100% rename from addons/note/static/src/css/note.sass rename to addons/note/static/src/less/note.less diff --git a/addons/payment/static/src/css/portal_payment.sass b/addons/payment/static/src/less/portal_payment.less similarity index 100% rename from addons/payment/static/src/css/portal_payment.sass rename to addons/payment/static/src/less/portal_payment.less diff --git a/addons/website_forum/static/src/css/website_forum.sass b/addons/website_forum/static/src/less/website_forum.less similarity index 100% rename from addons/website_forum/static/src/css/website_forum.sass rename to addons/website_forum/static/src/less/website_forum.less diff --git a/addons/website_sale/static/src/css/website_mail.sass b/addons/website_sale/static/src/less/website_mail.less similarity index 100% rename from addons/website_sale/static/src/css/website_mail.sass rename to addons/website_sale/static/src/less/website_mail.less diff --git a/addons/website_sale/static/src/css/website_sale.sass b/addons/website_sale/static/src/less/website_sale.less similarity index 100% rename from addons/website_sale/static/src/css/website_sale.sass rename to addons/website_sale/static/src/less/website_sale.less diff --git a/addons/website_sale_options/static/src/css/website_sale.sass b/addons/website_sale_options/static/src/less/website_sale.less similarity index 100% rename from addons/website_sale_options/static/src/css/website_sale.sass rename to addons/website_sale_options/static/src/less/website_sale.less From b3c5392b6ac375078b0ae400aa9bf47bd60fb87e Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Fri, 26 Jan 2018 17:39:24 +0100 Subject: [PATCH 2/2] [REF] *: convert sass content to less content * note, payment, sales_team, website_forum, website_sale(_options) (prepare for all less -> scss conversion) --- addons/note/static/src/css/note.css | 12 - addons/note/static/src/less/note.less | 38 +- addons/note/views/note_templates.xml | 10 +- .../payment/static/src/css/portal_payment.css | 55 - .../static/src/less/portal_payment.less | 86 +- addons/payment/views/assets.xml | 18 +- .../sales_team/static/src/css/sales_team.sass | 17 - .../static/src/css/website_forum.css | 185 --- .../static/src/less/website_forum.less | 299 ++-- addons/website_forum/views/website_forum.xml | 8 +- .../static/src/css/website_mail.css | 43 - .../static/src/css/website_sale.css | 664 --------- .../static/src/less/website_mail.less | 85 +- .../static/src/less/website_sale.less | 1230 ++++++++++------- addons/website_sale/views/templates.xml | 10 +- .../static/src/css/website_sale.css | 22 - .../static/src/less/website_sale.less | 31 +- .../views/website_sale_options_templates.xml | 14 +- 18 files changed, 1086 insertions(+), 1741 deletions(-) delete mode 100644 addons/note/static/src/css/note.css delete mode 100644 addons/payment/static/src/css/portal_payment.css delete mode 100644 addons/sales_team/static/src/css/sales_team.sass delete mode 100644 addons/website_forum/static/src/css/website_forum.css delete mode 100644 addons/website_sale/static/src/css/website_mail.css delete mode 100644 addons/website_sale/static/src/css/website_sale.css delete mode 100644 addons/website_sale_options/static/src/css/website_sale.css diff --git a/addons/note/static/src/css/note.css b/addons/note/static/src/css/note.css deleted file mode 100644 index 9ceec3be3b1..00000000000 --- a/addons/note/static/src/css/note.css +++ /dev/null @@ -1,12 +0,0 @@ -.o_kanban_group .note_text_line_through { - text-decoration: line-through; -} - -.openerp .oe_form .oe_pad.oe_memo { - width: auto; -} -.openerp .oe_form .oe_form_field.oe_memo { - margin: 0; - padding: 0px; - width: 100%; - min-height: 200px; } diff --git a/addons/note/static/src/less/note.less b/addons/note/static/src/less/note.less index afc0d3c1467..99038b491c2 100644 --- a/addons/note/static/src/less/note.less +++ b/addons/note/static/src/less/note.less @@ -1,26 +1,16 @@ -@charset "utf-8" -@mixin rotate($a) - -webkit-transform: rotate($a) - -o-transform: rotate($a) - -moz-transform: rotate($a) +.o_kanban_group .note_text_line_through { + text-decoration: line-through; +} -@mixin transition($what:all,$duration:100ms) - -webkit-transition: $what $duration cubic-bezier(0.5,0,0.5,1) - -moz-transition: $what $duration cubic-bezier(0.5,0,0.5,1) - -ms-transition: $what $duration cubic-bezier(0.5,0,0.5,1) - transition: $what $duration cubic-bezier(0.5,0,0.5,1) - -.o_kanban_group - .note_text_line_through - text-decoration: line-through - -.openerp - .oe_form - .oe_pad.oe_memo - width: auto - .oe_form_field.oe_memo - margin: 0 - padding: 0px - width: 100% - min-height: 200px +.openerp .oe_form { + .oe_pad.oe_memo { + width: auto; + } + .oe_form_field.oe_memo { + margin: 0; + padding: 0; + width: 100%; + min-height: 200px; + } +} diff --git a/addons/note/views/note_templates.xml b/addons/note/views/note_templates.xml index dcdc6e5cd95..3b6c3e1acc4 100644 --- a/addons/note/views/note_templates.xml +++ b/addons/note/views/note_templates.xml @@ -1,8 +1,8 @@ - + diff --git a/addons/payment/static/src/css/portal_payment.css b/addons/payment/static/src/css/portal_payment.css deleted file mode 100644 index eeb40dbd3a3..00000000000 --- a/addons/payment/static/src/css/portal_payment.css +++ /dev/null @@ -1,55 +0,0 @@ -input#cc_number { - background-repeat: no-repeat; - background-position: 14px 14px; } - -div.card_placeholder { - background-image: url("/website_payment/static/src/img/placeholder.png"); - background-repeat: no-repeat; - width: 32px; - height: 20px; - position: absolute; - top: 8px; - right: 20px; - -webkit-transition: 0.4s cubic-bezier(0.455, 0.03, 0.515, 0.955); - transition: 0.4s cubic-bezier(0.455, 0.03, 0.515, 0.955); - pointer-events: none; } - -/* if s2s form not in bootstrap_formatting */ -div.o_card_brand_detail { - position: relative; -} - -div.o_card_brand_detail div.card_placeholder { - right: 5px; -} - -div.amex { - background-image: url("/website_payment/static/src/img/amex.png"); - background-repeat: no-repeat; } - -div.diners { - background-image: url("/website_payment/static/src/img/diners.png"); - background-repeat: no-repeat; } - -div.discover { - background-image: url("/website_payment/static/src/img/discover.png"); - background-repeat: no-repeat; } - -div.jcb { - background-image: url("/website_payment/static/src/img/jcb.png"); - background-repeat: no-repeat; } - -div.mastercard { - background-image: url("/website_payment/static/src/img/mastercard.png"); - background-repeat: no-repeat; } - -div.visa { - background-image: url("/website_payment/static/src/img/visa.png"); - background-repeat: no-repeat; } - -/*# sourceMappingURL=website_payment.css.map */ - -ul.payment_method_list img.img-rounded { - max-width: 100px; - max-height: 40px; -} diff --git a/addons/payment/static/src/less/portal_payment.less b/addons/payment/static/src/less/portal_payment.less index e7de8c55cd5..07cdf859c3a 100644 --- a/addons/payment/static/src/less/portal_payment.less +++ b/addons/payment/static/src/less/portal_payment.less @@ -1,41 +1,61 @@ -@charset "utf-8" +input#cc_number { + background-repeat: no-repeat; + background-position: 14px 14px; +} -input#cc_number - background-repeat: no-repeat - background-position: 14px 14px +div.card_placeholder { + background-image: url("/website_payment/static/src/img/placeholder.png"); + background-repeat: no-repeat; + width: 32px; + height: 20px; + position: absolute; + top: 8px; + right: 20px; + -webkit-transition: 0.4s cubic-bezier(0.455,0.03,0.515,0.955); + transition: 0.4s cubic-bezier(0.455,0.03,0.515,0.955); + pointer-events: none; +} -div.card_placeholder - background-image: url('/website_payment/static/src/img/placeholder.png') - background-repeat: no-repeat - width: 32px - height: 20px - position: absolute - top: 8px - right: 20px - -webkit-transition: .4s cubic-bezier(0.455,0.03,0.515,0.955) - transition: .4s cubic-bezier(0.455,0.03,0.515,0.955) - pointer-events: none +/* if s2s form not in bootstrap_formatting */ +div.o_card_brand_detail { + position: relative; -div.amex - background-image: url('/website_payment/static/src/img/amex.png') - background-repeat: no-repeat + div.card_placeholder { + right: 5px; + } +} -div.diners - background-image: url('/website_payment/static/src/img/diners.png') - background-repeat: no-repeat +div.amex { + background-image: url("/website_payment/static/src/img/amex.png"); + background-repeat: no-repeat; +} -div.discover - background-image: url('/website_payment/static/src/img/discover.png') - background-repeat: no-repeat +div.diners { + background-image: url("/website_payment/static/src/img/diners.png"); + background-repeat: no-repeat; +} -div.jcb - background-image: url('/website_payment/static/src/img/jcb.png') - background-repeat: no-repeat +div.discover { + background-image: url("/website_payment/static/src/img/discover.png"); + background-repeat: no-repeat; +} -div.mastercard - background-image: url('/website_payment/static/src/img/mastercard.png') - background-repeat: no-repeat +div.jcb { + background-image: url("/website_payment/static/src/img/jcb.png"); + background-repeat: no-repeat; +} -div.visa - background-image: url('/website_payment/static/src/img/visa.png') - background-repeat: no-repeat +div.mastercard { + background-image: url("/website_payment/static/src/img/mastercard.png"); + background-repeat: no-repeat; +} + +div.visa { + background-image: url("/website_payment/static/src/img/visa.png"); + background-repeat: no-repeat; +} + +ul.payment_method_list img.img-rounded { + max-width: 100px; + max-height: 40px; +} diff --git a/addons/payment/views/assets.xml b/addons/payment/views/assets.xml index c5639ba06d2..42e965196f2 100644 --- a/addons/payment/views/assets.xml +++ b/addons/payment/views/assets.xml @@ -1,13 +1,15 @@ - -