Last active
September 23, 2023 21:50
-
-
Save aryanrajseo/06408af69b02083b48c4f4352af45c4d to your computer and use it in GitHub Desktop.
garvityforms
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
/* Universal styles for elements inside .gform_wrapper.gravity-theme */ | |
#shortcode-292-1156 .gform_wrapper.gravity-theme * { | |
width: 100%; | |
} | |
/* Form container styles */ | |
#shortcode-292-1156 .gform_wrapper form { | |
display: flex; | |
flex-direction: row; | |
align-content: center; | |
flex-wrap: nowrap; | |
align-items: center; | |
width: 100% !important; | |
max-width: 500px; | |
margin: 0 auto; | |
position: relative; | |
justify-content: center; | |
border: 0px solid #ffffff; | |
/* border-radius: 5px; */ | |
} | |
/* Email field styles */ | |
#shortcode-292-1156 .gform_wrapper.gravity-theme .gfield--type-email { | |
display: flex; | |
flex-direction: row; | |
flex-wrap: nowrap !important; | |
align-content: center; | |
align-items: center; | |
width: 100% !important; | |
justify-content: flex-start; | |
} | |
/* Email input container styles */ | |
#shortcode-292-1156 .ginput_container.ginput_container_email { | |
width: 100% !important; | |
} | |
/* Reset width for all elements inside .gform_wrapper.gravity-theme */ | |
#shortcode-292-1156 .gform_wrapper.gravity-theme * { | |
position: relative; | |
width: auto; | |
} | |
/* Styles for left-labeled footer in gravity-theme */ | |
#shortcode-292-1156 .gform_wrapper.gravity-theme .gform_footer.left_label { | |
padding: 0; | |
margin: 0; | |
margin-left: 0; | |
margin-right: auto; | |
} | |
/* Styles for various form buttons in gravity-theme */ | |
#shortcode-292-1156 .gform_wrapper.gravity-theme .gform_footer button, | |
#shortcode-292-1156 .gform_wrapper.gravity-theme .gform_footer input, | |
#shortcode-292-1156 .gform_wrapper.gravity-theme .gform_page_footer button, | |
#shortcode-292-1156 .gform_wrapper.gravity-theme .gform_page_footer input { | |
margin-bottom: 0; | |
} | |
/* Specific styling for an element with ID shortcode-292-1156 */ | |
#shortcode-292-1156 { | |
width: 100%; | |
max-width: 700px; | |
margin: 0 auto; | |
} | |
/* Styles for email input fields within .ginput_container */ | |
#shortcode-292-1156 .gform_wrapper .ginput_container input[type="email"] { | |
padding: 10px 20px; | |
margin: 0; | |
width: 100%; | |
border: 0; | |
height: 55px; | |
border: 0px solid #eee; | |
border-top-left-radius: 3px; | |
border-bottom-left-radius: 3px; | |
box-shadow: none; | |
font-size: 18px; | |
} | |
/* Styles for submit button within .gform_wrapper */ | |
#shortcode-292-1156 .gform_wrapper input[type="submit"] { | |
padding: 10px 20px; | |
margin-left: 0; | |
border: 1px solid #000; | |
width: 150px; | |
height: 55px; | |
font-size: 18px; | |
cursor: pointer; | |
background-color: #000; | |
color: #fff; | |
font-weight: 700; | |
border-top-right-radius: 3px; | |
border-bottom-right-radius: 3px; | |
transition: all 0.2s ease-in-out; | |
} | |
/* Styles for an element with ID gform_wrapper_5 */ | |
#shortcode-292-1156 .gform_wrapper#gform_wrapper_5 { | |
display: flex; | |
flex-direction: column; | |
flex-wrap: nowrap; | |
align-content: center; | |
justify-content: space-between; | |
align-items: center; | |
width: 100%; | |
padding: 20px; | |
background-color: #565656; | |
/* border: 1px solid red; */ | |
border-radius: 10px; | |
} | |
/* Styles for form fields in gravity-theme */ | |
#shortcode-292-1156 .gform_wrapper.gravity-theme .gform_fields { | |
display: flex; | |
flex-direction: row; | |
flex-wrap: nowrap; | |
align-content: center; | |
justify-content: flex-start; | |
align-items: center; | |
/* border: 1px solid #ff00fe; */ | |
} | |
/* Styles for the body of the form */ | |
#shortcode-292-1156 .gform-body.gform_body { | |
/* border: 3px solid green; */ | |
width: 100% !important; | |
} | |
/* Hide field labels */ | |
#shortcode-292-1156 .gform_wrapper .gfield_label { | |
display: none; | |
} | |
/* Hide field labels in gravity-theme */ | |
#shortcode-292-1156 .gform_wrapper.gravity-theme .gform-field-label { | |
display: none !important; | |
} | |
/* Focus styles for email input */ | |
#shortcode-292-1156 .gform_wrapper .ginput_container input[type="email"]:focus { | |
border: 0px solid; | |
border-color: #000; | |
} | |
/* Remove outline on focus for all input and textarea elements */ | |
#shortcode-292-1156 .gform_wrapper input:focus, | |
#shortcode-292-1156 .gform_wrapper textarea:focus { | |
outline: none !important; | |
} | |
/* Hover and focus styles for submit button */ | |
#shortcode-292-1156 .gform_wrapper input[type="submit"]:hover, | |
#shortcode-292-1156 .gform_wrapper input[type="submit"]:focus { | |
background-color: #7cc142; | |
color: #000; | |
border-color: #7cc142; | |
} | |
/* Error Handling */ | |
#shortcode-292-1156 .gform_wrapper.gravity-theme .gform_validation_errors { | |
width: 100%; | |
max-width: 500px; | |
padding: 10px 20px; | |
border-radius: 3px; | |
} | |
#shortcode-292-1156 .gform_wrapper.gravity-theme .gform_validation_errors>h2 { | |
font-size: 15px; | |
} | |
#shortcode-292-1156 .gfield_description.validation_message.gfield_validation_message { | |
display: none; | |
} | |
#shortcode-292-1156 .gform_wrapper.gravity-theme .left_label .gfield_label { | |
font-family: inherit; | |
color: #ffffff; | |
font-size: 25px; | |
font-weight: 500; | |
text-align: center; | |
text-decoration: none; | |
text-transform: uppercase; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment