diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/payment/static/src/scss | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/payment/static/src/scss')
| -rw-r--r-- | addons/payment/static/src/scss/payment_acquirer.scss | 62 | ||||
| -rw-r--r-- | addons/payment/static/src/scss/payment_form.scss | 56 | ||||
| -rw-r--r-- | addons/payment/static/src/scss/portal_payment.scss | 61 |
3 files changed, 179 insertions, 0 deletions
diff --git a/addons/payment/static/src/scss/payment_acquirer.scss b/addons/payment/static/src/scss/payment_acquirer.scss new file mode 100644 index 00000000..e73582ec --- /dev/null +++ b/addons/payment/static/src/scss/payment_acquirer.scss @@ -0,0 +1,62 @@ +.o_kanban_view.o_kanban_payment_acquirer { + &.o_kanban_ungrouped { + .o_kanban_record { + width: 500px; + + .o_kanban_image { + float: right; + + + div { + padding-left: 0; + padding-right: $o-kanban-image-width + $o-kanban-inside-hgutter; + } + } + + .o_payment_acquirer_desc { + margin-bottom: 28px; + + i.fa { + margin-right: 5px; + + &.fa-check { + color: green; + } + } + } + + .o_payment_acquirer_bottom { + > button { + position: absolute; + bottom: 8px; + right: 8px; + } + > .label { + position: absolute; + bottom: 8px; + left: 8px; + } + } + } + } +} + +.o_form_view { + .o_payment_acquirer_desc { + margin-top: 10px; + ul { + list-style-type: none; + padding: 0; + + i.fa { + margin-right: 5px; + + &.fa-check { + color: green; + } + } + } + } + .o_warning_text { + color: #f0ad4e; + } +} diff --git a/addons/payment/static/src/scss/payment_form.scss b/addons/payment/static/src/scss/payment_form.scss new file mode 100644 index 00000000..de1e0102 --- /dev/null +++ b/addons/payment/static/src/scss/payment_form.scss @@ -0,0 +1,56 @@ +.o_payment_form { + label > input[type="radio"], input[type="checkbox"]{ + vertical-align: middle; + margin-right: 5px; + } + + .payment_option_name { + font-size: 14px; + font-weight: normal !important; + font-family: Helvetica Neue, sans-serif; + line-height: 1.3em; + color: #4d4d4d; + } + + label { + font-weight: normal; + margin-top: 5px; + } + + .card-body:first-child { + border-top: 0px; + } + + .card { + border-radius: 10px; + } + + .card-footer:last-child { + border-bottom-right-radius: 10px !important; + border-bottom-left-radius: 10px !important; + } + + .card-body { + border-top: 1px solid #ddd; + padding: 1.14em !important; + &.o_payment_acquirer_select:hover { + cursor: pointer; + } + } + + .payment_icon_list { + position: relative; + li { + padding-left: 5px !important; + padding-right: 0px !important; + } + + .more_option { + @include o-position-absolute($right: 10px); + font-size:10px; + } + + margin-top: 0px !important; + margin-bottom: -5px !important; + } +} diff --git a/addons/payment/static/src/scss/portal_payment.scss b/addons/payment/static/src/scss/portal_payment.scss new file mode 100644 index 00000000..4a28f596 --- /dev/null +++ b/addons/payment/static/src/scss/portal_payment.scss @@ -0,0 +1,61 @@ +input#cc_number { + background-repeat: no-repeat; + background-position: center right calc(2.7em); +} + +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.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; +} + +ul.payment_method_list img.rounded { + max-width: 100px; + max-height: 40px; +} |
