Skip to content

Commit 4ec7f99

Browse files
committed
MAGETWO-58251: PayPal Best Practice to Separate Saved Tokens
- css refactoring
1 parent cecb183 commit 4ec7f99

File tree

3 files changed

+33
-3
lines changed
  • app
    • code/Magento/Checkout/view/frontend/web/template/payment-methods
    • design/frontend/Magento

3 files changed

+33
-3
lines changed

app/code/Magento/Checkout/view/frontend/web/template/payment-methods/list.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
-->
77
<div if="isPaymentMethodsAvailable()"
88
class="items payment-methods">
9-
<div repeat="foreach: paymentGroupsList, item: '$group'">
9+
<div repeat="foreach: paymentGroupsList, item: '$group'"
10+
class="payment-methods-list">
1011
<div if="getRegion($group().displayArea)().length"
1112
translate="getGroupTitle($group)"
1213
class="step-title"

app/design/frontend/Magento/blank/Magento_Checkout/web/css/source/module/checkout/_payments.less

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
.checkout-payment-method {
2626
.step-title {
2727
margin-bottom: 0;
28+
border-bottom: 0;
2829
}
2930

3031
.payment-method {
@@ -39,6 +40,12 @@
3940
display: block;
4041
}
4142
}
43+
44+
& + .payment-method {
45+
.payment-method-title {
46+
.lib-css(border-top, @checkout-payment-method-title__border);
47+
}
48+
}
4249
}
4350

4451
.payment-method-content {
@@ -54,7 +61,6 @@
5461
}
5562

5663
.payment-method-title {
57-
.lib-css(border-top, @checkout-payment-method-title__border);
5864
.lib-css(padding, @checkout-payment-method-title__padding 0);
5965
margin: 0;
6066

@@ -80,6 +86,14 @@
8086
}
8187
}
8288

89+
.payment-methods-list {
90+
& + .payment-methods-list {
91+
.step-title {
92+
margin: @indent__base 0 0;
93+
}
94+
}
95+
}
96+
8397
.field-select-billing,
8498
.billing-address-form {
8599
.lib-css(max-width, @checkout-billing-address-form__max-width);

app/design/frontend/Magento/luma/Magento_Checkout/web/css/source/module/checkout/_payments.less

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
.checkout-payment-method {
2626
.step-title {
2727
margin-bottom: 0;
28+
border-bottom: 0;
2829
}
2930

3031
.payment-method {
@@ -39,6 +40,13 @@
3940
display: block;
4041
}
4142
}
43+
44+
& + .payment-method {
45+
.payment-method-title {
46+
.lib-css(border-top, @checkout-payment-method-title__border);
47+
}
48+
}
49+
4250
}
4351

4452
.payment-method-content {
@@ -54,7 +62,6 @@
5462
}
5563

5664
.payment-method-title {
57-
.lib-css(border-top, @checkout-payment-method-title__border);
5865
.lib-css(padding, @checkout-payment-method-title__padding 0);
5966
margin: 0;
6067

@@ -80,6 +87,14 @@
8087
}
8188
}
8289

90+
.payment-methods-list {
91+
& + .payment-methods-list {
92+
.step-title {
93+
margin: @indent__base 0 0;
94+
}
95+
}
96+
}
97+
8398
.field-select-billing,
8499
.billing-address-form {
85100
.lib-css(max-width, @checkout-billing-address-form__max-width);

0 commit comments

Comments
 (0)