Created
August 29, 2022 02:00
-
-
Save jetsloth/04fa9dbd6bf548821c8bb60db3ed946c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Variables - Change Colors here*/ | |
:root { | |
--red-color: #d12d5d; | |
--dark-blue-color: #0c1c34; | |
--blue-color: #1451c7; | |
} | |
/*Hide legand*/ | |
.gform_required_legend { | |
display:none; | |
} | |
/* Basic input styles */ | |
.gform_wrapper.gravity-theme .demo2-box-layout input[type="text"], | |
.gform_wrapper.gravity-theme .demo2-box-layout input[type="email"], | |
.gform_wrapper.gravity-theme .demo2-box-layout input[type="tel"], | |
.gform_wrapper.gravity-theme .demo2-box-layout textarea { | |
border-radius:5px; | |
border:none; | |
height: 40px; | |
box-shadow:2.9px 3.3px 10px rgba(0, 0, 0, 0.035),23px 26px 80px rgba(0, 0, 0, 0.07); | |
text-indent:10px; | |
transition:all 0.3s ease-in-out; | |
} | |
/* Input Focus styles */ | |
.gform_wrapper.gravity-theme .demo2-box-layout input[type="text"]:focus, | |
.gform_wrapper.gravity-theme .demo2-box-layout input[type="email"]:focus, | |
.gform_wrapper.gravity-theme .demo2-box-layout input[type="tel"]:focus, | |
.gform_wrapper.gravity-theme .demo2-box-layout textarea:focus { | |
outline: none; | |
transition:all 0.3s ease-in-out; | |
} | |
/*Make the textarea input smaller*/ | |
.gform_wrapper.gravity-theme .demo2-box-layout .ginput_container_textarea textarea { | |
height: 150px; | |
} | |
/* Checkbox Styles */ | |
.gform_wrapper.gravity-theme .demo2-box-layout input[type="checkbox"]{ | |
appearance:none; | |
border:2px solid white; | |
width:30px; | |
height:30px; | |
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; | |
transition:all 0.3s ease-in-out; | |
} | |
/* Checkboxed Checked */ | |
.gform_wrapper.gravity-theme .demo2-box-layout input[type="checkbox"]:checked { | |
background:var(--red-color); | |
} | |
/* Consent lable */ | |
.demo2-box-layout .gfield_consent_label { | |
vertical-align: top; | |
} | |
/* Submit button */ | |
.gform_wrapper.gravity-theme .demo2-box-layout input[type="submit"] { | |
background:transparent; | |
appearance: none; | |
border: 2px solid white; | |
padding: 18px 45px; | |
color: white; | |
font-weight: 900; | |
border-radius: 100px; | |
width: 50%; | |
transition:all 0.3s ease-in-out; | |
font-size:17px; | |
animation: wiggle 1.5s ease-in 2; | |
} | |
/* Submit button */ | |
.gform_wrapper.gravity-theme .demo2-box-layout input[type="submit"]:hover { | |
background:var(--red-color); | |
cursor:pointer; | |
} | |
/* Background Image */ | |
.gform_wrapper.demo2-box-layout_wrapper { | |
background: url('https://gf.republiqstaging.com/wp-content/uploads/2022/08/mixkit-woman-lying-on-a-couch-looking-at-her-mobile-phone-65-original.png'); | |
background-size: cover; | |
border-radius:20px; | |
display: flex; | |
flex-direction: row-reverse; | |
flex-wrap: nowrap; | |
justify-content: flex-start; | |
align-content: stretch; | |
align-items: flex-start; | |
overflow:hidden; | |
position: relative; | |
color:white; | |
box-shadow:2.9px 3.3px 10px rgba(0, 0, 0, 0.035),23px 26px 80px rgba(0, 0, 0, 0.07); | |
background-position: -140%; | |
} | |
.gform_wrapper.demo2-box-layout_wrapper:before { | |
content: ""; | |
width: 100%; | |
position: absolute; | |
bottom: 0; | |
background-image: linear-gradient(180deg,rgba(0,0,0,0) 0%,rgb(0,0,0,0.4) 89%); | |
height: 100%; | |
z-index: 1; | |
} | |
/*Top left circle*/ | |
.gform_wrapper.demo2-box-layout_wrapper:after { | |
content: "\2692"; | |
width: 70px; | |
height: 70px; | |
position: absolute; | |
top: 50px; | |
right: 50px; | |
z-index: 3; | |
color: white; | |
font-size: 60px; | |
animation: pulse-animation-2 2s infinite; | |
border-radius: 100px; | |
background: var(--blue-color); | |
margin: 0 auto; | |
text-align: center; | |
line-height: 58px; | |
} | |
/* Align form body to the right - change background colour here of form*/ | |
.gform_wrapper form.demo2-box-layout { | |
background:var(--blue-color); | |
width:50%; | |
order: 0; | |
flex: 0 1 auto; | |
align-self: stretch; | |
padding: 50px; | |
position: relative; | |
z-index:2; | |
} | |
/*Form Heading*/ | |
.gform_wrapper.demo2-box-layout_wrapper .gform_heading { | |
width:73%; | |
order: 0; | |
flex: 0 1 auto; | |
align-self: end; | |
padding:50px; | |
position: relative; | |
z-index:2; | |
animation: pulse-animation-form-2 3s infinite; | |
} | |
/*Style the heading font*/ | |
.gform_wrapper.demo2-box-layout_wrapper .gform_heading .gform_title { | |
color: white; | |
font-weight: bold; | |
line-height: 55px; | |
margin:10px auto; | |
display: inline; | |
font-family: system-ui,-apple-system,Segoe UI,Helvetica,Arial, sans-serif; | |
} | |
/*Form Description*/ | |
.gform_wrapper.demo2-box-layout_wrapper .gform_heading .gform_description { | |
color: white; | |
font-weight: 600; | |
line-height: 20px; | |
display: block; | |
font-size:14px; | |
margin: 15px auto; | |
} | |
/*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-2 { | |
0% { | |
box-shadow: 0 0 0 0px var(--blue-color); | |
} | |
100% { | |
box-shadow: 0 0 0 20px rgba(0, 0, 0, 0); | |
} | |
} | |
@keyframes pulse-animation-form-2 { | |
@keyframes floating { | |
0% { transform: translate(0, 0px); } | |
50% { transform: translate(0, 15px); } | |
100% { transform: translate(0, -0px); } | |
} | |
} | |
/* Mobile Styles */ | |
@media screen and (max-width: 769px){ | |
.gform_wrapper.demo2-box-layout_wrapper { | |
display: flex; | |
flex-direction: column; | |
overflow:unset; | |
border-radius:10px; | |
} | |
.gform_wrapper.demo2-box-layout_wrapper .gform_heading { | |
padding: 40px; | |
} | |
.gform_wrapper.demo2-box-layout_wrapper .gform_heading, | |
.gform_wrapper form.demo2-box-layout { | |
width: 100%; | |
} | |
.gform_wrapper.demo2-box-layout_wrapper:after { | |
top: -33px; | |
left: 15%; | |
} | |
.gform_wrapper form.demo2-box-layout { | |
padding: 25px; | |
animation:unset; | |
} | |
.gform_wrapper.gravity-theme .demo2-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