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:
:root {
  --menu-max-height: 250px;
  --menu-width: calc(100% - 4px); /* based on Input component width */
  --input-padding-left: 38px;
  --icon-top: 20px;
  --downArrow-top: calc(50% - 11px);
  --input-width: calc(100% - 16px);
  --iconClose-right: 10px;
  --menu-margin: 2px 0 0;
  --icon-z-index: 4;
  --wrapper-z-index: 3;
  --wrapper-margin: 8px;
  --input-border-invalid: 0 0 0 2px var(--color-red-600);
  --button-padding: 15px 25px 15px 20px;
}

.Autocomplete-menu {
  border-radius: var(--border-radius);
  border: 1px solid var(--color-neutral-300);
  min-height: var(--space-6x);
  max-height: var(--menu-max-height);
  background: white;

  cursor: pointer;
  width: var(--menu-width);
  margin: var(--menu-margin);
  overflow-y: scroll;
  position: absolute;


  & > :last-child {
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
  }

  & > :first-child {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
  }
}

.Autocomplete-wrapper {
  width: 100%;
  min-width: 100%;
  margin: var(--wrapper-margin) 0;
  z-index: var(--wrapper-z-index);
  border: 1px solid var(--color-neutral-300);
  & .Button {
    width: 100%;
  }
}

.Autocomplete-mobileIcon {
  display: none;
}

.Autocomplete--close {
  & .Button--white {
    background-repeat: no-repeat;
    background-size: 22px 22px;
    background-position: center right;
    padding: var(--button-padding);
  }

  & input[value] {
    overflow: hidden;
    text-overflow:ellipsis;
    white-space: nowrap;
  }
}

.Autocomplete--open {
  & .Input-field {
    background-size: 0 0;
  }
}

.Autocomplete-wrapper--invalid {
  & .Button--white {
    box-shadow: var(--input-border-invalid);
  }
}

.Autocomplete--open {
  @media (--medium-device) {
    & .Autocomplete-wrapper {
      position: relative;
    }
  }
  @media (--small-device) {
    & .Autocomplete-wrapper {
      position: fixed;
      top: 0;
      left: 0;
      background-color: var(--color-paper);
    }

    & .Autocomplete-menu {
      height: 100vh;
      max-height: 100vh;
      width: 100vw;

      top: var(--space-8x);
      left: 0;

      margin: 0;
      padding: 0;
    }

    & .Autocomplete-input {
      height: var(--space-6x);
      width: var(--input-width);
      border-bottom: 1px solid var(--color-neutral-800);
      padding-left: var(--space-5x);
      margin: var(--space);
    }

    & .Autocomplete-menu {
      box-shadow: none;
      border-radius: 0;
    }

    & .Autocomplete-mobileIcon {
      display: block;
      position: fixed;
      top: var(--icon-top);
      z-index: 4;
      color: var(--color-neutral-500);
      cursor: pointer;
    }

    & .Autocomplete-closeIcon {
      right: var(--iconClose-right);
    }

    & .Autocomplete-backIcon {
      left: var(--space-2x);
    }
  }
  & .InputFeedback--error {
    display: none;
  }
}