Skip to content

Instantly share code, notes, and snippets.

@ErikBernskiold
Created September 15, 2013 09:34
Show Gist options
  • Save ErikBernskiold/6569171 to your computer and use it in GitHub Desktop.
Save ErikBernskiold/6569171 to your computer and use it in GitHub Desktop.
Basic custom styles, in SASS for Gravity Forms
/**
* Forms
*
* Styling for Gravity Forms
*/
.gform_body {
ul {
margin: 0;
padding: 0;
}
li {
margin: 0;
padding: 0;
list-style: none;
}
}
.gfield {
margin: 0 0 1em 0 !important;
clear: both;
}
.gfield_required {
color: red;
margin-left: 0.2em;
}
.gfield_checkbox {
label {
display: inline;
margin-left: 1em;
}
}
.ginput_left,
.ginput_right,
.gf_left_half,
.gf_right_half {
width: 48%;
clear: none;
input {
margin: 0;
}
}
.ginput_left,
.gf_left_half {
float: left;
}
.ginput_right,
.gf_right_half {
float: right;
}
textarea.medium {
height: 100px;
}
textarea.large {
height: 150px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment