Skip to content

Instantly share code, notes, and snippets.

@robhob
Created June 23, 2017 19:59
Show Gist options
  • Save robhob/d30eaad65e301496ac82c0c9f3a537ad to your computer and use it in GitHub Desktop.
Save robhob/d30eaad65e301496ac82c0c9f3a537ad to your computer and use it in GitHub Desktop.
/* Styling CF7 to look like the Divi Contact Form */
.wpcf7-text, .wpcf7-textarea, .wpcf7-captchar {
background-color: #eee !important;
border: none !important;
width: 100% !important;
-moz-border-radius: 0 !important;
-webkit-border-radius: 0 !important;
border-radius: 3px !important;
font-size: 14px;
color: #999 !important;
padding: 16px !important;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.wpcf7-submit {
color: #f26e20 !important;
margin: 8px auto 0;
cursor: pointer;
font-size: 20px;
font-weight: 500;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
padding: 6px 20px;
line-height: 1.7em;
background: transparent;
border: 2px solid;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-moz-transition: all 0.2s;
-webkit-transition: all 0.2s;
transition: all 0.2s;
}
.wpcf7-submit:hover {
background-color: #eee;
border-color: #eee;
padding: 6px 20px !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment