diff options
| author | Antony Lesuisse <al@openerp.com> | 2014-01-31 01:51:57 +0100 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2014-01-31 01:51:57 +0100 |
| commit | 4b30f1fcbd8701f82dbbe4e5c8386ee432b063ac (patch) | |
| tree | 93b17a03b45927c20fbb045cda8c8aa09d853409 /addons/website_payment/static/src/css | |
| parent | ba2d4c90307661a79d78e6ce3b274b76b4c62717 (diff) | |
| parent | 1c283ddf242f0681c1d060f3b8658efa3fcaa0a8 (diff) | |
[MERGE] trunk-website-al
bzr revid: al@openerp.com-20140131005157-jkf8hz6fh2buml2c
Diffstat (limited to 'addons/website_payment/static/src/css')
| -rw-r--r-- | addons/website_payment/static/src/css/Makefile | 2 | ||||
| -rw-r--r-- | addons/website_payment/static/src/css/website_payment.css | 53 | ||||
| -rw-r--r-- | addons/website_payment/static/src/css/website_payment.sass | 45 |
3 files changed, 100 insertions, 0 deletions
diff --git a/addons/website_payment/static/src/css/Makefile b/addons/website_payment/static/src/css/Makefile new file mode 100644 index 00000000000..7f7f16d3616 --- /dev/null +++ b/addons/website_payment/static/src/css/Makefile @@ -0,0 +1,2 @@ +sass: + sass --trace -t expanded website_payment.sass:website_payment.css diff --git a/addons/website_payment/static/src/css/website_payment.css b/addons/website_payment/static/src/css/website_payment.css new file mode 100644 index 00000000000..196d6cf8956 --- /dev/null +++ b/addons/website_payment/static/src/css/website_payment.css @@ -0,0 +1,53 @@ +@charset "utf-8"; +input#cc_number { + background-image: url("/website_payment/static/src/img/grey-dots.png"); + 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: 34px; + 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.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; +} + +input#cc_number:active, input#cc_number:focus { + background-image: none; +} diff --git a/addons/website_payment/static/src/css/website_payment.sass b/addons/website_payment/static/src/css/website_payment.sass new file mode 100644 index 00000000000..b5d4d03a9bd --- /dev/null +++ b/addons/website_payment/static/src/css/website_payment.sass @@ -0,0 +1,45 @@ +@charset "utf-8" + +input#cc_number + background-image: url('/website_payment/static/src/img/grey-dots.png') + 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: 34px + 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 + +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 + +input#cc_number:active, input#cc_number:focus + background-image: none |
