PluginProbe
ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce / 1.2.6
ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce v1.2.6
1.17.9 1.17.8 1.17.7 1.17.6 1.17.5 1.17.4 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.3.0 1.3.1 1.3.11 1.3.12 1.3.13 1.3.14 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 All 143 releases
erp / includes / email / email-css.php

email-css.php in ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce 1.2.6, at includes/email/email-css.php

194 lines 3.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Email Styles
4 */
5
6 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
7
8 // Load colours
9 $bg = get_option( 'erp_email_background_color', '#f5f5f5' );
10 $body = get_option( 'erp_email_body_background_color', '#ffffff' );
11 $base = get_option( 'erp_email_base_color', '#444444' );
12 $base_text = '#202020';
13 $text = get_option( 'erp_email_text_color', '#444444' );
14
15 $text_lighter_20 = '#555555';
16
17 // !important; is a gmail hack to prevent styles being stripped if it doesn't like something.
18 ?>
19 #wrapper {
20 background-color: <?php echo esc_attr( $bg ); ?>;
21 margin: 0;
22 padding: 70px 0 20px 0;
23 -webkit-text-size-adjust: none !important;
24 width: 100%;
25 }
26
27 .button {
28 background-color:#4CAF50;
29 border-radius:3px;
30 color:#ffffff;
31 display:inline-block;
32 font-family:sans-serif;
33 font-size:13px;
34 font-weight:bold;
35 line-height: 150%;
36 text-align:center;
37 text-decoration:none;
38 -webkit-text-size-adjust:none;
39 padding: 8px 20px;
40 }
41
42 .button.sm {
43 padding: 5px 10px;
44 }
45
46 .button.green {
47 background-color: #4CAF50;
48 }
49
50 .button.orange {
51 background-color: #FF9800;
52 }
53
54 .button.blue {
55 background-color: #2196F3;
56 }
57
58 #template_container {
59 background-color: <?php echo esc_attr( $body ); ?>;
60 border: 1px solid #eee;
61 margin-bottom: 25px;
62 }
63
64 #template_header {
65 color: #444;
66 border-bottom: 0;
67 font-weight: bold;
68 line-height: 100%;
69 vertical-align: middle;
70 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
71 }
72
73 #template_footer td {
74 padding: 0;
75 }
76
77 #template_footer #credit {
78 border:0;
79 color: #999;
80 font-family: Arial;
81 font-size:12px;
82 line-height:125%;
83 text-align:center;
84 padding: 0 48px 48px 48px;
85 }
86
87 #body_content {
88 background-color: <?php echo esc_attr( $body ); ?>;
89 }
90
91 #body_content table td {
92 padding: 30px 48px 48px 48px;
93 }
94
95 #body_content table td td {
96 padding: 12px;
97 }
98
99 #body_content table td th {
100 padding: 12px;
101 }
102
103 #body_content p {
104 margin: 0 0 20px;
105 }
106
107 #body_content_inner {
108 color: <?php echo esc_attr( $text_lighter_20 ); ?>;
109 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
110 font-size: 15px;
111 line-height: 170%;
112 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
113 }
114
115 .td {
116 color: <?php echo esc_attr( $text_lighter_20 ); ?>;
117 border: none;
118 }
119
120 .text {
121 color: <?php echo esc_attr( $text ); ?>;
122 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
123 }
124
125 .link {
126 color: <?php echo esc_attr( $base ); ?>;
127 }
128
129 #header_wrapper {
130 padding: 36px 48px 0;
131 display: block;
132 }
133
134 h1 {
135 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
136 font-size: 30px;
137 font-weight: 300;
138 line-height: 150%;
139 margin: 0;
140 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
141 -webkit-font-smoothing: antialiased;
142 }
143
144 h2 {
145 color: <?php echo esc_attr( $base ); ?>;
146 display: block;
147 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
148 font-size: 18px;
149 font-weight: bold;
150 line-height: 130%;
151 margin: .5em 0;
152 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
153 }
154
155 h3 {
156 color: <?php echo esc_attr( $base ); ?>;
157 display: block;
158 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
159 font-size: 16px;
160 font-weight: bold;
161 line-height: 130%;
162 margin: .5em 0;
163 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
164 }
165
166 #body_content_inner h1 {
167 margin: 0 0 .5em 0;
168 }
169
170 #body_content_inner p + h1,
171 #body_content_inner p + h2,
172 #body_content_inner p + h3,
173 #body_content_inner p + h4 {
174 margin-top: 2em;
175 }
176
177 a {
178 color: <?php echo esc_attr( $base ); ?>;
179 font-weight: normal;
180 text-decoration: underline;
181 }
182
183 img {
184 border: none;
185 display: inline;
186 font-size: 14px;
187 font-weight: bold;
188 height: auto;
189 line-height: 100%;
190 outline: none;
191 text-decoration: none;
192 text-transform: capitalize;
193 }
194