PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.14
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.14
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 / app / Views / email / template / styles.php

styles.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 6.2.14, at app/Views/email/template/styles.php

247 lines 4.8 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 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variables in view files
6
7 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
8 $colors = array(
9 'background_color' => '#f6f6f6',
10 'body_background_color' => '#ffffff',
11 'base_color' => '#444444',
12 'text_color' => '#444444'
13 );
14 $settings = apply_filters('fluentform/email_template_colors', $colors);
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 * {-webkit-text-size-adjust: none;}
28 body {
29 background-color: <?php echo esc_attr( $bg ); ?>;
30 -webkit-text-size-adjust: none;
31 font-family: sans-serif;
32 -webkit-font-smoothing: antialiased;
33 font-size: 14px;
34 line-height: 1.4;
35 margin: 0;
36 padding: 0;
37 -ms-text-size-adjust: 100%;
38 -webkit-text-size-adjust: 100%;
39 width: 100%;
40 }
41 #wrapper {
42 margin: 0;
43 background-color: <?php echo esc_attr( $bg ); ?>;
44 padding: 40px 0 0 0;
45 -webkit-text-size-adjust: none !important;
46 width: 100%;
47 }
48
49 .button {
50 background-color:#4CAF50;
51 border-radius:3px;
52 color:#ffffff;
53 display:inline-block;
54 font-family:sans-serif;
55 font-size:13px;
56 font-weight:bold;
57 line-height: 150%;
58 text-align:center;
59 text-decoration:none;
60 -webkit-text-size-adjust:none;
61 padding: 8px 20px;
62 }
63
64 .button.sm {
65 padding: 5px 10px;
66 }
67
68 .button.green {
69 background-color: #4CAF50;
70 }
71
72 .button.orange {
73 background-color: #FF9800;
74 }
75
76 .button.blue {
77 background-color: #2196F3;
78 }
79
80 #template_container {
81 background-color: <?php echo esc_attr( $body ); ?>;
82 border: 1px solid #eee;
83 margin-bottom: 25px;
84 }
85
86 #template_header {
87 color: #444;
88 border-bottom: 0;
89 font-weight: bold;
90 line-height: 100%;
91 vertical-align: middle;
92 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
93 }
94
95 #template_footer td {
96 padding: 0;
97 }
98
99 #template_footer #credit {
100 border:0;
101 color: #999;
102 font-family: Arial;
103 font-size:12px;
104 line-height:125%;
105 text-align:center;
106 padding: 0 48px 48px 48px;
107 }
108
109 #body_content {
110 background-color: <?php echo esc_attr( $body ); ?>;
111 }
112
113 #body_content table td {
114 padding: 20px 20px;
115 }
116
117 #body_content table td td {
118 padding: 12px;
119 }
120
121 #body_content table td th {
122 padding: 12px;
123 }
124
125 #body_content p {
126 margin: 0 0 20px;
127 }
128
129 #body_content_inner {
130 color: <?php echo esc_attr( $text_lighter_20 ); ?>;
131 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
132 font-size: 14px;
133 line-height: 170%;
134 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
135 }
136
137 .td {
138 color: <?php echo esc_attr( $text_lighter_20 ); ?>;
139 border: none;
140 }
141
142 .text {
143 color: <?php echo esc_attr( $text ); ?>;
144 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
145 }
146
147 #body_content_inner tr.field-label th {
148 padding: 6px 12px;
149 background-color: #f8f8f8;
150 }
151
152 #body_content_inner tr.field-value td {
153 padding: 6px 12px 12px 12px;
154 white-space: pre-line;
155 }
156
157 .link {
158 color: <?php echo esc_attr( $base ); ?>;
159 }
160
161 #header_wrapper {
162 padding: 36px 48px 0;
163 display: block;
164 }
165
166 h1 {
167 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
168 font-size: 30px;
169 font-weight: 300;
170 line-height: 150%;
171 margin: 0;
172 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
173 -webkit-font-smoothing: antialiased;
174 }
175
176 h2 {
177 color: <?php echo esc_attr( $base ); ?>;
178 display: block;
179 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
180 font-size: 18px;
181 font-weight: bold;
182 line-height: 130%;
183 margin: .5em 0;
184 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
185 }
186
187 h3 {
188 color: <?php echo esc_attr( $base ); ?>;
189 display: block;
190 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
191 font-size: 16px;
192 font-weight: bold;
193 line-height: 130%;
194 margin: .5em 0;
195 text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>;
196 }
197
198 #body_content_inner h1 {
199 margin: 0 0 .5em 0;
200 }
201
202 #body_content_inner p + h1,
203 #body_content_inner p + h2,
204 #body_content_inner p + h3,
205 #body_content_inner p + h4 {
206 margin-top: 2em;
207 }
208
209 a {
210 color: <?php echo esc_attr( $base ); ?>;
211 font-weight: normal;
212 text-decoration: underline;
213 }
214
215 img {
216 border: none;
217 display: inline;
218 font-size: 14px;
219 font-weight: bold;
220 height: auto;
221 line-height: 100%;
222 outline: none;
223 text-decoration: none;
224 text-transform: capitalize;
225 }
226 .fluent_credit span a {
227 text-decoration: none;
228 }
229 .aligncenter {
230 text-align: center !important;
231 }
232 .alignright {
233 text-align: right !important;
234 }
235
236 img.aligncenter {
237 text-align: center !important;
238 display: block !important;
239 margin: 0 auto !important;
240 }
241
242 /* CSS styles for iOS devices - compensates for overly small font size on ios devices */
243 @media screen and (max-device-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
244 *{font-size:28px;}
245 *{line-height:1.3em;}
246 }
247