Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

2.1 KB
Raw Blame
@use "../../../styles/mixins";

.tableWrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.tableHead {
  white-space: nowrap;

  th {
    background-color: #f2f0f5;
    color: var(--hi-secondary-text) !important;
    padding: 20px !important;

    @include mixins.respond-below(sm) {
      padding: 14px 12px !important;
    }
  }
}

.card {
  padding: 0 !important;
  overflow: hidden;

  :global(.mantine-ScrollArea-viewport) {
    padding-bottom: 0;
  }

  :global(.mantine-ScrollArea-scrollbar) {
    z-index: 20 !important;
  }
}

.table {
  th {
    white-space: nowrap;
  }

  tbody tr {

    td {
      padding: 20px !important;
      white-space: nowrap;

      @include mixins.respond-below(sm) {
        padding: 14px 12px !important;
      }
    }
  }

  position: relative;
}

.stickyLeft {
  position: sticky;
  left: 0;
  z-index: 10;
  background: var(--mantine-color-body);

  &::after {
    content: '';
    position: absolute;
    top: -1px;
    bottom: 0;
    left: 100%;
    width: 18px;
    background: linear-gradient(
                    to right,
                    rgba(20, 10, 40, 0.11),
                    rgba(20, 10, 40, 0.045) 45%,
                    rgba(20, 10, 40, 0)
    );
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
  }
}

.stickyRight {
  position: sticky;
  right: 0;
  z-index: 2;
  background: var(--mantine-color-body);

  &::before {
    content: '';
    position: absolute;
    top: -1px;
    bottom: 0;
    right: 100%;
    width: 18px;
    background: linear-gradient(
                    to left,
                    rgba(20, 10, 40, 0.11),
                    rgba(20, 10, 40, 0.045) 45%,
                    rgba(20, 10, 40, 0)
    );
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
  }
}

.showStartShadow tbody .stickyLeft::after,
.showEndShadow tbody .stickyRight::before {
  opacity: 1;
}

.tableHead .stickyLeft,
.tableHead .stickyRight {
  background-color: #f2f0f5;
}