Version Description
- May 6, 2015 =
Fixes
- The email address is no longer automatically added to the Redirect URL as this is against Google Analytics policy. To add it again, use
?email={email}
in your Redirect URL setting. - Registration type integrations were not correctly picking up on first- and last names.
- JavaScript error in IE8 because of
setAttribute
call on honeypot field. - API class
subscribe
method now always returns a boolean.
Improvements
- Add
role
attribute to form elements - Major code refactoring for easier unit testing and improved code readability.
- Use Composer for autoloading all plugin classes (PHP 5.2 compatible)
- You can now use form variables in both forms, messages as checkbox label texts.
Additions
- You can now handle unsubscribe calls with our forms too.
- Added Portugese, Indonesian, German (CH) and Spanish (PR) translations.
Download this release
Release Info
Developer | DvanKooten |
Plugin | MailChimp for WordPress |
Version | 2.3 |
Comparing to | |
See all releases |
Code changes from version 2.2.4 to 2.3
- license.txt → LICENSE +0 -0
- README.md +0 -43
- assets/css/checkbox.css +13 -3
- assets/css/checkbox.css.map +1 -1
- assets/css/checkbox.min.css +1 -1
- assets/css/form-theme-blue.css +20 -26
- assets/css/form-theme-blue.css.map +1 -1
- assets/css/form-theme-blue.min.css +1 -1
- assets/css/form-theme-dark.css +20 -26
- assets/css/form-theme-dark.css.map +1 -1
- assets/css/form-theme-dark.min.css +1 -1
- assets/css/form-theme-green.css +20 -26
- assets/css/form-theme-green.css.map +1 -1
- assets/css/form-theme-green.min.css +1 -1
- assets/css/form-theme-light.css +20 -26
- assets/css/form-theme-light.css.map +1 -1
- assets/css/form-theme-light.min.css +1 -1
- assets/css/form-theme-red.css +20 -26
- assets/css/form-theme-red.css.map +1 -1
- assets/css/form-theme-red.min.css +1 -1
- assets/css/form.css +15 -26
- assets/css/form.css.map +1 -1
- assets/css/form.min.css +1 -1
- assets/css/index.php +0 -6
- assets/img/index.php +0 -6
- assets/index.php +0 -6
- assets/js/admin.js +146 -27
- assets/js/admin.min.js +1 -1
- assets/js/form-request.js +71 -50
- assets/js/form-request.min.js +1 -1
- assets/js/index.php +0 -6
- assets/sass/checkbox.scss +15 -1
- assets/sass/index.php +0 -6
- assets/sass/partials/_form-reset.scss +79 -74
- assets/sass/partials/_form-theme-base.scss +5 -0
- includes/{class-admin.php → admin/class-admin.php} +74 -172
- includes/admin/class-db-upgrader.php +57 -0
- includes/class-api.php +39 -31
- includes/class-checkbox-manager.php +0 -6
- includes/class-field-mapper.php +318 -0
- includes/class-form-listener.php +56 -0
- includes/class-form-manager.php +160 -221
- includes/class-form-request.php +0 -716
- includes/class-form-validator.php +128 -0
- includes/class-form.php +421 -0
- includes/class-mailchimp.php +66 -5
- includes/class-plugin.php +50 -49
- includes/class-request.php +273 -0
- includes/class-subscribe-request.php +161 -0
- includes/class-tools.php +153 -0
- includes/class-unsubscribe-request.php +41 -0
- includes/class-widget.php +3 -2
- includes/functions/general.php +11 -13
- includes/functions/template.php +6 -63
- includes/index.php +0 -6
- includes/integrations/class-bbpress.php +20 -17
- includes/integrations/class-buddypress.php +18 -14
- includes/integrations/class-comment-form.php +1 -1
- includes/integrations/class-edd.php +1 -1
- includes/integrations/class-general.php +3 -1
- includes/integrations/class-integration.php +46 -60
- includes/integrations/class-multisite.php +28 -31
- includes/integrations/class-registration-form.php +6 -22
- includes/integrations/class-user-integration.php +50 -0
- includes/integrations/class-woocommerce.php +2 -3
- includes/interface-request.php +49 -0
- includes/views/api-settings.php +1 -1
- includes/views/checkbox-settings.php +1 -1
- includes/views/form-settings.php +72 -43
- includes/views/index.php +0 -6
- includes/views/parts/admin-field-wizard.php +2 -1
- includes/views/parts/admin-footer.php +10 -1
- includes/views/parts/admin-need-support.php +5 -13
- includes/views/parts/admin-upgrade-to-pro.php +24 -4
- includes/views/parts/index.php +0 -6
- index.php +0 -6
- languages/mailchimp-for-wp-cs_CZ.po +431 -307
- languages/mailchimp-for-wp-de_CH.po +1791 -0
- languages/mailchimp-for-wp-de_DE.po +546 -422
- languages/mailchimp-for-wp-es_ES.po +423 -298
- languages/mailchimp-for-wp-es_PR.po +1791 -0
- languages/mailchimp-for-wp-fr_FR.po +448 -325
- languages/mailchimp-for-wp-hu_HU.po +420 -297
- languages/mailchimp-for-wp-id_ID.po +1789 -0
- languages/mailchimp-for-wp-it_IT.po +420 -297
- languages/mailchimp-for-wp-nl_NL.po +236 -217
license.txt → LICENSE
RENAMED
File without changes
|
README.md
DELETED
@@ -1,43 +0,0 @@
|
|
1 |
-
MailChimp for WordPress
|
2 |
-
======================
|
3 |
-
[![Build Status](https://api.travis-ci.org/dannyvankooten/mailchimp-for-wordpress.png?branch=master)](https://travis-ci.org/dannyvankooten/mailchimp-for-wordpress)
|
4 |
-
[![Stable Version](https://poser.pugx.org/dannyvankooten/mailchimp-for-wordpress/v/stable.svg)](https://packagist.org/packages/dannyvankooten/mailchimp-for-wordpress)
|
5 |
-
[![License](https://poser.pugx.org/dannyvankooten/mailchimp-for-wordpress/license.svg)](https://packagist.org/packages/dannyvankooten/mailchimp-for-wordpress)
|
6 |
-
|
7 |
-
|
8 |
-
Here, you can browse the source of the [MailChimp for WordPress Plugin](https://wordpress.org/plugins/mailchimp-for-wp/) project, find and discuss open issues or contribute code to the plugin yourself.
|
9 |
-
|
10 |
-
Installation
|
11 |
-
------------
|
12 |
-
|
13 |
-
Here's a [guide on how to install the plugin in your WordPress site](https://wordpress.org/plugins/mailchimp-for-wp/installation/).
|
14 |
-
If you want to run the latest development version, you have two options:
|
15 |
-
|
16 |
-
* You can download the repository .zip file: [mailchimp-for-wordpress.zip](https://github.com/dannyvankooten/mailchimp-for-wordpress/archive/master.zip)
|
17 |
-
* You can clone the GitHub repository using Git
|
18 |
-
|
19 |
-
This will download the latest development version of the MailChimp for WordPress plugin. While this version is usually stable,
|
20 |
-
it is not recommended for use in a production environment.
|
21 |
-
|
22 |
-
Bugs
|
23 |
-
----
|
24 |
-
If you think you've found a bug, [please raise an issue here](https://github.com/dannyvankooten/mailchimp-for-wordpress/issues?state=open)!
|
25 |
-
|
26 |
-
Translations
|
27 |
-
-------------
|
28 |
-
It's easy to translate the plugin into your own language. Head over to the [translation project on Transifex](https://www.transifex.com/projects/p/mailchimp-for-wordpress/) and click on "[Help translate MailChimp for WordPress](https://www.transifex.com/signup/?join_project=mailchimp-for-wordpress)".
|
29 |
-
|
30 |
-
Support
|
31 |
-
-------
|
32 |
-
This is a developer's portal for the MailChimp for WordPress plugin and should not be used for support. Please visit the
|
33 |
-
[MailChimp for WordPress support forum on WordPress.org](https://wordpress.org/support/plugin/mailchimp-for-wp).
|
34 |
-
|
35 |
-
If you need priority support, please upgrade to [MailChimp for WordPress Pro](https://mc4wp.com/).
|
36 |
-
|
37 |
-
Contributions
|
38 |
-
-------------
|
39 |
-
Anyone is welcome to contribute to the plugin. There are various ways you can contribute:
|
40 |
-
|
41 |
-
* [Raise an issue](https://github.com/dannyvankooten/mailchimp-for-wordpress/issues) on GitHub.
|
42 |
-
* Send us a Pull Request with your bug fixes and/or new features.
|
43 |
-
* Provide feedback and [suggestions on enhancements](https://github.com/dannyvankooten/mailchimp-for-wordpress/issues?direction=desc&labels=Enhancement&page=1&sort=created&state=open).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/css/checkbox.css
CHANGED
@@ -1,11 +1,13 @@
|
|
1 |
/* MailChimp for WP - Checkbox Styles */
|
2 |
-
|
3 |
clear: both;
|
4 |
display: block;
|
5 |
position: static;
|
6 |
width: auto;
|
7 |
}
|
8 |
-
|
|
|
|
|
9 |
position: static;
|
10 |
margin: 0 6px 0 0;
|
11 |
padding: 0;
|
@@ -14,13 +16,21 @@ p#mc4wp-checkbox input {
|
|
14 |
max-width: 21px;
|
15 |
-webkit-appearance: checkbox;
|
16 |
}
|
17 |
-
|
|
|
18 |
display: block;
|
19 |
cursor: pointer;
|
20 |
width: auto;
|
21 |
position: static;
|
22 |
}
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
#registerform #mc4wp-checkbox {
|
25 |
margin-bottom: 10px;
|
26 |
}
|
1 |
/* MailChimp for WP - Checkbox Styles */
|
2 |
+
#mc4wp-checkbox {
|
3 |
clear: both;
|
4 |
display: block;
|
5 |
position: static;
|
6 |
width: auto;
|
7 |
}
|
8 |
+
#mc4wp-checkbox input {
|
9 |
+
float: none;
|
10 |
+
width: auto;
|
11 |
position: static;
|
12 |
margin: 0 6px 0 0;
|
13 |
padding: 0;
|
16 |
max-width: 21px;
|
17 |
-webkit-appearance: checkbox;
|
18 |
}
|
19 |
+
#mc4wp-checkbox label {
|
20 |
+
float: none;
|
21 |
display: block;
|
22 |
cursor: pointer;
|
23 |
width: auto;
|
24 |
position: static;
|
25 |
}
|
26 |
|
27 |
+
#_mc4wp_subscribe_woocommerce_checkout_field label,
|
28 |
+
#_mc4wp_subscribe_woocommerce_checkout_field input {
|
29 |
+
float: none !important;
|
30 |
+
width: auto !important;
|
31 |
+
display: inline-block !important;
|
32 |
+
}
|
33 |
+
|
34 |
#registerform #mc4wp-checkbox {
|
35 |
margin-bottom: 10px;
|
36 |
}
|
assets/css/checkbox.css.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"version": 3,
|
3 |
-
"mappings": ";AACA,
|
4 |
"sources": ["../sass/checkbox.scss"],
|
5 |
"names": [],
|
6 |
"file": "checkbox.css"
|
1 |
{
|
2 |
"version": 3,
|
3 |
+
"mappings": ";AACA,eAAgB;EAEf,KAAK,EAAE,IAAI;EACX,OAAO,EAAE,KAAK;EACd,QAAQ,EAAE,MAAM;EAChB,KAAK,EAAE,IAAI;;AAEX,qBAAM;EACL,KAAK,EAAE,IAAI;EACX,KAAK,EAAE,IAAI;EACX,QAAQ,EAAE,MAAM;EAChB,MAAM,EAAE,SAAS;EACjB,OAAO,EAAE,CAAC;EACV,cAAc,EAAE,MAAM;EACtB,OAAO,EAAE,uBAAuB;EAChC,SAAS,EAAE,IAAI;EACf,kBAAkB,EAAE,QAAQ;;AAG7B,qBAAM;EACL,KAAK,EAAE,IAAI;EACX,OAAO,EAAE,KAAK;EACd,MAAM,EAAE,OAAO;EACf,KAAK,EAAE,IAAI;EACX,QAAQ,EAAE,MAAM;;;AAMjB;kDACK;EACJ,KAAK,EAAE,eAAe;EACtB,KAAK,EAAE,eAAe;EACtB,OAAO,EAAE,uBAAuB;;;AAMlC,6BAA6B;EAC5B,aAAa,EAAE,IAAI",
|
4 |
"sources": ["../sass/checkbox.scss"],
|
5 |
"names": [],
|
6 |
"file": "checkbox.css"
|
assets/css/checkbox.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
1 |
+
#mc4wp-checkbox{clear:both;display:block;position:static;width:auto}#mc4wp-checkbox input{float:none;width:auto;position:static;margin:0 6px 0 0;padding:0;vertical-align:middle;display:inline-block!important;max-width:21px;-webkit-appearance:checkbox}#mc4wp-checkbox label{float:none;display:block;cursor:pointer;width:auto;position:static}#_mc4wp_subscribe_woocommerce_checkout_field input,#_mc4wp_subscribe_woocommerce_checkout_field label{float:none!important;width:auto!important;display:inline-block!important}#registerform #mc4wp-checkbox{margin-bottom:10px}
|
assets/css/form-theme-blue.css
CHANGED
@@ -1,43 +1,23 @@
|
|
1 |
/* MailChimp for WP - Default Form Styles */
|
2 |
.mc4wp-form {
|
3 |
margin: 1em 0;
|
|
|
|
|
4 |
}
|
5 |
-
|
6 |
-
form.mc4wp-form,
|
7 |
.mc4wp-form form {
|
8 |
width: auto;
|
9 |
}
|
10 |
-
|
11 |
.mc4wp-form label {
|
12 |
display: block;
|
13 |
font-weight: bold;
|
14 |
margin-bottom: 5px;
|
15 |
}
|
16 |
-
|
17 |
-
.mc4wp-form ul,
|
18 |
-
.mc4wp-form li {
|
19 |
-
list-style: none;
|
20 |
-
margin: 0;
|
21 |
-
padding: 0;
|
22 |
-
}
|
23 |
-
|
24 |
-
.mc4wp-form label > span,
|
25 |
-
.mc4wp-form li > label {
|
26 |
-
font-weight: normal;
|
27 |
-
}
|
28 |
-
|
29 |
-
.mc4wp-form p > label:nth-child(2) {
|
30 |
-
margin-top: 10px;
|
31 |
-
}
|
32 |
-
|
33 |
.mc4wp-form input {
|
34 |
vertical-align: baseline;
|
35 |
}
|
36 |
-
|
37 |
.mc4wp-form input.placeholdersjs {
|
38 |
color: #aaa !important;
|
39 |
}
|
40 |
-
|
41 |
.mc4wp-form input[type="text"],
|
42 |
.mc4wp-form input[type="email"],
|
43 |
.mc4wp-form input[type="tel"],
|
@@ -53,7 +33,6 @@ form.mc4wp-form,
|
|
53 |
-webkit-box-sizing: border-box;
|
54 |
-moz-box-sizing: border-box;
|
55 |
}
|
56 |
-
|
57 |
.mc4wp-form input[type="checkbox"],
|
58 |
.mc4wp-form input[type="radio"] {
|
59 |
position: relative;
|
@@ -64,21 +43,31 @@ form.mc4wp-form,
|
|
64 |
display: inline-block;
|
65 |
border: 0;
|
66 |
}
|
67 |
-
|
68 |
.mc4wp-form input[type="checkbox"] {
|
69 |
-webkit-appearance: checkbox;
|
70 |
}
|
71 |
-
|
72 |
.mc4wp-form input[type="radio"] {
|
73 |
-webkit-appearance: radio;
|
74 |
}
|
75 |
-
|
|
|
|
|
76 |
.mc4wp-form input[type="submit"],
|
77 |
.mc4wp-form button,
|
78 |
.mc4wp-form input[type="button"] {
|
79 |
cursor: pointer;
|
80 |
display: inline-block;
|
81 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
.mc4wp-alert {
|
84 |
margin: 1em 0;
|
@@ -183,6 +172,7 @@ form.mc4wp-form,
|
|
183 |
}
|
184 |
|
185 |
.mc4wp-form input[type="submit"],
|
|
|
186 |
.mc4wp-form button {
|
187 |
display: inline-block;
|
188 |
padding: 6px 12px;
|
@@ -210,6 +200,7 @@ form.mc4wp-form,
|
|
210 |
}
|
211 |
|
212 |
.mc4wp-form input[type="submit"]:focus,
|
|
|
213 |
.mc4wp-form button:focus {
|
214 |
outline: thin dotted #333;
|
215 |
outline: 5px auto -webkit-focus-ring-color;
|
@@ -217,8 +208,10 @@ form.mc4wp-form,
|
|
217 |
}
|
218 |
|
219 |
.mc4wp-form input[type="submit"]:hover,
|
|
|
220 |
.mc4wp-form button:hover,
|
221 |
.mc4wp-form input[type="submit"]:focus,
|
|
|
222 |
.mc4wp-form button:focus {
|
223 |
color: #333333;
|
224 |
text-decoration: none;
|
@@ -226,6 +219,7 @@ form.mc4wp-form,
|
|
226 |
}
|
227 |
|
228 |
.mc4wp-form input[type="submit"]:active,
|
|
|
229 |
.mc4wp-form button:active {
|
230 |
background-image: none;
|
231 |
outline: 0;
|
1 |
/* MailChimp for WP - Default Form Styles */
|
2 |
.mc4wp-form {
|
3 |
margin: 1em 0;
|
4 |
+
/* Form Elements */
|
5 |
+
/* Other elements */
|
6 |
}
|
|
|
|
|
7 |
.mc4wp-form form {
|
8 |
width: auto;
|
9 |
}
|
|
|
10 |
.mc4wp-form label {
|
11 |
display: block;
|
12 |
font-weight: bold;
|
13 |
margin-bottom: 5px;
|
14 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
.mc4wp-form input {
|
16 |
vertical-align: baseline;
|
17 |
}
|
|
|
18 |
.mc4wp-form input.placeholdersjs {
|
19 |
color: #aaa !important;
|
20 |
}
|
|
|
21 |
.mc4wp-form input[type="text"],
|
22 |
.mc4wp-form input[type="email"],
|
23 |
.mc4wp-form input[type="tel"],
|
33 |
-webkit-box-sizing: border-box;
|
34 |
-moz-box-sizing: border-box;
|
35 |
}
|
|
|
36 |
.mc4wp-form input[type="checkbox"],
|
37 |
.mc4wp-form input[type="radio"] {
|
38 |
position: relative;
|
43 |
display: inline-block;
|
44 |
border: 0;
|
45 |
}
|
|
|
46 |
.mc4wp-form input[type="checkbox"] {
|
47 |
-webkit-appearance: checkbox;
|
48 |
}
|
|
|
49 |
.mc4wp-form input[type="radio"] {
|
50 |
-webkit-appearance: radio;
|
51 |
}
|
52 |
+
.mc4wp-form input[name="_mc4wp_required_but_not_really"] {
|
53 |
+
display: none !important;
|
54 |
+
}
|
55 |
.mc4wp-form input[type="submit"],
|
56 |
.mc4wp-form button,
|
57 |
.mc4wp-form input[type="button"] {
|
58 |
cursor: pointer;
|
59 |
display: inline-block;
|
60 |
}
|
61 |
+
.mc4wp-form ul,
|
62 |
+
.mc4wp-form li {
|
63 |
+
list-style: none;
|
64 |
+
margin: 0;
|
65 |
+
padding: 0;
|
66 |
+
}
|
67 |
+
.mc4wp-form label > span,
|
68 |
+
.mc4wp-form li > label {
|
69 |
+
font-weight: normal;
|
70 |
+
}
|
71 |
|
72 |
.mc4wp-alert {
|
73 |
margin: 1em 0;
|
172 |
}
|
173 |
|
174 |
.mc4wp-form input[type="submit"],
|
175 |
+
.mc4wp-form input[type="button"],
|
176 |
.mc4wp-form button {
|
177 |
display: inline-block;
|
178 |
padding: 6px 12px;
|
200 |
}
|
201 |
|
202 |
.mc4wp-form input[type="submit"]:focus,
|
203 |
+
.mc4wp-form input[type="button"]:focus,
|
204 |
.mc4wp-form button:focus {
|
205 |
outline: thin dotted #333;
|
206 |
outline: 5px auto -webkit-focus-ring-color;
|
208 |
}
|
209 |
|
210 |
.mc4wp-form input[type="submit"]:hover,
|
211 |
+
.mc4wp-form input[type="button"]:hover,
|
212 |
.mc4wp-form button:hover,
|
213 |
.mc4wp-form input[type="submit"]:focus,
|
214 |
+
.mc4wp-form input[type="button"]:focus,
|
215 |
.mc4wp-form button:focus {
|
216 |
color: #333333;
|
217 |
text-decoration: none;
|
219 |
}
|
220 |
|
221 |
.mc4wp-form input[type="submit"]:active,
|
222 |
+
.mc4wp-form input[type="button"]:active,
|
223 |
.mc4wp-form button:active {
|
224 |
background-image: none;
|
225 |
outline: 0;
|
assets/css/form-theme-blue.css.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"version": 3,
|
3 |
-
"mappings": ";AAEA,WAAW;EACT,MAAM,EAAE,KAAK
|
4 |
"sources": ["../sass/partials/_form-reset.scss","../sass/partials/_form-theme-base.scss","../sass/form-theme-blue.scss"],
|
5 |
"names": [],
|
6 |
"file": "form-theme-blue.css"
|
1 |
{
|
2 |
"version": 3,
|
3 |
+
"mappings": ";AAEA,WAAW;EACT,MAAM,EAAE,KAAK;;;;AAGb,gBAAI;EACF,KAAK,EAAE,IAAI;;AAGb,iBAAM;EACJ,OAAO,EAAE,KAAK;EACd,WAAW,EAAE,IAAI;EACjB,aAAa,EAAE,GAAG;;AAGpB,iBAAM;EACJ,cAAc,EAAE,QAAQ;;AAGxB,gCAAiB;EACb,KAAK,EAAE,eAAe;;AAK5B;;;;;;kBAMO;EACL,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,KAAK;EACd,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;EACZ,UAAU,EAAE,UAAU;EACtB,kBAAkB,EAAE,UAAU;EAC9B,eAAe,EAAE,UAAU;;AAG7B;+BACoB;EAClB,QAAQ,EAAE,QAAQ;EAClB,MAAM,EAAE,SAAS;EACjB,OAAO,EAAE,CAAC;EACV,MAAM,EAAE,IAAI;EACZ,KAAK,EAAE,IAAI;EACX,OAAO,EAAE,YAAY;EACrB,MAAM,EAAE,CAAC;;AAGX,kCAAuB;EACrB,kBAAkB,EAAE,QAAQ;;AAG9B,+BAAoB;EAClB,kBAAkB,EAAE,KAAK;;AAG3B,wDAA6C;EAC3C,OAAO,EAAE,eAAe;;AAG1B;;gCAEqB;EACnB,MAAM,EAAE,OAAO;EACf,OAAO,EAAE,YAAY;;AAIvB;cACG;EACD,UAAU,EAAE,IAAI;EAChB,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;;AAGZ;sBACW;EACT,WAAW,EAAE,MAAM;;;AAMvB,YAAY;EACV,MAAM,EAAE,KAAK;EACb,OAAO,EAAE,SAAS;EAClB,KAAK,EAAE,OAAO;EACd,gBAAgB,EAAE,OAAO;EACzB,MAAM,EAAE,iBAAiB;EACzB,aAA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KyB;EACvB,KAAK,EAAE,kBAAkB;EACzB,gBAAgB,EAAE,kBAAkB;EACpC,YAAY,EAAE,OAAO;;;AAGvB;;;;;;wBAMyB;EACvB,YAAY,EAAE,OAAO",
|
4 |
"sources": ["../sass/partials/_form-reset.scss","../sass/partials/_form-theme-base.scss","../sass/form-theme-blue.scss"],
|
5 |
"names": [],
|
6 |
"file": "form-theme-blue.css"
|
assets/css/form-theme-blue.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:700}.mc4wp-form
|
1 |
+
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:700}.mc4wp-form input{vertical-align:baseline}.mc4wp-form input.placeholdersjs{color:#aaa!important}.mc4wp-form input[type=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{cursor:auto;display:block;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.mc4wp-form input[type=checkbox],.mc4wp-form input[type=radio]{position:relative;margin:0 6px 0 0;padding:0;height:13px;width:13px;display:inline-block;border:0}.mc4wp-form input[type=checkbox]{-webkit-appearance:checkbox}.mc4wp-form input[type=radio]{-webkit-appearance:radio}.mc4wp-form input[name="_mc4wp_required_but_not_really"]{display:none!important}.mc4wp-form li,.mc4wp-form ul{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:400}.mc4wp-alert{margin:1em 0;padding:10px 15px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;display:block;position:relative}.mc4wp-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.mc4wp-notice{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.mc4wp-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.mc4wp-form form,form.mc4wp-form{box-shadow:none!important;-webkit-box-shadow:none;-moz-box-shadow:none;width:auto}.mc4wp-form p{margin:0 0 15px!important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle;background-color:#fff;border:1px solid #ccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-moz-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;background-image:none;text-shadow:none}.mc4wp-form input[type=email]:focus,.mc4wp-form input[type=tel]:focus,.mc4wp-form input[type=text]:focus,.mc4wp-form input[type=url]:focus,.mc4wp-form select:focus,.mc4wp-form textarea:focus{outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[disabled],.mc4wp-form input[readonly]{background-color:#eee}.mc4wp-form button,.mc4wp-form input[type=button],.mc4wp-form input[type=submit]{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;box-shadow:none;background:0 0;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form button:focus,.mc4wp-form input[type=button]:focus,.mc4wp-form input[type=submit]:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=button]:focus,.mc4wp-form input[type=button]:hover,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#333;text-decoration:none;background:0 0}.mc4wp-form button:active,.mc4wp-form input[type=button]:active,.mc4wp-form input[type=submit]:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.mc4wp-form button,.mc4wp-form input[type=submit]{color:#fff!important;background-color:#428bca!important;border-color:#357ebd}.mc4wp-form button:active,.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=submit]:active,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#fff!important;background-color:#3276b1!important;border-color:#285e8e}.mc4wp-form input[type=date]:focus,.mc4wp-form input[type=email]:focus,.mc4wp-form input[type=tel]:focus,.mc4wp-form input[type=text]:focus,.mc4wp-form input[type=url]:focus,.mc4wp-form select:focus,.mc4wp-form textarea:focus{border-color:#428bca}
|
assets/css/form-theme-dark.css
CHANGED
@@ -1,43 +1,23 @@
|
|
1 |
/* MailChimp for WP - Default Form Styles */
|
2 |
.mc4wp-form {
|
3 |
margin: 1em 0;
|
|
|
|
|
4 |
}
|
5 |
-
|
6 |
-
form.mc4wp-form,
|
7 |
.mc4wp-form form {
|
8 |
width: auto;
|
9 |
}
|
10 |
-
|
11 |
.mc4wp-form label {
|
12 |
display: block;
|
13 |
font-weight: bold;
|
14 |
margin-bottom: 5px;
|
15 |
}
|
16 |
-
|
17 |
-
.mc4wp-form ul,
|
18 |
-
.mc4wp-form li {
|
19 |
-
list-style: none;
|
20 |
-
margin: 0;
|
21 |
-
padding: 0;
|
22 |
-
}
|
23 |
-
|
24 |
-
.mc4wp-form label > span,
|
25 |
-
.mc4wp-form li > label {
|
26 |
-
font-weight: normal;
|
27 |
-
}
|
28 |
-
|
29 |
-
.mc4wp-form p > label:nth-child(2) {
|
30 |
-
margin-top: 10px;
|
31 |
-
}
|
32 |
-
|
33 |
.mc4wp-form input {
|
34 |
vertical-align: baseline;
|
35 |
}
|
36 |
-
|
37 |
.mc4wp-form input.placeholdersjs {
|
38 |
color: #aaa !important;
|
39 |
}
|
40 |
-
|
41 |
.mc4wp-form input[type="text"],
|
42 |
.mc4wp-form input[type="email"],
|
43 |
.mc4wp-form input[type="tel"],
|
@@ -53,7 +33,6 @@ form.mc4wp-form,
|
|
53 |
-webkit-box-sizing: border-box;
|
54 |
-moz-box-sizing: border-box;
|
55 |
}
|
56 |
-
|
57 |
.mc4wp-form input[type="checkbox"],
|
58 |
.mc4wp-form input[type="radio"] {
|
59 |
position: relative;
|
@@ -64,21 +43,31 @@ form.mc4wp-form,
|
|
64 |
display: inline-block;
|
65 |
border: 0;
|
66 |
}
|
67 |
-
|
68 |
.mc4wp-form input[type="checkbox"] {
|
69 |
-webkit-appearance: checkbox;
|
70 |
}
|
71 |
-
|
72 |
.mc4wp-form input[type="radio"] {
|
73 |
-webkit-appearance: radio;
|
74 |
}
|
75 |
-
|
|
|
|
|
76 |
.mc4wp-form input[type="submit"],
|
77 |
.mc4wp-form button,
|
78 |
.mc4wp-form input[type="button"] {
|
79 |
cursor: pointer;
|
80 |
display: inline-block;
|
81 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
.mc4wp-alert {
|
84 |
margin: 1em 0;
|
@@ -183,6 +172,7 @@ form.mc4wp-form,
|
|
183 |
}
|
184 |
|
185 |
.mc4wp-form input[type="submit"],
|
|
|
186 |
.mc4wp-form button {
|
187 |
display: inline-block;
|
188 |
padding: 6px 12px;
|
@@ -210,6 +200,7 @@ form.mc4wp-form,
|
|
210 |
}
|
211 |
|
212 |
.mc4wp-form input[type="submit"]:focus,
|
|
|
213 |
.mc4wp-form button:focus {
|
214 |
outline: thin dotted #333;
|
215 |
outline: 5px auto -webkit-focus-ring-color;
|
@@ -217,8 +208,10 @@ form.mc4wp-form,
|
|
217 |
}
|
218 |
|
219 |
.mc4wp-form input[type="submit"]:hover,
|
|
|
220 |
.mc4wp-form button:hover,
|
221 |
.mc4wp-form input[type="submit"]:focus,
|
|
|
222 |
.mc4wp-form button:focus {
|
223 |
color: #333333;
|
224 |
text-decoration: none;
|
@@ -226,6 +219,7 @@ form.mc4wp-form,
|
|
226 |
}
|
227 |
|
228 |
.mc4wp-form input[type="submit"]:active,
|
|
|
229 |
.mc4wp-form button:active {
|
230 |
background-image: none;
|
231 |
outline: 0;
|
1 |
/* MailChimp for WP - Default Form Styles */
|
2 |
.mc4wp-form {
|
3 |
margin: 1em 0;
|
4 |
+
/* Form Elements */
|
5 |
+
/* Other elements */
|
6 |
}
|
|
|
|
|
7 |
.mc4wp-form form {
|
8 |
width: auto;
|
9 |
}
|
|
|
10 |
.mc4wp-form label {
|
11 |
display: block;
|
12 |
font-weight: bold;
|
13 |
margin-bottom: 5px;
|
14 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
.mc4wp-form input {
|
16 |
vertical-align: baseline;
|
17 |
}
|
|
|
18 |
.mc4wp-form input.placeholdersjs {
|
19 |
color: #aaa !important;
|
20 |
}
|
|
|
21 |
.mc4wp-form input[type="text"],
|
22 |
.mc4wp-form input[type="email"],
|
23 |
.mc4wp-form input[type="tel"],
|
33 |
-webkit-box-sizing: border-box;
|
34 |
-moz-box-sizing: border-box;
|
35 |
}
|
|
|
36 |
.mc4wp-form input[type="checkbox"],
|
37 |
.mc4wp-form input[type="radio"] {
|
38 |
position: relative;
|
43 |
display: inline-block;
|
44 |
border: 0;
|
45 |
}
|
|
|
46 |
.mc4wp-form input[type="checkbox"] {
|
47 |
-webkit-appearance: checkbox;
|
48 |
}
|
|
|
49 |
.mc4wp-form input[type="radio"] {
|
50 |
-webkit-appearance: radio;
|
51 |
}
|
52 |
+
.mc4wp-form input[name="_mc4wp_required_but_not_really"] {
|
53 |
+
display: none !important;
|
54 |
+
}
|
55 |
.mc4wp-form input[type="submit"],
|
56 |
.mc4wp-form button,
|
57 |
.mc4wp-form input[type="button"] {
|
58 |
cursor: pointer;
|
59 |
display: inline-block;
|
60 |
}
|
61 |
+
.mc4wp-form ul,
|
62 |
+
.mc4wp-form li {
|
63 |
+
list-style: none;
|
64 |
+
margin: 0;
|
65 |
+
padding: 0;
|
66 |
+
}
|
67 |
+
.mc4wp-form label > span,
|
68 |
+
.mc4wp-form li > label {
|
69 |
+
font-weight: normal;
|
70 |
+
}
|
71 |
|
72 |
.mc4wp-alert {
|
73 |
margin: 1em 0;
|
172 |
}
|
173 |
|
174 |
.mc4wp-form input[type="submit"],
|
175 |
+
.mc4wp-form input[type="button"],
|
176 |
.mc4wp-form button {
|
177 |
display: inline-block;
|
178 |
padding: 6px 12px;
|
200 |
}
|
201 |
|
202 |
.mc4wp-form input[type="submit"]:focus,
|
203 |
+
.mc4wp-form input[type="button"]:focus,
|
204 |
.mc4wp-form button:focus {
|
205 |
outline: thin dotted #333;
|
206 |
outline: 5px auto -webkit-focus-ring-color;
|
208 |
}
|
209 |
|
210 |
.mc4wp-form input[type="submit"]:hover,
|
211 |
+
.mc4wp-form input[type="button"]:hover,
|
212 |
.mc4wp-form button:hover,
|
213 |
.mc4wp-form input[type="submit"]:focus,
|
214 |
+
.mc4wp-form input[type="button"]:focus,
|
215 |
.mc4wp-form button:focus {
|
216 |
color: #333333;
|
217 |
text-decoration: none;
|
219 |
}
|
220 |
|
221 |
.mc4wp-form input[type="submit"]:active,
|
222 |
+
.mc4wp-form input[type="button"]:active,
|
223 |
.mc4wp-form button:active {
|
224 |
background-image: none;
|
225 |
outline: 0;
|
assets/css/form-theme-dark.css.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"version": 3,
|
3 |
-
"mappings": ";AAEA,WAAW;EACT,MAAM,EAAE,KAAK
|
4 |
"sources": ["../sass/partials/_form-reset.scss","../sass/partials/_form-theme-base.scss","../sass/form-theme-dark.scss"],
|
5 |
"names": [],
|
6 |
"file": "form-theme-dark.css"
|
1 |
{
|
2 |
"version": 3,
|
3 |
+
"mappings": ";AAEA,WAAW;EACT,MAAM,EAAE,KAAK;;;;AAGb,gBAAI;EACF,KAAK,EAAE,IAAI;;AAGb,iBAAM;EACJ,OAAO,EAAE,KAAK;EACd,WAAW,EAAE,IAAI;EACjB,aAAa,EAAE,GAAG;;AAGpB,iBAAM;EACJ,cAAc,EAAE,QAAQ;;AAGxB,gCAAiB;EACb,KAAK,EAAE,eAAe;;AAK5B;;;;;;kBAMO;EACL,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,KAAK;EACd,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;EACZ,UAAU,EAAE,UAAU;EACtB,kBAAkB,EAAE,UAAU;EAC9B,eAAe,EAAE,UAAU;;AAG7B;+BACoB;EAClB,QAAQ,EAAE,QAAQ;EAClB,MAAM,EAAE,SAAS;EACjB,OAAO,EAAE,CAAC;EACV,MAAM,EAAE,IAAI;EACZ,KAAK,EAAE,IAAI;EACX,OAAO,EAAE,YAAY;EACrB,MAAM,EAAE,CAAC;;AAGX,kCAAuB;EACrB,kBAAkB,EAAE,QAAQ;;AAG9B,+BAAoB;EAClB,kBAAkB,EAAE,KAAK;;AAG3B,wDAA6C;EAC3C,OAAO,EAAE,eAAe;;AAG1B;;gCAEqB;EACnB,MAAM,EAAE,OAAO;EACf,OAAO,EAAE,YAAY;;AAIvB;cACG;EACD,UAAU,EAAE,IAAI;EAChB,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;;AAGZ;sBACW;EACT,WAAW,EAAE,MAAM;;;AAMvB,YAAY;EACV,MAAM,EAAE,KAAK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HlD;kBACmB;EACjB,KAAK,EAAE,kBAAkB;EACzB,gBAAgB,EAAE,kBAAkB;EACpC,YAAY,EAAE,OAAO;;;AAGvB;;;;;wBAKyB;EACvB,KAAK,EAAE,kBAAkB;EACzB,gBAAgB,EAAE,kBAAkB;EACpC,YAAY,EAAE,OAAO;;;AAGvB;;;;;;wBAMyB;EACvB,YAAY,EAAE,OAAO",
|
4 |
"sources": ["../sass/partials/_form-reset.scss","../sass/partials/_form-theme-base.scss","../sass/form-theme-dark.scss"],
|
5 |
"names": [],
|
6 |
"file": "form-theme-dark.css"
|
assets/css/form-theme-dark.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:700}.mc4wp-form
|
1 |
+
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:700}.mc4wp-form input{vertical-align:baseline}.mc4wp-form input.placeholdersjs{color:#aaa!important}.mc4wp-form input[type=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{cursor:auto;display:block;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.mc4wp-form input[type=checkbox],.mc4wp-form input[type=radio]{position:relative;margin:0 6px 0 0;padding:0;height:13px;width:13px;display:inline-block;border:0}.mc4wp-form input[type=checkbox]{-webkit-appearance:checkbox}.mc4wp-form input[type=radio]{-webkit-appearance:radio}.mc4wp-form input[name="_mc4wp_required_but_not_really"]{display:none!important}.mc4wp-form li,.mc4wp-form ul{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:400}.mc4wp-alert{margin:1em 0;padding:10px 15px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;display:block;position:relative}.mc4wp-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.mc4wp-notice{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.mc4wp-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.mc4wp-form form,form.mc4wp-form{box-shadow:none!important;-webkit-box-shadow:none;-moz-box-shadow:none;width:auto}.mc4wp-form p{margin:0 0 15px!important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle;background-color:#fff;border:1px solid #ccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-moz-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;background-image:none;text-shadow:none}.mc4wp-form input[type=email]:focus,.mc4wp-form input[type=tel]:focus,.mc4wp-form input[type=text]:focus,.mc4wp-form input[type=url]:focus,.mc4wp-form select:focus,.mc4wp-form textarea:focus{outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[disabled],.mc4wp-form input[readonly]{background-color:#eee}.mc4wp-form button,.mc4wp-form input[type=button],.mc4wp-form input[type=submit]{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;box-shadow:none;background:0 0;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form button:focus,.mc4wp-form input[type=button]:focus,.mc4wp-form input[type=submit]:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=button]:focus,.mc4wp-form input[type=button]:hover,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#333;text-decoration:none;background:0 0}.mc4wp-form button:active,.mc4wp-form input[type=button]:active,.mc4wp-form input[type=submit]:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.mc4wp-form button,.mc4wp-form input[type=submit]{color:#fff!important;background-color:#444!important;border-color:#282828}.mc4wp-form button:active,.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=submit]:active,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#fff!important;background-color:#282828!important;border-color:#111}.mc4wp-form input[type=date]:focus,.mc4wp-form input[type=email]:focus,.mc4wp-form input[type=tel]:focus,.mc4wp-form input[type=text]:focus,.mc4wp-form input[type=url]:focus,.mc4wp-form select:focus,.mc4wp-form textarea:focus{border-color:#444}
|
assets/css/form-theme-green.css
CHANGED
@@ -1,43 +1,23 @@
|
|
1 |
/* MailChimp for WP - Default Form Styles */
|
2 |
.mc4wp-form {
|
3 |
margin: 1em 0;
|
|
|
|
|
4 |
}
|
5 |
-
|
6 |
-
form.mc4wp-form,
|
7 |
.mc4wp-form form {
|
8 |
width: auto;
|
9 |
}
|
10 |
-
|
11 |
.mc4wp-form label {
|
12 |
display: block;
|
13 |
font-weight: bold;
|
14 |
margin-bottom: 5px;
|
15 |
}
|
16 |
-
|
17 |
-
.mc4wp-form ul,
|
18 |
-
.mc4wp-form li {
|
19 |
-
list-style: none;
|
20 |
-
margin: 0;
|
21 |
-
padding: 0;
|
22 |
-
}
|
23 |
-
|
24 |
-
.mc4wp-form label > span,
|
25 |
-
.mc4wp-form li > label {
|
26 |
-
font-weight: normal;
|
27 |
-
}
|
28 |
-
|
29 |
-
.mc4wp-form p > label:nth-child(2) {
|
30 |
-
margin-top: 10px;
|
31 |
-
}
|
32 |
-
|
33 |
.mc4wp-form input {
|
34 |
vertical-align: baseline;
|
35 |
}
|
36 |
-
|
37 |
.mc4wp-form input.placeholdersjs {
|
38 |
color: #aaa !important;
|
39 |
}
|
40 |
-
|
41 |
.mc4wp-form input[type="text"],
|
42 |
.mc4wp-form input[type="email"],
|
43 |
.mc4wp-form input[type="tel"],
|
@@ -53,7 +33,6 @@ form.mc4wp-form,
|
|
53 |
-webkit-box-sizing: border-box;
|
54 |
-moz-box-sizing: border-box;
|
55 |
}
|
56 |
-
|
57 |
.mc4wp-form input[type="checkbox"],
|
58 |
.mc4wp-form input[type="radio"] {
|
59 |
position: relative;
|
@@ -64,21 +43,31 @@ form.mc4wp-form,
|
|
64 |
display: inline-block;
|
65 |
border: 0;
|
66 |
}
|
67 |
-
|
68 |
.mc4wp-form input[type="checkbox"] {
|
69 |
-webkit-appearance: checkbox;
|
70 |
}
|
71 |
-
|
72 |
.mc4wp-form input[type="radio"] {
|
73 |
-webkit-appearance: radio;
|
74 |
}
|
75 |
-
|
|
|
|
|
76 |
.mc4wp-form input[type="submit"],
|
77 |
.mc4wp-form button,
|
78 |
.mc4wp-form input[type="button"] {
|
79 |
cursor: pointer;
|
80 |
display: inline-block;
|
81 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
.mc4wp-alert {
|
84 |
margin: 1em 0;
|
@@ -183,6 +172,7 @@ form.mc4wp-form,
|
|
183 |
}
|
184 |
|
185 |
.mc4wp-form input[type="submit"],
|
|
|
186 |
.mc4wp-form button {
|
187 |
display: inline-block;
|
188 |
padding: 6px 12px;
|
@@ -210,6 +200,7 @@ form.mc4wp-form,
|
|
210 |
}
|
211 |
|
212 |
.mc4wp-form input[type="submit"]:focus,
|
|
|
213 |
.mc4wp-form button:focus {
|
214 |
outline: thin dotted #333;
|
215 |
outline: 5px auto -webkit-focus-ring-color;
|
@@ -217,8 +208,10 @@ form.mc4wp-form,
|
|
217 |
}
|
218 |
|
219 |
.mc4wp-form input[type="submit"]:hover,
|
|
|
220 |
.mc4wp-form button:hover,
|
221 |
.mc4wp-form input[type="submit"]:focus,
|
|
|
222 |
.mc4wp-form button:focus {
|
223 |
color: #333333;
|
224 |
text-decoration: none;
|
@@ -226,6 +219,7 @@ form.mc4wp-form,
|
|
226 |
}
|
227 |
|
228 |
.mc4wp-form input[type="submit"]:active,
|
|
|
229 |
.mc4wp-form button:active {
|
230 |
background-image: none;
|
231 |
outline: 0;
|
1 |
/* MailChimp for WP - Default Form Styles */
|
2 |
.mc4wp-form {
|
3 |
margin: 1em 0;
|
4 |
+
/* Form Elements */
|
5 |
+
/* Other elements */
|
6 |
}
|
|
|
|
|
7 |
.mc4wp-form form {
|
8 |
width: auto;
|
9 |
}
|
|
|
10 |
.mc4wp-form label {
|
11 |
display: block;
|
12 |
font-weight: bold;
|
13 |
margin-bottom: 5px;
|
14 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
.mc4wp-form input {
|
16 |
vertical-align: baseline;
|
17 |
}
|
|
|
18 |
.mc4wp-form input.placeholdersjs {
|
19 |
color: #aaa !important;
|
20 |
}
|
|
|
21 |
.mc4wp-form input[type="text"],
|
22 |
.mc4wp-form input[type="email"],
|
23 |
.mc4wp-form input[type="tel"],
|
33 |
-webkit-box-sizing: border-box;
|
34 |
-moz-box-sizing: border-box;
|
35 |
}
|
|
|
36 |
.mc4wp-form input[type="checkbox"],
|
37 |
.mc4wp-form input[type="radio"] {
|
38 |
position: relative;
|
43 |
display: inline-block;
|
44 |
border: 0;
|
45 |
}
|
|
|
46 |
.mc4wp-form input[type="checkbox"] {
|
47 |
-webkit-appearance: checkbox;
|
48 |
}
|
|
|
49 |
.mc4wp-form input[type="radio"] {
|
50 |
-webkit-appearance: radio;
|
51 |
}
|
52 |
+
.mc4wp-form input[name="_mc4wp_required_but_not_really"] {
|
53 |
+
display: none !important;
|
54 |
+
}
|
55 |
.mc4wp-form input[type="submit"],
|
56 |
.mc4wp-form button,
|
57 |
.mc4wp-form input[type="button"] {
|
58 |
cursor: pointer;
|
59 |
display: inline-block;
|
60 |
}
|
61 |
+
.mc4wp-form ul,
|
62 |
+
.mc4wp-form li {
|
63 |
+
list-style: none;
|
64 |
+
margin: 0;
|
65 |
+
padding: 0;
|
66 |
+
}
|
67 |
+
.mc4wp-form label > span,
|
68 |
+
.mc4wp-form li > label {
|
69 |
+
font-weight: normal;
|
70 |
+
}
|
71 |
|
72 |
.mc4wp-alert {
|
73 |
margin: 1em 0;
|
172 |
}
|
173 |
|
174 |
.mc4wp-form input[type="submit"],
|
175 |
+
.mc4wp-form input[type="button"],
|
176 |
.mc4wp-form button {
|
177 |
display: inline-block;
|
178 |
padding: 6px 12px;
|
200 |
}
|
201 |
|
202 |
.mc4wp-form input[type="submit"]:focus,
|
203 |
+
.mc4wp-form input[type="button"]:focus,
|
204 |
.mc4wp-form button:focus {
|
205 |
outline: thin dotted #333;
|
206 |
outline: 5px auto -webkit-focus-ring-color;
|
208 |
}
|
209 |
|
210 |
.mc4wp-form input[type="submit"]:hover,
|
211 |
+
.mc4wp-form input[type="button"]:hover,
|
212 |
.mc4wp-form button:hover,
|
213 |
.mc4wp-form input[type="submit"]:focus,
|
214 |
+
.mc4wp-form input[type="button"]:focus,
|
215 |
.mc4wp-form button:focus {
|
216 |
color: #333333;
|
217 |
text-decoration: none;
|
219 |
}
|
220 |
|
221 |
.mc4wp-form input[type="submit"]:active,
|
222 |
+
.mc4wp-form input[type="button"]:active,
|
223 |
.mc4wp-form button:active {
|
224 |
background-image: none;
|
225 |
outline: 0;
|
assets/css/form-theme-green.css.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"version": 3,
|
3 |
-
"mappings": ";AAEA,WAAW;EACT,MAAM,EAAE,KAAK
|
4 |
"sources": ["../sass/partials/_form-reset.scss","../sass/partials/_form-theme-base.scss","../sass/form-theme-green.scss"],
|
5 |
"names": [],
|
6 |
"file": "form-theme-green.css"
|
1 |
{
|
2 |
"version": 3,
|
3 |
+
"mappings": ";AAEA,WAAW;EACT,MAAM,EAAE,KAAK;;;;AAGb,gBAAI;EACF,KAAK,EAAE,IAAI;;AAGb,iBAAM;EACJ,OAAO,EAAE,KAAK;EACd,WAAW,EAAE,IAAI;EACjB,aAAa,EAAE,GAAG;;AAGpB,iBAAM;EACJ,cAAc,EAAE,QAAQ;;AAGxB,gCAAiB;EACb,KAAK,EAAE,eAAe;;AAK5B;;;;;;kBAMO;EACL,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,KAAK;EACd,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;EACZ,UAAU,EAAE,UAAU;EACtB,kBAAkB,EAAE,UAAU;EAC9B,eAAe,EAAE,UAAU;;AAG7B;+BACoB;EAClB,QAAQ,EAAE,QAAQ;EAClB,MAAM,EAAE,SAAS;EACjB,OAAO,EAAE,CAAC;EACV,MAAM,EAAE,IAAI;EACZ,KAAK,EAAE,IAAI;EACX,OAAO,EAAE,YAAY;EACrB,MAAM,EAAE,CAAC;;AAGX,kCAAuB;EACrB,kBAAkB,EAAE,QAAQ;;AAG9B,+BAAoB;EAClB,kBAAkB,EAAE,KAAK;;AAG3B,wDAA6C;EAC3C,OAAO,EAAE,eAAe;;AAG1B;;gCAEqB;EACnB,MAAM,EAAE,OAAO;EACf,OAAO,EAAE,YAAY;;AAIvB;cACG;EACD,UAAU,EAAE,IAAI;EAChB,MAAM,EAAE,CAAC;EACT,O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AAC;EACV,eAAe,EAAE,oCAAoC;EACrD,kBAAkB,EAAE,oCAAoC;EACxD,UAAU,EAAE,oCAAoC;;;AC1HlD;kBACmB;EACjB,KAAK,EAAE,kBAAkB;EACzB,gBAAgB,EAAE,kBAAkB;EACpC,YAAY,EAAE,OAAO;;;AAGvB;;;;;wBAKyB;EACvB,KAAK,EAAE,kBAAkB;EACzB,gBAAgB,EAAE,kBAAkB;EACpC,YAAY,EAAE,OAAO;;;AAGvB;;;;;;wBAMyB;EACvB,YAAY,EAAE,OAAO",
|
4 |
"sources": ["../sass/partials/_form-reset.scss","../sass/partials/_form-theme-base.scss","../sass/form-theme-green.scss"],
|
5 |
"names": [],
|
6 |
"file": "form-theme-green.css"
|
assets/css/form-theme-green.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:700}.mc4wp-form
|
1 |
+
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:700}.mc4wp-form input{vertical-align:baseline}.mc4wp-form input.placeholdersjs{color:#aaa!important}.mc4wp-form input[type=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{cursor:auto;display:block;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.mc4wp-form input[type=checkbox],.mc4wp-form input[type=radio]{position:relative;margin:0 6px 0 0;padding:0;height:13px;width:13px;display:inline-block;border:0}.mc4wp-form input[type=checkbox]{-webkit-appearance:checkbox}.mc4wp-form input[type=radio]{-webkit-appearance:radio}.mc4wp-form input[name="_mc4wp_required_but_not_really"]{display:none!important}.mc4wp-form li,.mc4wp-form ul{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:400}.mc4wp-alert{margin:1em 0;padding:10px 15px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;display:block;position:relative}.mc4wp-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.mc4wp-notice{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.mc4wp-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.mc4wp-form form,form.mc4wp-form{box-shadow:none!important;-webkit-box-shadow:none;-moz-box-shadow:none;width:auto}.mc4wp-form p{margin:0 0 15px!important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle;background-color:#fff;border:1px solid #ccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-moz-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;background-image:none;text-shadow:none}.mc4wp-form input[type=email]:focus,.mc4wp-form input[type=tel]:focus,.mc4wp-form input[type=text]:focus,.mc4wp-form input[type=url]:focus,.mc4wp-form select:focus,.mc4wp-form textarea:focus{outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[disabled],.mc4wp-form input[readonly]{background-color:#eee}.mc4wp-form button,.mc4wp-form input[type=button],.mc4wp-form input[type=submit]{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;box-shadow:none;background:0 0;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form button:focus,.mc4wp-form input[type=button]:focus,.mc4wp-form input[type=submit]:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=button]:focus,.mc4wp-form input[type=button]:hover,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#333;text-decoration:none;background:0 0}.mc4wp-form button:active,.mc4wp-form input[type=button]:active,.mc4wp-form input[type=submit]:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.mc4wp-form button,.mc4wp-form input[type=submit]{color:#fff!important;background-color:#5cb85c!important;border-color:#4cae4c}.mc4wp-form button:active,.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=submit]:active,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#fff!important;background-color:#47a447!important;border-color:#398439}.mc4wp-form input[type=date]:focus,.mc4wp-form input[type=email]:focus,.mc4wp-form input[type=tel]:focus,.mc4wp-form input[type=text]:focus,.mc4wp-form input[type=url]:focus,.mc4wp-form select:focus,.mc4wp-form textarea:focus{border-color:#5cb85c}
|
assets/css/form-theme-light.css
CHANGED
@@ -1,43 +1,23 @@
|
|
1 |
/* MailChimp for WP - Default Form Styles */
|
2 |
.mc4wp-form {
|
3 |
margin: 1em 0;
|
|
|
|
|
4 |
}
|
5 |
-
|
6 |
-
form.mc4wp-form,
|
7 |
.mc4wp-form form {
|
8 |
width: auto;
|
9 |
}
|
10 |
-
|
11 |
.mc4wp-form label {
|
12 |
display: block;
|
13 |
font-weight: bold;
|
14 |
margin-bottom: 5px;
|
15 |
}
|
16 |
-
|
17 |
-
.mc4wp-form ul,
|
18 |
-
.mc4wp-form li {
|
19 |
-
list-style: none;
|
20 |
-
margin: 0;
|
21 |
-
padding: 0;
|
22 |
-
}
|
23 |
-
|
24 |
-
.mc4wp-form label > span,
|
25 |
-
.mc4wp-form li > label {
|
26 |
-
font-weight: normal;
|
27 |
-
}
|
28 |
-
|
29 |
-
.mc4wp-form p > label:nth-child(2) {
|
30 |
-
margin-top: 10px;
|
31 |
-
}
|
32 |
-
|
33 |
.mc4wp-form input {
|
34 |
vertical-align: baseline;
|
35 |
}
|
36 |
-
|
37 |
.mc4wp-form input.placeholdersjs {
|
38 |
color: #aaa !important;
|
39 |
}
|
40 |
-
|
41 |
.mc4wp-form input[type="text"],
|
42 |
.mc4wp-form input[type="email"],
|
43 |
.mc4wp-form input[type="tel"],
|
@@ -53,7 +33,6 @@ form.mc4wp-form,
|
|
53 |
-webkit-box-sizing: border-box;
|
54 |
-moz-box-sizing: border-box;
|
55 |
}
|
56 |
-
|
57 |
.mc4wp-form input[type="checkbox"],
|
58 |
.mc4wp-form input[type="radio"] {
|
59 |
position: relative;
|
@@ -64,21 +43,31 @@ form.mc4wp-form,
|
|
64 |
display: inline-block;
|
65 |
border: 0;
|
66 |
}
|
67 |
-
|
68 |
.mc4wp-form input[type="checkbox"] {
|
69 |
-webkit-appearance: checkbox;
|
70 |
}
|
71 |
-
|
72 |
.mc4wp-form input[type="radio"] {
|
73 |
-webkit-appearance: radio;
|
74 |
}
|
75 |
-
|
|
|
|
|
76 |
.mc4wp-form input[type="submit"],
|
77 |
.mc4wp-form button,
|
78 |
.mc4wp-form input[type="button"] {
|
79 |
cursor: pointer;
|
80 |
display: inline-block;
|
81 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
.mc4wp-alert {
|
84 |
margin: 1em 0;
|
@@ -183,6 +172,7 @@ form.mc4wp-form,
|
|
183 |
}
|
184 |
|
185 |
.mc4wp-form input[type="submit"],
|
|
|
186 |
.mc4wp-form button {
|
187 |
display: inline-block;
|
188 |
padding: 6px 12px;
|
@@ -210,6 +200,7 @@ form.mc4wp-form,
|
|
210 |
}
|
211 |
|
212 |
.mc4wp-form input[type="submit"]:focus,
|
|
|
213 |
.mc4wp-form button:focus {
|
214 |
outline: thin dotted #333;
|
215 |
outline: 5px auto -webkit-focus-ring-color;
|
@@ -217,8 +208,10 @@ form.mc4wp-form,
|
|
217 |
}
|
218 |
|
219 |
.mc4wp-form input[type="submit"]:hover,
|
|
|
220 |
.mc4wp-form button:hover,
|
221 |
.mc4wp-form input[type="submit"]:focus,
|
|
|
222 |
.mc4wp-form button:focus {
|
223 |
color: #333333;
|
224 |
text-decoration: none;
|
@@ -226,6 +219,7 @@ form.mc4wp-form,
|
|
226 |
}
|
227 |
|
228 |
.mc4wp-form input[type="submit"]:active,
|
|
|
229 |
.mc4wp-form button:active {
|
230 |
background-image: none;
|
231 |
outline: 0;
|
1 |
/* MailChimp for WP - Default Form Styles */
|
2 |
.mc4wp-form {
|
3 |
margin: 1em 0;
|
4 |
+
/* Form Elements */
|
5 |
+
/* Other elements */
|
6 |
}
|
|
|
|
|
7 |
.mc4wp-form form {
|
8 |
width: auto;
|
9 |
}
|
|
|
10 |
.mc4wp-form label {
|
11 |
display: block;
|
12 |
font-weight: bold;
|
13 |
margin-bottom: 5px;
|
14 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
.mc4wp-form input {
|
16 |
vertical-align: baseline;
|
17 |
}
|
|
|
18 |
.mc4wp-form input.placeholdersjs {
|
19 |
color: #aaa !important;
|
20 |
}
|
|
|
21 |
.mc4wp-form input[type="text"],
|
22 |
.mc4wp-form input[type="email"],
|
23 |
.mc4wp-form input[type="tel"],
|
33 |
-webkit-box-sizing: border-box;
|
34 |
-moz-box-sizing: border-box;
|
35 |
}
|
|
|
36 |
.mc4wp-form input[type="checkbox"],
|
37 |
.mc4wp-form input[type="radio"] {
|
38 |
position: relative;
|
43 |
display: inline-block;
|
44 |
border: 0;
|
45 |
}
|
|
|
46 |
.mc4wp-form input[type="checkbox"] {
|
47 |
-webkit-appearance: checkbox;
|
48 |
}
|
|
|
49 |
.mc4wp-form input[type="radio"] {
|
50 |
-webkit-appearance: radio;
|
51 |
}
|
52 |
+
.mc4wp-form input[name="_mc4wp_required_but_not_really"] {
|
53 |
+
display: none !important;
|
54 |
+
}
|
55 |
.mc4wp-form input[type="submit"],
|
56 |
.mc4wp-form button,
|
57 |
.mc4wp-form input[type="button"] {
|
58 |
cursor: pointer;
|
59 |
display: inline-block;
|
60 |
}
|
61 |
+
.mc4wp-form ul,
|
62 |
+
.mc4wp-form li {
|
63 |
+
list-style: none;
|
64 |
+
margin: 0;
|
65 |
+
padding: 0;
|
66 |
+
}
|
67 |
+
.mc4wp-form label > span,
|
68 |
+
.mc4wp-form li > label {
|
69 |
+
font-weight: normal;
|
70 |
+
}
|
71 |
|
72 |
.mc4wp-alert {
|
73 |
margin: 1em 0;
|
172 |
}
|
173 |
|
174 |
.mc4wp-form input[type="submit"],
|
175 |
+
.mc4wp-form input[type="button"],
|
176 |
.mc4wp-form button {
|
177 |
display: inline-block;
|
178 |
padding: 6px 12px;
|
200 |
}
|
201 |
|
202 |
.mc4wp-form input[type="submit"]:focus,
|
203 |
+
.mc4wp-form input[type="button"]:focus,
|
204 |
.mc4wp-form button:focus {
|
205 |
outline: thin dotted #333;
|
206 |
outline: 5px auto -webkit-focus-ring-color;
|
208 |
}
|
209 |
|
210 |
.mc4wp-form input[type="submit"]:hover,
|
211 |
+
.mc4wp-form input[type="button"]:hover,
|
212 |
.mc4wp-form button:hover,
|
213 |
.mc4wp-form input[type="submit"]:focus,
|
214 |
+
.mc4wp-form input[type="button"]:focus,
|
215 |
.mc4wp-form button:focus {
|
216 |
color: #333333;
|
217 |
text-decoration: none;
|
219 |
}
|
220 |
|
221 |
.mc4wp-form input[type="submit"]:active,
|
222 |
+
.mc4wp-form input[type="button"]:active,
|
223 |
.mc4wp-form button:active {
|
224 |
background-image: none;
|
225 |
outline: 0;
|
assets/css/form-theme-light.css.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"version": 3,
|
3 |
-
"mappings": ";AAEA,WAAW;EACT,MAAM,EAAE,KAAK
|
4 |
"sources": ["../sass/partials/_form-reset.scss","../sass/partials/_form-theme-base.scss","../sass/form-theme-light.scss"],
|
5 |
"names": [],
|
6 |
"file": "form-theme-light.css"
|
1 |
{
|
2 |
"version": 3,
|
3 |
+
"mappings": ";AAEA,WAAW;EACT,MAAM,EAAE,KAAK;;;;AAGb,gBAAI;EACF,KAAK,EAAE,IAAI;;AAGb,iBAAM;EACJ,OAAO,EAAE,KAAK;EACd,WAAW,EAAE,IAAI;EACjB,aAAa,EAAE,GAAG;;AAGpB,iBAAM;EACJ,cAAc,EAAE,QAAQ;;AAGxB,gCAAiB;EACb,KAAK,EAAE,eAAe;;AAK5B;;;;;;kBAMO;EACL,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,KAAK;EACd,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;EACZ,UAAU,EAAE,UAAU;EACtB,kBAAkB,EAAE,UAAU;EAC9B,eAAe,EAAE,UAAU;;AAG7B;+BACoB;EAClB,QAAQ,EAAE,QAAQ;EAClB,MAAM,EAAE,SAAS;EACjB,OAAO,EAAE,CAAC;EACV,MAAM,EAAE,IAAI;EACZ,KAAK,EAAE,IAAI;EACX,OAAO,EAAE,YAAY;EACrB,MAAM,EAAE,CAAC;;AAGX,kCAAuB;EACrB,kBAAkB,EAAE,QAAQ;;AAG9B,+BAAoB;EAClB,kBAAkB,EAAE,KAAK;;AAG3B,wDAA6C;EAC3C,OAAO,EAAE,eAAe;;AAG1B;;gCAEqB;EACnB,MAA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e,EAAE,IAAI;EACtB,UAAU,EAAE,IAAI;;;AAGjB;;yBAE0B;EACxB,gBAAgB,EAAE,IAAI;EACtB,OAAO,EAAE,CAAC;EACV,eAAe,EAAE,oCAAoC;EACrD,kBAAkB,EAAE,oCAAoC;EACxD,UAAU,EAAE,oCAAoC;;;AC1HlD;kBACmB;EACjB,KAAK,EAAE,kBAAkB;EACzB,gBAAgB,EAAE,kBAAkB;EACpC,YAAY,EAAE,OAAO;;;AAGvB;;;;;wBAKyB;EACvB,KAAK,EAAE,kBAAkB;EACzB,gBAAgB,EAAE,kBAAkB;EACpC,YAAY,EAAE,OAAO",
|
4 |
"sources": ["../sass/partials/_form-reset.scss","../sass/partials/_form-theme-base.scss","../sass/form-theme-light.scss"],
|
5 |
"names": [],
|
6 |
"file": "form-theme-light.css"
|
assets/css/form-theme-light.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:700}.mc4wp-form
|
1 |
+
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:700}.mc4wp-form input{vertical-align:baseline}.mc4wp-form input.placeholdersjs{color:#aaa!important}.mc4wp-form input[type=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{cursor:auto;display:block;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.mc4wp-form input[type=checkbox],.mc4wp-form input[type=radio]{position:relative;margin:0 6px 0 0;padding:0;height:13px;width:13px;display:inline-block;border:0}.mc4wp-form input[type=checkbox]{-webkit-appearance:checkbox}.mc4wp-form input[type=radio]{-webkit-appearance:radio}.mc4wp-form input[name="_mc4wp_required_but_not_really"]{display:none!important}.mc4wp-form li,.mc4wp-form ul{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:400}.mc4wp-alert{margin:1em 0;padding:10px 15px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;display:block;position:relative}.mc4wp-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.mc4wp-notice{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.mc4wp-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.mc4wp-form form,form.mc4wp-form{box-shadow:none!important;-webkit-box-shadow:none;-moz-box-shadow:none;width:auto}.mc4wp-form p{margin:0 0 15px!important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle;background-color:#fff;border:1px solid #ccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-moz-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;background-image:none;text-shadow:none}.mc4wp-form input[type=email]:focus,.mc4wp-form input[type=tel]:focus,.mc4wp-form input[type=text]:focus,.mc4wp-form input[type=url]:focus,.mc4wp-form select:focus,.mc4wp-form textarea:focus{border-color:#66afe9;outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[disabled],.mc4wp-form input[readonly]{background-color:#eee}.mc4wp-form button,.mc4wp-form input[type=button],.mc4wp-form input[type=submit]{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;box-shadow:none;background:0 0;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form button:focus,.mc4wp-form input[type=button]:focus,.mc4wp-form input[type=submit]:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=button]:focus,.mc4wp-form input[type=button]:hover,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#333;text-decoration:none;background:0 0}.mc4wp-form button:active,.mc4wp-form input[type=button]:active,.mc4wp-form input[type=submit]:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.mc4wp-form button,.mc4wp-form input[type=submit]{color:#333!important;background-color:#fff!important;border-color:#E6E6E6}.mc4wp-form button:active,.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=submit]:active,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#E6E6E6!important;background-color:#ebebeb!important;border-color:#CCC}
|
assets/css/form-theme-red.css
CHANGED
@@ -1,43 +1,23 @@
|
|
1 |
/* MailChimp for WP - Default Form Styles */
|
2 |
.mc4wp-form {
|
3 |
margin: 1em 0;
|
|
|
|
|
4 |
}
|
5 |
-
|
6 |
-
form.mc4wp-form,
|
7 |
.mc4wp-form form {
|
8 |
width: auto;
|
9 |
}
|
10 |
-
|
11 |
.mc4wp-form label {
|
12 |
display: block;
|
13 |
font-weight: bold;
|
14 |
margin-bottom: 5px;
|
15 |
}
|
16 |
-
|
17 |
-
.mc4wp-form ul,
|
18 |
-
.mc4wp-form li {
|
19 |
-
list-style: none;
|
20 |
-
margin: 0;
|
21 |
-
padding: 0;
|
22 |
-
}
|
23 |
-
|
24 |
-
.mc4wp-form label > span,
|
25 |
-
.mc4wp-form li > label {
|
26 |
-
font-weight: normal;
|
27 |
-
}
|
28 |
-
|
29 |
-
.mc4wp-form p > label:nth-child(2) {
|
30 |
-
margin-top: 10px;
|
31 |
-
}
|
32 |
-
|
33 |
.mc4wp-form input {
|
34 |
vertical-align: baseline;
|
35 |
}
|
36 |
-
|
37 |
.mc4wp-form input.placeholdersjs {
|
38 |
color: #aaa !important;
|
39 |
}
|
40 |
-
|
41 |
.mc4wp-form input[type="text"],
|
42 |
.mc4wp-form input[type="email"],
|
43 |
.mc4wp-form input[type="tel"],
|
@@ -53,7 +33,6 @@ form.mc4wp-form,
|
|
53 |
-webkit-box-sizing: border-box;
|
54 |
-moz-box-sizing: border-box;
|
55 |
}
|
56 |
-
|
57 |
.mc4wp-form input[type="checkbox"],
|
58 |
.mc4wp-form input[type="radio"] {
|
59 |
position: relative;
|
@@ -64,21 +43,31 @@ form.mc4wp-form,
|
|
64 |
display: inline-block;
|
65 |
border: 0;
|
66 |
}
|
67 |
-
|
68 |
.mc4wp-form input[type="checkbox"] {
|
69 |
-webkit-appearance: checkbox;
|
70 |
}
|
71 |
-
|
72 |
.mc4wp-form input[type="radio"] {
|
73 |
-webkit-appearance: radio;
|
74 |
}
|
75 |
-
|
|
|
|
|
76 |
.mc4wp-form input[type="submit"],
|
77 |
.mc4wp-form button,
|
78 |
.mc4wp-form input[type="button"] {
|
79 |
cursor: pointer;
|
80 |
display: inline-block;
|
81 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
.mc4wp-alert {
|
84 |
margin: 1em 0;
|
@@ -183,6 +172,7 @@ form.mc4wp-form,
|
|
183 |
}
|
184 |
|
185 |
.mc4wp-form input[type="submit"],
|
|
|
186 |
.mc4wp-form button {
|
187 |
display: inline-block;
|
188 |
padding: 6px 12px;
|
@@ -210,6 +200,7 @@ form.mc4wp-form,
|
|
210 |
}
|
211 |
|
212 |
.mc4wp-form input[type="submit"]:focus,
|
|
|
213 |
.mc4wp-form button:focus {
|
214 |
outline: thin dotted #333;
|
215 |
outline: 5px auto -webkit-focus-ring-color;
|
@@ -217,8 +208,10 @@ form.mc4wp-form,
|
|
217 |
}
|
218 |
|
219 |
.mc4wp-form input[type="submit"]:hover,
|
|
|
220 |
.mc4wp-form button:hover,
|
221 |
.mc4wp-form input[type="submit"]:focus,
|
|
|
222 |
.mc4wp-form button:focus {
|
223 |
color: #333333;
|
224 |
text-decoration: none;
|
@@ -226,6 +219,7 @@ form.mc4wp-form,
|
|
226 |
}
|
227 |
|
228 |
.mc4wp-form input[type="submit"]:active,
|
|
|
229 |
.mc4wp-form button:active {
|
230 |
background-image: none;
|
231 |
outline: 0;
|
1 |
/* MailChimp for WP - Default Form Styles */
|
2 |
.mc4wp-form {
|
3 |
margin: 1em 0;
|
4 |
+
/* Form Elements */
|
5 |
+
/* Other elements */
|
6 |
}
|
|
|
|
|
7 |
.mc4wp-form form {
|
8 |
width: auto;
|
9 |
}
|
|
|
10 |
.mc4wp-form label {
|
11 |
display: block;
|
12 |
font-weight: bold;
|
13 |
margin-bottom: 5px;
|
14 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
.mc4wp-form input {
|
16 |
vertical-align: baseline;
|
17 |
}
|
|
|
18 |
.mc4wp-form input.placeholdersjs {
|
19 |
color: #aaa !important;
|
20 |
}
|
|
|
21 |
.mc4wp-form input[type="text"],
|
22 |
.mc4wp-form input[type="email"],
|
23 |
.mc4wp-form input[type="tel"],
|
33 |
-webkit-box-sizing: border-box;
|
34 |
-moz-box-sizing: border-box;
|
35 |
}
|
|
|
36 |
.mc4wp-form input[type="checkbox"],
|
37 |
.mc4wp-form input[type="radio"] {
|
38 |
position: relative;
|
43 |
display: inline-block;
|
44 |
border: 0;
|
45 |
}
|
|
|
46 |
.mc4wp-form input[type="checkbox"] {
|
47 |
-webkit-appearance: checkbox;
|
48 |
}
|
|
|
49 |
.mc4wp-form input[type="radio"] {
|
50 |
-webkit-appearance: radio;
|
51 |
}
|
52 |
+
.mc4wp-form input[name="_mc4wp_required_but_not_really"] {
|
53 |
+
display: none !important;
|
54 |
+
}
|
55 |
.mc4wp-form input[type="submit"],
|
56 |
.mc4wp-form button,
|
57 |
.mc4wp-form input[type="button"] {
|
58 |
cursor: pointer;
|
59 |
display: inline-block;
|
60 |
}
|
61 |
+
.mc4wp-form ul,
|
62 |
+
.mc4wp-form li {
|
63 |
+
list-style: none;
|
64 |
+
margin: 0;
|
65 |
+
padding: 0;
|
66 |
+
}
|
67 |
+
.mc4wp-form label > span,
|
68 |
+
.mc4wp-form li > label {
|
69 |
+
font-weight: normal;
|
70 |
+
}
|
71 |
|
72 |
.mc4wp-alert {
|
73 |
margin: 1em 0;
|
172 |
}
|
173 |
|
174 |
.mc4wp-form input[type="submit"],
|
175 |
+
.mc4wp-form input[type="button"],
|
176 |
.mc4wp-form button {
|
177 |
display: inline-block;
|
178 |
padding: 6px 12px;
|
200 |
}
|
201 |
|
202 |
.mc4wp-form input[type="submit"]:focus,
|
203 |
+
.mc4wp-form input[type="button"]:focus,
|
204 |
.mc4wp-form button:focus {
|
205 |
outline: thin dotted #333;
|
206 |
outline: 5px auto -webkit-focus-ring-color;
|
208 |
}
|
209 |
|
210 |
.mc4wp-form input[type="submit"]:hover,
|
211 |
+
.mc4wp-form input[type="button"]:hover,
|
212 |
.mc4wp-form button:hover,
|
213 |
.mc4wp-form input[type="submit"]:focus,
|
214 |
+
.mc4wp-form input[type="button"]:focus,
|
215 |
.mc4wp-form button:focus {
|
216 |
color: #333333;
|
217 |
text-decoration: none;
|
219 |
}
|
220 |
|
221 |
.mc4wp-form input[type="submit"]:active,
|
222 |
+
.mc4wp-form input[type="button"]:active,
|
223 |
.mc4wp-form button:active {
|
224 |
background-image: none;
|
225 |
outline: 0;
|
assets/css/form-theme-red.css.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"version": 3,
|
3 |
-
"mappings": ";AAEA,WAAW;EACT,MAAM,EAAE,KAAK
|
4 |
"sources": ["../sass/partials/_form-reset.scss","../sass/partials/_form-theme-base.scss","../sass/form-theme-red.scss"],
|
5 |
"names": [],
|
6 |
"file": "form-theme-red.css"
|
1 |
{
|
2 |
"version": 3,
|
3 |
+
"mappings": ";AAEA,WAAW;EACT,MAAM,EAAE,KAAK;;;;AAGb,gBAAI;EACF,KAAK,EAAE,IAAI;;AAGb,iBAAM;EACJ,OAAO,EAAE,KAAK;EACd,WAAW,EAAE,IAAI;EACjB,aAAa,EAAE,GAAG;;AAGpB,iBAAM;EACJ,cAAc,EAAE,QAAQ;;AAGxB,gCAAiB;EACb,KAAK,EAAE,eAAe;;AAK5B;;;;;;kBAMO;EACL,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,KAAK;EACd,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;EACZ,UAAU,EAAE,UAAU;EACtB,kBAAkB,EAAE,UAAU;EAC9B,eAAe,EAAE,UAAU;;AAG7B;+BACoB;EAClB,QAAQ,EAAE,QAAQ;EAClB,MAAM,EAAE,SAAS;EACjB,OAAO,EAAE,CAAC;EACV,MAAM,EAAE,IAAI;EACZ,KAAK,EAAE,IAAI;EACX,OAAO,EAAE,YAAY;EACrB,MAAM,EAAE,CAAC;;AAGX,kCAAuB;EACrB,kBAAkB,EAAE,QAAQ;;AAG9B,+BAAoB;EAClB,kBAAkB,EAAE,KAAK;;AAG3B,wDAA6C;EAC3C,OAAO,EAAE,eAAe;;AAG1B;;gCAEqB;EACnB,MAAM,EAAE,OAAO;EACf,OAAO,EAAE,YAAY;;AAIvB;cACG;EACD,UAAU,EAAE,IAAI;EAChB,MAAM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EACtB,OAAO,EAAE,CAAC;EACV,eAAe,EAAE,oCAAoC;EACrD,kBAAkB,EAAE,oCAAoC;EACxD,UAAU,EAAE,oCAAoC;;;AC1HlD;kBACmB;EACjB,KAAK,EAAE,kBAAkB;EACzB,gBAAgB,EAAE,kBAAkB;EACpC,YAAY,EAAE,OAAO;;;AAGvB;;;;;wBAKyB;EACvB,KAAK,EAAE,kBAAkB;EACzB,gBAAgB,EAAE,kBAAkB;EACpC,YAAY,EAAE,OAAO;;;AAGvB;;;;;;wBAMyB;EACvB,YAAY,EAAE,OAAO",
|
4 |
"sources": ["../sass/partials/_form-reset.scss","../sass/partials/_form-theme-base.scss","../sass/form-theme-red.scss"],
|
5 |
"names": [],
|
6 |
"file": "form-theme-red.css"
|
assets/css/form-theme-red.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:700}.mc4wp-form
|
1 |
+
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:700}.mc4wp-form input{vertical-align:baseline}.mc4wp-form input.placeholdersjs{color:#aaa!important}.mc4wp-form input[type=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{cursor:auto;display:block;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.mc4wp-form input[type=checkbox],.mc4wp-form input[type=radio]{position:relative;margin:0 6px 0 0;padding:0;height:13px;width:13px;display:inline-block;border:0}.mc4wp-form input[type=checkbox]{-webkit-appearance:checkbox}.mc4wp-form input[type=radio]{-webkit-appearance:radio}.mc4wp-form input[name="_mc4wp_required_but_not_really"]{display:none!important}.mc4wp-form li,.mc4wp-form ul{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:400}.mc4wp-alert{margin:1em 0;padding:10px 15px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;display:block;position:relative}.mc4wp-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.mc4wp-notice{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.mc4wp-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.mc4wp-form form,form.mc4wp-form{box-shadow:none!important;-webkit-box-shadow:none;-moz-box-shadow:none;width:auto}.mc4wp-form p{margin:0 0 15px!important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle;background-color:#fff;border:1px solid #ccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-moz-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;background-image:none;text-shadow:none}.mc4wp-form input[type=email]:focus,.mc4wp-form input[type=tel]:focus,.mc4wp-form input[type=text]:focus,.mc4wp-form input[type=url]:focus,.mc4wp-form select:focus,.mc4wp-form textarea:focus{outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[disabled],.mc4wp-form input[readonly]{background-color:#eee}.mc4wp-form button,.mc4wp-form input[type=button],.mc4wp-form input[type=submit]{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;box-shadow:none;background:0 0;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form button:focus,.mc4wp-form input[type=button]:focus,.mc4wp-form input[type=submit]:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=button]:focus,.mc4wp-form input[type=button]:hover,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#333;text-decoration:none;background:0 0}.mc4wp-form button:active,.mc4wp-form input[type=button]:active,.mc4wp-form input[type=submit]:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.mc4wp-form button,.mc4wp-form input[type=submit]{color:#fff!important;background-color:#d9534f!important;border-color:#d43f3a}.mc4wp-form button:active,.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=submit]:active,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#fff!important;background-color:#d2322d!important;border-color:#ac2925}.mc4wp-form input[type=date]:focus,.mc4wp-form input[type=email]:focus,.mc4wp-form input[type=tel]:focus,.mc4wp-form input[type=text]:focus,.mc4wp-form input[type=url]:focus,.mc4wp-form select:focus,.mc4wp-form textarea:focus{border-color:#d9534f}
|
assets/css/form.css
CHANGED
@@ -1,43 +1,23 @@
|
|
1 |
/* MailChimp for WP - Default Form Styles */
|
2 |
.mc4wp-form {
|
3 |
margin: 1em 0;
|
|
|
|
|
4 |
}
|
5 |
-
|
6 |
-
form.mc4wp-form,
|
7 |
.mc4wp-form form {
|
8 |
width: auto;
|
9 |
}
|
10 |
-
|
11 |
.mc4wp-form label {
|
12 |
display: block;
|
13 |
font-weight: bold;
|
14 |
margin-bottom: 5px;
|
15 |
}
|
16 |
-
|
17 |
-
.mc4wp-form ul,
|
18 |
-
.mc4wp-form li {
|
19 |
-
list-style: none;
|
20 |
-
margin: 0;
|
21 |
-
padding: 0;
|
22 |
-
}
|
23 |
-
|
24 |
-
.mc4wp-form label > span,
|
25 |
-
.mc4wp-form li > label {
|
26 |
-
font-weight: normal;
|
27 |
-
}
|
28 |
-
|
29 |
-
.mc4wp-form p > label:nth-child(2) {
|
30 |
-
margin-top: 10px;
|
31 |
-
}
|
32 |
-
|
33 |
.mc4wp-form input {
|
34 |
vertical-align: baseline;
|
35 |
}
|
36 |
-
|
37 |
.mc4wp-form input.placeholdersjs {
|
38 |
color: #aaa !important;
|
39 |
}
|
40 |
-
|
41 |
.mc4wp-form input[type="text"],
|
42 |
.mc4wp-form input[type="email"],
|
43 |
.mc4wp-form input[type="tel"],
|
@@ -53,7 +33,6 @@ form.mc4wp-form,
|
|
53 |
-webkit-box-sizing: border-box;
|
54 |
-moz-box-sizing: border-box;
|
55 |
}
|
56 |
-
|
57 |
.mc4wp-form input[type="checkbox"],
|
58 |
.mc4wp-form input[type="radio"] {
|
59 |
position: relative;
|
@@ -64,21 +43,31 @@ form.mc4wp-form,
|
|
64 |
display: inline-block;
|
65 |
border: 0;
|
66 |
}
|
67 |
-
|
68 |
.mc4wp-form input[type="checkbox"] {
|
69 |
-webkit-appearance: checkbox;
|
70 |
}
|
71 |
-
|
72 |
.mc4wp-form input[type="radio"] {
|
73 |
-webkit-appearance: radio;
|
74 |
}
|
75 |
-
|
|
|
|
|
76 |
.mc4wp-form input[type="submit"],
|
77 |
.mc4wp-form button,
|
78 |
.mc4wp-form input[type="button"] {
|
79 |
cursor: pointer;
|
80 |
display: inline-block;
|
81 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
.mc4wp-alert {
|
84 |
margin: 1em 0;
|
1 |
/* MailChimp for WP - Default Form Styles */
|
2 |
.mc4wp-form {
|
3 |
margin: 1em 0;
|
4 |
+
/* Form Elements */
|
5 |
+
/* Other elements */
|
6 |
}
|
|
|
|
|
7 |
.mc4wp-form form {
|
8 |
width: auto;
|
9 |
}
|
|
|
10 |
.mc4wp-form label {
|
11 |
display: block;
|
12 |
font-weight: bold;
|
13 |
margin-bottom: 5px;
|
14 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
.mc4wp-form input {
|
16 |
vertical-align: baseline;
|
17 |
}
|
|
|
18 |
.mc4wp-form input.placeholdersjs {
|
19 |
color: #aaa !important;
|
20 |
}
|
|
|
21 |
.mc4wp-form input[type="text"],
|
22 |
.mc4wp-form input[type="email"],
|
23 |
.mc4wp-form input[type="tel"],
|
33 |
-webkit-box-sizing: border-box;
|
34 |
-moz-box-sizing: border-box;
|
35 |
}
|
|
|
36 |
.mc4wp-form input[type="checkbox"],
|
37 |
.mc4wp-form input[type="radio"] {
|
38 |
position: relative;
|
43 |
display: inline-block;
|
44 |
border: 0;
|
45 |
}
|
|
|
46 |
.mc4wp-form input[type="checkbox"] {
|
47 |
-webkit-appearance: checkbox;
|
48 |
}
|
|
|
49 |
.mc4wp-form input[type="radio"] {
|
50 |
-webkit-appearance: radio;
|
51 |
}
|
52 |
+
.mc4wp-form input[name="_mc4wp_required_but_not_really"] {
|
53 |
+
display: none !important;
|
54 |
+
}
|
55 |
.mc4wp-form input[type="submit"],
|
56 |
.mc4wp-form button,
|
57 |
.mc4wp-form input[type="button"] {
|
58 |
cursor: pointer;
|
59 |
display: inline-block;
|
60 |
}
|
61 |
+
.mc4wp-form ul,
|
62 |
+
.mc4wp-form li {
|
63 |
+
list-style: none;
|
64 |
+
margin: 0;
|
65 |
+
padding: 0;
|
66 |
+
}
|
67 |
+
.mc4wp-form label > span,
|
68 |
+
.mc4wp-form li > label {
|
69 |
+
font-weight: normal;
|
70 |
+
}
|
71 |
|
72 |
.mc4wp-alert {
|
73 |
margin: 1em 0;
|
assets/css/form.css.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"version": 3,
|
3 |
-
"mappings": ";AAEA,WAAW;EACT,MAAM,EAAE,KAAK
|
4 |
"sources": ["../sass/partials/_form-reset.scss"],
|
5 |
"names": [],
|
6 |
"file": "form.css"
|
1 |
{
|
2 |
"version": 3,
|
3 |
+
"mappings": ";AAEA,WAAW;EACT,MAAM,EAAE,KAAK;;;;AAGb,gBAAI;EACF,KAAK,EAAE,IAAI;;AAGb,iBAAM;EACJ,OAAO,EAAE,KAAK;EACd,WAAW,EAAE,IAAI;EACjB,aAAa,EAAE,GAAG;;AAGpB,iBAAM;EACJ,cAAc,EAAE,QAAQ;;AAGxB,gCAAiB;EACb,KAAK,EAAE,eAAe;;AAK5B;;;;;;kBAMO;EACL,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,KAAK;EACd,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;EACZ,UAAU,EAAE,UAAU;EACtB,kBAAkB,EAAE,UAAU;EAC9B,eAAe,EAAE,UAAU;;AAG7B;+BACoB;EAClB,QAAQ,EAAE,QAAQ;EAClB,MAAM,EAAE,SAAS;EACjB,OAAO,EAAE,CAAC;EACV,MAAM,EAAE,IAAI;EACZ,KAAK,EAAE,IAAI;EACX,OAAO,EAAE,YAAY;EACrB,MAAM,EAAE,CAAC;;AAGX,kCAAuB;EACrB,kBAAkB,EAAE,QAAQ;;AAG9B,+BAAoB;EAClB,kBAAkB,EAAE,KAAK;;AAG3B,wDAA6C;EAC3C,OAAO,EAAE,eAAe;;AAG1B;;gCAEqB;EACnB,MAAM,EAAE,OAAO;EACf,OAAO,EAAE,YAAY;;AAIvB;cACG;EACD,UAAU,EAAE,IAAI;EAChB,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;;AAGZ;sBACW;EACT,WAAW,EAAE,MAAM;;;AAMvB,YAAY;EACV,MAAM,EAAE,KAAK;EACb,OAAO,EAAE,SAAS;EAClB,KAAK,EAAE,OAAO;EACd,gBAAgB,EAAE,OAAO;EACzB,MAAM,EAAE,iBAAiB;EACzB,aAAa,EAAE,GAAG;EAClB,kBAAkB,EAAE,GAAG;EACvB,qBAAqB,EAAE,GAAG;EAC1B,OAAO,EAAE,KAAK;EACd,QAAQ,EAAE,QAAQ;;;AAGpB,cAAe;EACb,KAAK,EAAE,OAAO;EACd,gBAAgB,EAAE,OAAO;EACzB,YAAY,EAAE,OAAO;;;AAGvB,aAAc;EACZ,KAAK,EAAE,OAAO;EACd,gBAAgB,EAAE,OAAO;EACzB,YAAY,EAAE,OAAO;;;AAGvB,YAAa;EACX,KAAK,EAAE,OAAO;EACd,gBAAgB,EAAE,OAAO;EACzB,YAAY,EAAE,OAAO",
|
4 |
"sources": ["../sass/partials/_form-reset.scss"],
|
5 |
"names": [],
|
6 |
"file": "form.css"
|
assets/css/form.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.mc4wp-form{margin:1em 0}.mc4wp-form form
|
1 |
+
.mc4wp-form{margin:1em 0}.mc4wp-form form{width:auto}.mc4wp-form label{display:block;font-weight:700;margin-bottom:5px}.mc4wp-form input{vertical-align:baseline}.mc4wp-form input.placeholdersjs{color:#aaa!important}.mc4wp-form input[type=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{cursor:auto;display:block;width:100%;height:auto;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.mc4wp-form input[type=checkbox],.mc4wp-form input[type=radio]{position:relative;margin:0 6px 0 0;padding:0;height:13px;width:13px;display:inline-block;border:0}.mc4wp-form input[type=checkbox]{-webkit-appearance:checkbox}.mc4wp-form input[type=radio]{-webkit-appearance:radio}.mc4wp-form input[name="_mc4wp_required_but_not_really"]{display:none!important}.mc4wp-form button,.mc4wp-form input[type=button],.mc4wp-form input[type=submit]{cursor:pointer;display:inline-block}.mc4wp-form li,.mc4wp-form ul{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:400}.mc4wp-alert{margin:1em 0;padding:10px 15px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;display:block;position:relative}.mc4wp-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.mc4wp-notice{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.mc4wp-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}
|
assets/css/index.php
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if( ! defined( 'MC4WP_LITE_VERSION' ) ) {
|
3 |
-
header( 'Status: 403 Forbidden' );
|
4 |
-
header( 'HTTP/1.1 403 Forbidden' );
|
5 |
-
exit;
|
6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
assets/img/index.php
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if( ! defined( 'MC4WP_LITE_VERSION' ) ) {
|
3 |
-
header( 'Status: 403 Forbidden' );
|
4 |
-
header( 'HTTP/1.1 403 Forbidden' );
|
5 |
-
exit;
|
6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
assets/index.php
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if( ! defined( 'MC4WP_LITE_VERSION' ) ) {
|
3 |
-
header( 'Status: 403 Forbidden' );
|
4 |
-
header( 'HTTP/1.1 403 Forbidden' );
|
5 |
-
exit;
|
6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
assets/js/admin.js
CHANGED
@@ -1,8 +1,19 @@
|
|
1 |
(function($) {
|
|
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
-
|
|
|
|
|
|
|
6 |
|
7 |
// prevent checking of radio buttons
|
8 |
if( typeof this.checked === 'boolean' ) {
|
@@ -13,27 +24,31 @@
|
|
13 |
event.stopPropagation();
|
14 |
}
|
15 |
|
16 |
-
|
17 |
|
18 |
-
|
19 |
-
$context.find('tr#woocommerce-settings').toggle( $(this).prop( 'checked') );
|
20 |
-
});
|
21 |
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
$(".mc4wp-notice.no-lists-selected").toggle( ! hasListSelected );
|
27 |
-
$( document.getElementById( 'mc4wp-fw-fields')).toggle( hasListSelected );
|
28 |
-
$( document.getElementById( 'mc4wp-fw-mailchimp-fields' )).toggle( hasListSelected );
|
29 |
}
|
30 |
-
|
31 |
-
|
32 |
|
|
|
|
|
|
|
|
|
|
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
-
|
36 |
-
$(document).delegate('#mc4wpformmarkup', 'keydown', function(e) {
|
37 |
var keyCode = e.keyCode || e.which;
|
38 |
|
39 |
if (keyCode === 9) {
|
@@ -45,15 +60,11 @@
|
|
45 |
$(this).val($(this).val().substring(0, start) + "\t" + $(this).val().substring(end));
|
46 |
|
47 |
// put caret at right position again
|
48 |
-
this.selectionStart =
|
49 |
-
this.selectionEnd = start + 1;
|
50 |
}
|
51 |
-
}
|
52 |
-
|
53 |
-
|
54 |
-
// Add buttons to QTags editor
|
55 |
-
(function() {
|
56 |
|
|
|
57 |
if ( typeof(QTags) === 'undefined' ) {
|
58 |
return;
|
59 |
}
|
@@ -66,7 +77,28 @@
|
|
66 |
if( window.mc4wp.hasCaptchaPlugin === true ) {
|
67 |
QTags.addButton( 'mc4wp_captcha', 'CAPTCHA', '{captcha}', '', 'captcha', 'Display a CAPTCHA field' );
|
68 |
}
|
69 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
|
72 |
/**
|
@@ -92,13 +124,47 @@
|
|
92 |
var fieldType, fieldName;
|
93 |
var $codePreview = $("#mc4wp-fw-preview");
|
94 |
var strings = mc4wp.strings.fieldWizard;
|
|
|
|
|
95 |
// functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
// set the fields the user can choose from
|
98 |
function setMailChimpFields()
|
99 |
{
|
100 |
// empty field select
|
101 |
$mailchimpFields.find('option').not('.default').remove();
|
|
|
|
|
|
|
102 |
|
103 |
// loop through checked lists
|
104 |
$lists.filter(':checked').each(function() {
|
@@ -107,8 +173,13 @@
|
|
107 |
|
108 |
// loop through merge fields from this list
|
109 |
for(var i = 0, fieldCount = list.merge_vars.length; i < fieldCount; i++) {
|
|
|
110 |
var listField = list.merge_vars[i];
|
111 |
|
|
|
|
|
|
|
|
|
112 |
// add field to select if no similar option exists yet
|
113 |
if($mailchimpMergeFields.find("option[value='"+ listField.tag +"']").length === 0) {
|
114 |
|
@@ -158,6 +229,9 @@
|
|
158 |
|
159 |
|
160 |
});
|
|
|
|
|
|
|
161 |
}
|
162 |
|
163 |
/**
|
@@ -170,6 +244,11 @@
|
|
170 |
var selected = $(this).find(':selected');
|
171 |
switch( selected.val() ) {
|
172 |
|
|
|
|
|
|
|
|
|
|
|
173 |
case 'submit':
|
174 |
fieldType = 'submit';
|
175 |
$valueLabel.text( strings.buttonText );
|
@@ -300,6 +379,24 @@
|
|
300 |
return html;
|
301 |
}
|
302 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
303 |
|
304 |
|
305 |
/**
|
@@ -385,6 +482,17 @@
|
|
385 |
var $input;
|
386 |
|
387 |
switch(fieldType) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
388 |
// MailChimp lists
|
389 |
case 'lists':
|
390 |
var html = getListChoiceHTML();
|
@@ -497,9 +605,11 @@
|
|
497 |
|
498 |
// fallback, just append
|
499 |
if(!result) {
|
500 |
-
|
501 |
-
$formContent.val($formContent.val() + "\n" + $codePreview.val());
|
502 |
}
|
|
|
|
|
|
|
503 |
}
|
504 |
|
505 |
/**
|
@@ -517,6 +627,15 @@
|
|
517 |
$wizardFields.change(updateCodePreview);
|
518 |
$("#mc4wp-fw-add-to-form").click(addCodeToFormMarkup);
|
519 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
520 |
// init
|
521 |
setMailChimpFields();
|
522 |
|
1 |
(function($) {
|
2 |
+
'use strict';
|
3 |
|
4 |
+
/**
|
5 |
+
* Variables
|
6 |
+
*/
|
7 |
+
var $context = $(document.getElementById('mc4wp-admin'));
|
8 |
+
var $listInputs = $(document.getElementById('mc4wp-lists')).find(':input');
|
9 |
+
var $formMarkup = $(document.getElementById('mc4wpformmarkup'));
|
10 |
+
var $missingFieldsNotice = $(document.getElementById('missing-fields-notice'));
|
11 |
+
var $missingFieldsList = $(document.getElementById('missing-fields-list'));
|
12 |
|
13 |
+
/**
|
14 |
+
* Functions
|
15 |
+
*/
|
16 |
+
function showProNotice() {
|
17 |
|
18 |
// prevent checking of radio buttons
|
19 |
if( typeof this.checked === 'boolean' ) {
|
24 |
event.stopPropagation();
|
25 |
}
|
26 |
|
27 |
+
function toggleSendWelcomeFields() {
|
28 |
|
29 |
+
var $el = $(document.getElementById('mc4wp-send-welcome'));
|
|
|
|
|
30 |
|
31 |
+
if($(this).val() == 0) {
|
32 |
+
$el.removeClass('hidden').find(':input').removeAttr('disabled');
|
33 |
+
} else {
|
34 |
+
$el.addClass('hidden').find(':input').attr('disabled', 'disabled').prop('checked', false);
|
|
|
|
|
|
|
35 |
}
|
36 |
+
}
|
|
|
37 |
|
38 |
+
function toggleWooCommerceSettings() {
|
39 |
+
console.log( $(this).prop('checked'));
|
40 |
+
var $el = $(document.getElementById('woocommerce-settings'));
|
41 |
+
$el.toggle(this.checked);
|
42 |
+
}
|
43 |
|
44 |
+
function toggleFieldWizard() {
|
45 |
+
var hasListSelected = $listInputs.filter(':checked').length > 0;
|
46 |
+
$(".mc4wp-notice.no-lists-selected").toggle( ! hasListSelected );
|
47 |
+
$( document.getElementById( 'mc4wp-fw-fields')).toggle( hasListSelected );
|
48 |
+
$( document.getElementById( 'mc4wp-fw-mailchimp-fields' )).toggle( hasListSelected );
|
49 |
+
}
|
50 |
|
51 |
+
function allowTabKey(e) {
|
|
|
52 |
var keyCode = e.keyCode || e.which;
|
53 |
|
54 |
if (keyCode === 9) {
|
60 |
$(this).val($(this).val().substring(0, start) + "\t" + $(this).val().substring(end));
|
61 |
|
62 |
// put caret at right position again
|
63 |
+
this.selectionStart = this.selectionEnd = start + 1;
|
|
|
64 |
}
|
65 |
+
}
|
|
|
|
|
|
|
|
|
66 |
|
67 |
+
function addQTagsButtons() {
|
68 |
if ( typeof(QTags) === 'undefined' ) {
|
69 |
return;
|
70 |
}
|
77 |
if( window.mc4wp.hasCaptchaPlugin === true ) {
|
78 |
QTags.addButton( 'mc4wp_captcha', 'CAPTCHA', '{captcha}', '', 'captcha', 'Display a CAPTCHA field' );
|
79 |
}
|
80 |
+
}
|
81 |
+
|
82 |
+
/**
|
83 |
+
* Bind Event Handlers
|
84 |
+
*/
|
85 |
+
|
86 |
+
// show a notice when clicking a pro feature
|
87 |
+
$context.find(".pro-feature, .pro-feature label, .pro-feature :radio").click(showProNotice);
|
88 |
+
|
89 |
+
// Show send-welcome field only when double opt-in is disabled
|
90 |
+
$context.find('input[name$="[double_optin]"]').change(toggleSendWelcomeFields);
|
91 |
+
|
92 |
+
// show woocommerce settings only when `show at woocommerce checkout` is checked.
|
93 |
+
$context.find('input[name$="[show_at_woocommerce_checkout]"]').change(toggleWooCommerceSettings);
|
94 |
+
|
95 |
+
// only show fieldwizard when a list is selected
|
96 |
+
$listInputs.change(toggleFieldWizard);
|
97 |
+
|
98 |
+
// Allow tabs inside the form mark-up
|
99 |
+
$(document).delegate('#mc4wpformmarkup', 'keydown', allowTabKey);
|
100 |
+
|
101 |
+
addQTagsButtons();
|
102 |
|
103 |
|
104 |
/**
|
124 |
var fieldType, fieldName;
|
125 |
var $codePreview = $("#mc4wp-fw-preview");
|
126 |
var strings = mc4wp.strings.fieldWizard;
|
127 |
+
var requiredFields = [];
|
128 |
+
|
129 |
// functions
|
130 |
+
function checkRequiredFields() {
|
131 |
+
|
132 |
+
// check presence of reach required field
|
133 |
+
var missingFields = {};
|
134 |
+
for(var i=0; i<requiredFields.length; i++) {
|
135 |
+
var htmlString = 'name="' + requiredFields[i].tag.toLowerCase();
|
136 |
+
if( $formMarkup.val().toLowerCase().indexOf( htmlString ) == -1 ) {
|
137 |
+
missingFields[requiredFields[i].tag] = requiredFields[i];
|
138 |
+
}
|
139 |
+
}
|
140 |
+
|
141 |
+
// do nothing if no fields are missing
|
142 |
+
if($.isEmptyObject(missingFields)) {
|
143 |
+
$missingFieldsNotice.hide();
|
144 |
+
return;
|
145 |
+
}
|
146 |
+
|
147 |
+
// show notice
|
148 |
+
$missingFieldsList.html('');
|
149 |
+
for( var key in missingFields ) {
|
150 |
+
var field = missingFields[key];
|
151 |
+
var $listItem = $("<li></li>");
|
152 |
+
$listItem.html( field.name + " (<code>" + field.tag + "</code>)");
|
153 |
+
$listItem.appendTo( $missingFieldsList );
|
154 |
+
}
|
155 |
+
|
156 |
+
$missingFieldsNotice.show();
|
157 |
+
return;
|
158 |
+
}
|
159 |
|
160 |
// set the fields the user can choose from
|
161 |
function setMailChimpFields()
|
162 |
{
|
163 |
// empty field select
|
164 |
$mailchimpFields.find('option').not('.default').remove();
|
165 |
+
|
166 |
+
// empty required fields array
|
167 |
+
requiredFields = [];
|
168 |
|
169 |
// loop through checked lists
|
170 |
$lists.filter(':checked').each(function() {
|
173 |
|
174 |
// loop through merge fields from this list
|
175 |
for(var i = 0, fieldCount = list.merge_vars.length; i < fieldCount; i++) {
|
176 |
+
|
177 |
var listField = list.merge_vars[i];
|
178 |
|
179 |
+
if( listField.req ) {
|
180 |
+
requiredFields.push( listField );
|
181 |
+
}
|
182 |
+
|
183 |
// add field to select if no similar option exists yet
|
184 |
if($mailchimpMergeFields.find("option[value='"+ listField.tag +"']").length === 0) {
|
185 |
|
229 |
|
230 |
|
231 |
});
|
232 |
+
|
233 |
+
// check required fields with new selected lists
|
234 |
+
checkRequiredFields();
|
235 |
}
|
236 |
|
237 |
/**
|
244 |
var selected = $(this).find(':selected');
|
245 |
switch( selected.val() ) {
|
246 |
|
247 |
+
case '_action':
|
248 |
+
fieldType = 'action';
|
249 |
+
$wizardFields.find('.wrap-p').show();
|
250 |
+
break;
|
251 |
+
|
252 |
case 'submit':
|
253 |
fieldType = 'submit';
|
254 |
$valueLabel.text( strings.buttonText );
|
379 |
return html;
|
380 |
}
|
381 |
|
382 |
+
function getActionChoiceHTML() {
|
383 |
+
var actions = [
|
384 |
+
{ name: "subscribe", label: strings.subscribe, checked: true },
|
385 |
+
{ name: "unsubscribe", label: strings.unsubscribe, checked: false }
|
386 |
+
];
|
387 |
+
|
388 |
+
var html = '';
|
389 |
+
for( var i=0; i<actions.length; i++ ) {
|
390 |
+
var action = actions[i];
|
391 |
+
|
392 |
+
html += '<label>' + "\n";
|
393 |
+
html += "\t" + '<input type="radio" name="_mc4wp_action" value="' + action.name + '" '+ ( ( action.checked ) ? 'checked' : '' ) +' > ' + action.label + "\n";
|
394 |
+
html += '</label>' + "\n";
|
395 |
+
}
|
396 |
+
|
397 |
+
return html;
|
398 |
+
}
|
399 |
+
|
400 |
|
401 |
|
402 |
/**
|
482 |
var $input;
|
483 |
|
484 |
switch(fieldType) {
|
485 |
+
|
486 |
+
case 'action':
|
487 |
+
var html = getActionChoiceHTML();
|
488 |
+
|
489 |
+
if( wrapInParagraph() ) {
|
490 |
+
html = "<p>" + html + "</p>";
|
491 |
+
}
|
492 |
+
|
493 |
+
return setCodePreview(html);
|
494 |
+
break;
|
495 |
+
|
496 |
// MailChimp lists
|
497 |
case 'lists':
|
498 |
var html = getListChoiceHTML();
|
605 |
|
606 |
// fallback, just append
|
607 |
if(!result) {
|
608 |
+
$formMarkup.val($formMarkup.val() + "\n" + $codePreview.val());
|
|
|
609 |
}
|
610 |
+
|
611 |
+
// trigger change event
|
612 |
+
$formMarkup.change();
|
613 |
}
|
614 |
|
615 |
/**
|
627 |
$wizardFields.change(updateCodePreview);
|
628 |
$("#mc4wp-fw-add-to-form").click(addCodeToFormMarkup);
|
629 |
|
630 |
+
// Validate the form fields after every change
|
631 |
+
$formMarkup.bind({
|
632 |
+
'input': function() {
|
633 |
+
$formMarkup.unbind('keydown');
|
634 |
+
checkRequiredFields.call(this);
|
635 |
+
},
|
636 |
+
'keydown': checkRequiredFields
|
637 |
+
});
|
638 |
+
|
639 |
// init
|
640 |
setMailChimpFields();
|
641 |
|
assets/js/admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a){function b(){"boolean"==typeof this.checked&&(this.checked=!1),alert(mc4wp.strings.proOnlyNotice),event.stopPropagation()}var
|
1 |
+
!function(a){"use strict";function b(){"boolean"==typeof this.checked&&(this.checked=!1),alert(mc4wp.strings.proOnlyNotice),event.stopPropagation()}function c(){var b=a(document.getElementById("mc4wp-send-welcome"));0==a(this).val()?b.removeClass("hidden").find(":input").removeAttr("disabled"):b.addClass("hidden").find(":input").attr("disabled","disabled").prop("checked",!1)}function d(){console.log(a(this).prop("checked"));var b=a(document.getElementById("woocommerce-settings"));b.toggle(this.checked)}function e(){var b=i.filter(":checked").length>0;a(".mc4wp-notice.no-lists-selected").toggle(!b),a(document.getElementById("mc4wp-fw-fields")).toggle(b),a(document.getElementById("mc4wp-fw-mailchimp-fields")).toggle(b)}function f(b){var c=b.keyCode||b.which;if(9===c){b.preventDefault();var d=this.selectionStart,e=this.selectionEnd;a(this).val(a(this).val().substring(0,d)+" "+a(this).val().substring(e)),this.selectionStart=this.selectionEnd=d+1}}function g(){"undefined"!=typeof QTags&&(QTags.addButton("mc4wp_paragraph","<p>","<p>","</p>","paragraph","Paragraph tag",1),QTags.addButton("mc4wp_label","label","<label>","</label>","label","Label tag",2),QTags.addButton("mc4wp_response","form response","{response}","","response","Shows the form response"),QTags.addButton("mc4wp_subscriber_count","# of subscribers","{subscriber_count}","","subscribers","Shows number of subscribers of selected list(s)"),window.mc4wp.hasCaptchaPlugin===!0&&QTags.addButton("mc4wp_captcha","CAPTCHA","{captcha}","","captcha","Display a CAPTCHA field"))}var h=a(document.getElementById("mc4wp-admin")),i=a(document.getElementById("mc4wp-lists")).find(":input"),j=a(document.getElementById("mc4wpformmarkup")),k=a(document.getElementById("missing-fields-notice")),l=a(document.getElementById("missing-fields-list"));h.find(".pro-feature, .pro-feature label, .pro-feature :radio").click(b),h.find('input[name$="[double_optin]"]').change(c),h.find('input[name$="[show_at_woocommerce_checkout]"]').change(d),i.change(e),a(document).delegate("#mc4wpformmarkup","keydown",f),g(),function(){function b(){for(var b={},c=0;c<H.length;c++){var d='name="'+H[c].tag.toLowerCase();-1==j.val().toLowerCase().indexOf(d)&&(b[H[c].tag]=H[c])}if(a.isEmptyObject(b))return void k.hide();l.html("");for(var e in b){var f=b[e],g=a("<li></li>");g.html(f.name+" (<code>"+f.tag+"</code>)"),g.appendTo(l)}k.show()}function c(){u.find("option").not(".default").remove(),H=[],t.filter(":checked").each(function(){for(var b=a(this).val(),c=mc4wp.mailchimpLists[b],d=0,e=c.merge_vars.length;e>d;d++){var f=c.merge_vars[d];if(f.req&&H.push(f),0===v.find("option[value='"+f.tag+"']").length){var g=f.name.length>25?f.name.substring(0,25)+"..":f.name;f.req&&(g+="*");var h=a("<option />").text(g).val(f.tag).data("list-field",f);d>3&&h.text(G.proOnly+" "+g).attr("disabled","disabled").data("field",null),v.append(h)}}for(var d=0,i=c.interest_groupings.length;i>d;d++){var j=c.interest_groupings[d];if(0===w.find("option[value='"+j.id+"']").length){var g=j.name.length>25?j.name.substring(0,25)+"..":j.name,h=a("<option />").text(g).val(j.id).data("list-grouping",j);d>=1&&h.text(G.proOnly+" "+g).attr("disabled","disabled").data("list-grouping",null),w.append(h)}}}),b()}function d(){e();var b=a(this).find(":selected");switch(b.val()){case"_action":r="action",x.find(".wrap-p").show();break;case"submit":r="submit",z.text(G.buttonText),y.val(G.subscribe),x.find("p.row").filter(".value, .wrap-p").show();break;case"lists":r="lists",x.find(".wrap-p").show();break;default:var c=b.data("list-field");if(c)return m(c);var c=b.data("list-grouping");if(c)return g(c)}o()}function e(){x.find(".row :input").each(function(){a(this).is(":checkbox")?this.checked=!0:this.value=""}),x.find("p.row").hide(),A.find(":input").remove(),x.show(),r="text",s="",z.html(G.initialValue+" <small>"+G.optional+"</small>")}function f(b){for(var c=0,d=b.length;d>c;c++)a("<input />").attr("type","text").addClass("widefat").data("value",b[c].name).attr("placeholder",G.labelFor+' "'+b[c].name+'" '+G.orLeaveEmpty).attr("value",b[c].name).appendTo(A)}function g(a){switch(x.find("p.row").filter(".values, .label, .wrap-p").show(),B.val(a.name+":"),s="GROUPINGS["+a.id+"]",f(a.groups),a.form_field){case"radio":r="radio";break;case"hidden":x.find("p.row").filter(".values, .label, .wrap-p").hide(),x.find("p.row.value").show();for(var b=0,c=a.groups.length;c>b;b++)y.val(y.val()+a.groups[b].name+",");r="hidden";break;case"dropdown":r="select";break;default:r="checkbox",s+="[]"}o()}function h(){var b="";return t.each(function(){var c=a(this).val(),d=a(this).parent("label").text(),e="";a(this).is(":checked")&&(e+="checked "),b+="<label>\n",b+=' <input type="checkbox" name="_mc4wp_lists[]" value="'+c+'" '+e+" /> "+d+"\n",b+="</label>\n"}),b}function i(){for(var a=[{name:"subscribe",label:G.subscribe,checked:!0},{name:"unsubscribe",label:G.unsubscribe,checked:!1}],b="",c=0;c<a.length;c++){var d=a[c];b+="<label>\n",b+=' <input type="radio" name="_mc4wp_action" value="'+d.name+'" '+(d.checked?"checked":"")+" > "+d.label+"\n",b+="</label>\n"}return b}function m(b){var c={"default":["label","value","placeholder","required","wrap-p"],select:["label","required","wrap-p","values"],radio:["label","required","wrap-p","values"],date:["label","required","wrap-p","value"]},d={text:"text",email:"email",phone:"tel",address:"text",number:"number",dropdown:"select",date:"date",birthday:"date",radio:"radio",checkbox:"checkbox"};if(r="undefined"!=typeof d[b.field_type]?d[b.field_type]:"text","undefined"!=typeof c[r])var e=c[r];else var e=c["default"];for(var f=0;f<e.length;f++)x.find("p.row."+e[f]).show();if(r=r,s=b.tag,C.val("Your "+b.name.toLowerCase()),B.val(b.name+":"),D.attr("checked",b.req),A.is(":visible")&&b.choices)for(var f=0;f<b.choices.length;f++)a("<input />").attr("type","text").addClass("widefat").data("value",b.choices[f]).attr("placeholder",G.labelFor+' "'+b.choices[f]+'" '+G.orLeaveEmpty).attr("value",b.choices[f]).appendTo(A);o()}function n(a){a=html_beautify(a),F.val(a)}function o(){var b,c=a("<div></div>");switch(r){case"action":var d=i();return q()&&(d="<p>"+d+"</p>"),n(d);case"lists":var d=h();return q()&&(d="<p>"+d+"</p>"),n(d);case"select":b=a("<select />"),A.find(":input").each(function(){a(this).val().length>0&&a("<option />").val(a(this).data("value")).text(a(this).val()).appendTo(b)});break;case"radio":case"checkbox":A.find(":input").each(function(){a(this).val().length>0&&(b=a("<input />").attr("type",r).attr("name",s).val(a(this).data("value")),D.is(":visible:checked")&&b.attr("required",!0),c.append(b),b.wrap("<label />"),a("<span />").text(a(this).val()+" ").insertAfter(b))});break;case"textarea":b=a("<textarea />");break;default:b=a("<input />").attr("type",r)}"radio"!==r&&"checkbox"!==r&&(s.length>0&&b.attr("name",s),y.is(":visible")&&y.val().length>0&&("textarea"===r?b.text(y.val()):b.attr("value",y.val())),C.is(":visible")&&C.val().length>0&&b.attr("placeholder",C.val()),D.is(":visible:checked")&&b.attr("required",!0),c.append(b)),B.is(":visible")&&B.val().length>0&&a("<label />").text(B.val()).prependTo(c),q()&&c.wrapInner(a("<p />")),n(c.html())}function p(){var a=!1;"undefined"!=typeof wpActiveEditor&&"undefined"!=typeof QTags&&QTags.insertContent&&(a=QTags.insertContent(F.val())),a||j.val(j.val()+"\n"+F.val()),j.change()}function q(){return E.is(":visible:checked")?!0:!1}var r,s,t=a("#mc4wp-lists :input"),u=a("#mc4wp-fw-mailchimp-fields"),v=u.find(".merge-fields"),w=u.find(".groupings"),x=a("#mc4wp-fw-fields"),y=a("#mc4wp-fw-value"),z=a("#mc4wp-fw-value-label"),A=a("#mc4wp-fw-values"),B=a("#mc4wp-fw-label"),C=a("#mc4wp-fw-placeholder"),D=a("#mc4wp-fw-required"),E=a("#mc4wp-fw-wrap-p"),F=a("#mc4wp-fw-preview"),G=mc4wp.strings.fieldWizard,H=[];t.change(c),u.change(d),x.change(o),a("#mc4wp-fw-add-to-form").click(p),j.bind({input:function(){j.unbind("keydown"),b.call(this)},keydown:b}),c()}()}(jQuery);
|
assets/js/form-request.js
CHANGED
@@ -1,57 +1,84 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
var formElement;
|
4 |
|
5 |
/**
|
6 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
*/
|
8 |
-
function
|
9 |
-
addEvent( window, 'load', act );
|
10 |
-
}
|
11 |
|
12 |
-
|
|
|
13 |
|
14 |
-
//
|
15 |
-
|
16 |
-
if( ! formElement ) {
|
17 |
-
return;
|
18 |
-
}
|
19 |
|
20 |
-
|
21 |
-
// only populate fields on error
|
22 |
-
if( mc4wpFormRequestData.success == false ) {
|
23 |
-
populateFields( formElement, mc4wpFormRequestData.postData );
|
24 |
-
}
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
var windowHeight = window.innerHeight;
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
} while (obj = obj.offsetParent);
|
35 |
-
} else {
|
36 |
-
scrollToHeight = formElement.offsetTop;
|
37 |
-
}
|
38 |
|
39 |
-
|
40 |
-
|
41 |
-
scrollToHeight = scrollToHeight - ((windowHeight - formElement.clientHeight) / 2);
|
42 |
-
} else {
|
43 |
-
// the form doesn't fit, scroll a little above the form
|
44 |
-
scrollToHeight = scrollToHeight - 80;
|
45 |
}
|
46 |
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
/**
|
57 |
* Adds a browser event, IE compatible.
|
@@ -118,6 +145,7 @@ window.mc4wpFormRequest = (function() {
|
|
118 |
case 'email':
|
119 |
case 'date':
|
120 |
case 'tel':
|
|
|
121 |
element.value = value;
|
122 |
|
123 |
// remove IE placeholder fallback class
|
@@ -171,11 +199,4 @@ window.mc4wpFormRequest = (function() {
|
|
171 |
|
172 |
}
|
173 |
|
174 |
-
|
175 |
-
init: function() {
|
176 |
-
init();
|
177 |
-
}
|
178 |
-
}
|
179 |
-
|
180 |
-
})();
|
181 |
-
mc4wpFormRequest.init();
|
1 |
+
(function() {
|
|
|
|
|
2 |
|
3 |
/**
|
4 |
+
* A formrequest. Should be passed an array of data in the following format.
|
5 |
+
*
|
6 |
+
* {
|
7 |
+
* formElementId: 0,
|
8 |
+
* success: 1,
|
9 |
+
* data: {}
|
10 |
+
* }
|
11 |
+
*
|
12 |
+
* @param request
|
13 |
*/
|
14 |
+
var formRequest = function( request ) {
|
|
|
|
|
15 |
|
16 |
+
// vars
|
17 |
+
var self = this;
|
18 |
|
19 |
+
// Functions
|
20 |
+
function init() {
|
|
|
|
|
|
|
21 |
|
22 |
+
self.element = document.getElementById( request.formElementId );
|
|
|
|
|
|
|
|
|
23 |
|
24 |
+
if( ! self.element ) {
|
25 |
+
return false;
|
26 |
+
}
|
|
|
27 |
|
28 |
+
if( request.success != 1 ) {
|
29 |
+
self.repopulate();
|
30 |
+
}
|
|
|
|
|
|
|
|
|
31 |
|
32 |
+
self.scrollTo();
|
33 |
+
return true;
|
|
|
|
|
|
|
|
|
34 |
}
|
35 |
|
36 |
+
/**
|
37 |
+
* Scrolls to the form element
|
38 |
+
*/
|
39 |
+
this.scrollTo = function() {
|
40 |
+
// Scroll to form element
|
41 |