Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

1.3 KB
Raw Blame
.sui-toast-viewport {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
  max-width: 24rem;
}

.sui-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left-width: 3px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp var(--motion-enter) both;
}

.sui-toast--info {
  border-left-color: var(--c-primary);
}
.sui-toast--success {
  border-left-color: var(--color-green);
}
.sui-toast--warning {
  border-left-color: var(--color-amber);
}
.sui-toast--danger {
  border-left-color: var(--color-red);
}

.sui-toast__body {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8125rem;
}
.sui-toast__title {
  font-weight: 600;
  color: var(--c-text);
}
.sui-toast__desc {
  color: var(--c-text-subtle);
  margin-top: 0.125rem;
  line-height: 1.45;
}

/* Sizing/background/hover are owned by the Button; this just keeps it from
 * stretching and sizes the × glyph. */
.sui-toast__close {
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1;
}