Skip to content

Commit dfc0694

Browse files
author
Erik Hansen
committed
MAGETWO-37843: All responsive email templates in Blank Theme
- Sales emails font adjustments - Basic styling for offline payment methods - Tweaked spacing of order details (addresses, payment, shipping)
1 parent 3e5e1e9 commit dfc0694

File tree

1 file changed

+34
-7
lines changed
  • app/design/frontend/Magento/blank/Magento_Sales/web/css/source

1 file changed

+34
-7
lines changed

app/design/frontend/Magento/blank/Magento_Sales/web/css/source/_email.less

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@
77
// Sales Module Styles
88
// _____________________________________________
99

10+
.email-summary {
11+
h1 {
12+
margin-bottom: @indent__xs;
13+
}
14+
}
15+
16+
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__xs) {
17+
// Shrink order number in order email so it will fit on single line on small screens
18+
.email-summary {
19+
h1 {
20+
font-size: ceil(1.7 * @font-size__base) !important; // 24px
21+
}
22+
}
23+
}
24+
1025
//
1126
// Order Summary
1227
// ----------------------------------------------
@@ -16,24 +31,29 @@
1631

1732
tr {
1833
> td {
19-
padding: @email-content__padding__base;
34+
padding: @email-content__padding__base @email-content__padding__base @email-content__padding__base 0;
2035
width: 50%;
2136

2237
h3 {
23-
margin-top: @email-content__padding__base;
38+
margin-top: 0;
2439
}
2540
}
2641

42+
// Prevent extra spacing on Payment & Shipping Method row
2743
& + tr {
2844
> td {
29-
padding: 0 @email-content__padding__base @email-content__padding__base;
30-
31-
h3 {
32-
margin-top: 0;
33-
}
45+
padding: 0 0 @email-content__padding__base;
3446
}
3547
}
3648
}
49+
50+
.payment-method {
51+
margin-bottom: @indent__s;
52+
53+
.title {
54+
font-weight: @font-weight__regular;
55+
}
56+
}
3757
}
3858

3959
// Remove address and phone number link color on iOS
@@ -44,6 +64,13 @@
4464
.order-details {
4565
td {
4666
display: block;
67+
padding: @email-content__padding__base 0 !important;
68+
width: auto !important;
69+
70+
h3 {
71+
margin-top: 0 !important;
72+
margin-bottom: @indent__xs !important;
73+
}
4774
}
4875
}
4976
}

0 commit comments

Comments
 (0)