PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.4.8
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.4.8
1.6.7 1.6.8 1.6.9 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.3 1.6.4 1.6.5 1.6.6 All 74 releases
weforms / includes / email / template / styles.php

styles.php in weForms – Easy Drag & Drop Contact Form Builder For WordPress 1.4.8, at includes/email/template/styles.php

211 lines 4.2 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 if ( !defined( 'ABSPATH' ) ) {
6 exit;
7 } // Exit if accessed directly
8
9 $settings = weforms_get_settings( 'email_settings', [
10 'background_color' => '#f5f5f5',
11 'body_background_color' => '#ffffff',
12 'base_color' => '#444444',
13 'text_color' => '#444444',
14 ] );
15
16 // Load colours
17 $bg = $settings['background_color'];
18 $body = $settings['body_background_color'];
19 $base = $settings['base_color'];
20 $base_text = '#202020';
21 $text = $settings['text_color'];
22
23 $text_lighter_20 = '#555555';
24
25 // !important; is a gmail hack to prevent styles being stripped if it doesn't like something.
26 ?>
27 #wrapper {
28 background-color: <?php echo esc_attr( $bg ); ?>;
29 margin: 0;
30 padding: 40px 0 0 0;
31 -webkit-text-size-adjust: none !important;
32 width: 100%;
33 }
34
35 .button {
36 background-color:#4CAF50;
37 border-radius:3px;
38 color:#ffffff;
39 display:inline-block;
40 font-family:sans-serif;
41 font-size:13px;
42 font-weight:bold;
43 line-height: 150%;
44 text-align:center;
45 text-decoration:none;
46 -webkit-text-size-adjust:none;
47 padding: 8px 20px;
48 }
49
50 .button.sm {
51 padding: 5px 10px;
52 }
53
54 .button.green {
55 background-color: #4CAF50;
56 }
57
58 .button.orange {
59 background-color: #FF9800;
60 }
61
62 .button.blue {
63 background-color: #2196F3;
64 }
65
66 #template_container {
67 background-color: <?php echo esc_attr( $body ); ?>;
68 border: 1px solid #eee;
69 margin-bottom: 25px;
70 }
71
72 #template_header {
73 color: #444;
74 border-bottom: 0;
75 font-weight: bold;
76 line-height: 100%;
77 vertical-align: middle;
78 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
79 }
80
81 #template_footer td {
82 padding: 0;
83 }
84
85 #template_footer #credit {
86 border:0;
87 color: #999;
88 font-family: Arial;
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: 20px 20px;
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 p {
112 margin: 0 0 20px;
113 }
114
115 #body_content_inner {
116 color: <?php echo esc_attr( $text_lighter_20 ); ?>;
117 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
118 font-size: 14px;
119 line-height: 170%;
120 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
121 }
122
123 .td {
124 color: <?php echo esc_attr( $text_lighter_20 ); ?>;
125 border: none;
126 }
127
128 .text {
129 color: <?php echo esc_attr( $text ); ?>;
130 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
131 }
132
133 #body_content_inner tr.field-label th {
134 padding: 6px 12px;
135 background-color: #f8f8f8;
136 }
137
138 #body_content_inner tr.field-value td {
139 padding: 6px 12px 12px 12px;
140 }
141
142 .link {
143 color: <?php echo esc_attr( $base ); ?>;
144 }
145
146 #header_wrapper {
147 padding: 36px 48px 0;
148 display: block;
149 }
150
151 h1 {
152 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
153 font-size: 30px;
154 font-weight: 300;
155 line-height: 150%;
156 margin: 0;
157 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
158 -webkit-font-smoothing: antialiased;
159 }
160
161 h2 {
162 color: <?php echo esc_attr( $base ); ?>;
163 display: block;
164 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
165 font-size: 18px;
166 font-weight: bold;
167 line-height: 130%;
168 margin: .5em 0;
169 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
170 }
171
172 h3 {
173 color: <?php echo esc_attr( $base ); ?>;
174 display: block;
175 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
176 font-size: 16px;
177 font-weight: bold;
178 line-height: 130%;
179 margin: .5em 0;
180 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
181 }
182
183 #body_content_inner h1 {
184 margin: 0 0 .5em 0;
185 }
186
187 #body_content_inner p + h1,
188 #body_content_inner p + h2,
189 #body_content_inner p + h3,
190 #body_content_inner p + h4 {
191 margin-top: 2em;
192 }
193
194 a {
195 color: <?php echo esc_attr( $base ); ?>;
196 font-weight: normal;
197 text-decoration: underline;
198 }
199
200 img {
201 border: none;
202 display: inline;
203 font-size: 14px;
204 font-weight: bold;
205 height: auto;
206 line-height: 100%;
207 outline: none;
208 text-decoration: none;
209 text-transform: capitalize;
210 }
211