Created
July 19, 2017 20:01
-
-
Save Tigatok/0538492fad6d11af7a27dca04d2d90a3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* Zuora hosted checkout payment form | |
*/ | |
/* Load up FontAwesome for select down arrow icon */ | |
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css); | |
/* General settings */ | |
* { | |
box-sizing: border-box; | |
} | |
.whitespace { height: 2px } | |
.form { | |
background: #fff; | |
} | |
body { | |
padding: 0; | |
margin: 0; | |
font-family: Arial, Helvetica, sans-serif; | |
font-size: 14px; | |
line-height: 1em; | |
color: #333; | |
background-color: #f4f4f4; | |
} | |
.content { | |
background-color:#fff; | |
} | |
/* Form element wrapper defaults */ | |
.form-group { | |
position: relative; | |
float: none; | |
display: inline-block; | |
vertical-align: top; | |
height: 50px; | |
width: calc(50% - 40px); | |
padding: 5px 6px; | |
margin: 0 28px 18px 0; | |
border-radius: 4px; | |
border: 1px solid #e5e5e5; | |
background-color: #fff; | |
border: 1px solid #e5e5e5; | |
background-color: #fff; | |
} | |
@media (max-width: 615px) { | |
.form-group { | |
width: 100%; | |
margin-right: 0; | |
} | |
} | |
.form-element { | |
width: 100%; | |
} | |
/* Label defaults */ | |
label { | |
display: block; | |
max-width: 100%; | |
margin-bottom: 2px; | |
padding: 0; | |
font-size: 11px; | |
font-weight: 600; | |
line-height: 1em; | |
color: #333; | |
} | |
/* Labels required */ | |
label.required:after { | |
content: "*"; | |
display: inline-block; | |
height: auto; | |
width: auto; | |
padding-left: 2px; | |
} | |
/* Remove default required styles */ | |
.form-element.required { | |
border: 0; | |
vertical-align: middle; | |
height: auto; | |
padding: 0; | |
} | |
/* Input defaults */ | |
.form-element input { | |
display: inline-block; | |
position: relative; | |
top: 4px; | |
height: 24px; | |
width: 100%; | |
padding: 0 6px; | |
font-size: 14px; | |
line-height: 1em; | |
color: #333; | |
background-color: transparent; | |
background-image: none; | |
border: none; | |
border-radius: 0; | |
outline: none !important; | |
box-shadow: none !important; | |
text-shadow: none !important; | |
} | |
.form-label-input-pair { | |
position: relative; | |
width: 47%; | |
} | |
select, .select-input { | |
width: 100% !important; | |
height: 24px; | |
margin: 3px 0; | |
border: 0; | |
background-color: #fff; | |
color: #333; | |
font-size: 14px; | |
line-height: 1em; | |
outline: none !important; | |
box-shadow: none !important; | |
text-shadow: none !important; | |
-webkit-appearance: none; /* removes default safari appearance */ | |
-moz-appearance: none; /* removes default firefox appearance */ | |
} | |
select:focus, | |
.select:focus { | |
border-bottom: 2px solid #ccc !important; | |
} | |
#form-element-creditCardState, | |
#form-element-creditCardCountry { | |
position: relative; | |
} | |
/* Select down arrow icon (uses FontAwesome with fallback) */ | |
.form-label-input-pair:after, | |
#form-element-creditCardState:after, | |
#form-element-creditCardCountry:after { | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
font-family: FontAwesome, Arial, sans-serif; | |
content: '▼'; | |
content: '\f078'; | |
font-style: normal; | |
font-weight: 400; | |
line-height: 1; | |
margin-top: -.5em; | |
pointer-events: none; | |
display: inline-block; | |
position: absolute; | |
top: 5px; | |
right: 0; | |
z-index: 10; | |
padding: 8px 2px; | |
background-color: #fff; | |
color: #333; | |
font-size: 13px; | |
} | |
/* Iphone input zoom fix by setting font to 16px */ | |
@media screen and (-webkit-min-device-pixel-ratio:0) and (max-width: 767px) { | |
.form-element input, | |
.form-element input:focus, | |
select, select:focus, | |
.select-input, .select-input:focus { | |
font-size: 16px; | |
background: #fff; | |
} | |
} | |
/* Tooltips */ | |
a.tooltip { | |
display: none; | |
} | |
/* Errors */ | |
.error-field { | |
position: relative; | |
top: 6px; | |
z-index: 5; | |
padding: 0; | |
border-radius: 4px; | |
color: #c60000; | |
font-size: 12px; | |
overflow: visible; | |
white-space: nowrap; | |
} | |
#error-creditCardExpirationMonth, | |
#error-creditCardState, | |
#error-creditCardCountry { | |
top: 0; | |
} | |
/* CC Type overrides */ | |
#form-group-creditCardType { | |
padding-left: 0; | |
border: none; | |
background-color: transparent; | |
} | |
#form-group-creditCardType label { | |
display: none; | |
} | |
/* CCV example popup */ | |
.text-input-cvv { | |
width: 100px !important; | |
} | |
.image-cvv-des { | |
position: relative; | |
bottom: -10px; | |
z-index: 10; | |
width: 258px; | |
padding: 10px; | |
border: 1px solid #ccc; | |
border-radius: 4px; | |
background-color: #fff; | |
box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.15); | |
text-align: center; | |
} | |
/* State overrides */ | |
#form-group-creditCardState { | |
width: calc(25% - 30px); | |
margin-right: 20px; | |
} | |
@media (max-width: 615px) { | |
#form-group-creditCardState { | |
width: calc(50% - 26px); | |
} | |
} | |
/* Postal code overrides */ | |
#form-group-creditCardPostalCode { | |
width: calc(25% - 34px); | |
} | |
@media (max-width: 615px) { | |
#form-group-creditCardPostalCode { | |
width: 50%; | |
margin-right: 0; | |
} | |
} | |
.btn-submit { | |
display: inline-block !important; | |
clear: both; | |
/* height: 40px !important; */ | |
width: auto !important; | |
padding: 8px 25px !important; | |
border: 1px solid #ff720b !important; | |
background-color: #ff720b; | |
color: #fff; | |
padding: 8px 25px; | |
border-radius: 6px; | |
font-family: "Open Sans","Helvetica Neue",Helvetica,sans-serif; | |
font-size: 16px; | |
font-weight: 600; | |
outline: none !important; | |
box-shadow: none; | |
text-shadow: none; | |
-webkit-transition: all 0.2s ease-in-out; | |
transition: all 0.2s ease-in-out; | |
text-decoration: none; | |
line-height: 25px; | |
} | |
.btn-submit:hover { | |
background-color: #d75b00; | |
border-color: #d75b00; | |
} | |
.btn-submit:focus { | |
background-color: #d75b00; | |
border-color: #d75b00 !important | |
} | |
.form-group .error { | |
margin: 4px 0 5px 140px; | |
} | |
.error { | |
font-family: "Open Sans","Helvetica Neue",Helvetica,sans-serif; | |
font-size: 13px; | |
font-weight: 400; | |
color: #ED1C24; | |
margin: 0 0 5px 0; | |
line-height: 18px; | |
} | |
.error-field { | |
font-family: "Open Sans","Helvetica Neue",Helvetica,sans-serif; | |
font-size: 12px; | |
font-weight: 600; | |
color: #ED1C24; | |
margin: 4px 0 5px 10px; | |
} | |
.required-desc { | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment