@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;
    text-align: center;
  }

  .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;
      text-align: left;
    }

    .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;
    }
  }

  .right-arrow {
    display: inline-block;
    position: relative;
    width: 16px;
    height: 16px;
  }

  .right-arrow::after {
    display: inline-block;
    content: " ";
    height: 8px;
    width: 8px;
    border-width: 2px 2px 0 0;
    border-color: #fff;
    border-style: solid;
    transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
    position: absolute;
    top: 50%;
    margin-top: -1px;
  }
}