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 ⭐️

4.4 KB
Raw Blame
.calendarContainer {
  border: 1px solid var(--mantine-color-gray-2);
  border-radius: 8px;
  background: var(--mantine-color-white);
  overflow: hidden;
}

.monthNav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--mantine-color-gray-2);

  .monthLabel {
    font-size: 16px;
    font-weight: 600;
    color: var(--mantine-color-text);
  }
}

.calendarGrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.dayHeader {
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--mantine-color-dimmed);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--mantine-color-gray-2);
}

.dayCell {
  min-height: 80px;
  padding: 6px;
  border-bottom: 1px solid var(--mantine-color-gray-1);
  border-right: 1px solid var(--mantine-color-gray-1);
  cursor: pointer;
  transition: background-color 0.15s ease;
  position: relative;

  &:nth-child(7n) {
    border-right: none;
  }

  &:hover {
    background: var(--mantine-color-gray-0);
  }

  &.otherMonth {
    background: var(--mantine-color-gray-0);
    opacity: 0.5;
  }

  &.selected {
    background: var(--mantine-color-primary-0);
    outline: 2px solid var(--mantine-color-primary-3);
    outline-offset: -2px;
  }

  &.today .dayNumber {
    background: var(--mantine-color-primary-6);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.dayNumber {
  font-size: 13px;
  font-weight: 500;
  color: var(--mantine-color-text);
  margin-bottom: 4px;
}

.dayDots {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.occurrenceDot {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  &[data-status="ACTIVE"] {
    background: color-mix(
      in srgb,
      var(--mantine-color-green-3) calc(var(--fill-pct, 0) * 1%),
      var(--mantine-color-green-1)
    );
    color: var(--mantine-color-green-8);
  }

  &[data-status="CANCELLED"] {
    background: var(--mantine-color-red-1);
    color: var(--mantine-color-red-8);
  }

  &[data-status="SOLD_OUT"] {
    background: var(--mantine-color-orange-1);
    color: var(--mantine-color-orange-8);
  }
}

.moreCount {
  font-size: 10px;
  color: var(--mantine-color-dimmed);
  font-weight: 500;
  padding: 1px 4px;
}

.popoverContent {
  max-height: 360px;
  overflow-y: auto;
}

.popoverHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--mantine-color-gray-2);
}

.popoverTitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--mantine-color-text);
}

.popoverEmpty {
  padding: 20px 14px;
  text-align: center;
}

.popoverList {
  display: flex;
  flex-direction: column;
}

.popoverRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 8px;
  transition: background 0.1s ease;

  &:not(:last-child) {
    border-bottom: 1px solid var(--mantine-color-gray-1);
  }

  &:hover {
    background: var(--mantine-color-gray-0);
  }
}

.popoverRowInfo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.popoverStatusDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;

  &[data-status="ACTIVE"] {
    background: var(--mantine-color-green-5);
  }

  &[data-status="CANCELLED"] {
    background: var(--mantine-color-red-5);
  }

  &[data-status="SOLD_OUT"] {
    background: var(--mantine-color-orange-5);
  }
}

.popoverRowDetails {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.popoverTime {
  font-size: 13px;
  font-weight: 600;
  color: var(--mantine-color-text);
  line-height: 1.3;
}

.popoverLabel {
  font-size: 12px;
  color: var(--mantine-color-dimmed);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popoverCapacity {
  font-size: 12px;
  color: var(--mantine-color-dimmed);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .dayCell {
    min-height: 60px;
    padding: 4px;
  }

  .dayNumber {
    font-size: 12px;
  }

  .occurrenceDot {
    font-size: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    padding: 0;
    min-width: 8px;
  }
}