Skip to content

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

1.3 KB
Raw Blame
.authContainer {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--c-bg);
  padding: 1.5rem 1.5rem 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: auto;
}

.authCard {
  width: min(26rem, 96vw);
  max-height: 96vh;
  padding: 2.5rem 2rem;
  display: flex;
  justify-content: center;
  background-color: var(--auth-card-bg);
  border-radius: 1.25rem;
  box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.12);
  overflow-y: auto;
  overflow-x: hidden;
  transition:
    width var(--motion-slow),
    padding var(--motion-slow);
}

@media (prefers-reduced-motion: reduce) {
  .authCard,
  .authContent {
    transition: none;
  }
}

.authCardMedium {
  width: min(28rem, 96vw);
}

.authCardMedium .authContent {
  max-width: 24rem; /* 28rem card minus 2rem padding each side */
}

.authCardWide {
  width: min(36rem, 96vw);
  padding: 2.5rem;
}

/* A width, not none, so it can transition with the card's width. */
.authCardWide .authContent {
  max-width: 31rem; /* 36rem card minus 2.5rem padding each side */
}

.authCard::-webkit-scrollbar {
  display: none; /* WebKit browsers (Chrome, Safari, Edge) */
}

.authContent {
  max-width: 22rem; /* 352px */
  width: 100%;
  transition: max-width var(--motion-slow);
}