Skip to content

Instantly share code, notes, and snippets.

@M-Drummond
Created November 1, 2015 22:51
Show Gist options
  • Save M-Drummond/2cc2146a2bf01f5b565e to your computer and use it in GitHub Desktop.
Save M-Drummond/2cc2146a2bf01f5b565e to your computer and use it in GitHub Desktop.
Horizontal gravity form for subscription.
/*------------------------------------*\
#SUBSCRIBE
\*------------------------------------*/
.module--subscribe {
background: #222223;
padding: 15px 0 ;
color: #fff;
.gform_wrapper { // contains everything in the form
width: 100%;
max-width: 100%;
margin: 0px auto !important ;
.gform_heading { //heading + description of form
text-align: center ;
margin: 0px;
padding: 0px;
margin: 0px;
width: 100% !important ;
}
.gform_body { // contains inputs
@media (min-width: @M){
width: 75%;
float: left;
}
@media (max-width: @M){
width: 95% ;
margin: 0 auto ;
}
.gfield { //wraps each individual input
@media (min-width: @M){
display: inline-block;
float: left;
clear: none;
}
@media (max-width: @M){
width: 100%;
margin: 0 auto !important ;
}
.gfield_label { // labels
display: none;
}
@media (min-width: @M){
width: 33.33%;
}
.ginput_container { // input container
width: 100% !important ;
input { //input or fields themselves
width: 94%;
box-sizing: border-box;
@media (max-width: @M){
width: 100%;
margin: 0 auto !important ;
}
}
}
}
}
.gform_footer { // contains button
@media (min-width: @M){
width: 25%;
}
@media (max-width: @M){
width: 95%;
float: none !important ;
margin: 8px auto !important ;
display: block;
}
display: inline-block;
padding: 0px !important ;
margin: 5px 0px 0px 0px !important ;
input { // the button
width: 100%;
background: orange;
border: 0px;
color: #fff;
padding: 9px 0;
box-sizing: border-box;
font-family: @montserrat ;
text-transform: uppercase;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment