PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 3.6.41
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v3.6.41
6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 All 196 releases
fluentform / resources / views / email / template / styles.php

styles.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 3.6.41, at resources/views/email/template/styles.php

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