~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/pds.js

An atproto PDS in JavaScript, for Cloudflare Workers and Node

0
0
main
188 lines · 2.5 KB Raw History
:root {
  --bg: #fdfdfc;
  --ink: #1a1a18;
  --muted: #6b6b66;
  --line: #e4e4df;
  --accent: #f7df1e;
  --ok: #2e7d32;
  --err: #b3261e;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.mark {
  display: block;
}

.title {
  font-weight: 600;
}

main {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1rem 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: inherit;
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

p {
  line-height: 1.55;
}

.lede {
  color: var(--muted);
}

button {
  font: inherit;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
}

button.secondary {
  background: transparent;
  color: var(--ink);
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

label {
  display: block;
  margin: 1rem 0 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

input,
select {
  font: inherit;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

select {
  height: 2.4rem;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  background: white;
}

.account-list {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}

.account-list button {
  text-align: left;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.account-list button:hover {
  border-color: var(--ink);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
}

.steps li {
  padding: 0.35rem 0;
  color: var(--muted);
}

.steps li.active {
  color: var(--ink);
}

.steps li.done {
  color: var(--ok);
}

.steps li.failed {
  color: var(--err);
}

.error {
  color: var(--err);
  white-space: pre-wrap;
}

code,
.mono {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  background: #f2f2ee;
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

.actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
}