JSFiddle - React, Tailwind, and code Playground
by ahmadka
HTML
<section class="subscribe">
<form class="form-wrapper cf" method="post">
<input class="tiptipNewsletterInfo" name="email" placeholder="Enter your email here..." title="Title">
<!--<p class="pclass"></p>-->
<button id="submitBtn" type="submit">Subscribe</button>
</form>
<p></p>
</section>
CSS
/* Newsletter Email Submit button Styling BEGIN */
.cf:before, .cf:after {
content:"";
display: table;
}
.cf:after {
clear: both;
}
.cf {
zoom: 1;
}
/* Form wrapper styling */
.form-wrapper {
padding: 5px;
margin: auto;
display: block;
background: #444;
background: rgba(0, 0, 0, .2);
border-radius: 3px;
box-shadow: 0 1px 1px rgba(0, 0, 0, .4) inset, 0 1px 0 rgba(255, 255, 255, .2);
color: #E0E0E0!important;
}
/* Form text input */
.form-wrapper input {
max-width: 150px;
width: 100%;
height: 20px;
padding: 0 5px;
float: left;
font: italic 12px'lucida sans', 'trebuchet MS', Tahoma;
border: 0;
background: rgba(0, 0, 0, 0);
color: #999999!important;
border-radius: 3px 0 0 3px;
}
.form-wrapper input:focus {
outline: 0;
background: rgba(0, 0, 0, 0);
box-shadow: 0 0 2px rgba(0, 0, 0, .8) inset;
}
.form-wrapper input::-webkit-input-placeholder {
color: #999;
font-weight: 400;
font-style: italic;
}
.form-wrapper input:-moz-placeholder {
color: #999;
font-weight: 400;
font-style: italic;
}
.form-wrapper input:-ms-input-placeholder {
color: #999;
font-weight: 400;
font-style: italic;
}
/* Form submit button */
.form-wrapper button {
overflow: visible;
position: relative;
float: left;
border: 0;
padding: 0;
cursor: pointer;
height: 20px;
width: 100%;
font: bold 12px/20px'lucida sans', 'trebuchet MS', Tahoma;
color: #fff;
text-transform: uppercase;
background: #1854C4;
/* 1854C4 = Normal Theme Blue Color */
border-radius: 0 3px 3px 0;
text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
}
.form-wrapper button:before {
/* left arrow */
content:'';
position: absolute;
border-width: 0px 12px 12px 12px;
border-style: none solid solid solid;
border-color: #1854C4 transparent;
/* 1854C4 = Normal Theme Blue Color */
top: -12px;
left: 50%;
}
.form-wrapper...