@import "../../style/themes/default";
@import "../../style/mixins/index";

/*** 带页签的card 扩展 开始***/
.cube-tabs-filled {
  .ant-tabs-nav .ant-tabs-tab-active {
    background-color: @primary-color;
    color: #fff;
  }
  .ant-tabs-nav .ant-tabs-tab {
    margin-right: 0 !important;
  }
  .ant-tabs-nav .ant-tabs-tab-active:hover {
    color: #fff;
  }
  .ant-tabs-large > .ant-tabs-bar .ant-tabs-tab {
    padding: 8px 16px;
    transition: none;
  }
  &.ant-card-wider-padding {
    .ant-card-body {
      padding: 24px;
    }
  }
  .ant-card-head {
    border-bottom: 2px solid @primary-color !important;
    background-color: #fff;
    min-height: 38px;
    padding: 0 !important;

    .ant-tabs-bar {
      border-color: transparent;
    }
    .ant-tabs-ink-bar {
      display: none !important;
    }
  }
}

.lined() {
  display: inline-block;
  vertical-align: middle;
  height: 16px;
  width: 6px;
  margin-top: -4px;
  border-radius: 2px;
  background: @blue-6;
  content: "";
  margin-right: 8px;
}

.cube-card-lined {
  & > .ant-card-head {
    padding: 24px 24px 0 !important;
    border-bottom: 0 !important;

    .ant-card-head-title {
      font-weight: bold;
      padding: 0 !important;
      &:before {
        .lined();
      }
    }

    .ant-card-extra {
      padding: 0 !important;
    }
  }

  & > .ant-card-body {
    padding: 24px !important;

    .cube-card-head-wrapper {
      margin-bottom: 24px;
      .cube-card-head-title {
        font-size: 16px;
        color: rgba(0, 0, 0, 0.85);
        line-height: 23.55px;
        font-weight: bold;
        &:not(.has-icon):before {
          .lined();
        }
        i.anticon {
          color: @blue-6;
          font-size: 24px;
          vertical-align: top;
          margin-right: 8px;
        }
      }
      .cube-card-head-extra {
        float: right;
        margin-top: -26px;
        .ant-btn {
          margin-left: 8px;
        }
      }
    }
  }
}

/*** 带页签的card 扩展 结束***/
