@import "~@less/mixin.less";

.wrapper{
  border: 1px solid #B1D2EC;
  position: relative;
  height: 26px;
  font-size: 0;
  vertical-align: top;
  user-select: none;
  z-index: 1;
  .toggle{
    width: 100%;
    height: 15px;
    position: relative;
    cursor: pointer;
    background-color: #deecf8;
    &:hover{
      background-color: #ECF4FB;
    }
    .arrow{
      position: absolute;
      left: 50%;
      top: 50%;
      margin-left: -5px;
      margin-top: -5px;
      width: 0;
      height: 0;
      border: 5px solid transparent;
    }
    &.left{
      float: left;
      width: 21px;
      height: 100%;
      border-right: 1px solid #b1d2ec;
      .arrow{
        border-right: 5px solid #3081C2;
        margin-left: -8px;
      }

    }
    &.right{
      float: left;
      width: 21px;
      height: 100%;
      border-left: 1px solid #b1d2ec;
      .arrow{
        border-left: 5px solid #3081C2;
        margin-left: 0;
      }

    }
    &.up{
      border-bottom: 1px solid #b1d2ec;
      .arrow{
        border-bottom: 5px solid #3081C2;
        margin-top: -7px;
      }
    }
    &.down{
      border-top: 1px solid #b1d2ec;
      .arrow{
        border-top: 5px solid #3081C2;
        margin-top: -2px;
      }
    }
  }
  .text{
    width: 79px;
    height: 24px;
    font-size: @font-size-h4;
    float: left;
    background-color: #fff;
    text-align: left;
    line-height: 24px;
    padding: 0 10px;
    position: relative;
    cursor: pointer;
    .arrow{
      border: 5px solid transparent;
      border-top:5px solid #3081C2;
      right: 10px;
      top: 50%;
      margin: -2px 0 0 -5px;
      position: absolute;
      width: 0;
      height: 0;
      overflow: hidden;
      cursor: pointer;
    }
  }
  .list{
    width: 122px;
    border: 1px solid #b1d2ec;
    position: absolute;
    left: -1px;
    top: 24px;
    box-shadow: 2px 2px 5px rgba(0,0,0,.1);
    background-color: #fff;
    .items{
      font-size: 0;
    }
  }
}
.wrapper.month{
  .text{
    width: 57px;
    label{
      right: 8px;
    }
  }
  .list{
    width: 100px;
    padding-bottom: 4px;
  }
}

