Created
October 27, 2020 00:05
-
-
Save colevscode/9cf19623e157cbe6822ffb8bd6e707fb to your computer and use it in GitHub Desktop.
Styling Stripe Elements example
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
/** | |
* The CSS shown here will not be introduced in the Quickstart guide, but shows | |
* how you can use CSS to style your Element's container. | |
*/ | |
.StripeElement { | |
box-sizing: border-box; | |
height: 40px; | |
padding: 10px 12px; | |
border: 1px solid transparent; | |
border-radius: 4px; | |
background-color: white; | |
box-shadow: 0 1px 3px 0 #e6ebf1; | |
-webkit-transition: box-shadow 150ms ease; | |
transition: box-shadow 150ms ease; | |
} | |
.StripeElement--focus { | |
box-shadow: 0 1px 3px 0 #cfd7df; | |
} | |
.StripeElement--invalid { | |
border-color: #fa755a; | |
} | |
.StripeElement--webkit-autofill { | |
background-color: #fefde5 !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment