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.

1.9 KB
Raw Blame
.root {
  container-type: size;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: clamp(6px, 3cqi, 14px);
  gap: clamp(4px, 2cqi, 10px);
  overflow: hidden;
}

.grid {
  display: grid;
  flex: 1;
  min-height: 0;
  gap: clamp(4px, 2cqi, 10px);
  grid-template-columns: repeat(var(--stat-cols, 2), minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-content: stretch;
}

.statTile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  gap: clamp(2px, 1.5cqi, 5px);
  padding: clamp(4px, 2.5cqi, 10px);
  border-radius: var(--mantine-radius-md);
  background-color: transparent;
  overflow: hidden;
}

.grid[data-short] .statTile {
  flex-direction: row;
  gap: calc(3px * var(--board-canvas-ui-scale, 1));
  padding: 3px 4px;
}

.grid[data-short] .statValue {
  flex-shrink: 0;
}

.grid[data-short] .statLabel {
  min-width: 0;
  text-align: left;
}

.statTileWarning {
  background-color: rgb(
    from light-dark(var(--mantine-color-orange-0), var(--mantine-color-dark-5)) r g b / var(--opacity, 1)
  );
}

.statIcon {
  color: var(--mantine-color-dimmed);
  flex-shrink: 0;
}

.statLabel {
  font-size: clamp(var(--mantine-font-size-xs), 2.5cqi, var(--mantine-font-size-sm));
  color: var(--mantine-color-dimmed);
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statValue {
  font-size: clamp(var(--mantine-font-size-lg), 5.5cqi, var(--mantine-font-size-2xl));
  font-weight: 700;
  color: var(--mantine-primary-color-filled);
  line-height: 1.1;
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.statValueWarning {
  color: var(--mantine-color-orange-6);
}

.emptyState {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  color: var(--mantine-color-dimmed);
  font-size: clamp(11px, 3cqi, 14px);
  text-align: center;
}