I'm trying to change the font-family and colour for the card#, exp, cvv, and submit fields in a cardForm. I'd also like to make the field widths responsive.
I'm using vue/quasar, and am using the format below for the customization.
Basically, I want to know how to refer to and customize each of the fields in the styles: { // Your styles } section.
I'm sure it's pretty basic, but I'm stuck and could really use a hand. Many thanks!
const cardForm = GlobalPayments.ui.form({
fields: {
"card-number": {
placeholder: "•••• •••• •••• ••••",
target: "#credit-card-card-number"
},
"card-expiration": {
placeholder: "MM / YYYY",
target: "#credit-card-card-expiration"
},
"card-cvv": {
placeholder: "•••",
target: "#credit-card-card-cvv"
},
"submit": {
value: "Submit",
}
},
styles: {
// Your styles
}
});
Should be in a format like below: