Repository URL to install this package:
Version:
0.9.6 ▾
|
ui-component-library
/
src
/
components
/
presets
/
Subscription
/
PaymentInformationForm
/
FormFields
/
styled.tsx
|
---|
import { styled } from 'uxui-modules/view-container'
import { ErrorComponent } from 'atoms/Error'
import { PrimaryButton } from 'presets/Buttons'
import { StyledLabel } from 'src/inputs/TextBox'
const StyledShippingForm = styled.section`
width: 100%;
.form-wrapper {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
.button-group {
flex: 1;
margin-top: rem(10);
}
}
${StyledLabel} {
position: relative;
top: 0;
text-transform: capitalize;
color: #5F6C88;
font-size: 13px;
}
${ErrorComponent} {
color: red;
font-size: 12px;
}
.placeholder-label {
position: absolute;
color: red;
}
.input-box-wrapper {
flex: 0 0 100%;
border: solid 1px #ccc;
border-radius: 3px;
padding: rem(3) rem(8);
margin-bottom: rem(16);
&.left-align {
flex: 0 0 calc(50% - 8px);
}
&.right-align {
flex: 0 0 calc(50% - 8px);
}
&.cardNumber{
flex: 0 0 calc(70% - 8px);
}
&.CVVNumber{
flex: 0 0 calc(30% - 8px);
}
&.expiryMonth{
flex: 0 0 calc(60% - 8px);
}
&.expiryYear{
flex: 0 0 calc(40% - 8px);
}
}
.defaultAddress{
margin: rem(8) 0 rem(28);
label{
font-size: 16px;
color: #2C2C2C;
}
svg{
width: rem(18);
height: auto;
}
}
input.input-box {
width: 100%;
border: 0;
padding: 0;
font-size: 20px;
height: rem(34);
}
`
const StyledPrimaryButton = styled.withComponent(PrimaryButton)`
color: #fff;
font-size: 16px;
text-transform: capitalize;
margin-top: 1rem;
`
export {
StyledShippingForm,
StyledPrimaryButton,
}