Created
March 2, 2021 22:52
-
-
Save jetsloth/0423e7411cb8c7b02c5d9d50b4c3623b to your computer and use it in GitHub Desktop.
Image Choices Clean Style Demo
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
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap'); | |
/*To get the produc options fields working, you need to add a product field. */ | |
/*However we don't want to show that in this example so lets hide it with CSS.*/ | |
.hidden { | |
display: none; | |
visibility: hidden; | |
pointer-events: none; | |
} | |
/*Background Wrapper*/ | |
.gform_wrapper { | |
background:#F3F3F3; | |
background-size:cover; | |
padding:90px 80px 90px 80px; | |
border-radius:4px; | |
position: relative; | |
font-family: 'Montserrat', sans-serif; | |
} | |
/*Large form title*/ | |
.gform_title { | |
font-size: 100px; | |
color: #232323; | |
letter-spacing: -0.62px; | |
margin-bottom:20px; | |
font-weight:700; | |
font-family: 'Montserrat', sans-serif; | |
} | |
/*Remove gform_heading padding bottom*/ | |
.gform_heading { | |
padding-bottom:0; | |
} | |
/*Dark field lables*/ | |
.top_label label.gfield_label { | |
font-size: 17px; | |
color: #232323; | |
letter-spacing: -0.11px; | |
font-weight:500; | |
margin-bottom:10px; | |
font-family: 'Montserrat', sans-serif; | |
} | |
/*Image Choices categories */ | |
.image_choices_categories ul li, | |
.image_choices_locations ul li { | |
border: 2px solid #E5E5E5!important; | |
border-radius: 10px; | |
background:transparent; | |
animation:0.3s all ease-in-out; | |
border:none; | |
min-width: 200px; | |
display: inline-block; | |
margin-right: 20px; | |
padding:10px; | |
position: relative; | |
} | |
.image_choices_locations ul li { | |
min-width: 230px; | |
padding-bottom: 30px; | |
border: 2px solid transparent!important; | |
} | |
/*Image Choices white label */ | |
.image-choices-choice span.image-choices-choice-text { | |
color: #232323; | |
letter-spacing: -0.1px; | |
font-weight:500; | |
font-size:16px; | |
font-family: 'Montserrat', sans-serif; | |
} | |
/*Image Choices active state background*/ | |
.image_choices_categories ul li.image-choices-choice-selected, | |
.image_choices_locations ul li.image-choices-choice-selected { | |
background:white!important; | |
border: none!important; | |
box-shadow: 0 10px 50px 0 rgba(0,0,0,0.08); | |
} | |
/*Remove focus styles*/ | |
.image_choices_categories ul li.image-choices-choice-focus label, | |
.image_choices_locations ul li.image-choices-choice-focus label{ | |
border:transparent!important; | |
} | |
/*Option hover style*/ | |
.image_choices_categories ul li.image-choices-choice-hover, | |
.image_choices_locations ul li.image-choices-choice-hover{ | |
border: 2px solid #fff!important; | |
} | |
/*Option active state hover remove border*/ | |
.image_choices_categories .image-choices-choice-selected.image-choices-choice-hover, | |
.image_choices_locations .image-choices-choice-selected.image-choices-choice-hover{ | |
border: none!important; | |
} | |
/*Image Choices active state label*/ | |
.image_choices_categories ul li.image-choices-choice-selected span.image-choices-choice-text, | |
.image_choices_locations ul li.image-choices-choice-selected span.image-choices-choice-text{ | |
font-family: 'Montserrat', sans-serif; | |
color: #232323; | |
letter-spacing: -0.1px; | |
} | |
/*Image Choices categories thumbnail*/ | |
.image_choices_categories ul li span.image-choices-choice-image-wrap { | |
border-radius:10px; | |
width:53px; | |
height:53px; | |
} | |
/*Image Choices Locations thumbnail*/ | |
.image_choices_locations ul li span.image-choices-choice-image-wrap { | |
box-shadow: 0 10px 40px 0 rgba(0,0,0,0.24); | |
border-radius: 10px; | |
width:100%; | |
height:200px; | |
} | |
/*Display image inline with lable text*/ | |
.image_choices_categories ul li.image-choices-choice span.image-choices-choice-image-wrap{ | |
display: inline-block!important; | |
vertical-align: middle; | |
line-height: unset; | |
margin: 0 15px 0 0; | |
} | |
/*Display text inline with image*/ | |
.image_choices_categories ul li.image-choices-choice span.image-choices-choice-text { | |
display: inline-block!important; | |
vertical-align: middle; | |
line-height: 50px; | |
padding-right: 10px; | |
} | |
/*Remove border from default lable style*/ | |
.image_choices_categories ul li.image-choices-choice label, | |
.image_choices_locations ul li.image-choices-choice label{ | |
padding:0!important; | |
border:none; | |
text-align: left; | |
} | |
/*Product option field lable styles*/ | |
.image_choices_locations span.image-choices-choice-text { | |
margin:10px 0 0 10px; | |
font-family: 'Montserrat', sans-serif; | |
font-size: 14px; | |
color: #8C8C8C; | |
letter-spacing: -0.09px; | |
} | |
.image_choices_locations span.image-choices-choice-text b{ | |
color:#232323; | |
font-family: 'Montserrat', sans-serif; | |
display:block; | |
font-family: 'Montserrat', sans-serif; | |
letter-spacing: -0.09px; | |
} | |
.image_choices_locations .image-choices-choice-selected span.image-choices-choice-text { | |
color:#8C8C8C!important; | |
font-size: 14px!important; | |
font-family: 'Montserrat', sans-serif; | |
} | |
.image-choices-field .image-choices-choice-price { | |
display: block; | |
position: absolute; | |
top: 20px; | |
right: 20px; | |
color: white; | |
font-size: 15px; | |
font-weight: 500; | |
background: white; | |
background: rgba(255,255,255,0.31); | |
border-radius: 5px; | |
padding: 3px 6px; | |
} | |
@media (min-width: 320px) and (max-width: 480px) { | |
.gform_wrapper { | |
padding:30px; | |
border-radius:unset; | |
} | |
.gform_title { | |
font-size: 30px; | |
margin-bottom: unset; | |
} | |
.gform_wrapper:before { | |
display:none; | |
} | |
.image-choices-field { | |
background:unset; | |
box-shadow: unset; | |
border-radius: unset; | |
padding:unset; | |
} | |
.image_choices_categories ul li, | |
.image_choices_locations ul li { | |
min-width: 100%; | |
display:block; | |
margin-right:unset; | |
} | |
.image_choices_locations ul li { | |
min-width: 100%; | |
padding-bottom: 30px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment