@import '../common/abstracts/variable';
@import '../common/abstracts/mixin';

@import '../wd-table/index';

.wot-theme-dark {
  @include b(table-col) {
    @include when(shadow) {
      &::after {
        background: linear-gradient(270deg, rgba(17, 17, 17, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
      }
    }
  }
}

@include b(table-col) {
  .wd-table__cell {
    width: 100%;
  }

  @include m(fixed) {
    position: sticky;
    left: 0;
    z-index: 1;
  }

  @include when(shadow) {
    &::after {
      position: absolute;
      top: 0;
      right: -30rpx;
      width: 30rpx;
      height: 100%;
      content: ' ';
      background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.04) 100%);
    }
  }

  .wd-table__cell:last-child {
    @include when(border) {
      border-bottom: none;
    }
  }
}
