@import "@core/scss/theme/config.scss";

.cd-left-menu {
  width: 267px;

  .cd-label {
    font-size: 14px;
    color: #333333;
    height: 21px;
    line-height: 21px;
    padding: 8px 10px;
    position: relative;
    border-top: 1px solid #e1e1e1;

    .cd-cate-name {
      padding-left: 7px;
      font-family: 'Microsoft YaHei', 'PingFang SC', 'SimSun', 'Hiragino Sans GB', Arial, sans-serif;
      //&:before {
      //    font-family: '-webkit-pictograph';
      //    content: '●';
      //    font-size: 12px;
      //    font-family: '-webkit-pictograph';
      //    left: 6px;
      //    position: absolute;
      //}
    }

    em {
      position: absolute;
      display: block;
      right: 20px;
      top: 16px;
      border-top: 6px solid #333;
      border-left: 6px solid transparent;
      border-right: 6px solid transparent;
      transition: transform .3s ease-out;
      cursor: pointer;

      &:after {
        content: ' ';
        left: -6px;
        top: -8px;
        position: absolute;
        border-top: 6px solid #fff;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
      }
    }

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

    .cd-tips {
      margin: 2px 0 0 5px;
      vertical-align: top;
    }
  }

  .cd-colum {
    overflow: hidden;
    padding: 20px;
    //border-bottom: 1px solid #e1e1e1;
    @include clearFix();
  }

  .cd-shade {
    em {
      transform: rotate(180deg);
    }
  }

  .cd-item-cell {
    width: 50%;
    height: 115px;
    float: left;
    text-align: center;
    box-sizing: border-box;
    //border-bottom: 1px solid #e1e1e1;
    //border-right: 1px solid #e1e1e1;
    //margin-bottom: -1px;
    border-radius: 1px;
    cursor: move;

    &:nth-child(2n+0) {
      //border-right: none;
      padding-left: 5px;
    }

    .cd-mode-icon {
      width: 100%;
      height: 53px;
      padding-top: 17px;
      text-align: center;

      span {
        display: inline-block;
        background-position: -36px 0;
        width: 36px;
        height: 36px;

      }

      &.cd-mode-joint-icon {
        span {
          background-position: 0 0;
          background-size: cover;
        }
      }

      img {
        max-width: 36px;
        max-height: 36px;
      }
    }

    &:hover {
      background-color: #F4FAFF;

      &.disabled {
        background-color: unset;

        .cd-mode-icon {
          span {
            background-position: -36px 0;
          }
        }
      }

      .cd-mode-icon {
        span {
          background-position: 0 0;
        }
        &.cd-mode-joint-icon {
          span {
            opacity: 0.9;
          }
        }
      }

      .cd-cell-name {
        // color: #f44336;
      }
    }

    .cd-cell-name {
      font-family: 'Microsoft YaHei', 'PingFang SC', 'SimSun', 'Hiragino Sans GB', Arial, sans-serif;
      color: #333;
      @include ellipse();
      font-size: 12px;
    }
  }
}
