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3.2.1 6.3.0-beta.1 3.2.2 6.3.0-rc.1 3.2.3 6.3.0-rc.2 3.2.4 6.3.1 3.2.5 6.3.2 3.2.6 6.4.0 3.3.0 6.4.0-beta.1 3.3.1 6.4.0-rc.1 3.3.2 6.4.1 3.3.2-rc.1 6.4.2 3.3.3 6.5.0 3.3.4 6.5.0-beta.1 3.3.5 6.5.0-rc.1 3.3.6 6.5.0-rc.2 3.4.0 6.5.1 3.4.0-beta.1 6.5.2 3.4.0-rc.2 6.6.0 3.4.1 6.6.0-beta.1 3.4.2 6.6.0-rc.1 3.4.3 6.6.0-rc.2 3.4.4 6.6.1 3.4.5 6.6.2 3.4.6 6.7.0 3.4.7 6.7.0-beta.1 3.4.8 6.7.0-beta.2 3.5.0 6.7.0-rc.1 3.5.0-beta.1 6.7.1 3.5.0-rc.1 6.8.0 3.5.0-rc.2 6.8.0-beta.1 3.5.1 6.8.0-beta.2 3.5.10 6.8.0-rc.1 3.5.2 6.8.1 3.5.3 6.8.2 3.5.4 6.8.3 3.5.5 6.9.0 3.5.6 6.9.0-beta.1 3.5.7 6.9.0-beta.2 3.5.8 6.9.0-rc.1 3.5.9 6.9.1 3.6.0 6.9.2 3.6.0-beta.1 6.9.3 3.6.0-rc.1 6.9.4 3.6.0-rc.2 6.9.5 3.6.0-rc.3 7.0.0 3.6.1 7.0.0-beta.1 3.6.2 7.0.0-beta.2 3.6.3 7.0.0-beta.3 3.6.4 7.0.0-rc.1 3.6.5 7.0.0-rc.2 3.6.6 7.0.1 3.6.7 7.0.2 3.7.0 7.1.0 3.7.0-beta.1 7.1.0-beta.1 3.7.0-rc.1 7.1.0-beta.2 3.7.0-rc.2 7.1.0-rc.1 3.7.1 7.1.0-rc.2 3.7.2 7.1.1
woocommerce / templates / emails / email-styles.php
woocommerce / templates / emails Last commit date
plain 7 years ago admin-cancelled-order.php 7 years ago admin-failed-order.php 7 years ago admin-new-order.php 7 years ago customer-completed-order.php 7 years ago customer-invoice.php 7 years ago customer-new-account.php 7 years ago customer-note.php 7 years ago customer-on-hold-order.php 7 years ago customer-processing-order.php 7 years ago customer-refunded-order.php 7 years ago customer-reset-password.php 7 years ago email-addresses.php 7 years ago email-customer-details.php 7 years ago email-downloads.php 8 years ago email-footer.php 7 years ago email-header.php 7 years ago email-order-details.php 7 years ago email-order-items.php 7 years ago email-styles.php 7 years ago
email-styles.php
217 lines
1 <?php
2 /**
3 * Email Styles
4 *
5 * This template can be overridden by copying it to yourtheme/woocommerce/emails/email-styles.php.
6 *
7 * HOWEVER, on occasion WooCommerce will need to update template files and you
8 * (the theme developer) will need to copy the new files to your theme to
9 * maintain compatibility. We try to do this as little as possible, but it does
10 * happen. When this occurs the version of the template file will be bumped and
11 * the readme will list any important changes.
12 *
13 * @see https://docs.woocommerce.com/document/template-structure/
14 * @package WooCommerce/Templates/Emails
15 * @version 3.3.0
16 */
17
18 if ( ! defined( 'ABSPATH' ) ) {
19 exit;
20 }
21
22 // Load colors.
23 $bg = get_option( 'woocommerce_email_background_color' );
24 $body = get_option( 'woocommerce_email_body_background_color' );
25 $base = get_option( 'woocommerce_email_base_color' );
26 $base_text = wc_light_or_dark( $base, '#202020', '#ffffff' );
27 $text = get_option( 'woocommerce_email_text_color' );
28
29 // Pick a contrasting color for links.
30 $link_color = wc_hex_is_light( $base ) ? $base : $base_text;
31
32 if ( wc_hex_is_light( $body ) ) {
33 $link_color = wc_hex_is_light( $base ) ? $base_text : $base;
34 }
35
36 $bg_darker_10 = wc_hex_darker( $bg, 10 );
37 $body_darker_10 = wc_hex_darker( $body, 10 );
38 $base_lighter_20 = wc_hex_lighter( $base, 20 );
39 $base_lighter_40 = wc_hex_lighter( $base, 40 );
40 $text_lighter_20 = wc_hex_lighter( $text, 20 );
41
42 // !important; is a gmail hack to prevent styles being stripped if it doesn't like something.
43 // body{padding: 0;} ensures proper scale/positioning of the email in the iOS native email app.
44 ?>
45 body {
46 padding: 0;
47 }
48
49 #wrapper {
50 background-color: <?php echo esc_attr( $bg ); ?>;
51 margin: 0;
52 padding: 70px 0;
53 -webkit-text-size-adjust: none !important;
54 width: 100%;
55 }
56
57 #template_container {
58 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
59 background-color: <?php echo esc_attr( $body ); ?>;
60 border: 1px solid <?php echo esc_attr( $bg_darker_10 ); ?>;
61 border-radius: 3px !important;
62 }
63
64 #template_header {
65 background-color: <?php echo esc_attr( $base ); ?>;
66 border-radius: 3px 3px 0 0 !important;
67 color: <?php echo esc_attr( $base_text ); ?>;
68 border-bottom: 0;
69 font-weight: bold;
70 line-height: 100%;
71 vertical-align: middle;
72 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
73 }
74
75 #template_header h1,
76 #template_header h1 a {
77 color: <?php echo esc_attr( $base_text ); ?>;
78 }
79
80 #template_footer td {
81 padding: 0;
82 border-radius: 6px;
83 }
84
85 #template_footer #credit {
86 border: 0;
87 color: <?php echo esc_attr( $base_lighter_40 ); ?>;
88 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
89 font-size: 12px;
90 line-height: 125%;
91 text-align: center;
92 padding: 0 48px 48px 48px;
93 }
94
95 #body_content {
96 background-color: <?php echo esc_attr( $body ); ?>;
97 }
98
99 #body_content table td {
100 padding: 48px 48px 0;
101 }
102
103 #body_content table td td {
104 padding: 12px;
105 }
106
107 #body_content table td th {
108 padding: 12px;
109 }
110
111 #body_content td ul.wc-item-meta {
112 font-size: small;
113 margin: 1em 0 0;
114 padding: 0;
115 list-style: none;
116 }
117
118 #body_content td ul.wc-item-meta li {
119 margin: 0.5em 0 0;
120 padding: 0;
121 }
122
123 #body_content td ul.wc-item-meta li p {
124 margin: 0;
125 }
126
127 #body_content p {
128 margin: 0 0 16px;
129 }
130
131 #body_content_inner {
132 color: <?php echo esc_attr( $text_lighter_20 ); ?>;
133 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
134 font-size: 14px;
135 line-height: 150%;
136 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
137 }
138
139 .td {
140 color: <?php echo esc_attr( $text_lighter_20 ); ?>;
141 border: 1px solid <?php echo esc_attr( $body_darker_10 ); ?>;
142 vertical-align: middle;
143 }
144
145 .address {
146 padding: 12px;
147 color: <?php echo esc_attr( $text_lighter_20 ); ?>;
148 border: 1px solid <?php echo esc_attr( $body_darker_10 ); ?>;
149 }
150
151 .text {
152 color: <?php echo esc_attr( $text ); ?>;
153 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
154 }
155
156 .link {
157 color: <?php echo esc_attr( $base ); ?>;
158 }
159
160 #header_wrapper {
161 padding: 36px 48px;
162 display: block;
163 }
164
165 h1 {
166 color: <?php echo esc_attr( $base ); ?>;
167 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
168 font-size: 30px;
169 font-weight: 300;
170 line-height: 150%;
171 margin: 0;
172 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
173 text-shadow: 0 1px 0 <?php echo esc_attr( $base_lighter_20 ); ?>;
174 }
175
176 h2 {
177 color: <?php echo esc_attr( $base ); ?>;
178 display: block;
179 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
180 font-size: 18px;
181 font-weight: bold;
182 line-height: 130%;
183 margin: 0 0 18px;
184 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
185 }
186
187 h3 {
188 color: <?php echo esc_attr( $base ); ?>;
189 display: block;
190 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
191 font-size: 16px;
192 font-weight: bold;
193 line-height: 130%;
194 margin: 16px 0 8px;
195 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
196 }
197
198 a {
199 color: <?php echo esc_attr( $link_color ); ?>;
200 font-weight: normal;
201 text-decoration: underline;
202 }
203
204 img {
205 border: none;
206 display: inline-block;
207 font-size: 14px;
208 font-weight: bold;
209 height: auto;
210 outline: none;
211 text-decoration: none;
212 text-transform: capitalize;
213 vertical-align: middle;
214 margin-<?php echo is_rtl() ? 'left' : 'right'; ?>: 10px;
215 }
216 <?php
217