Repository URL to install this package:
|
Version:
0.14.1 ▾
|
ui-component-library
/
src
/
components
/
presets
/
Subscription
/
ShippingAddressForm
/
Form
/
styled.tsx
|
|---|
import { styled } from 'styleh-components'
import { StyledLabel } from 'src/inputs/TextBox'
import { ErrorComponent } from 'atoms/Error'
import { PrimaryButton } from 'presets/Buttons'
const StyledShippingForm = styled.section `
width: 100%;
.form-wrapper {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
.button-group {
flex: 0 0 100%;
margin-top: rem(10);
}
}
${StyledLabel} {
position: relative;
top: 0;
text-transform: capitalize;
color: #2c2c2c;
font-size: rem(16);
overflow: visible;
}
${ErrorComponent} {
margin-top: rem(4);
color: red;
font-size: rem(14);
}
.placeholder-label {
position: absolute;
color: red;
}
.input-box-wrapper {
flex: 0 0 100%;
margin-bottom: rem(8);
user-select: none;
&.left-align {
flex: 0 0 calc(50% - rem(8));
}
&.right-align {
flex: 0 0 calc(50% - rem(8));
}
}
.add-address {
margin: rem(16) 0;
svg {
border-radius: rem(2);
}
}
input.input-box {
width: 100%;
height: rem(44);
font-size: rem(16);
padding: 0 rem(8);
margin-top: rem(8);
color: #2c2c2c;
}
`
const StyledPrimaryButton = styled.withComponent(PrimaryButton) `
color: #fff;
font-size: rem(16);
text-transform: capitalize;
user-select: none;
`
export { StyledShippingForm, StyledPrimaryButton }