header.scss 1.83 KB
Newer Older
YazhouChen's avatar
YazhouChen committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
/**Variable**/

.plx-table {
  .plx-table--header-wrapper {
    .plx-table--repair {
      position: absolute;
      left: 0;
      bottom: 0;
      height: 0;
      border-bottom: 1px solid $vxe-table-border-color;
    }
  }
  &:not(.b--style-none) {
    .plx-table--header-wrapper {
      background-color: $vxe-table-header-background-color;
    }
  }
}

.plx-header--column {
  position: relative;
  user-select: none;
  .plx-edit-icon {
    &.plx-icon--edit-outline {
      &:before {
        background-color: $vxe-table-header-background-color;
      }
    }
  }
  &.col--title-checked {
    background-color: $vxe-table-column-header-checked-background-color;
    .plx-edit-icon {
      &.plx-icon--edit-outline {
        &:before {
          background-color: $vxe-table-column-header-checked-background-color;
        }
      }
    }
  }
  .plx-required-icon {
    display: inline-block;
    color: $vxe-table-validate-error-color;
    vertical-align: middle;
    width: 0.85em;
    height: 1em;
    position: relative;
    &:before {
      content: "*";
      position: absolute;
      line-height: 1.25em;
      font-size: 1.25em;
    }
  }
  .plx-edit-icon {
    margin-right: 0.15em;
    vertical-align: middle;
  }
  .plx-resizable {
    position: absolute;
    right: -7px;
    bottom: 0;
    width: 14px;
    height: 100%;
    text-align: center;
    z-index: 1;
    cursor: col-resize;
    &.is--line {
      &:before,
      &:after {
        content: "";
        display: inline-block;
        vertical-align: middle;
      }
      &:before {
        width: 1px;
        height: 50%;
        background-color: $vxe-table-resizable-color;
      }
      &:after {
        width: 0;
        height: 100%;
      }
    }
  }
}

.plx-table--fixed-right-wrapper {
  .plx-header--column {
    .plx-resizable {
      right: auto;
      left: -7px;
    }
  }
}