styles.less 1.35 KB
@import '~@qx/ui/src/style/variable.less';

@prefix: ~'qx-input-select';

.@{prefix} {
  &-dropdown {
    position: relative;
    width: 100%;
    padding: 10px 10px 50px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 12%),
      0 6px 16px 0 rgba(0, 0, 0, 8%), 0 9px 28px 8px rgba(0, 0, 0, 5%);

    &__list {
      min-height: 150px;
      max-height: 260px;
      margin-top: 5px;
      overflow-y: auto;
    }

    &__list-empty {
      margin-top: 15%;
    }

    &__list-content {
      width: 100%;

      :global {
        .ant-menu-item {
          margin-bottom: 0;

          &:hover {
            background-color: #f5f5f5;
          }
        }
      }
    }

    &__list-content-bottom {
      position: absolute;
      bottom: 0;
      width: 100%;
    }

    &__input {
      :global {
        .anticon {
          padding: 0 5px;
          color: silver;
        }
      }

      padding-bottom: 5px !important;
      padding-left: 0 !important;
      border: none !important;
      border-bottom: 1px solid #e6eaf2 !important;
      outline: none !important;
      box-shadow: none !important;

      &:hover,
      &:focus,
      &:active {
        border-color: @B8;
      }
    }
  }

  &__input {
    :global {
      input {
        cursor: default;
      }
    }
  }

  &__input-suffix {
    color: silver;
  }
}