Skip to content

Instantly share code, notes, and snippets.

@agirlandhermac
Last active November 15, 2019 13:44
Show Gist options
  • Save agirlandhermac/b7a14f3efdafdaf10682213178b18f6c to your computer and use it in GitHub Desktop.
Save agirlandhermac/b7a14f3efdafdaf10682213178b18f6c to your computer and use it in GitHub Desktop.
Caldera Forms with Material Design Style
/*** MAIN FORM CONTAINER ***/
.caldera-grid {
background: #691a99;
padding: 30px 25px 15px 25px;
box-shadow: 0 10px 40px 0 rgba(0, 0, 0, .1);
border-radius: 4px;
}
/*** FIELD STYLING ***/
.caldera-grid .form-control {
color: #fff !important;
background: #9b26af;
border: none;
height: auto;
padding: 10px 15px;
box-shadow: 0 10px 40px 0 rgba(0, 0, 0, .1);
transition: box-shadow .2s ease-in-out;
}
/*** BUTTON STYLING ***/
.caldera-grid input[type=submit] {
text-transform: uppercase;
padding: 10px 12px;
border-radius: 2px;
background: #68efad;
color: #306e50;
border: none;
box-shadow: 0 10px 40px 0 rgba(0, 0, 0, .1);
transition: box-shadow .5s ease-in-out;
}
/*** BUTTON HOVER STYLING ***/
.caldera-grid input[type=submit]:hover {
background: #7a1ea1;
color: #68efad;
box-shadow: 0 10px 40px 0 rgba(0, 0, 0, .3);
}
/*** PLACEHOLDER STYLING ***/
input::-webkit-input-placeholder {
color: rgba(255, 255, 255, 0.7)!important;
}
input:-moz-placeholder {
color: rgba(255, 255, 255, 0.7)!important;
}
input::-moz-placeholder {
color: rgba(255, 255, 255, 0.7)!important;
}
input:-ms-input-placeholder {
color: rgba(255, 255, 255, 0.7)!important;
}
textarea::-webkit-input-placeholder {
color: rgba(255, 255, 255, 0.7)!important;
}
textarea:-moz-placeholder {
color: rgba(255, 255, 255, 0.7)!important;
}
textarea::-moz-placeholder {
color: rgba(255, 255, 255, 0.7)!important;
}
textarea:-ms-input-placeholder {
color: rgba(255, 255, 255, 0.7)!important;
}
/*** TEXTAREA TRANSITION ***/
.caldera-grid textarea.form-control {
height: 10em;
transition: height .3s ease-out;
}
/*** TEXTAREA FOCUS HEIGHT ***/
.caldera-grid textarea.form-control:focus {
height: 25em;
}
/*** APPLIES SHADOW TO FIELD SELECTED ***/
.caldera-grid .form-control:focus {
box-shadow: 0 10px 40px 0 rgba(0, 0, 0, .3);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment