Add border to Stripe Elements input, make text larger

This commit is contained in:
Rob Harrington
2017-09-08 11:32:11 +10:00
parent 0cd43987de
commit 3a0b47c451
2 changed files with 25 additions and 1 deletions

View File

@@ -9,7 +9,15 @@ Darkswarm.directive "stripeElements", ($injector, StripeElements) ->
if $injector.has('stripeObject')
stripe = $injector.get('stripeObject')
card = stripe.elements().create('card', {hidePostalCode: false})
card = stripe.elements().create 'card',
hidePostalCode: false
style:
base:
fontFamily: "Roboto, Arial, sans-serif"
fontSize: '16px'
color: '#4c4c4c'
'::placeholder':
color: '#6c6c6c'
card.mount('#card-element')
# Elements validates user input as it is typed. To help your customers

View File

@@ -0,0 +1,16 @@
stripe-elements #card-element {
background: white;
box-sizing: border-box;
font-weight: 400;
padding: 0.8rem 0.5rem;
border: 1px solid #cccccc;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
border-radius: 0px;
color: #32315E;
outline: none;
height: 48px;
line-height: 48px;
cursor: text;
width: 100%;
float: right;
}