Skip to content

Instantly share code, notes, and snippets.

@jetsloth
Created August 29, 2022 02:01
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/9d3b9989607cb50f3fbb9483a3890c1d to your computer and use it in GitHub Desktop.
Save jetsloth/9d3b9989607cb50f3fbb9483a3890c1d to your computer and use it in GitHub Desktop.
/*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 .demo3-box-layout input[type="text"],
.gform_wrapper.gravity-theme .demo3-box-layout input[type="email"],
.gform_wrapper.gravity-theme .demo3-box-layout input[type="tel"],
.gform_wrapper.gravity-theme .demo3-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 .demo3-box-layout input[type="text"]:focus,
.gform_wrapper.gravity-theme .demo3-box-layout input[type="email"]:focus,
.gform_wrapper.gravity-theme .demo3-box-layout input[type="tel"]:focus,
.gform_wrapper.gravity-theme .demo3-box-layout textarea:focus {
outline: none;
transition:all 0.3s ease-in-out;
}
/*Make the textarea input smaller*/
.gform_wrapper.gravity-theme .demo3-box-layout .ginput_container_textarea textarea {
height: 150px;
}
/* Checkbox Styles */
.gform_wrapper.gravity-theme .demo3-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 .demo3-box-layout input[type="checkbox"]:checked {
background:var(--red-color);
}
/* Consent lable */
.demo3-box-layout .gfield_consent_label {
vertical-align: top;
}
/* Submit button */
.gform_wrapper.gravity-theme .demo3-box-layout input[type="submit"] {
background:var(--blue-color);
appearance: none;
border: none;
padding: 18px 45px;
color: white;
font-weight: 900;
border-radius: 100px;
width: 100%;
transition:all 0.3s ease-in-out;
font-size:17px;
}
/* Submit button */
.gform_wrapper.gravity-theme .demo3-box-layout input[type="submit"]:hover {
background:var(--red-color);
cursor:pointer;
}
/* Background Image */
.gform_wrapper.demo3-box-layout_wrapper {
background: url('https://gf.republiqstaging.com/wp-content/uploads/2022/08/mixkit-couple-preparing-food-in-the-kitchen-253-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;
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);
background-position: -140%;
}
.gform_wrapper.demo3-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.demo3-box-layout_wrapper:after {
content: "\2638";
width: 50px;
height: 50px;
position: absolute;
top: 50px;
left: 50px;
z-index: 3;
color: white;
font-size: 40px;
animation: pulse-animation-3 2s infinite;
border-radius: 100px;
background: var(--red-color);
margin: 0 auto;
text-align: center;
line-height: 48px;
}
/* Align form body to the right - change background colour here of form*/
.gform_wrapper form.demo3-box-layout {
background:#f7f7f7;
width:50%;
order: 0;
flex: 0 1 auto;
align-self: stretch;
padding: 50px;
position: relative;
z-index:2;
}
/*Form Heading*/
.gform_wrapper.demo3-box-layout_wrapper .gform_heading {
width:70%;
order: 0;
flex: 0 1 auto;
align-self: end;
padding:50px;
position: relative;
z-index:2;
}
/*Style the heading font*/
.gform_wrapper.demo3-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;
background: var(--red-color);
word-wrap: break-word;
box-shadow: 10px 0 0 var(--red-color), -10px 0 0 var(--red-color);
}
/*Form Description*/
.gform_wrapper.demo3-box-layout_wrapper .gform_heading .gform_description {
color: white;
font-weight: 600;
line-height: 20px;
display: block;
font-size:14px;
margin: 15px auto;
}
/*Image Choices style*/
.gform_wrapper.demo3-box-layout_wrapper .image-choices-field .image-choices-choice-image-wrap {
border-radius: 100px;
border: 5px solid white;
}
.gform_wrapper.demo3-box-layout_wrapper .image-choices-field .image-choices-choice-selected,
.gform_wrapper.demo3-box-layout_wrapper .image-choices-field .image-choices-choice,
.gform_wrapper.demo3-box-layout_wrapper .image-choices-field .image-choices-choice label,
.gform_wrapper.demo3-box-layout_wrapper .image-choices-field .image-choices-choice-selected:focus{
border:none;
margin:0!important;
padding:0;
}
.gform_wrapper.demo3-box-layout_wrapper .image-choices-field .image-choices-choice-selected .image-choices-choice-image-wrap {
transform: scale(1.2);
animation: pulse-animation-3 2s infinite;
}
/*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-3 {
0% {
box-shadow: 0 0 0 0px var(--red-color);
}
100% {
box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
}
}
/* Mobile Styles */
@media screen and (max-width: 769px){
.gform_wrapper.demo3-box-layout_wrapper {
display: flex;
flex-direction: column;
overflow:unset;
border-radius:10px;
}
.gform_wrapper.demo3-box-layout_wrapper .gform_heading {
padding: 40px;
}
.gform_wrapper.demo3-box-layout_wrapper .gform_heading,
.gform_wrapper form.demo3-box-layout {
width: 100%;
}
.gform_wrapper.demo3-box-layout_wrapper:after {
top: -33px;
left: 15%;
}
.gform_wrapper form.demo3-box-layout {
padding: 25px;
animation:unset;
}
.gform_wrapper.gravity-theme .demo3-box-layout input[type="submit"] {
width: 100%;
}
.gform_wrapper.demo3-box-layout_wrapper:after {
display:none;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment