Instantly share code, notes, and snippets.
Last active
November 16, 2017 22:17
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save wormeyman/1075b7328e9344891abfc8335e4ca281 to your computer and use it in GitHub Desktop.
This file contains 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
/* #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