Mailer-Lite-Submission
by velo_ninja
HTML
<div id="mlb2-12876468" class="ml-form-embedContainer ml-subscribe-form ml-subscribe-form-12876468">
<div class="ml-form-align-center">
<div class="ml-form-embedWrapper embedForm">
<div class="ml-form-embedBody ml-form-embedBodyDefault row-form">
<div class="ml-form-embedContent">
<h4>Subscription</h4>
<p>Signup for news and special offers!</p>
</div>
<form id="subscriptionForm" action="https://assets.mailerlite.com/jsonp/851832/forms/114807598203536516/subscribe" method="post" target="_blank">
<div class="ml-form-formContent">
<div class="ml-form-fieldRow">
<div class="ml-field-group ml-validate-email ml-validate-required">
<label for="email">Email</label>
<input type="email" name="fields[email]" id="email" required>
</div>
</div>
<div class="ml-form-fieldRow">
<div class="ml-field-group ml-validate-required">
<label for="name">Name</label>
<input type="text" name="fields[name]" id="name" required>
</div>
</div>
<div class="ml-form-fieldRow">
<div class="ml-field-group ml-validate-required">
<label for="lastName">Last name</label>
<input type="text" name="fields[last_name]" id="lastName" required>
</div>
</div>
<div class="ml-form-fieldRow">
<div class="ml-field-group">
<label for="country">Country</label>
<input type="text" name="fields[country]" id="country">
</div>
</div>
<div class="ml-form-fieldRow">
<div class="ml-field-group">
<label for="state">State</label>
<input type="text" name="fields[state]" id="state">
</div>
</div>
<div class="ml-form-fieldRow">
...
CSS
/* LOADER */
.ml-form-embedSubmitLoad {
display: inline-block;
width: 20px;
height: 20px;
}
.g-recaptcha {
transform: scale(1);
-webkit-transform: scale(1);
transform-origin: 0 0;
-webkit-transform-origin: 0 0;
height: ;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
border: 0;
}
.ml-form-embedSubmitLoad:after {
content: " ";
display: block;
width: 11px;
height: 11px;
margin: 1px;
border-radius: 50%;
border: 4px solid #fff;
border-color: #ffffff #ffffff #ffffff transparent;
animation: ml-form-embedSubmitLoad 1.2s linear infinite;
}
@keyframes ml-form-embedSubmitLoad {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
#mlb2-12876468.ml-form-embedContainer {
box-sizing: border-box;
display: table;
margin: 0 auto;
position: static;
width: 100% !important;
}
#mlb2-12876468.ml-form-embedContainer h4,
#mlb2-12876468.ml-form-embedContainer p,
#mlb2-12876468.ml-form-embedContainer span,
#mlb2-12876468.ml-form-embedContainer button {
text-transform: none !important;
letter-spacing: normal !important;
}
#mlb2-12876468.ml-form-embedContainer .ml-form-embedWrapper {
background-color: #f6f6f6;
border-width: 0px;
border-color: transparent;
border-radius: 4px;
border-style: solid;
box-sizing: border-box;
display: inline-block !important;
margin: 0;
padding: 0;
position: relative;
}
#mlb2-12876468.ml-form-embedContainer .ml-form-embedWrapper.embedPopup,
#mlb2-12876468.ml-form-embedContainer .ml-form-embedWrapper.embedDefault { width: 400px; }
...