king
2021-05-26 f66e19dd13af07ee466306632ad43c72f1f16ae7
src/tabviews/custom/components/card/data-card/index.scss
@@ -1,12 +1,43 @@
.custom-card-box {
.custom-data-card-box {
  background: #ffffff;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100px;
  display: flex;
  position: relative;
  min-height: 20px;
  >.button-list.toolbar-button {
    padding: 0;
    line-height: 55px;
    button {
      margin-right: 0px;
      margin-bottom: 0px;
    }
  }
  .data-zoom {
    display: flex;
    position: relative;
  }
  .data-zoom.radio, .data-zoom.checkbox {
    .card-row-list {
      >.ant-col:not(.active):not(.selected):hover {
        >.card-item-box {
          border-color: #69c0ff!important;
          box-shadow: 0 0 4px #69c0ff!important;
        }
      }
    }
  }
  .data-zoom.true {
    .card-row-list {
      >.ant-col:hover {
        >.card-item-box {
          z-index: 1;
          transform: scale(1.05);
        }
      }
    }
  }
  .prev-page {
    width: 20px;
    div {
@@ -37,74 +68,34 @@
  }
  .card-row-list {
    flex: 10;
    .card-item-box {
      position: relative;
      background-color: #ffffff;
      transition: all 0.3s;
    }
    >.pointer {
      cursor: pointer;
    }
    >.active >.card-item-box {
      border-color: #1890ff!important;
      box-shadow: 0 0 4px #1890ff;
    }
    >.selected >.card-item-box {
      border-color: #69c0ff!important;
      box-shadow: 0 0 4px #69c0ff;
    }
  }
  .card-item-box {
    border-style: solid;
    .card-cell-list::after {
      content: ' ';
      display: block;
      clear: both;
    }
  }
  .card-cell-list {
    position: relative;
    .ant-mk-slider {
      box-sizing: border-box;
      margin: 0;
      color: rgba(0, 0, 0, 0.65);
      font-size: 14px;
      font-variant: tabular-nums;
      line-height: 1.5;
      list-style: none;
      font-feature-settings: 'tnum', "tnum";
      position: relative;
      height: 12px;
      padding: 3px 0;
      cursor: pointer;
      touch-action: none;
      .ant-mk-slider-track {
        height: 7px;
        position: absolute;
        background-color: #91d5ff;
        border-radius: 4px;
        transition: background-color 0.3s;
      }
      .ant-mk-slider-rail {
        height: 7px;
        position: absolute;
        width: 100%;
        background-color: #f5f5f5;
        border-radius: 2px;
        transition: background-color 0.3s;
      }
      .ant-mk-slider-handle {
        position: absolute;
        width: 14px;
        height: 14px;
        margin-top: -4px;
        margin-left: -7px;
        background-color: #fff;
        border: solid 2px #91d5ff;
        border-radius: 50%;
        cursor: pointer;
        transition: border-color 0.3s, box-shadow 0.6s, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), -webkit-box-shadow 0.6s, -webkit-transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
      }
    }
    .ant-mk-splitline {
      height: 1px;
    }
    .ant-slider {
      margin: 0px;
    }
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .ant-empty {
    position: absolute;
    top: calc(50% - 34px);
    left: calc(50% - 92px);
    width: 100%;
    min-height: 100px;
    padding-top: 15px;
    .ant-empty-image {
      height: 60px;
@@ -112,9 +103,9 @@
  }
  .loading-mask {
    position: absolute;
    left: 40px;
    left: 0px;
    top: 0;
    right: 40px;
    right: 0px;
    bottom: 0px;
    display: flex;
    align-items: center;
@@ -130,6 +121,32 @@
      background: #ffffff;
    }
  }
  .ant-pagination {
    margin: 10px;
    text-align: right;
  }
  .trigger-button {
    .card-item-box {
      .card-cell-list {
        position: unset;
        .mk-cell-btn {
          position: unset;
          .ant-btn {
            position: unset;
          }
          .ant-btn::after {
            content: ' ';
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            cursor: pointer;
          }
        }
      }
    }
  }
}
.custom-card-box::after {