order-receipt-css.php
33 lines
| 1 | <?php /* phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped */ ?> |
| 2 | html { font-family: "Helvetica Neue", sans-serif; font-size: <?php echo $data['constants']['font_size']; ?>pt; } |
| 3 | header { margin-top: <?php echo $data['constants']['margin']; ?>; } |
| 4 | h1 { font-size: <?php echo $data['constants']['title_font_size']; ?>pt; font-weight: 500; text-align: center; } |
| 5 | h3 { color: #707070; margin:0; } |
| 6 | table { |
| 7 | background-color:#F5F5F5; |
| 8 | width:100%; |
| 9 | color: #707070; |
| 10 | margin: <?php echo $data['constants']['margin'] / 2; ?>pt 0; |
| 11 | padding: <?php echo $data['constants']['margin'] / 2; ?>pt; |
| 12 | } |
| 13 | table td:last-child { width: 30%; text-align: right; } |
| 14 | table tr:last-child { color: #000000; font-weight: bold; } |
| 15 | footer { |
| 16 | font-size: <?php echo $data['constants']['footer_font_size']; ?>pt; |
| 17 | border-top: 1px solid #707070; |
| 18 | margin-top: <?php echo $data['constants']['margin']; ?>pt; |
| 19 | padding-top: <?php echo $data['constants']['margin']; ?>pt; |
| 20 | } |
| 21 | p { line-height: <?php echo $data['constants']['line_height']; ?>pt; margin: 0 0 <?php echo $data['constants']['margin'] / 2; ?> 0; } |
| 22 | <?php if ( isset( $data['payment_info'] ) ) { ?> |
| 23 | .card-icon { |
| 24 | width: <?php echo $data['constants']['icon_width']; ?>pt; |
| 25 | height: <?php echo $data['constants']['icon_height']; ?>pt; |
| 26 | vertical-align: top; |
| 27 | background-repeat: no-repeat; |
| 28 | background-position-y: center; |
| 29 | display: inline-block; |
| 30 | background-image: url("data:image/svg+xml;base64,<?php echo $data['payment_info']['card_icon']; ?>"); |
| 31 | } |
| 32 | <?php } ?> |
| 33 |