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.

3.8 KB
Raw Blame
.backdrop {
  pointer-events: none;
  animation: focus-backdrop-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.manualBackdrop {
  pointer-events: auto;
}

.surface {
  position: fixed;
  z-index: 1;
  pointer-events: auto;
  overflow: hidden;
  background: var(--mantine-color-body);
  box-shadow: var(--mantine-shadow-md);
  overscroll-behavior: contain;
  animation: focus-surface-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: backwards;
  animation-play-state: paused;
  transform-origin: top left;
}

.surfaceReady {
  animation-play-state: running;
}

.manualSurface {
  position: fixed;
  max-width: none;
  max-height: none;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  overscroll-behavior: contain;
  animation: focus-surface-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top left;
}

.manualSurface > div {
  width: 100%;
  height: 100%;
  max-height: none !important;
  overflow: visible;
}

.backdropClosing {
  animation: focus-backdrop-out 180ms ease-in forwards;
}

.surfaceClosing {
  animation: focus-surface-out 180ms ease-in forwards;
}

.sourcePlaceholder {
  pointer-events: none;
}

.surfaceHost {
  width: 100%;
  height: 100%;
}

.surfacePortalTarget,
.manualSurfaceMount {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.manualSurfaceMount {
  overflow: hidden;
  border-radius: inherit;
}

.surfaceHostAdvanced {
  position: fixed;
  inset: 0;
  z-index: var(--homarr-z-index-widget-focus);
  width: auto;
  height: auto;
  pointer-events: none;
}

.closeButton {
  position: absolute;
  z-index: 2;
  pointer-events: auto;
}

.holdIndicator {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--mantine-z-index-modal);
  display: grid;
  width: 36px;
  height: 36px;
  color: var(--mantine-color-text);
  pointer-events: none;
  transform: translate3d(var(--advanced-focus-pointer-x), var(--advanced-focus-pointer-y), 0) translate(-50%, -50%);
  place-items: center;
  will-change: transform;
}

.holdIndicatorRing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 1px 3px rgb(0 0 0 / 35%));
  transform: rotate(-90deg);
}

.holdIndicatorTrack,
.holdIndicatorProgress {
  stroke-width: 3;
}

.holdIndicatorTrack {
  fill: color-mix(in srgb, var(--mantine-color-body) 82%, transparent);
  stroke: color-mix(in srgb, var(--mantine-color-dimmed) 45%, transparent);
}

.holdIndicatorProgress {
  fill: none;
  stroke: var(--mantine-primary-color-filled);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: advanced-focus-hold-progress 500ms linear forwards;
}

.holdIndicatorLabel {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgb(0 0 0 / 25%);
}

@keyframes focus-backdrop-in {
  from {
    opacity: 0;
  }
}

@keyframes focus-surface-in {
  from {
    transform: translate(var(--focus-translate-x), var(--focus-translate-y))
      scale(var(--focus-scale-x), var(--focus-scale-y));
    opacity: 0.72;
  }
}

@keyframes focus-backdrop-out {
  to {
    opacity: 0;
  }
}

@keyframes focus-surface-out {
  to {
    transform: translate(var(--focus-translate-x), var(--focus-translate-y))
      scale(var(--focus-scale-x), var(--focus-scale-y));
    opacity: 0;
  }
}

@keyframes advanced-focus-hold-progress {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .backdrop,
  .surface,
  .manualSurface {
    animation: none;
  }

  .holdIndicatorProgress {
    stroke-dashoffset: 0;
    animation: none;
  }
}

@media (forced-colors: active) {
  .backdrop {
    background: Canvas;
    opacity: 0.4;
  }

  .holdIndicatorTrack {
    fill: Canvas;
  }

  .holdIndicatorTrack {
    stroke: GrayText;
  }

  .holdIndicatorProgress {
    stroke: Highlight;
  }

  .holdIndicatorLabel {
    color: CanvasText;
    text-shadow: none;
  }
}