/* * linkport web client. * * Every color, radius and font family here comes from a var() defined in * @linkport/design/theme.css, which is generated from the DTCG token documents. * Don't write a literal color in this file — put it in the tokens. * * The layout is deliberately web-native rather than a reproduction of the iOS * app: one centered column, comfortable on a desktop, collapsing cleanly to a * phone. Same brand, different medium. */ /* Body UI font, matching the extension. */ @font-face { font-family: "Inter"; src: url("/vendor/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; } @font-face { font-family: "Newsreader"; src: url("/vendor/newsreader.woff2") format("woff2"); font-weight: 200 700; font-display: swap; } :root { --column: 46rem; --gap: 1rem; } * { box-sizing: border-box; } body { margin: 0; padding: 0 1rem 4rem; background: var(--bg); color: var(--fg); font: 16px/1.5 "Inter", system-ui, sans-serif; /* -webkit- prefix included: Safari still needs it. */ -webkit-text-size-adjust: 100%; } button { font: inherit; cursor: pointer; } /* --- masthead ----------------------------------------------------------- */ .masthead { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); max-width: var(--column); margin: 0 auto; padding: 1.5rem 0 1rem; } .wordmark { font-family: var(--font-brand); font-size: 1.75rem; font-weight: 700; letter-spacing: 0.01em; flex: none; } /* The identity button carries whatever the user typed — which may be a long handle, or a full `did:plc:…`. Let it ellipsize rather than push the page wider than the viewport. */ .masthead .ghost { min-width: 0; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* --- shared controls ---------------------------------------------------- */ .primary { border: none; border-radius: var(--radius-pill); background: var(--ink); color: var(--cream); font-weight: 600; padding: 0.7rem 1.5rem; } .primary:disabled { opacity: 0.4; cursor: default; } .ghost { border: 1px solid var(--border); border-radius: var(--radius-pill); background: none; color: var(--accent); font-weight: 600; padding: 0.4rem 1rem; } .ghost:hover { background: var(--chip); } .error { color: var(--error); font-size: 0.9rem; } /* --- sign-in ------------------------------------------------------------ */ .signin { max-width: 26rem; margin: 3rem auto 0; display: flex; flex-direction: column; gap: 1rem; } .signin-lede { margin: 0; font-family: var(--font-brand); font-size: 1.4rem; line-height: 1.3; } .signin-note { margin: 0; color: var(--fg-dim); font-size: 0.85rem; } .field { display: flex; flex-direction: column; gap: 0.35rem; } .field-label { color: var(--fg-dim); font-size: 0.8rem; font-weight: 500; } .field input { font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-control); padding: 0.6rem 0.75rem; width: 100%; } .field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } /* --- notices ------------------------------------------------------------ */ .notice { max-width: var(--column); margin: 3rem auto; text-align: center; color: var(--fg-dim); } .notice-sub { font-size: 0.9rem; } .notice-error p { color: var(--error); } /* --- destination filter ------------------------------------------------- */ .filters { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: var(--column); margin: 0 auto 1.25rem; } .pill { border: none; border-radius: var(--radius-pill); background: var(--chip); color: var(--fg-dim); font-size: 0.85rem; font-weight: 500; padding: 0.3rem 0.8rem; } .pill-active { background: var(--ink); color: var(--cream); } .pill-count { opacity: 0.65; font-variant-numeric: tabular-nums; } /* --- rows --------------------------------------------------------------- */ .rows { list-style: none; margin: 0 auto; padding: 0; max-width: var(--column); display: flex; flex-direction: column; gap: 0.75rem; } .row-link { display: block; position: relative; background: var(--card); border-radius: var(--radius-card); padding: 1rem; color: inherit; text-decoration: none; } .row-link:hover { /* The app dims on press; a pointer gets a lift instead, which is the gesture the medium actually has. */ box-shadow: 0 1px 3px rgb(0 0 0 / 0.09); } .row-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } /* Destination tab, flush into the card's top-right corner — the arrow reads as the link being routed → there. Ink fill for a specific device; the quiet chip for the everyone-broadcast default. */ .dest { position: absolute; top: 0; right: 0; border-radius: 0 var(--radius-card); background: var(--ink); color: var(--cream); font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; } .dest-broadcast { background: var(--chip); color: var(--fg-dim); } .row-title { margin: 0 5.5rem 0.4rem 0; /* Titles are scraped from arbitrary pages; a long unbroken token must wrap rather than widen the card. Same for the description and URL below. */ overflow-wrap: anywhere; font-size: 1.05rem; font-weight: 600; line-height: 1.35; } .row-body { display: flex; gap: 0.75rem; align-items: flex-start; } .row-meta { flex: 1; min-width: 0; } .row-desc { margin: 0; overflow-wrap: anywhere; color: var(--fg-dim); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .thumb { width: 5.5rem; height: 5.5rem; flex: none; object-fit: cover; border-radius: var(--radius-control); /* A light og:image (white on white) still holds its shape against the card. */ border: 1px solid var(--border); background: var(--chip); } .tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.5rem 0 0; padding: 0; } .tag { background: var(--chip); color: var(--fg-dim); border-radius: var(--radius-pill); font-size: 0.75rem; padding: 0.1rem 0.5rem; } .row-foot { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; color: var(--fg-dim); font-size: 0.8rem; min-width: 0; } .favicon { width: 1.25rem; height: 1.25rem; flex: none; display: grid; place-items: center; border-radius: 0.3rem; background: var(--chip); font-size: 0.7rem; font-weight: 600; } .favicon img { width: 100%; height: 100%; border-radius: inherit; object-fit: contain; } .row-url { /* Without min-width a flex item refuses to shrink below its content. */ min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .row-ago { margin-left: auto; flex: none; } /* --- narrow ------------------------------------------------------------- */ @media (max-width: 30rem) { .row-title { /* The destination tab needs less clearance once it's the only thing on the line. */ margin-right: 4.5rem; } .thumb { width: 4rem; height: 4rem; } }