Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
import { styled } from 'styleh-components'
import { StyledSelect } from '@skava/ui/dist/components/molecules/SelectDropDown'
import { StyledClickBoundary, SelectText } from '@skava/ui/dist/components/molecules/SelectDropDown'
import { StyledInputWrapper } from '@skava/ui/dist/inputs/TextBox'
import { LabelElement } from '@skava/ui/dist/components/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: var(--color-pure-white);
          }
        }
      }
      .input-box {
        font-size: rem(16);
        height: rem(44);
        border-radius: rem(4);
        &::placeholder {
          font-size: rem(16);
          color: var(--color-light-grey);
          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: var(--color-black);
          font-size: rem(18);
          @phone-or-smaller() {
            font-size: 1rem;
          }
        }
      }
      ${LabelElement} {
        display: flex;
        text-transform: capitalize;
        color: var(--color-dark-grey);
        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 }