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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
block 1 month ago plain 1 month ago admin-cancelled-order.php 1 year ago admin-failed-order.php 6 months ago admin-new-order.php 6 months ago admin-payment-gateway-enabled.php 2 months ago customer-cancelled-order.php 6 months ago customer-completed-order.php 6 months ago customer-failed-order.php 6 months ago customer-fulfillment-created.php 6 months ago customer-fulfillment-deleted.php 6 months ago customer-fulfillment-updated.php 1 month ago customer-invoice.php 6 months ago customer-new-account.php 6 months ago customer-note.php 6 months ago customer-on-hold-order.php 6 months ago customer-pos-completed-order.php 6 months ago customer-pos-refunded-order.php 6 months ago customer-processing-order.php 6 months ago customer-refunded-order.php 6 months ago customer-reset-password.php 6 months ago customer-stock-notification-verified.php 9 months ago customer-stock-notification-verify.php 9 months ago customer-stock-notification.php 9 months ago email-addresses.php 3 months ago email-customer-details.php 1 year ago email-downloads.php 6 months ago email-footer.php 6 months ago email-fulfillment-details.php 2 months ago email-fulfillment-items.php 1 month ago email-header.php 2 months ago email-mobile-messaging.php 2 years ago email-order-details.php 1 month ago email-order-items.php 1 month ago email-styles.php 1 month ago
email-styles.php
550 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://woocommerce.com/document/template-structure/
14 * @package WooCommerce\Templates\Emails
15 * @version 10.8.0
16 */
17
18 use Automattic\WooCommerce\Internal\Email\EmailFont;
19 use Automattic\WooCommerce\Utilities\FeaturesUtil;
20
21 if ( ! defined( 'ABSPATH' ) ) {
22 exit;
23 }
24
25 $email_improvements_enabled = FeaturesUtil::feature_is_enabled( 'email_improvements' );
26 $block_email_editor_enabled = FeaturesUtil::feature_is_enabled( 'block_email_editor' );
27
28 // Load colors.
29 $bg = get_option( 'woocommerce_email_background_color' );
30 $body = get_option( 'woocommerce_email_body_background_color' );
31 $base = get_option( 'woocommerce_email_base_color' );
32 $text = get_option( 'woocommerce_email_text_color' );
33 $footer_text = get_option( 'woocommerce_email_footer_text_color' );
34 $header_alignment = get_option( 'woocommerce_email_header_alignment', $email_improvements_enabled ? ( is_rtl() ? 'right' : 'left' ) : false );
35 $logo_image_width = get_option( 'woocommerce_email_header_image_width', '120' );
36 $default_font = 'Helvetica';
37 $font_family = $email_improvements_enabled ? get_option( 'woocommerce_email_font_family', $default_font ) : $default_font;
38
39 /**
40 * Check if we are in preview mode (WooCommerce > Settings > Emails).
41 *
42 * @since 9.6.0
43 * @param bool $is_email_preview Whether the email is being previewed.
44 */
45 $is_email_preview = apply_filters( 'woocommerce_is_email_preview', false );
46
47 if ( $is_email_preview ) {
48 $bg_transient = get_transient( 'woocommerce_email_background_color' );
49 $body_transient = get_transient( 'woocommerce_email_body_background_color' );
50 $base_transient = get_transient( 'woocommerce_email_base_color' );
51 $text_transient = get_transient( 'woocommerce_email_text_color' );
52 $footer_text_transient = get_transient( 'woocommerce_email_footer_text_color' );
53 $header_alignment_transient = get_transient( 'woocommerce_email_header_alignment' );
54 $logo_image_width_transient = get_transient( 'woocommerce_email_header_image_width' );
55 $font_family_transient = get_transient( 'woocommerce_email_font_family' );
56
57 $bg = $bg_transient ? $bg_transient : $bg;
58 $body = $body_transient ? $body_transient : $body;
59 $base = $base_transient ? $base_transient : $base;
60 $text = $text_transient ? $text_transient : $text;
61 $footer_text = $footer_text_transient ? $footer_text_transient : $footer_text;
62 $header_alignment = $header_alignment_transient ? $header_alignment_transient : $header_alignment;
63 $logo_image_width = $logo_image_width_transient ? $logo_image_width_transient : $logo_image_width;
64 $font_family = $font_family_transient ? $font_family_transient : $font_family;
65 }
66
67 // Only use safe fonts. They won't be escaped to preserve single quotes.
68 $safe_font_family = EmailFont::$font[ $font_family ] ?? EmailFont::$font[ $default_font ];
69
70 $base_text = wc_light_or_dark( $base, '#202020', '#ffffff' );
71
72 // Pick a contrasting color for links.
73 $link_color = wc_hex_is_light( $base ) ? $base : $base_text;
74
75 if ( wc_hex_is_light( $body ) ) {
76 $link_color = wc_hex_is_light( $base ) ? $base_text : $base;
77 }
78
79 // If email improvements are enabled, always use the base color for links.
80 if ( $email_improvements_enabled ) {
81 $link_color = $base;
82 }
83
84 $border_color = wc_light_or_dark( $body, 'rgba(0, 0, 0, .2)', 'rgba(255, 255, 255, .2)' );
85 $bg_darker_10 = wc_hex_darker( $bg, 10 );
86 $body_darker_10 = wc_hex_darker( $body, 10 );
87 $base_lighter_20 = wc_hex_lighter( $base, 20 );
88 $base_lighter_40 = wc_hex_lighter( $base, 40 );
89 $text_lighter_20 = wc_hex_lighter( $text, 20 );
90 $text_lighter_40 = wc_hex_lighter( $text, 40 );
91
92 // !important; is a gmail hack to prevent styles being stripped if it doesn't like something.
93 // body{padding: 0;} ensures proper scale/positioning of the email in the iOS native email app.
94 ?>
95 body {
96 background-color: <?php echo esc_attr( $bg ); ?>;
97 padding: 0;
98 text-align: center;
99 }
100
101 #outer_wrapper {
102 background-color: <?php echo esc_attr( $bg ); ?>;
103 }
104
105 <?php if ( $email_improvements_enabled ) : ?>
106 #inner_wrapper {
107 background-color: <?php echo esc_attr( $body ); ?>;
108 border-radius: 8px;
109 }
110 <?php endif; ?>
111
112 #wrapper {
113 margin: 0 auto;
114 padding: <?php echo $email_improvements_enabled ? '24px 0' : '70px 0'; ?>;
115 -webkit-text-size-adjust: none !important;
116 width: 100%;
117 max-width: 600px;
118 }
119
120 #template_container {
121 box-shadow: <?php echo $email_improvements_enabled ? 'none' : '0 1px 4px rgba(0, 0, 0, 0.1) !important'; ?>;
122 background-color: <?php echo esc_attr( $body ); ?>;
123 border: <?php echo $email_improvements_enabled ? '0' : '1px solid ' . esc_attr( $bg_darker_10 ); ?>;
124 border-radius: 3px !important;
125 }
126
127 #template_header {
128 background-color: <?php echo esc_attr( $email_improvements_enabled ? $body : $base ); ?>;
129 border-radius: 3px 3px 0 0 !important;
130 color: <?php echo esc_attr( $email_improvements_enabled ? $text : $base_text ); ?>;
131 border-bottom: 0;
132 font-weight: bold;
133 line-height: 100%;
134 vertical-align: middle;
135 font-family: <?php echo $safe_font_family; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
136 }
137
138 #template_header h1,
139 #template_header h1 a {
140 color: <?php echo esc_attr( $email_improvements_enabled ? $text : $base_text ); ?>;
141 background-color: inherit;
142 }
143
144 <?php if ( $email_improvements_enabled ) : ?>
145 .hr {
146 border-bottom: 1px solid #1e1e1e;
147 opacity: 0.2;
148 margin: 16px 0;
149 }
150
151 .hr-top {
152 margin-top: 32px;
153 }
154
155 .hr-bottom {
156 margin-bottom: 32px;
157 }
158
159 #template_header_image {
160 padding: 32px 32px 0;
161 }
162
163 #template_header_image p {
164 margin-bottom: 0;
165 text-align: <?php echo esc_attr( $header_alignment ); ?>;
166 }
167
168 #template_header_image img {
169 width: <?php echo esc_attr( $logo_image_width ); ?>px;
170 margin-<?php echo is_rtl() ? 'left' : 'right'; ?>: 0;
171 }
172
173 .email-logo-text {
174 color: <?php echo esc_attr( $link_color ); ?>;
175 font-family: <?php echo $safe_font_family; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
176 font-size: 18px;
177 }
178
179 .email-introduction {
180 padding-bottom: 24px;
181 }
182
183 .email-order-item-meta {
184 color: <?php echo esc_attr( $footer_text ); ?>;
185 font-size: 14px;
186 line-height: 140%;
187 }
188
189 #body_content table td td.email-additional-content {
190 color: <?php echo esc_attr( $text ); ?>;
191 font-family: <?php echo $safe_font_family; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
192 padding: 32px 0 0;
193 }
194
195 .email-additional-content p {
196 text-align: center;
197 }
198
199 .email-additional-content-aligned p {
200 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
201 }
202
203 <?php else : ?>
204
205 #template_header_image img {
206 margin-left: 0;
207 margin-right: 0;
208 }
209 <?php endif; ?>
210
211 #template_footer td {
212 padding: 0;
213 border-radius: <?php echo $email_improvements_enabled ? '0' : '6px'; ?>;
214 }
215
216 #template_footer #credit {
217 border: 0;
218 <?php if ( $email_improvements_enabled ) : ?>
219 border-top: 1px solid <?php echo esc_attr( $border_color ); ?>;
220 <?php endif; ?>
221 color: <?php echo esc_attr( $footer_text ); ?>;
222 font-family: <?php echo $safe_font_family; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
223 font-size: 12px;
224 line-height: <?php echo $email_improvements_enabled ? '140%' : '150%'; ?>;
225 text-align: center;
226 padding: <?php echo $email_improvements_enabled ? '32px' : '24px 0'; ?>;
227 }
228
229 #template_footer #credit p {
230 margin: <?php echo $email_improvements_enabled ? '0' : '0 0 16px'; ?>;
231 }
232
233 #body_content {
234 background-color: <?php echo esc_attr( $body ); ?>;
235 }
236
237 #body_content table td {
238 padding: <?php echo $email_improvements_enabled ? '20px 32px 32px' : '48px 48px 32px'; ?>;
239 }
240
241 #body_content table td td {
242 padding: 12px;
243 }
244
245 #body_content table td th {
246 padding: 12px;
247 }
248
249 #body_content table .email-order-details td,
250 #body_content table .email-order-details th {
251 padding: 8px 12px;
252 }
253
254 #body_content table .email-order-details td:first-child,
255 #body_content table .email-order-details th:first-child {
256 padding-<?php echo is_rtl() ? 'right' : 'left'; ?>: 0;
257 }
258
259 #body_content table .email-order-details td:last-child,
260 #body_content table .email-order-details th:last-child {
261 padding-<?php echo is_rtl() ? 'left' : 'right'; ?>: 0;
262 }
263
264 #body_content .email-order-details tbody tr:last-child td {
265 border-bottom: 1px solid <?php echo esc_attr( $border_color ); ?>;
266 padding-bottom: 24px;
267 }
268
269 #body_content .email-order-details tfoot tr:first-child td,
270 #body_content .email-order-details tfoot tr:first-child th {
271 padding-top: 24px;
272 }
273
274 #body_content .order-item-data td {
275 border: 0 !important;
276 padding: 0 !important;
277 vertical-align: top;
278 }
279
280 #body_content .email-order-details .order-totals td,
281 #body_content .email-order-details .order-totals th {
282 font-weight: normal;
283 padding-bottom: 5px;
284 padding-top: 5px;
285 }
286
287 #body_content .email-order-details .order-totals .includes_tax {
288 display: block;
289 }
290
291 #body_content .email-order-details .order-totals-total th {
292 font-weight: bold;
293 }
294
295 #body_content .email-order-details .order-totals-total td {
296 font-weight: bold;
297 font-size: 20px;
298 }
299
300 #body_content .email-order-details .order-totals-last td,
301 #body_content .email-order-details .order-totals-last th {
302 border-bottom: 1px solid <?php echo esc_attr( $border_color ); ?>;
303 padding-bottom: 24px;
304 }
305
306 #body_content .email-order-details .order-customer-note td {
307 border-bottom: 1px solid <?php echo esc_attr( $border_color ); ?>;
308 padding-bottom: 24px;
309 padding-top: 24px;
310 }
311
312 #body_content td ul.wc-item-meta {
313 font-size: small;
314 margin: 1em 0 0;
315 padding: 0;
316 list-style: none;
317 }
318
319 #body_content td ul.wc-item-meta li {
320 margin: 0.5em 0 0;
321 padding: 0;
322 }
323
324 #body_content td ul.wc-item-meta li p {
325 margin: 0;
326 }
327
328 #body_content .email-order-details .wc-item-meta-label {
329 clear: both;
330 float: <?php echo is_rtl() ? 'right' : 'left'; ?>;
331 font-weight: normal;
332 margin-<?php echo is_rtl() ? 'left' : 'right'; ?>: .25em;
333 }
334
335 #body_content p {
336 margin: 0 0 16px;
337 }
338
339 #body_content_inner {
340 color: <?php echo esc_attr( $text_lighter_20 ); ?>;
341 font-family: <?php echo $safe_font_family; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
342 font-size: <?php echo $email_improvements_enabled ? '16px' : '14px'; ?>;
343 line-height: 150%;
344 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
345 }
346
347 .td {
348 color: <?php echo esc_attr( $text_lighter_20 ); ?>;
349 border: <?php echo $email_improvements_enabled ? '0' : '1px solid ' . esc_attr( $body_darker_10 ); ?>;
350 vertical-align: middle;
351 }
352
353 .address {
354 <?php if ( $email_improvements_enabled ) { ?>
355 color: <?php echo esc_attr( $text ); ?>;
356 font-style: normal;
357 line-height: 120%;
358 padding: 8px 0;
359 <?php } else { ?>
360 padding: 12px;
361 color: <?php echo esc_attr( $text_lighter_20 ); ?>;
362 border: 1px solid <?php echo esc_attr( $body_darker_10 ); ?>;
363 <?php } ?>
364 word-break: break-all;
365 }
366
367 <?php if ( $email_improvements_enabled ) : ?>
368 #addresses td + td {
369 padding-<?php echo is_rtl() ? 'right' : 'left'; ?>: 10px !important;
370 }
371 <?php endif; ?>
372
373 .additional-fields {
374 padding: 12px 12px 0;
375 color: <?php echo esc_attr( $text_lighter_20 ); ?>;
376 border: 1px solid <?php echo esc_attr( $body_darker_10 ); ?>;
377 list-style: none outside;
378 }
379
380 .additional-fields li {
381 margin: 0 0 12px 0;
382 }
383
384 .text,
385 .address-title,
386 .order-item-data {
387 color: <?php echo esc_attr( $text ); ?>;
388 font-family: <?php echo $safe_font_family; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
389 }
390
391 .link {
392 color: <?php echo esc_attr( $link_color ); ?>;
393 }
394
395 #header_wrapper {
396 padding: <?php echo $email_improvements_enabled ? '20px 32px 0' : '36px 48px'; ?>;
397 display: block;
398 }
399
400 <?php if ( $header_alignment ) : ?>
401 #header_wrapper h1 {
402 text-align: <?php echo esc_attr( $header_alignment ); ?>;
403 }
404 <?php endif; ?>
405
406 #template_footer #credit,
407 #template_footer #credit a {
408 color: <?php echo esc_attr( $footer_text ); ?>;
409 }
410
411 h1 {
412 color: <?php echo esc_attr( $email_improvements_enabled ? $text : $base ); ?>;
413 font-family: <?php echo $safe_font_family; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
414 font-size: <?php echo $email_improvements_enabled ? '32px' : '30px'; ?>;
415 font-weight: <?php echo $email_improvements_enabled ? 700 : 300; ?>;
416 <?php if ( $email_improvements_enabled ) : ?>
417 letter-spacing: -1px;
418 <?php endif; ?>
419 line-height: <?php echo $email_improvements_enabled ? '120%' : '150%'; ?>;
420 margin: 0;
421 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
422 <?php if ( ! $email_improvements_enabled ) : ?>
423 text-shadow: 0 1px 0 <?php echo esc_attr( $base_lighter_20 ); ?>;
424 <?php endif; ?>
425 }
426
427 h2 {
428 color: <?php echo esc_attr( $email_improvements_enabled ? $text : $base ); ?>;
429 display: block;
430 font-family: <?php echo $safe_font_family; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
431 font-size: <?php echo $email_improvements_enabled ? '20px' : '18px'; ?>;
432 font-weight: bold;
433 line-height: <?php echo $email_improvements_enabled ? '160%' : '130%'; ?>;
434 margin: 0 0 18px;
435 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
436 }
437
438 h3 {
439 color: <?php echo esc_attr( $email_improvements_enabled ? $text : $base ); ?>;
440 display: block;
441 font-family: <?php echo $safe_font_family; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
442 font-size: 16px;
443 font-weight: bold;
444 line-height: <?php echo $email_improvements_enabled ? '160%' : '130%'; ?>;
445 margin: 16px 0 8px;
446 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
447 }
448
449 a {
450 color: <?php echo esc_attr( $link_color ); ?>;
451 font-weight: normal;
452 text-decoration: underline;
453 }
454
455 img {
456 border: none;
457 display: inline-block;
458 font-size: 14px;
459 font-weight: bold;
460 height: auto;
461 outline: none;
462 text-decoration: none;
463 text-transform: capitalize;
464 vertical-align: <?php echo $block_email_editor_enabled ? 'top' : 'middle'; ?>;
465 margin-<?php echo is_rtl() ? 'left' : 'right'; ?>: <?php echo $email_improvements_enabled ? '24px' : '10px'; ?>;
466 max-width: 100%;
467 }
468
469 h2.email-order-detail-heading span {
470 color: <?php echo esc_attr( $footer_text ); ?>;
471 display: block;
472 font-size: 14px;
473 font-weight: normal;
474 }
475
476 h2.email-order-detail-heading span a {
477 text-decoration: none;
478 }
479
480 .font-family {
481 font-family: <?php echo $safe_font_family; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
482 }
483
484 .text-align-left {
485 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
486 }
487
488 .text-align-right {
489 text-align: <?php echo is_rtl() ? 'left' : 'right'; ?>;
490 }
491
492 /**
493 * Media queries are not supported by all email clients, however they do work on modern mobile
494 * Gmail clients and can help us achieve better consistency there.
495 */
496 @media screen and (max-width: 600px) {
497 <?php if ( $email_improvements_enabled ) : ?>
498 #template_header_image {
499 padding: 16px 10px 0 !important;
500 }
501
502 #header_wrapper {
503 padding: 16px 10px 0 !important;
504 }
505
506 #header_wrapper h1 {
507 font-size: 24px !important;
508 }
509
510 #body_content_inner_cell {
511 padding: 10px !important;
512 }
513
514 #body_content_inner {
515 font-size: 12px !important;
516 }
517
518 .email-order-item-meta {
519 font-size: 12px !important;
520 }
521
522 #body_content .email-order-details .order-totals-total td {
523 font-size: 14px !important;
524 }
525
526 .email-order-detail-heading {
527 font-size: 16px !important;
528 line-height: 130% !important;
529 }
530
531 .email-additional-content {
532 padding-top: 16px !important;
533 }
534 <?php else : ?>
535 #header_wrapper {
536 padding: 27px 36px !important;
537 font-size: 24px;
538 }
539
540 #body_content table > tbody > tr > td {
541 padding: 10px !important;
542 }
543
544 #body_content_inner {
545 font-size: 10px !important;
546 }
547 <?php endif; ?>
548 }
549 <?php
550