Skip to content

Instantly share code, notes, and snippets.

@jetsloth
Created August 29, 2022 02:02
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 jetsloth/c994e1a4ede49785b09002fcdadf2487 to your computer and use it in GitHub Desktop.
Save jetsloth/c994e1a4ede49785b09002fcdadf2487 to your computer and use it in GitHub Desktop.
/*Variables - Change Colors here*/
:root {
--blue-color: #1451c7;
--pink-color: #ff8089;
}
/* Basic input styles */
.gform_wrapper.gravity-theme .demo5-box-layout input[type="text"],
.gform_wrapper.gravity-theme .demo5-box-layout input[type="email"],
.gform_wrapper.gravity-theme .demo5-box-layout input[type="tel"],
.gform_wrapper.gravity-theme .demo5-box-layout textarea {
background:none;
border:none;
border-bottom:2px solid white;
color:white;
height: 40px;
text-indent:10px;
transition:all 0.2s ease-in-out;
}
/* Input Focus styles */
.gform_wrapper.gravity-theme .demo5-box-layout input[type="text"]:focus,
.gform_wrapper.gravity-theme .demo5-box-layout input[type="email"]:focus,
.gform_wrapper.gravity-theme .demo5-box-layout input[type="tel"]:focus,
.gform_wrapper.gravity-theme .demo5-box-layout textarea:focus {
background:rgba(255,255,255,0.3);
outline: none;
transition:all 0.3s ease-in-out;
}
/*Make the textarea input smaller*/
.gform_wrapper.gravity-theme .demo5-box-layout .ginput_container_textarea textarea {
height: 150px;
}
/* Checkbox Styles */
.gform_wrapper.gravity-theme .demo5-box-layout input[type="checkbox"]{
appearance:none;
width:30px;
height:30px;
border:2px solid white;
background:transparent;
border-radius:5px;
box-shadow:2.9px 3.3px 10px
rgba(0, 0, 0, 0.035),23px 26px 80px rgba(0, 0, 0, 0.07);
margin: 0px 5px 5px 0;
transition:all 0.3s ease-in-out;
}
/* Checkboxed Checked */
.gform_wrapper.gravity-theme .demo5-box-layout input[type="checkbox"]:checked:after{
content: "\2715";
width: 26px;
height: 26px;
position: absolute;
z-index: 1;
color: white;
font-size: 18px;
margin: 0 auto;
text-align: center;
font-weight: bold;
line-height: 27px;
}
/* Consent lable */
.demo5-box-layout .gfield_consent_label {
vertical-align: top;
}
/* Submit button */
.gform_wrapper.gravity-theme .demo5-box-layout input[type="submit"] {
background:var(--pink-color);
border:none;
appearance: none;
padding: 18px 45px;
color: white;
font-weight: 900;
border-radius: 100px;
width: 100%;
transition:all 0.3s ease-in-out;
font-size:17px;
animation: wiggle 1.5s ease-in 2;
}
/* Submit button */
.gform_wrapper.gravity-theme .demo5-box-layout input[type="submit"]:hover {
background:var(--blue-color);
cursor:pointer;
}
/* Background Image */
.gform_wrapper.demo5-box-layout_wrapper {
background: url('https://gf.republiqstaging.com/wp-content/uploads/2022/08/mixkit-i-love-you-hand-gesture-419-original.png');
background-size: cover;
border-radius:20px;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
align-content: stretch;
align-items: flex-start;
color:white;
overflow:hidden;
position: relative;
box-shadow:2.9px 3.3px 10px rgba(0, 0, 0, 0.035),23px 26px 80px rgba(0, 0, 0, 0.07);
}
.gform_wrapper.demo5-box-layout_wrapper:before {
content: "";
width: 70%;
position: absolute;
right: 0;
background-image: linear-gradient(90deg,rgba(0,0,0,0) 0%,#1200b3 130%);
height: 100%;
z-index: 1;
}
/*Top left circle*/
.gform_wrapper.demo5-box-layout_wrapper:after {
content: "\2605";
width: 30px;
height: 30px;
position: absolute;
bottom: 40px;
left: 50px;
z-index: 1;
color: white;
font-size: 18px;
animation: pulse-animation-5 2s infinite;
border-radius: 100px;
background: var(--blue-color);
margin: 0 auto;
text-align: center;
}
/* Align form body to the right - change background colour here of form*/
.gform_wrapper form.demo5-box-layout {
order: 0;
width:40%;
flex: 0 1 auto;
align-self: stretch;
padding: 50px;
position: relative;
z-index:2;
}
/*Form Heading*/
.gform_wrapper.demo5-box-layout_wrapper .gform_heading {
order: 0;
width:60%;
flex: 0 1 auto;
align-self: start;
padding:50px;
position: relative;
z-index:2;
}
/*Style the heading font*/
.gform_wrapper.demo5-box-layout_wrapper .gform_heading .gform_title {
color: white;
font-weight: 700;
line-height: 60px;
margin:10px auto;
font-family: system-ui,-apple-system,Segoe UI,Helvetica,Arial, sans-serif;
}
/*Form Description*/
.gform_wrapper.demo5-box-layout_wrapper .gform_heading .gform_description {
color: white;
font-weight: 600;
line-height: 20px;
display: block;
font-size:14px;
margin: 15px auto;
font-family: system-ui,-apple-system,Segoe UI,Helvetica,Arial, sans-serif;
}
/*CSS Animations*/
@keyframes wiggle {
0%, 7% {
transform: rotateZ(0);
}
15% {
transform: rotateZ(-13deg);
}
20% {
transform: rotateZ(9deg);
}
25% {
transform: rotateZ(-10deg);
}
30% {
transform: rotateZ(7deg);
}
35% {
transform: rotateZ(-2deg);
}
40%, 100% {
transform: rotateZ(0);
}
}
@keyframes pulse-animation-5 {
0% {
box-shadow: 0 0 0 0px var(--blue-color);
}
100% {
box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
}
}
/* Mobile Styles */
@media screen and (max-width: 769px){
.gform_wrapper.demo5-box-layout_wrapper {
display: flex;
flex-direction: column;
overflow:unset;
border-radius:10px;
}
.gform_wrapper.demo5-box-layout_wrapper .gform_heading {
padding: 40px;
}
.gform_wrapper.demo5-box-layout_wrapper .gform_heading,
.gform_wrapper form.demo5-box-layout {
width: 100%;
}
.gform_wrapper.demo5-box-layout_wrapper:after {
top: -14px;
left: 45%;
}
.gform_wrapper form.demo5-box-layout {
padding: 25px;
animation:unset;
}
.gform_wrapper.gravity-theme .demo5-box-layout input[type="submit"] {
width: 100%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment