Skip to content

Instantly share code, notes, and snippets.

@wormeyman
Last active November 16, 2017 22:17
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 wormeyman/1075b7328e9344891abfc8335e4ca281 to your computer and use it in GitHub Desktop.
Save wormeyman/1075b7328e9344891abfc8335e4ca281 to your computer and use it in GitHub Desktop.
/* #Custom Styles
================================================== */
/* Change to red buttons. */
.swatch_options input:checked+.swatch-element {
border: 1px solid #e83e31;
background-color: #e83e31;
color: #ffffff;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
padding: 0 20px;
text-align: center;
cursor: pointer;
min-height: 42px;
height: 40px;
line-height: 1.2;
vertical-align: top;
font-weight: normal;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 1px;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
transition: all 0.2s linear;
-webkit-appearance: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-smoothing: antialiased;
border-radius: 100px;
}
.swatch .swatch-element {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
padding: 0 20px;
text-align: center;
cursor: pointer;
min-height: 42px;
height: 40px;
line-height: 1.2;
vertical-align: top;
font-weight: normal;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 1px;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
transition: all 0.2s linear;
-webkit-appearance: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-smoothing: antialiased;
border-radius: 100px;
}
.swatch .swatch-element:hover {
border: 1px solid #cf0101;
background-color: #cf0101;
color: #ffffff;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
padding: 0 20px;
text-align: center;
cursor: pointer;
min-height: 42px;
height: 40px;
line-height: 1.2;
vertical-align: top;
font-weight: normal;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 1px;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
transition: all 0.2s linear;
-webkit-appearance: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-smoothing: antialiased;
border-radius: 100px;
}
/* Product Colors */
input:checked+.swatch-element.color {
background-color: initial;
border: 2px solid #000000;
}
.swatch-element.color:hover {
background-color: initial;
border: 2px solid #000000;
}
/* End Product Colors */
/* Reposition tool tip */
.swatch .tooltip {
left: -20px;
}
/* End Reposition tool tip */
/* End Change to red buttons. */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment