Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

2.2 KB
Raw Blame
.root {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 8px;
  gap: 6px;
  overflow: hidden;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  height: 30px;
  flex-shrink: 0;
}

.total {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--mantine-font-size-sm);
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.total:hover {
  text-decoration: underline;
}

.body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar {
  display: inline-grid;
  grid-template-columns: auto auto;
  column-gap: 6px;
  row-gap: 4px;
}

.months {
  position: relative;
  height: 14px;
}

.month,
.weekday,
.legendLabel {
  font-size: 10px;
  line-height: 14px;
  color: var(--mantine-color-dimmed);
  white-space: nowrap;
}

.month {
  position: absolute;
  top: 0;
}

.weekdays {
  display: grid;
  grid-template-rows: repeat(7, var(--cell));
  row-gap: var(--gap);
}

.weekday {
  line-height: var(--cell);
}

.grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, var(--cell));
  grid-auto-columns: var(--cell);
  gap: var(--gap);
}

.cell {
  width: var(--cell);
  height: var(--cell);
  border-radius: 2px;
  outline: 1px solid light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.04));
  outline-offset: -1px;
}

.cell[data-level="0"] {
  background-color: light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.06));
}

.cell[data-level="1"] {
  background-color: color-mix(in srgb, var(--mantine-primary-color-filled) 30%, transparent);
}

.cell[data-level="2"] {
  background-color: color-mix(in srgb, var(--mantine-primary-color-filled) 50%, transparent);
}

.cell[data-level="3"] {
  background-color: color-mix(in srgb, var(--mantine-primary-color-filled) 75%, transparent);
}

.cell[data-level="4"] {
  background-color: var(--mantine-primary-color-filled);
}

.cell[data-future] {
  opacity: 0.4;
}

.legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  flex-shrink: 0;
  --cell: 10px;
}

.legendLabel {
  margin-inline: 3px;
}