Newer
Older
gnexus-creds / extensions / extension / src / content.css
@Eugene Sukhodolskiy Eugene Sukhodolskiy 5 hours ago 2 KB Render the autofill card in a closed Shadow DOM
/* Card styles for the closed Shadow DOM root (content.js injects this file's
   text into the shadow root; it is never added to the page stylesheet, so the
   host page can neither restyle the card nor see our class names).
   Palette and geometry mirror gnexus-ui-kit 1.0 — keep in sync with lib/. */

.gnexus-creds-autofill-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 32px);
  pointer-events: none;
}

.gnexus-creds-autofill-card {
  pointer-events: auto;
  background: #16161e;
  border: 2px solid rgba(192, 202, 245, 0.24);
  border-left: 6px solid #7aa2f7;
  color: #c0caf5;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 14px;
  border-radius: 6px;
  box-shadow: 0 14px 36px rgba(22, 22, 30, 0.36);
  padding: 15px 18px;
  min-width: 300px;
  max-width: 460px;
  width: 100%;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.gnexus-creds-autofill-card-visible {
  opacity: 1;
  transform: translateY(0);
}

.gnexus-creds-autofill-card-exit {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.25s ease-in, transform 0.25s ease-in;
}

.gnexus-creds-autofill-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7aa2f7;
  line-height: 1.25;
  word-break: break-word;
  margin: 0 0 12px;
  font-size: 14px;
}

.gnexus-creds-autofill-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.gnexus-creds-autofill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 2px solid rgba(192, 202, 245, 0.08);
}

.gnexus-creds-autofill-row:last-child {
  border-bottom: none;
}

.gnexus-creds-autofill-row-title {
  font-size: 13px;
  color: #c0caf5;
  word-break: break-word;
}

.gnexus-creds-autofill-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.gnexus-creds-autofill-btn {
  background: #16161e;
  border: 2px solid rgba(192, 202, 245, 0.24);
  border-left: 6px solid #7aa2f7;
  color: #7aa2f7;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

.gnexus-creds-autofill-btn-secondary {
  border-left-width: 2px;
  color: #a9b1d6;
}

.gnexus-creds-autofill-btn:hover {
  opacity: 0.85;
}