@import '../../app.less';

.select {
  position: relative;

  .mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
  }

  .select-warp {
    line-height: 30px;
    display: inline-block;
    position: relative;
  }

  .select-body {
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid @line_color;
    border-radius: 4px;
    box-sizing: border-box;
    opacity: 0;
    z-index: 2;
    transform: translateY(100%);

    .select-option {
      height: 0;
      line-height: 25px;
      padding-left: 10px;
      border-bottom: 1px solid transparent;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.3s;
    }

    .select-option:hover {
      background: @theme_bg_color;
    }

    .select-option:last-child {
      border-bottom: none;
    }
  }

  .select-body.select {
    opacity: 1;

    .select-option {
      height: auto;
      border-color: @line_color;
    }
  }
}