Skip to content

Instantly share code, notes, and snippets.

@agirlandhermac
Last active February 19, 2017 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agirlandhermac/e725d17bc69ecc089fad46b66a55fb9f to your computer and use it in GitHub Desktop.
Save agirlandhermac/e725d17bc69ecc089fad46b66a55fb9f to your computer and use it in GitHub Desktop.
Gravity Forms Styling for Divi with Background Image and ET Font
/*** MAIN FORM WRAPPER ***/
.gform_wrapper {
background: rgba(255, 255, 255, 0.95);
padding: 5%;
}
/*** GRAVITY FIELDS ***/
.gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]),
.gform_wrapper textarea.medium,
.gform_wrapper textarea.large {
background: rgba(0, 0, 0, 0);
border-top: none;
border-left: none;
border-right: none;
border-bottom: 2px solid #000;
border-radius: 0px !important;
}
.gform_wrapper ul.gform_fields li.gfield {
margin-bottom: 20px;
}
input[type=text]:focus,
input.text:focus,
input.title:focus,
textarea:focus {
border-bottom: 2px solid #b5b5b5 !important;
}
/*** DROPDOWN SELECT ***/
.gform_wrapper select {
background: rgba(0, 0, 0, 0);
border: 2px solid #555;
}
/*** BUTTON STYLING ***/
.gform_wrapper .gform_footer input.button,
.gform_wrapper .gform_footer input[type=submit] {
background: #A2D400;
text-transform: uppercase;
border: 2px solid #1d1d1d;
padding: 7px 12px;
cursor: pointer;
font-size: 18px;
-moz-transition: all 0.2s;
-webkit-transition: all 0.2s;
transition: all 0.2s;
border-radius: 0 !important;
}
/*** BUTTON HOVER STYLING ***/
.gform_wrapper .gform_footer input.button:hover,
.gform_wrapper .gform_footer input[type=submit]:hover {
background: #1d1d1d;
color: #fff;
}
/*** SECTION STYLING ***/
.gform_wrapper h2.gsection_title {
font-weight: normal;
font-size: 2em;
}
.gform_wrapper .gsection {
padding: 20px !important;
border-bottom: none;
background: #A2D400;
}
/*** GRAVITY RADIO AND CHECKBOXES ***/
.gform_wrapper ul.gfield_checkbox li input[type=checkbox],
.gform_wrapper ul.gfield_radio li input[type=radio] {
visibility: hidden;
margin: 0;
width: 0!important;
}
.gform_wrapper input[type=checkbox] + label,
.gform_wrapper input[type=radio] + label {
font-size: 16px;
}
input[type=checkbox] + label:hover,
input[type=radio] + label:hover {
cursor: pointer;
}
input[type=checkbox] + label:before,
input[type=radio] + label:before {
font-family: "ETmodules" !important;
font-size: 30px;
position: relative;
top: 0.3em;
margin-right: 0.2em;
}
.gform_wrapper li.gf_list_inline ul.gfield_checkbox li,
.gform_wrapper li.gf_list_inline ul.gfield_radio li {
display: -moz-inline;
display: inline;
}
input[type=checkbox] + label:before {
content: '\056';
}
input[type=checkbox] + label:hover:before {
content: '\05a';
filter: alpha(opacity=40);
opacity: 0.4;
}
input[type=checkbox]:checked + label:before {
content: '\05a';
color: #A2D400;
}
input[type=checkbox]:checked + label:hover:before {
color: #A2D400;
filter: alpha(opacity=100);
opacity: 1;
}
input[type=radio] + label:before {
content: '\05b';
}
input[type=radio] + label:hover:before {
content: '\05c';
filter: alpha(opacity=40);
opacity: 0.4;
}
input[type=radio]:checked + label:before {
content: '\05c';
color: #A2D400;
}
input[type=radio]:checked + label:hover:before {
color: #A2D400;
filter: alpha(opacity=100);
opacity: 1;
}
.gform_wrapper ul.gfield_checkbox li input[type=checkbox]:checked+label,
.gform_wrapper ul.gfield_radio li input[type=radio]:checked+label {
font-weight: normal;
}
/*** SUCCESS MESSAGE ***/
.gform_confirmation_wrapper {
background: #fff;
padding: 15px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment