Skip to content

Instantly share code, notes, and snippets.

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 cjwd/848c93d527fd864d690e84bacccbd805 to your computer and use it in GitHub Desktop.
Save cjwd/848c93d527fd864d690e84bacccbd805 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