/* Brand palette: paper, ink, and the red pen (see brand/mark.svg). Raised surfaces (menus, inputs, buttons) sit on --card against the paper --bg. */ /* One token layer for the whole popup. Type, spacing, radii and motion are named here so a component never invents a one-off value; the palette is the only thing the theme switch replaces. `theme-init.ts` writes data-theme before the first paint. */ :root { color-scheme: light; --fg: #26282b; --ink: #26282b; --bg: #f4f3ee; --card: #fdfcf9; --muted: #5f5c55; --border: #d7d4ca; --red: #d9482b; --gold: #e8b52a; --good: #1a7f37; --good-fg: #ffffff; --warn: #9a6700; --bad: #cf222e; --bad-fg: #ffffff; /* A focus color that is not the brand red, so focus never reads as error. */ --focus: #2f6feb; --focus-ring: 2px solid var(--focus); --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --radius-1: 4px; --radius-2: 6px; --radius-3: 8px; --text-xs: 10px; --text-sm: 11px; --text-base: 13px; --text-md: 15px; --line-tight: 1.3; --line: 1.45; --tap: 24px; --dur-1: 80ms; --dur-2: 160ms; --ease: cubic-bezier(0.2, 0.7, 0.3, 1); } :root[data-theme='dark'] { color-scheme: dark; --fg: #e9e7e0; /* The sticker's dark outline, lightened for a dark surface. A #26282b border on a #26272b card is no border at all. */ --ink: #e9e7e0; --bg: #1c1d20; --card: #26272b; --muted: #a6a299; --border: #3f4046; --red: #e2593a; --gold: #d9a826; --good: #4cc38a; --good-fg: #14321f; --warn: #d4a72c; --bad: #ff7b72; /* Dark text on the lighter dark-mode red, instead of the light-mode white, which is hard to read there. */ --bad-fg: #1c1d20; --focus: #8ab4ff; } /* Ink, thinned until it is a shape rather than a word: the grey of every loading placeholder. One definition for both palettes — it is mixed from --fg, which each of them has already set. */ :root { --skeleton: color-mix(in srgb, var(--fg) 12%, transparent); } * { box-sizing: border-box; } html { background: var(--bg); } body { /* Wide enough for the actions row's widest state — ✓ Subscribed, the iconed "Open in Standard Reader" split, and the refresh icon — which needs ~390px on Linux fonts, plus slack for wider platform fonts. */ width: 400px; /* Chrome caps a popup at 600px; the main column scrolls inside it so the header and tabs stay put. */ max-height: 600px; margin: 0; display: flex; flex-direction: column; overflow: hidden; font: var(--text-base) / var(--line) system-ui, sans-serif; color: var(--fg); background: var(--bg); } #header { flex: none; } #main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; } /* Tabs and the page panels scroll independently: the header and tab bar stay put while the selected panel moves. */ #tabs { flex: none; display: flex; gap: 2px; padding: 0 var(--space-3); border-bottom: 1px solid var(--border); } .tab { flex: 1; min-height: 34px; padding: 0 4px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer; } .tab:hover { color: var(--fg); } .tab[aria-selected='true'] { color: var(--fg); border-bottom-color: var(--red); } .tab:focus-visible { outline-offset: -2px; } .tab-panel { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: var(--space-3); } .tab-panel[hidden] { display: none; } /* One focus treatment everywhere. A programmatic click that moves focus does not paint a ring; keyboard focus always does. */ :focus-visible { outline: var(--focus-ring); outline-offset: 2px; border-radius: 2px; } :focus:not(:focus-visible) { outline: none; } ::selection { background: color-mix(in srgb, var(--gold) 45%, transparent); } /* Visible to screen readers, not to the page. */ .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } #header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); } /* The sticker leans its usual 2 degrees. */ #header > img { transform: rotate(2deg); } /* Wordmark link: the name always carries its spellcheck squiggle. */ #header .title { font-weight: 600; color: inherit; text-decoration: underline; text-decoration-style: wavy; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; } #header .title:hover { text-decoration-thickness: 1.5px; } /* Build identity, next to the wordmark: quiet enough to ignore, there to be read back in a bug report. Filled from the manifest in popup.ts, so it is empty (and takes no gap) in a page opened outside the extension. */ #header .version { font-size: var(--text-sm); color: var(--muted); } #header .version:empty { display: none; } /* All account state lives here: sign in when signed out, avatar + handle opening the sign out / switch menu when signed in. */ .account-area { margin-left: auto; position: relative; display: flex; } /* The account chip is the same badge as every other identity; ghost keeps it quiet in the chrome, and the menu still belongs to the button. */ .account-btn[hidden] { display: none; } .account-btn { display: inline-flex; min-height: 28px; max-width: 180px; cursor: pointer; font-size: 12px; color: var(--muted); } .account-btn:hover { color: var(--fg); } .account-btn .badge-label { font-size: 12px; font-weight: 500; } .account-btn .badge-media { width: 18px; height: 18px; } .account-btn .caret { font-size: 9px; flex: none; } .account-area .menu { min-width: 150px; } /* Theme choice: an icon button and a three-item radio menu. The glyph shows the current choice; the menu is the only place the names live. */ .theme-area { position: relative; display: flex; margin-left: var(--space-1); } .theme-btn { width: var(--tap); height: var(--tap); justify-content: center; border-radius: var(--radius-1); opacity: 0.8; } .theme-btn:hover { opacity: 1; background: var(--badge-well); } .theme-glyph { display: none; } :root[data-choice='system'] .theme-glyph--system, :root[data-choice='light'] .theme-glyph--light, :root[data-choice='dark'] .theme-glyph--dark { display: block; } :root:not([data-choice]) .theme-glyph--system { display: block; } .theme-area .menu { right: 0; min-width: 140px; } .theme-area .item[role='menuitemradio'][aria-checked='true']::after { content: '✓'; margin-left: auto; color: var(--fg); } /* --- Identity badges ----------------------------------------------------- Every identity is a paper ticket. Accounts and authors are people, so their media is the round sticker avatar; publications get a squared plate; posts a document slip; labels a tag. The kinds share one geometry, one type scale and one spacing scale, so a new surface can add an identity without learning a second design. The role is a kicker above the name, marked with the red pen, rather than a chip competing with it. Color is still the severity channel for status pills and moderation labels, never the kind. */ :root { --badge-ink: color-mix(in srgb, var(--fg) 18%, transparent); --badge-well: color-mix(in srgb, var(--fg) 7%, transparent); } .badge { display: inline-flex; align-items: center; gap: 9px; min-width: 0; padding: 7px 10px 7px 7px; border: 1px solid var(--badge-ink); border-radius: 5px; background: var(--card); color: inherit; font: inherit; line-height: 1.35; text-decoration: none; } .badge[hidden] { display: none; } .badge--sm { gap: 6px; padding: 3px 9px 3px 4px; } .badge--ghost { padding: 2px 4px 2px 2px; border-color: transparent; background: none; } .badge--ghost:hover { background: var(--badge-well); } .badge-media { width: 30px; height: 30px; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: var(--badge-well); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 6%, transparent); } .badge--sm .badge-media { width: 20px; height: 20px; } /* Publications are plates, not faces: the square edge is the kind. */ .badge--publication .badge-media { border-radius: 5px; box-shadow: inset 0 0 0 1px var(--badge-ink); } .badge--post .badge-media { width: 18px; height: 18px; border-radius: 3px; color: var(--muted); } .badge--labeler .badge-media { width: 14px; height: 14px; border-radius: 2px; background: none; box-shadow: none; color: currentColor; } .badge-icon { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; } .badge-icon[hidden] { display: none; } .badge-icon--mono { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; font-weight: 600; user-select: none; } .badge--sm .badge-icon--mono { font-size: 9px; } .badge-media--glyph svg { width: 12px; height: 12px; } .badge-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; } .badge-line { display: flex; align-items: baseline; gap: 7px; min-width: 0; } .badge-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; } .badge--sm .badge-label { font-size: 12px; } .badge-label a { color: inherit; text-decoration: none; } .badge-label a:hover { text-decoration: underline; text-underline-offset: 2px; } .badge-meta { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .badge--sm .badge-meta { font-size: 11px; } .badge-bio { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* The role is an editorial kicker over the name: a red pen mark, the words, then a hairline to the edge of the card. */ .badge-role { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; color: var(--muted); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; line-height: 1; text-transform: uppercase; user-select: none; } .badge-role::before { content: ''; width: 10px; height: 1px; flex: none; background: var(--red); } .badge-role::after { content: ''; flex: 1; height: 1px; background: var(--border); } .badge-role[hidden] { display: none; } .badge-chip { flex: none; padding: 0 5px; border: 1px solid var(--border); border-radius: 3px; color: var(--muted); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; line-height: 14px; text-transform: uppercase; } .badge-chip[hidden] { display: none; } .badge-count { flex: none; color: var(--muted); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; } .badge-count[hidden] { display: none; } /* The profile card is a sheet of paper: inked edge, hard misprint shadow, and it presses into the shadow on hover. */ .badge--card { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; padding: 10px 12px; border-radius: 6px; box-shadow: 2px 2px 0 var(--border); transition: box-shadow 80ms, transform 80ms; } .badge--card:hover { border-color: var(--muted); box-shadow: 1px 1px 0 var(--border); transform: translate(1px, 1px); } .badge--card .badge-body { flex: 1; } /* The publication row is the card's masthead: larger name, a rule under it, and the post count set like a folio. */ #pub-head { width: 100%; gap: 10px; padding: 0 0 8px; border-radius: 0; border-bottom: 1px solid var(--border); } #pub-head .badge-media { width: 32px; height: 32px; } #pub-head .badge-label { font-size: 15px; letter-spacing: -0.01em; } /* The publication's own colors, when its record declares a legible set (src/lib/theme.ts). Scoped to the masthead: the popup stays substandard's paper, and the publication is recognized by its own palette. */ #pub[data-themed] #pub-head { padding: 8px 10px; border-radius: 6px; border-bottom-color: color-mix(in srgb, var(--pub-fg) 18%, transparent); background: var(--pub-bg); color: var(--pub-fg); } #pub[data-themed] #pub-head .badge-icon--mono { color: var(--pub-fg); } #pub[data-themed] #pub-head .badge-media { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pub-fg) 20%, transparent); } /* The article's margin rule takes the publication's accent. */ #pub[data-themed] .doc-line .badge { border-left-color: var(--pub-accent); } /* A publication palette is written for its own paper. On the popup's dark paper a white plate becomes a glaring island, so dark mode keeps the masthead on the popup surface and keeps only the publication's accent. */ :root[data-theme='dark'] #pub[data-themed] #pub-head { background: var(--card); color: var(--fg); border-bottom-color: color-mix(in srgb, var(--pub-accent) 55%, var(--border)); } :root[data-theme='dark'] #pub[data-themed] #pub-head .badge-icon--mono { color: var(--muted); } :root[data-theme='dark'] #pub[data-themed] #pub-head .badge-media { box-shadow: inset 0 0 0 1px var(--border); } /* Moderation labels are stamped tags, squared to match the paper system. Severity still arrives as tone and as the same diamond/triangle shapes the status pills use. */ .badge--labeler { gap: 5px; padding: 3px 8px 3px 5px; border-radius: 4px; } .badge--labeler .badge-label { font-size: 11px; font-weight: 600; letter-spacing: 0; } .badge--labeler.badge--warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); } .badge--labeler.badge--alert, .badge--labeler.badge--error { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 10%, transparent); } .site-card { margin-bottom: 0; } .status:not([hidden]) + #site:not([hidden]) { margin-top: 12px; } /* Publisher's desk: the owner's own publication. A paper card with three figures and a short list, distinct from the reader's publication card. */ .desk[hidden] { display: none; } .desk { margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--badge-ink); border-radius: 6px; background: var(--card); box-shadow: 2px 2px 0 var(--border); } .desk-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; } .desk-title { color: var(--fg); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; } .desk-title::before { content: ''; display: inline-block; width: 10px; height: 1px; margin-right: 5px; vertical-align: middle; background: var(--red); } .desk-hint { color: var(--muted); font-size: 10px; } .desk-summary { margin-top: 2px; color: var(--muted); font-size: 12px; } /* Dropdown that hosts the sign-in form when signed out. Nearly the popup's full width: the typeahead suggestion list is only as wide as the input, so a narrow panel truncates every suggested handle. */ .signin-panel { width: 364px; padding: 8px; } .signin-panel form { display: flex; flex-direction: column; gap: var(--space-2); } .signin-panel input { width: 100%; min-width: 0; font: inherit; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--fg); } .signin-panel .note:empty { display: none; } .signin-actions { display: flex; justify-content: flex-end; gap: var(--space-2); } .signin-lede { margin: 0 0 8px; } /* The note text is muted, so a persistent underline is what marks the link. */ .signin-lede a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent); text-underline-offset: 2px; } .signin-lede a:hover { color: var(--fg); text-decoration-color: currentColor; } /* Handle autocomplete dropdown. */ actor-typeahead { flex: 1; --color-background: var(--card); --color-border: var(--border); --color-hover: color-mix(in srgb, var(--fg) 10%, transparent); --color-avatar-fallback: var(--border); --radius: 6px; } #main { padding: 12px; } /* Status pills stack, most severe first; bare text (e.g. "No active tab.") renders as a plain muted line. */ .status { display: flex; flex-direction: column; gap: 8px; color: var(--muted); } .status[hidden] { display: none; } .pill { display: flex; gap: 8px; align-items: flex-start; } /* Warnings, alerts and errors get a tinted banner; info stays a plain muted line. Red is for the serious ones: something the extension could not do (error) and something serious it did (alert, e.g. a block you made). */ .pill.warn, .pill.alert, .pill.error { padding: 6px 8px; border: 1px solid; border-radius: 6px; font-size: 12px; } .pill.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); } .pill.alert, .pill.error { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 10%, transparent); } /* Shape-coded tone mark (triangle/octagon/circle); severity survives without hue, which the two red tones need most. */ .pill-icon { flex: none; display: flex; } .pill-icon svg { width: 14px; height: 14px; margin-top: 1.5px; } /* Links keep the pill's tone; underline is what marks them as links. */ .status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; } .status:not([hidden]) + #pub:not([hidden]) { margin-top: 10px; } .pub-desc { margin: 8px 0 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } /* Verification details: a four-step chain with a verdict above it. */ .verify-open { margin-top: 8px; font-size: 11px; } .verify[hidden] { display: none; } .verify { margin-top: 8px; } .verify-summary { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid; border-radius: 6px; font-size: 12px; } .verify-summary.pass { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); background: color-mix(in srgb, var(--good) 8%, transparent); } .verify-summary.fail { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 8%, transparent); } .verify-summary-mark { font-weight: 700; } .verify-step { position: relative; margin-left: 6px; padding: 10px 0 0 22px; border-left: 1px solid var(--border); } .verify-step:last-child { border-left-color: transparent; } .verify-mark { position: absolute; left: -8px; top: 10px; display: flex; align-items: center; justify-content: center; width: 15px; height: 15px; border: 1px solid var(--border); border-radius: 50%; background: var(--card); font-size: 9px; font-weight: 700; } .verify-step.pass .verify-mark { color: var(--good); border-color: var(--good); } .verify-step.fail .verify-mark { color: var(--bad); border-color: var(--bad); } .verify-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .verify-label { color: var(--fg); font-size: 12px; font-weight: 600; } .verify-detail { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; } .verify-link { align-self: flex-start; margin-top: 2px; color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 2px; } .verify-link:hover { color: var(--fg); } /* Who else subscribes: overlapping faces of the people you follow, then the count. Sits between the description and the article line, so it reads as part of the publication rather than as part of the actions. */ /* Same trap: hidden has to be restated, or the row keeps its top margin. */ .subscribers[hidden] { display: none; } .subscribers { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); } .faces { display: flex; } .faces:empty { display: none; } /* Overlapped, and each face draws a ring in the page background so the stack stays legible against whatever the avatars themselves are. */ .face { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; background: color-mix(in srgb, var(--fg) 8%, transparent); box-shadow: 0 0 0 1.5px var(--bg); } .face + .face { margin-left: -6px; } /* Stand-in for an account with no avatar, or whose avatar did not load. */ .face-fallback { display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: var(--muted); user-select: none; } .subscriber-count { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* panoptiblog's standing: one line under the publication, linking to the page that explains the numbers. It borrows the subscribers row's weight so it reads as another fact about the same publication, not a new card. */ .panoptiblog-row { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: 12px; color: var(--muted); text-decoration: none; } .panoptiblog-row[hidden] { display: none; } .panoptiblog-row:hover .panoptiblog-rank { text-decoration: underline; } .panoptiblog-rank { font-weight: 650; color: var(--fg); } .panoptiblog-labels { display: flex; flex-wrap: wrap; gap: 3px; } .panoptiblog-labels:empty { display: none; } .panoptiblog-label { padding: 0 4px; border: 1px solid var(--line); border-radius: 4px; font-size: 10px; color: var(--muted); } /* Placeholders, for a card whose lookup is still out after 150ms (the rule lives in src/popup/cards/loading.ts; this is only how it looks). Every box below is an element the real content fills, given a size here so the answer lands inside it rather than pushing it open — a placeholder that collapsed to nothing would move more than the pop-in it replaces. Sizes are the middle of what these fields actually hold: a name, a handle, one line of a bio that may turn out to be two. */ .loading { pointer-events: none; } .loading .badge-icon, .loading .face, .loading .badge-label, .loading .badge-meta, .loading .badge-bio, .loading .subscriber-count { background: var(--skeleton); animation: placeholder-pulse 1.6s ease-in-out infinite; } /* Each bar sits in the line box its text would have taken — 13px/1.45 rounds to 19, 12px/1.45 to 17 — so a card whose bio turns out to be one line does not move at all when it arrives, and one with two lines grows by one. */ .loading .badge-line { min-height: 19px; } .loading .badge-label { width: 128px; height: 12px; border-radius: 3px; } .loading .badge-meta { width: 92px; height: 10px; margin: 3.5px 0; border-radius: 3px; } .loading .badge-bio { height: 10px; margin: 7.5px 0 3.5px; border-radius: 3px; } .loading .subscriber-count { width: 116px; height: 10px; margin: 3.5px 0; border-radius: 3px; } /* Barely there: the point is that something is coming, not that something is happening. */ @keyframes placeholder-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } } @media (prefers-reduced-motion: reduce) { /* The pulse is the only thing in this popup that moves on its own, so stopping every animation is the whole guard. The grey boxes stand still and say the same thing. */ *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } } @media (prefers-contrast: more) { :root { --muted: var(--fg); --border: var(--fg); } } /* Windows high-contrast mode replaces the palette; keep every surface distinguishable with system colors rather than disappearing. */ @media (forced-colors: active) { .badge, .btn, .menu, .pill.warn, .pill.alert, .pill.error, .label-cover, .signin-panel { border: 1px solid ButtonText; } .btn.primary, .btn.confirm, .btn.subscribed { forced-color-adjust: none; background: ButtonFace; color: ButtonText; } .badge--ghost { border-color: transparent; } } /* Moderation labels, themed after Bluesky's: a chip per label, an alert tone for the values its own interpretation calls alerts, and a cover in front of anything a label says to put behind a click. */ .labels { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; } .labels .badge { max-width: 100%; } .label-cover { padding: 10px; border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: 6px; background: color-mix(in srgb, var(--warn) 8%, transparent); } /* A cover put up by an alert label is red, matching that label's own pill. */ .label-cover.alert { border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 8%, transparent); } .label-cover-head { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--warn); } .label-cover.alert .label-cover-head { color: var(--bad); } .label-cover .note { margin: 6px 0 0; } .label-cover-actions { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; } .label-cover-actions .note { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* An article line reads as a note in the margin: a red pen rule on the left, a document slip rather than a second publication. */ .doc-line { margin-top: 10px; min-width: 0; } .doc-line .badge { max-width: 100%; padding: 4px 9px 4px 5px; border-radius: 4px; border-left: 2px solid var(--red); background: color-mix(in srgb, var(--card) 65%, var(--bg)); } .doc-line .badge-media { width: 16px; height: 16px; } .doc-line .badge-label { font-size: 12px; font-weight: 500; } /* The rest of the document record: date, reading time, other authors, tags. One muted line and a row of chips, so it reads as article metadata rather than as another card. */ .article-details[hidden] { display: none; } .article-details { margin-top: 8px; } .article-meta[hidden] { display: none; } .article-meta { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .article-tags[hidden] { display: none; } .article-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; } .article-tag { padding: 0 5px; border: 1px solid var(--border); border-radius: 3px; color: var(--muted); font-size: 10px; line-height: 16px; } /* The document's Bluesky thread. A quiet line under the article, since the conversation is somewhere else and the popup only points at it. */ .discussion[hidden] { display: none; } .discussion { margin-top: 8px; } .discussion-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; text-decoration: none; } .discussion-link:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; } .discussion-link img { flex: none; } /* The thread preview: a tree of posts in the margin, with the root carrying the publication's red pen rule and replies stepping in under it. */ .thread[hidden] { display: none; } .thread { margin-top: 10px; } /* Collapsed by default: arbitrary replies do not lengthen the popup until the reader asks for them. */ .thread-open { font-size: 11px; } .thread-body[hidden] { display: none; } .thread-body { margin-top: 6px; } .thread-post { padding-left: 9px; border-left: 2px solid var(--border); min-width: 0; } .thread-root { border-left-color: var(--red); } .thread-post.depth-1 { margin-left: 18px; } .thread-post.depth-2 { margin-left: 36px; } .thread-post + .thread-post, .thread-replies > .thread-post, .thread-replies > .thread-replies { margin-top: 8px; } .thread-head { display: flex; align-items: baseline; gap: 6px; min-width: 0; } .thread-avatar { width: 16px; height: 16px; flex: none; align-self: center; border-radius: 50%; object-fit: cover; background: var(--badge-well); } .thread-avatar-fallback { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 8px; font-weight: 600; user-select: none; } .thread-author { color: var(--fg); font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; } .thread-author:hover { text-decoration: underline; text-underline-offset: 2px; } .thread-handle { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .thread-text { margin: 3px 0 0; color: var(--fg); font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } .thread-stats { margin-top: 3px; color: var(--muted); font-size: 11px; } .thread-more { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 12px; text-decoration: none; } .thread-more:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; } /* Other people's posts about this article: a quiet list, not a feed. The header opens the search; each row opens one post. */ .mentions[hidden] { display: none; } .mentions { margin-top: 10px; } .mentions-head { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; text-decoration: none; } .mentions-head:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; } .mentions-head img { flex: none; } .mention-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; } .mention { display: flex; align-items: flex-start; gap: 8px; color: inherit; text-decoration: none; } .mention-avatar { width: 20px; height: 20px; flex: none; border-radius: 50%; object-fit: cover; background: var(--badge-well); } .mention-fallback { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 9px; font-weight: 600; user-select: none; } .mention-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; } .mention-author { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mention-text { color: var(--fg); font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .mention:hover .mention-text { text-decoration: underline; text-underline-offset: 2px; } .actions { display: flex; gap: 8px; margin-top: 12px; align-items: stretch; } .btn { font: inherit; white-space: nowrap; min-height: 32px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-2); background: var(--card); color: var(--fg); cursor: pointer; transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); } .btn:hover:not([aria-disabled='true']) { border-color: var(--muted); } /* aria-disabled looks disabled but keeps its click: the signed-out Subscribe answers a click with the sign-in pill instead of ignoring it. */ .btn:disabled, .btn[aria-disabled='true'] { opacity: 0.5; cursor: default; } .btn.sm { min-height: 26px; padding: 3px 10px; font-size: 12px; } /* Subscribe is a green sticker: ink border, solid misprint shadow, almost straight. Hover presses it into its own shadow. */ .btn.primary { background: var(--good); color: var(--good-fg); border: 1.5px solid var(--ink); transform: rotate(-0.5deg); box-shadow: 2px 2px 0 var(--border); } .btn.primary:hover:not(:disabled):not([aria-disabled='true']) { transform: rotate(-0.5deg) translate(1px, 1px); box-shadow: 1px 1px 0 var(--border); } /* Subscribe armed for its second click on a blocked publisher: same shape as .primary so nothing jumps, red so the click that goes through looks different from the one that armed it. */ .btn.confirm { background: var(--bad); color: var(--bad-fg); border: 1.5px solid var(--ink); transform: rotate(-0.5deg); box-shadow: 2px 2px 0 var(--border); } .btn.confirm:hover:not(:disabled) { transform: rotate(-0.5deg) translate(1px, 1px); box-shadow: 1px 1px 0 var(--border); } .btn.subscribed { background: var(--card); color: var(--good); border-color: var(--good); } /* Clicking Subscribed unsubscribes, so hovering shows the red pen. */ .btn.subscribed:hover { color: var(--bad); border-color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); } /* Vendored reader favicon, shown before the reader's name in the open button and the menu. Baseline-free flex centering in both hosts. */ .reader-icon { width: 14px; height: 14px; flex: none; object-fit: contain; } .split .btn:first-child .reader-icon { margin-right: 6px; } .split { position: relative; display: flex; margin-left: auto; } /* Grey-on-grey utility next to the split: visible on approach, quiet at rest. */ .icon-btn { display: inline-flex; align-items: center; justify-content: center; align-self: center; min-width: var(--tap); min-height: var(--tap); border: 0; border-radius: var(--radius-1); background: none; color: var(--muted); opacity: 0.7; padding: 2px; cursor: pointer; transition: opacity var(--dur-1) var(--ease), background var(--dur-1) var(--ease); } .icon-btn:hover { opacity: 1; } .split .btn:first-child { display: flex; align-items: center; border-top-right-radius: 0; border-bottom-right-radius: 0; } .split .arrow { border-left: none; border-top-left-radius: 0; border-bottom-left-radius: 0; padding: 6px 8px; } /* Menus drop a solid misprint shadow, not a blur. */ .menu { position: absolute; right: 0; top: calc(100% + 4px); min-width: 190px; /* Size to the widest item; icons pushed the reader rows past min-width. */ width: max-content; max-width: 376px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; box-shadow: 3px 3px 0 color-mix(in srgb, var(--fg) 14%, transparent); z-index: 10; padding: 4px; max-height: min(320px, 50vh); overflow-y: auto; overscroll-behavior: contain; } .menu .item { display: flex; align-items: center; gap: var(--space-1); width: 100%; min-height: 32px; padding: 6px 8px; border: 0; background: none; color: var(--fg); font: inherit; border-radius: 5px; cursor: pointer; text-align: left; white-space: nowrap; } .menu .item:hover:not(:disabled) { background: color-mix(in srgb, var(--fg) 8%, transparent); } .menu .item:disabled { opacity: 0.5; cursor: default; } .menu .item:focus-visible { outline-offset: -2px; } /* One reader row: open the reader, or make it the default. Two menu items, so both are reachable from the keyboard. */ .menu-row { display: flex; align-items: stretch; gap: 2px; } /* The shared .item width:100% would push the star out of the row. */ .menu-row > .item { width: auto; } .reader-open { flex: 1; min-width: 0; } .star-btn { flex: none; width: 30px; justify-content: center; color: var(--muted); font-size: 13px; } .star-btn[aria-checked='true'] { color: var(--fg); } .note { margin-top: 8px; color: var(--muted); font-size: 12px; min-height: 1em; } /* Feedback: the report form, in its own tab. */ #feedback { margin: 0; padding: var(--space-3); border: 0; } #feedback-form { display: flex; flex-direction: column; gap: 8px; } #feedback input[type='text'], #feedback textarea { width: 100%; font: inherit; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--fg); } #feedback textarea { resize: vertical; } /* The board's own categories; the row is absent when the board lists none, so the author-origin `display` has to restate the hidden state. */ .feedback-tags[hidden] { display: none; } .feedback-tags { display: flex; flex-wrap: wrap; gap: 4px 12px; } .feedback-tag { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); cursor: pointer; } /* Same as the sign-in lede: muted text, so the underline marks the link. */ .feedback-lede { margin: 0; } .feedback-lede a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent); text-underline-offset: 2px; } .feedback-lede a:hover { color: var(--fg); text-decoration-color: currentColor; } .feedback-actions { display: flex; gap: 8px; } #feedback-note { margin-top: 0; } #feedback-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; } /* Footer: the way into the feedback form and the updates blog, on every popup open. */ /* A quiet text link, used inside the Feedback tab and the dev menu. */ .link-btn { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0; border: 0; background: none; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent); text-underline-offset: 2px; } .link-btn:hover { color: var(--fg); text-decoration-color: currentColor; } /* The dev build's debug menu, at the bottom of the Feedback tab. Absent from a release build: author-origin `display` has to restate the hidden state, as everywhere else in this file. */ .debug-area[hidden] { display: none; } .debug-area { position: relative; display: flex; margin-top: var(--space-3); } .feedback-links { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-3) 0 0; } .feedback-links .link-btn { font-size: var(--text-sm); } /* What the last debug action did, said in the menu that started it: the two that fetch have no other place to report, and the popup's status pills are redrawn from page state rather than written to. */ .menu-note[hidden] { display: none; } .menu-note { margin: 4px 8px 2px; color: var(--muted); font-size: 12px; } /* Near the bottom of a panel, the menu rises rather than dropping out. */ .menu.up { top: auto; bottom: calc(100% + 4px); } /* --- subscriptions view -------------------------------------------------- A manager inside the Subscriptions tab. The view owns its own scroll: the list is the only thing that moves, so stats, search and the bulk bar stay where they are while rows come and go. */ #subscriptions-view[hidden] { display: none; } #subscriptions-view { display: flex; flex-direction: column; min-height: 0; gap: 6px; overflow: hidden; } .subs-refresh { flex: none; } .subs-refresh:disabled { opacity: 0.45; } .subs-status, .subs-status[hidden] { display: none; } .subs-status:not([hidden]) { display: block; } .subs-status { flex: none; margin: 0; min-height: 0; font-size: 11px; } .subs-status.error { color: var(--bad); } .subs-state[hidden] { display: none; } .subs-state { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 12px 4px; } .subs-state-title { margin: 0; font-size: 14px; line-height: 1.3; } .subs-state .note { margin: 0; overflow-wrap: anywhere; } .subs-return { font-size: 11px; } .subs-ready[hidden] { display: none; } .subs-ready { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; } .subs-stats[hidden] { display: none; } .subs-stats { flex: none; display: flex; flex-wrap: wrap; gap: 4px; color: var(--muted); font-size: 11px; } .subs-stats strong { color: var(--fg); font-weight: 650; } .subs-toolbar[hidden], .subs-bulk[hidden], .subs-confirm[hidden], .subs-empty[hidden], .subs-list[hidden] { display: none; } .subs-toolbar { flex: none; display: flex; align-items: center; gap: 6px; } .subs-toolbar input[type='search'], .subs-toolbar select { min-height: 28px; font: inherit; font-size: 12px; border: 1px solid var(--border); border-radius: 5px; background: var(--card); color: var(--fg); } .subs-toolbar input[type='search'] { flex: 1; min-width: 0; padding: 4px 7px; } .subs-toolbar select { flex: none; max-width: 96px; padding: 3px 4px; } .subs-bulk { flex: none; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; } .subs-select-all { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; } .subs-select-all input { width: 14px; height: 14px; accent-color: var(--good); } .subs-selected { min-width: 0; } .subs-bulk .btn { margin-left: auto; } .subs-bulk .btn[hidden] { display: none; } .subs-confirm { flex: none; padding: 7px 8px; border: 1px solid color-mix(in srgb, var(--bad) 45%, var(--border)); border-radius: 6px; background: color-mix(in srgb, var(--bad) 7%, var(--card)); } .subs-confirm .note { margin: 0 0 6px; font-size: 11px; } .subs-confirm-actions { display: flex; justify-content: flex-end; gap: 6px; } .subs-empty { margin: 0; padding: 12px 4px; font-size: 12px; } .subs-list { list-style: none; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; } .subs-row { display: grid; grid-template-columns: 24px 28px minmax(0, 1fr) auto; align-items: center; gap: 6px; min-width: 0; padding: 5px 6px; border: 1px solid var(--border); border-radius: 5px; background: var(--card); } .subs-row.is-loading { pointer-events: none; } .subs-check { display: flex; align-items: center; justify-content: center; width: 24px; min-height: 28px; margin-left: -3px; cursor: pointer; } .subs-check input { width: 15px; height: 15px; accent-color: var(--good); cursor: pointer; } .subs-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; overflow: hidden; border-radius: 4px; background: var(--badge-well); box-shadow: inset 0 0 0 1px var(--badge-ink); } .subs-icon .badge-icon { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; } .subs-icon .badge-icon--mono { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; font-weight: 600; user-select: none; } .subs-icon .badge-icon[hidden] { display: none; } .subs-main { min-width: 0; } .subs-line { display: flex; align-items: baseline; gap: 5px; min-width: 0; } .subs-name { min-width: 0; overflow: hidden; color: var(--fg); font-size: 12px; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; } a.subs-name:hover { text-decoration: underline; text-underline-offset: 2px; } .subs-host { flex: 0 1 auto; max-width: 100%; min-width: 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; } .subs-meta time { flex: none; } .subs-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 1px; color: var(--muted); font-size: 10px; } .subs-failed { color: var(--warn); } .subs-did { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; } .subs-actions { display: flex; align-items: center; gap: 2px; } .subs-reader { width: 26px; min-width: 26px; min-height: 26px; border: 1px solid var(--border); border-radius: 4px; } .subs-reader .reader-icon { width: 13px; height: 13px; } .subs-unsub { min-height: 26px; padding: 2px 6px; font-size: 10px; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); } .subs-unsub:hover:not(:disabled) { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); } .subs-row.is-loading { grid-template-columns: 24px 28px minmax(0, 1fr) 62px; } .skeleton { background: var(--skeleton); border-radius: 3px; animation: placeholder-pulse 1.6s ease-in-out infinite; } .subs-skeleton-check { width: 15px; height: 15px; } .subs-skeleton-icon { width: 28px; height: 28px; border-radius: 4px; } .subs-skeleton-name { display: block; width: 62%; height: 10px; } .subs-skeleton-line { display: block; width: 40%; height: 8px; margin-top: 5px; } .subs-skeleton-action { width: 62px; height: 22px; } .subs-toast[hidden] { display: none; } .subs-toast { display: flex; align-items: center; gap: 8px; flex: none; padding: 7px 12px; border-top: 1px solid var(--border); background: var(--card); font-size: 11px; } .subs-toast-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .subs-toast-undo { flex: none; min-height: 24px; color: var(--fg); } .subs-toast-close { flex: none; min-width: 24px; min-height: 24px; } @media (forced-colors: active) { .subs-row, .subs-toolbar input, .subs-toolbar select, .subs-confirm, .subs-toast { border: 1px solid CanvasText; } .subs-row, .subs-confirm, .subs-toast { background: Canvas; } .subs-unsub, .subs-bulk .btn.confirm, .subs-confirm .btn.confirm { forced-color-adjust: none; background: ButtonFace; color: ButtonText; } }