Repository URL to install this package:
|
Version:
0.14.1 ▾
|
ui-component-library
/
src
/
components
/
presets
/
B2B
/
UserManagement
/
UserStatus
/
Form
/
SearchUser
/
styled.tsx
|
|---|
import { styled } from 'styleh-components'
import { StyledSelect } from 'molecules/SelectDropDown'
import { StyledClickBoundary, SelectText } from 'molecules/SelectDropDown'
import { StyledInputWrapper } from 'src/inputs/TextBox'
import { LabelElement } from 'atoms/Text'
const Wrapper = styled.section.attrs({
'data-qa': 'qa-search-container',
})`
.form-wrapper {
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin-left: -rem(16);
margin-right: -rem(16);
.search-icon {
top: rem(14);
}
@tablet-or-smaller() {
margin-left: -rem(4);
margin-right: -rem(4);
}
.form-item-wrapper {
padding: 0 rem(16);
@tablet-or-smaller() {
padding: 0 rem(4);
margin-bottom: rem(16);
}
.select-dropdown-list{
z-index: 99;
.search-teams, .search-roles{
&:hover span{
color: #fff;
}
}
}
.input-box {
font-size: rem(16);
height: rem(44);
border-radius: rem(4);
&::placeholder {
font-size: rem(16);
color: #a6afc1;
font-family: Roboto;
}
}
.input-error-message {
position: absolute;
width: 100%;
bottom: auto;
@tablet-or-smaller() {
position: relative;
}
}
&.search-box {
flex: 0 0 40%;
display: flex;
align-items: flex-end;
margin-top: 1.5rem;
${StyledInputWrapper} {
width: 100%;
}
@tablet-or-smaller() {
flex: 0 0 100%;
}
}
&.select-box {
flex: 0 0 30%
@tablet-or-smaller() {
flex: 0 0 50%;
}
${SelectText} {
color: #2c2c2c;
font-size: rem(18);
@phone-or-smaller() {
font-size: 1rem;
}
}
}
${LabelElement} {
display: flex;
text-transform: capitalize;
color: #5f6c88;
font-size: rem(16);
margin-bottom: rem(8);
height: rem(16);
}
${StyledClickBoundary} {
height: rem(44);
border-radius: rem(4);
}
${StyledSelect} {
height: 100%;
padding: 0 rem(4) 0 rem(12);
}
}
}
`
export {
Wrapper
}