Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@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;
}
/*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-field .image-choices-choice {
border: 2px solid transparent!important;
border-radius: 10px;
background:transparent;
animation:0.3s all ease-in-out;
min-width: 230px;
padding-bottom: 30px;
display: inline-block;
margin-right: 20px;
padding:10px;
position: relative;
}
/*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-field .image-choices-choice.image-choices-choice-selected,
.image-choices-field .image-choices-choice.image-choices-choice-selected {
background:white!important;
border: 2px solid #E5E5E5!important;
box-shadow: 0 10px 50px 0 rgba(0,0,0,0.08);
}
/*Remove focus styles*/
.image-choices-field .image-choices-choice.image-choices-choice-focus label,
.image-choices-field .image-choices-choice.image-choices-choice-focus label{
border:transparent!important;
}
/*Option hover style*/
.image-choices-field .image-choices-choice-hover,
.image-choices-field .image-choices-choice-hover{
border: 2px solid #E5E5E5!important;
}
/*Option active state hover remove border*/
.image-choices-field .image-choices-choice .image-choices-choice-selected.image-choices-choice-hover,
.image-choices-field .image-choices-choice .image-choices-choice-selected.image-choices-choice-hover{
border: none!important;
}
/*Image Choices active state label*/
.image-choices-field .image-choices-choice .image-choices-choice-selected span.image-choices-choice-text,
.image-choices-field .image-choices-choice .image-choices-choice-selected span.image-choices-choice-text{
font-family: 'Montserrat', sans-serif;
color: #232323;
letter-spacing: -0.1px;
}
/*Image Choices thumbnail*/
.image-choices-field .image-choices-choice 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;
}
/*Remove border from default lable style*/
.image-choices-field .image-choices-choice .image-choices-choice label,
.image-choices-field .image-choices-choice .image-choices-choice label{
padding:0!important;
border:none;
text-align: left;
}
/*Product option field lable styles*/
.image-choices-field .image-choices-choice 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-field .image-choices-choice 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-field .image-choices-choice .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 .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) {
.image-choices-field .image-choices-choice {
min-width: 100%;
display:block;
margin-right:unset;
padding-bottom: 30px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment