| 1 |
<?php |
| 2 |
/** |
| 3 |
* Email Styles |
| 4 |
* |
| 5 |
* This template can be overridden by copying it to yourtheme/propertyhive/emails/email-styles.php. |
| 6 |
* |
| 7 |
* @author PropertyHive |
| 8 |
* @package PropertyHive/Templates/Emails |
| 9 |
* @version 1.0.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 13 |
|
| 14 |
// Load colours |
| 15 |
$bg = get_option( 'propertyhive_email_background_color' ); |
| 16 |
$body = get_option( 'propertyhive_email_body_background_color' ); |
| 17 |
$text = get_option( 'propertyhive_email_text_color' ); |
| 18 |
|
| 19 |
$bg_darker_10 = ph_hex_darker( $bg, 10 ); |
| 20 |
$body_darker_10 = ph_hex_darker( $body, 10 ); |
| 21 |
$text_lighter_20 = ph_hex_lighter( $text, 20 ); |
| 22 |
|
| 23 |
// !important; is a gmail hack to prevent styles being stripped if it doesn't like something. |
| 24 |
?> |
| 25 |
body { |
| 26 |
background-color: <?php echo esc_attr( $bg ); ?>; |
| 27 |
} |
| 28 |
#wrapper { |
| 29 |
background-color: <?php echo esc_attr( $bg ); ?>; |
| 30 |
margin: 0; |
| 31 |
padding: 30px 0 30px 0; |
| 32 |
-webkit-text-size-adjust: none !important; |
| 33 |
width: 100%; |
| 34 |
} |
| 35 |
|
| 36 |
#template_container { |
| 37 |
background-color: <?php echo esc_attr( $body ); ?>; |
| 38 |
} |
| 39 |
|
| 40 |
#body_content { |
| 41 |
background-color: <?php echo esc_attr( $body ); ?>; |
| 42 |
} |
| 43 |
|
| 44 |
#body_content table td { |
| 45 |
padding: 34px; |
| 46 |
vertical-align: top; |
| 47 |
} |
| 48 |
|
| 49 |
#body_content table td th, |
| 50 |
#body_content table td td { |
| 51 |
padding:7px; |
| 52 |
} |
| 53 |
|
| 54 |
#body_content p { |
| 55 |
margin: 0 0 16px; |
| 56 |
} |
| 57 |
|
| 58 |
#body_content_inner { |
| 59 |
color: <?php echo esc_attr( $text ); ?>; |
| 60 |
font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; |
| 61 |
font-size: 14px; |
| 62 |
line-height: 150%; |
| 63 |
text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>; |
| 64 |
} |
| 65 |
|
| 66 |
.td { |
| 67 |
color: <?php echo esc_attr( $text_lighter_20 ); ?>; |
| 68 |
border: 1px solid <?php echo esc_attr( $body_darker_10 ); ?>; |
| 69 |
} |
| 70 |
|
| 71 |
.text { |
| 72 |
color: <?php echo esc_attr( $text ); ?>; |
| 73 |
font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; |
| 74 |
} |
| 75 |
|
| 76 |
.link { |
| 77 |
color: <?php echo esc_attr( $text_lighter_20 ); ?>; |
| 78 |
} |
| 79 |
|
| 80 |
#header_wrapper { |
| 81 |
padding: 36px 48px; |
| 82 |
display: block; |
| 83 |
} |
| 84 |
|
| 85 |
h1 { |
| 86 |
color: <?php echo esc_attr( $text_lighter_20 ); ?>; |
| 87 |
font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; |
| 88 |
font-size: 30px; |
| 89 |
font-weight: 300; |
| 90 |
line-height: 150%; |
| 91 |
margin: 0; |
| 92 |
text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>; |
| 93 |
-webkit-font-smoothing: antialiased; |
| 94 |
} |
| 95 |
|
| 96 |
h2 { |
| 97 |
color: <?php echo esc_attr( $text_lighter_20 ); ?>; |
| 98 |
display: block; |
| 99 |
font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; |
| 100 |
font-size: 18px; |
| 101 |
font-weight: bold; |
| 102 |
line-height: 130%; |
| 103 |
margin: 0 0 8px; |
| 104 |
text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>; |
| 105 |
} |
| 106 |
|
| 107 |
h3 { |
| 108 |
color: <?php echo esc_attr( $text_lighter_20 ); ?>; |
| 109 |
display: block; |
| 110 |
font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; |
| 111 |
font-size: 16px; |
| 112 |
font-weight: bold; |
| 113 |
line-height: 130%; |
| 114 |
margin: 0 0 8px; |
| 115 |
text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>; |
| 116 |
} |
| 117 |
|
| 118 |
a { |
| 119 |
color: <?php echo esc_attr( $text_lighter_20 ); ?>; |
| 120 |
font-weight: normal; |
| 121 |
text-decoration: underline; |
| 122 |
} |
| 123 |
|
| 124 |
img { |
| 125 |
border: none; |
| 126 |
display: inline; |
| 127 |
font-size: 14px; |
| 128 |
font-weight: bold; |
| 129 |
height: auto; |
| 130 |
line-height: 100%; |
| 131 |
outline: none; |
| 132 |
text-decoration: none; |
| 133 |
text-transform: capitalize; |
| 134 |
} |