Repository URL to install this package:
Version:
0.9.6 ▾
|
ui-component-library
/
src
/
components
/
presets
/
Subscription
/
ShippingAddressForm
/
Form
/
styled.tsx
|
---|
import { styled } from 'uxui-modules/view-container'
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: 1;
margin-top: rem(10);
}
}
${StyledLabel} {
position: relative;
top: 0;
text-transform: capitalize;
color: #64718c;
}
${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);
}
}
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;
`
export {
StyledShippingForm,
StyledPrimaryButton
}