passkey-toast.css

4.0 KB · raw

1.peach-passkey-toast {2  /* Position */3  position: fixed;4  top: 16px;5  right: 16px;6  z-index: 2147483647;78  /* Size */9  width: 320px;1011  /* Appearance */12  background: #141210;13  border: 0.5px solid rgba(255, 255, 255, 0.1);14  border-radius: 14px;15  box-shadow:16    0 4px 6px rgba(0, 0, 0, 0.3),17    0 12px 32px rgba(0, 0, 0, 0.4),18    0 0 0 0.5px rgba(0, 0, 0, 0.5);1920  /* Layout */21  display: flex;22  flex-direction: column;23  gap: 0;24  overflow: hidden;2526  /* Initial state — hidden before animation */27  opacity: 0;28  transform: translateY(-12px) scale(0.96);29  pointer-events: none;3031  /* Font reset — page styles must not bleed in */32  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;33  font-size: 14px;34  line-height: 1.4;35  -webkit-font-smoothing: antialiased;36  box-sizing: border-box;37}3839.peach-passkey-toast * {40  box-sizing: border-box;41  margin: 0;42  padding: 0;43}4445.peach-passkey-toast.is-visible {46  animation: peach-passkey-in 280ms cubic-bezier(0, 0, 0, 1) forwards;47  pointer-events: auto;48}4950.peach-passkey-toast.is-exiting {51  animation: peach-passkey-out 200ms cubic-bezier(0.3, 0, 1, 1) forwards;52  pointer-events: none;53}5455@keyframes peach-passkey-in {56  from {57    opacity: 0;58    transform: translateY(-12px) scale(0.96);59  }60  to {61    opacity: 1;62    transform: translateY(0) scale(1);63  }64}6566@keyframes peach-passkey-out {67  from {68    opacity: 1;69    transform: translateY(0) scale(1);70  }71  to {72    opacity: 0;73    transform: translateY(-12px) scale(0.96);74  }75}7677/* Site row */78.peach-passkey-toast-site {79  display: flex;80  align-items: center;81  gap: 8px;82  padding: 16px 16px 12px;83}8485.peach-passkey-toast-icon {86  width: 28px;87  height: 28px;88  background: rgba(201, 137, 58, 0.15);89  border-radius: 7px;90  display: flex;91  align-items: center;92  justify-content: center;93  color: #C9893A;94  flex-shrink: 0;95}9697.peach-passkey-toast-domain {98  font-size: 13px;99  color: rgba(255, 255, 255, 0.5);100  font-family: 'IBM Plex Mono', 'Fira Code', 'Courier New', monospace;101  letter-spacing: -0.01em;102}103104/* Headline */105.peach-passkey-toast-headline {106  font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;107  font-style: italic;108  font-size: 20px;109  font-weight: 600;110  color: rgba(255, 255, 255, 0.92);111  padding: 0 16px 10px;112  line-height: 1.2;113}114115/* Account */116.peach-passkey-toast-account {117  display: flex;118  flex-direction: column;119  gap: 1px;120  padding: 0 16px 16px;121}122123.peach-passkey-toast-display-name {124  font-size: 13px;125  font-weight: 500;126  color: rgba(255, 255, 255, 0.85);127}128129.peach-passkey-toast-username {130  font-family: 'IBM Plex Mono', 'Fira Code', 'Courier New', monospace;131  font-size: 12px;132  color: rgba(255, 255, 255, 0.4);133}134135/* Countdown bar */136.peach-passkey-toast-countdown {137  height: 2px;138  background: rgba(255, 255, 255, 0.06);139  margin: 0 16px 14px;140  border-radius: 1px;141  overflow: hidden;142}143144.peach-passkey-toast-countdown-bar {145  height: 100%;146  background: #C9893A;147  border-radius: 1px;148  transform-origin: left;149  animation: peach-passkey-countdown linear forwards;150  /* animation-duration set inline to TIMEOUT_MS */151}152153@keyframes peach-passkey-countdown {154  from { width: 100%; }155  to   { width: 0%; }156}157158/* Actions */159.peach-passkey-toast-actions {160  display: flex;161  gap: 8px;162  padding: 0 16px 16px;163}164165.peach-passkey-toast-btn {166  flex: 1;167  height: 36px;168  border-radius: 8px;169  border: none;170  font-size: 13px;171  font-weight: 500;172  cursor: pointer;173  transition: opacity 120ms ease, transform 120ms ease;174  font-family: inherit;175  letter-spacing: -0.01em;176}177178.peach-passkey-toast-btn:active {179  opacity: 0.75;180  transform: scale(0.97);181}182183.peach-passkey-toast-btn--deny {184  background: rgba(255, 255, 255, 0.07);185  color: rgba(255, 255, 255, 0.6);186  border: 0.5px solid rgba(255, 255, 255, 0.1);187}188189.peach-passkey-toast-btn--deny:hover {190  background: rgba(255, 255, 255, 0.1);191  color: rgba(255, 255, 255, 0.8);192}193194.peach-passkey-toast-btn--signin {195  background: #C9893A;196  color: #0C0A06;197  font-weight: 600;198}199200.peach-passkey-toast-btn--signin:hover {201  background: #D99A4A;202}