Ships the Rithub row of plans/growth-loops-2026-11-19.md's "SHARE EVERYWHERE + REASONS TO SHARE" table: - templates/shared/share_card.tmpl: one-time dashboard share card shown the first time a signed-in user has >=1 imported repo (the dashboard's own complement of the 0-repo "Bring your code" screen). Icon-only share row (X, LinkedIn, Bluesky, Reddit, HN, WhatsApp, Telegram, copy link, native share-sheet "More"), every link carrying rithub.dev/?ref=<username>. Client-side localStorage gate, dismissible, never posts on the user's behalf. - templates/repo/header.tmpl: "hosted on Rithub" README badge popup, one-click copy of the markdown snippet (badge SVG served from custom/public/assets/badge/hosted-on-rithub.svg, ?ref=<owner> in the link). - templates/base/head_opengraph.tmpl: added the missing twitter:card/ twitter:title/twitter:image tags on the repo/issue/diff/profile branches (only the homepage branch had them before), so shared repo links render a real preview card on X/Slack-style unfurlers. - scripts/ref-count.py + ref-count.sh: counts ?ref=<value> visits from Caddy's own JSON access logs into ref-counts.json (box-only, offset- tracked, idempotent across cron ticks) — no new Gitea route needed. - templates/shared/bring_your_code.tmpl: real user feedback (PremAnjwani, Product Hunt forum) — a compact "what moves, what doesn't" preview right before the GitHub import button (copied/how/not-copied/ reversible), every fact sourced from scripts/lib/bulk-migrate.sh's real migrate request body and the live container's own convert-mirror template (verified repo-owner self-service, not site-admin-only). Deployed to railyard-box (container restart only, no rebuild) and verified live: repo-page OG/twitter tags + badge markdown with real ?ref, dashboard share card + import preview rendered for a real signed- in session (disposable mail.tm QA account, repo migrated then deleted, account deleted), share-card JS link construction verified in a Node sandbox, ref-count script verified against a real ?ref hit and proven idempotent on a second run, cron installed (*/15 min). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
908 lines
44 KiB
CSS
908 lines
44 KiB
CSS
/* Rithub theme — monochrome Apple glass (owner 2026-11-18: "glassmorphism
|
|
Apple design, no wild colours, no blue"). Ink is the only accent
|
|
(#1d1d1f light / #f5f5f7 dark). Separate light + dark palettes over every
|
|
surface variable, so no mode mixes dark panels with dark text.
|
|
Glass (backdrop blur) only on the navigation layer: top bar, menus,
|
|
modals, mobile tab bar (Apple HIG, Materials). Content stays on plain
|
|
surfaces with hairlines. Semantic colours (diff add/remove, error/success
|
|
banners, issue labels, language dots) are left as-is.
|
|
Generated palette: tools-theme/gen_theme.py. */
|
|
@media (prefers-color-scheme: light) {
|
|
:root {
|
|
color-scheme: light;
|
|
--color-primary: #1d1d1f;
|
|
--color-primary-contrast: #ffffff;
|
|
--color-primary-hover: color-mix(in srgb, #1d1d1f 86%, #ffffff);
|
|
--color-primary-active: color-mix(in srgb, #1d1d1f 76%, #ffffff);
|
|
--color-primary-dark-1: color-mix(in srgb, #1d1d1f 88%, black);
|
|
--color-primary-dark-2: color-mix(in srgb, #1d1d1f 76%, black);
|
|
--color-primary-dark-3: color-mix(in srgb, #1d1d1f 64%, black);
|
|
--color-primary-dark-4: color-mix(in srgb, #1d1d1f 52%, black);
|
|
--color-primary-dark-5: color-mix(in srgb, #1d1d1f 40%, black);
|
|
--color-primary-dark-6: color-mix(in srgb, #1d1d1f 28%, black);
|
|
--color-primary-dark-7: color-mix(in srgb, #1d1d1f 16%, black);
|
|
--color-primary-light-1: color-mix(in srgb, #1d1d1f 80%, white);
|
|
--color-primary-light-2: color-mix(in srgb, #1d1d1f 64%, white);
|
|
--color-primary-light-3: color-mix(in srgb, #1d1d1f 48%, white);
|
|
--color-primary-light-4: color-mix(in srgb, #1d1d1f 34%, white);
|
|
--color-primary-light-5: color-mix(in srgb, #1d1d1f 22%, white);
|
|
--color-primary-light-6: color-mix(in srgb, #1d1d1f 12%, white);
|
|
--color-primary-light-7: color-mix(in srgb, #1d1d1f 6%, white);
|
|
--color-primary-alpha-10: color-mix(in srgb, #1d1d1f 10%, transparent);
|
|
--color-primary-alpha-20: color-mix(in srgb, #1d1d1f 20%, transparent);
|
|
--color-primary-alpha-30: color-mix(in srgb, #1d1d1f 30%, transparent);
|
|
--color-primary-alpha-40: color-mix(in srgb, #1d1d1f 40%, transparent);
|
|
--color-primary-alpha-50: color-mix(in srgb, #1d1d1f 50%, transparent);
|
|
--color-primary-alpha-60: color-mix(in srgb, #1d1d1f 60%, transparent);
|
|
--color-primary-alpha-70: color-mix(in srgb, #1d1d1f 70%, transparent);
|
|
--color-primary-alpha-80: color-mix(in srgb, #1d1d1f 80%, transparent);
|
|
--color-primary-alpha-90: color-mix(in srgb, #1d1d1f 90%, transparent);
|
|
--color-secondary: #d2d2d7;
|
|
--color-secondary-dark-1: color-mix(in srgb, #d2d2d7 94%, #1d1d1f);
|
|
--color-secondary-dark-2: color-mix(in srgb, #d2d2d7 86%, #1d1d1f);
|
|
--color-secondary-dark-3: color-mix(in srgb, #d2d2d7 74%, #1d1d1f);
|
|
--color-secondary-dark-4: color-mix(in srgb, #d2d2d7 62%, #1d1d1f);
|
|
--color-secondary-dark-5: color-mix(in srgb, #d2d2d7 54%, #1d1d1f);
|
|
--color-secondary-dark-6: color-mix(in srgb, #d2d2d7 46%, #1d1d1f);
|
|
--color-secondary-dark-7: color-mix(in srgb, #d2d2d7 38%, #1d1d1f);
|
|
--color-secondary-dark-8: color-mix(in srgb, #d2d2d7 30%, #1d1d1f);
|
|
--color-secondary-dark-9: color-mix(in srgb, #d2d2d7 22%, #1d1d1f);
|
|
--color-secondary-dark-10: color-mix(in srgb, #d2d2d7 16%, #1d1d1f);
|
|
--color-secondary-dark-11: color-mix(in srgb, #d2d2d7 10%, #1d1d1f);
|
|
--color-secondary-dark-12: color-mix(in srgb, #d2d2d7 5%, #1d1d1f);
|
|
--color-secondary-dark-13: color-mix(in srgb, #d2d2d7 0%, #1d1d1f);
|
|
--color-secondary-light-1: color-mix(in srgb, #d2d2d7 70%, #ffffff);
|
|
--color-secondary-light-2: color-mix(in srgb, #d2d2d7 50%, #ffffff);
|
|
--color-secondary-light-3: color-mix(in srgb, #d2d2d7 32%, #ffffff);
|
|
--color-secondary-light-4: color-mix(in srgb, #d2d2d7 16%, #ffffff);
|
|
--color-secondary-alpha-10: color-mix(in srgb, #d2d2d7 10%, transparent);
|
|
--color-secondary-alpha-20: color-mix(in srgb, #d2d2d7 20%, transparent);
|
|
--color-secondary-alpha-30: color-mix(in srgb, #d2d2d7 30%, transparent);
|
|
--color-secondary-alpha-40: color-mix(in srgb, #d2d2d7 40%, transparent);
|
|
--color-secondary-alpha-50: color-mix(in srgb, #d2d2d7 50%, transparent);
|
|
--color-secondary-alpha-60: color-mix(in srgb, #d2d2d7 60%, transparent);
|
|
--color-secondary-alpha-70: color-mix(in srgb, #d2d2d7 70%, transparent);
|
|
--color-secondary-alpha-80: color-mix(in srgb, #d2d2d7 80%, transparent);
|
|
--color-secondary-alpha-90: color-mix(in srgb, #d2d2d7 90%, transparent);
|
|
--color-body: #fbfbfd;
|
|
--color-box-header: #f5f5f7;
|
|
--color-box-body: #ffffff;
|
|
--color-box-body-highlight: #f5f5f7;
|
|
--color-text-dark: #000000;
|
|
--color-text: #1d1d1f;
|
|
--color-text-light: #424245;
|
|
--color-text-light-1: #515154;
|
|
--color-text-light-2: #6e6e73;
|
|
--color-text-light-3: #86868b;
|
|
--color-footer: transparent;
|
|
--color-timeline: #d2d2d7;
|
|
--color-input-text: #1d1d1f;
|
|
--color-input-background: #ffffff;
|
|
--color-input-toggle-background: #d2d2d7;
|
|
--color-input-border: #d2d2d7;
|
|
--color-input-border-hover: #a1a1a6;
|
|
--color-light: rgba(0,0,0,.03);
|
|
--color-light-border: rgba(0,0,0,.08);
|
|
--color-hover: rgba(0,0,0,.04);
|
|
--color-hover-opaque: #f5f5f7;
|
|
--color-active: rgba(0,0,0,.07);
|
|
--color-menu: rgba(255,255,255,.78);
|
|
--color-card: #ffffff;
|
|
--color-markup-table-row: rgba(0,0,0,.025);
|
|
--color-markup-code-block: rgba(0,0,0,.04);
|
|
--color-markup-code-inline: rgba(0,0,0,.06);
|
|
--color-button: #ffffff;
|
|
--color-code-bg: #fbfbfd;
|
|
--color-shadow: rgba(0,0,0,.10);
|
|
--color-shadow-opaque: #d2d2d7;
|
|
--color-secondary-bg: #f5f5f7;
|
|
--color-expand-button: #e8e8ed;
|
|
--color-placeholder-text: #86868b;
|
|
--color-editor-line-highlight: rgba(0,0,0,.04);
|
|
--color-caret: #1d1d1f;
|
|
--color-reaction-bg: rgba(0,0,0,.04);
|
|
--color-reaction-hover-bg: rgba(0,0,0,.08);
|
|
--color-reaction-active-bg: rgba(0,0,0,.12);
|
|
--color-tooltip-text: #ffffff;
|
|
--color-tooltip-bg: rgba(29,29,31,.92);
|
|
--color-nav-bg: rgba(251,251,253,.72);
|
|
--color-nav-hover-bg: rgba(0,0,0,.05);
|
|
--color-nav-text: #1d1d1f;
|
|
--color-secondary-nav-bg: #fbfbfd;
|
|
--color-label-text: #1d1d1f;
|
|
--color-label-bg: rgba(0,0,0,.06);
|
|
--color-label-hover-bg: rgba(0,0,0,.10);
|
|
--color-label-active-bg: rgba(0,0,0,.16);
|
|
--color-accent: #1d1d1f;
|
|
--color-small-accent: rgba(0,0,0,.06);
|
|
--color-overlay-backdrop: rgba(0,0,0,.28);
|
|
--color-blue: #1d1d1f;
|
|
--color-link: #1d1d1f;
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
color-scheme: dark;
|
|
--color-primary: #f5f5f7;
|
|
--color-primary-contrast: #000000;
|
|
--color-primary-hover: color-mix(in srgb, #f5f5f7 86%, #000000);
|
|
--color-primary-active: color-mix(in srgb, #f5f5f7 76%, #000000);
|
|
--color-primary-dark-1: color-mix(in srgb, #f5f5f7 88%, white);
|
|
--color-primary-dark-2: color-mix(in srgb, #f5f5f7 76%, white);
|
|
--color-primary-dark-3: color-mix(in srgb, #f5f5f7 64%, white);
|
|
--color-primary-dark-4: color-mix(in srgb, #f5f5f7 52%, white);
|
|
--color-primary-dark-5: color-mix(in srgb, #f5f5f7 40%, white);
|
|
--color-primary-dark-6: color-mix(in srgb, #f5f5f7 28%, white);
|
|
--color-primary-dark-7: color-mix(in srgb, #f5f5f7 16%, white);
|
|
--color-primary-light-1: color-mix(in srgb, #f5f5f7 80%, black);
|
|
--color-primary-light-2: color-mix(in srgb, #f5f5f7 64%, black);
|
|
--color-primary-light-3: color-mix(in srgb, #f5f5f7 48%, black);
|
|
--color-primary-light-4: color-mix(in srgb, #f5f5f7 34%, black);
|
|
--color-primary-light-5: color-mix(in srgb, #f5f5f7 22%, black);
|
|
--color-primary-light-6: color-mix(in srgb, #f5f5f7 12%, black);
|
|
--color-primary-light-7: color-mix(in srgb, #f5f5f7 6%, black);
|
|
--color-primary-alpha-10: color-mix(in srgb, #f5f5f7 10%, transparent);
|
|
--color-primary-alpha-20: color-mix(in srgb, #f5f5f7 20%, transparent);
|
|
--color-primary-alpha-30: color-mix(in srgb, #f5f5f7 30%, transparent);
|
|
--color-primary-alpha-40: color-mix(in srgb, #f5f5f7 40%, transparent);
|
|
--color-primary-alpha-50: color-mix(in srgb, #f5f5f7 50%, transparent);
|
|
--color-primary-alpha-60: color-mix(in srgb, #f5f5f7 60%, transparent);
|
|
--color-primary-alpha-70: color-mix(in srgb, #f5f5f7 70%, transparent);
|
|
--color-primary-alpha-80: color-mix(in srgb, #f5f5f7 80%, transparent);
|
|
--color-primary-alpha-90: color-mix(in srgb, #f5f5f7 90%, transparent);
|
|
--color-secondary: #38383a;
|
|
--color-secondary-dark-1: color-mix(in srgb, #38383a 94%, #f5f5f7);
|
|
--color-secondary-dark-2: color-mix(in srgb, #38383a 86%, #f5f5f7);
|
|
--color-secondary-dark-3: color-mix(in srgb, #38383a 74%, #f5f5f7);
|
|
--color-secondary-dark-4: color-mix(in srgb, #38383a 62%, #f5f5f7);
|
|
--color-secondary-dark-5: color-mix(in srgb, #38383a 54%, #f5f5f7);
|
|
--color-secondary-dark-6: color-mix(in srgb, #38383a 46%, #f5f5f7);
|
|
--color-secondary-dark-7: color-mix(in srgb, #38383a 38%, #f5f5f7);
|
|
--color-secondary-dark-8: color-mix(in srgb, #38383a 30%, #f5f5f7);
|
|
--color-secondary-dark-9: color-mix(in srgb, #38383a 22%, #f5f5f7);
|
|
--color-secondary-dark-10: color-mix(in srgb, #38383a 16%, #f5f5f7);
|
|
--color-secondary-dark-11: color-mix(in srgb, #38383a 10%, #f5f5f7);
|
|
--color-secondary-dark-12: color-mix(in srgb, #38383a 5%, #f5f5f7);
|
|
--color-secondary-dark-13: color-mix(in srgb, #38383a 0%, #f5f5f7);
|
|
--color-secondary-light-1: color-mix(in srgb, #38383a 70%, #000000);
|
|
--color-secondary-light-2: color-mix(in srgb, #38383a 50%, #000000);
|
|
--color-secondary-light-3: color-mix(in srgb, #38383a 32%, #000000);
|
|
--color-secondary-light-4: color-mix(in srgb, #38383a 16%, #000000);
|
|
--color-secondary-alpha-10: color-mix(in srgb, #38383a 10%, transparent);
|
|
--color-secondary-alpha-20: color-mix(in srgb, #38383a 20%, transparent);
|
|
--color-secondary-alpha-30: color-mix(in srgb, #38383a 30%, transparent);
|
|
--color-secondary-alpha-40: color-mix(in srgb, #38383a 40%, transparent);
|
|
--color-secondary-alpha-50: color-mix(in srgb, #38383a 50%, transparent);
|
|
--color-secondary-alpha-60: color-mix(in srgb, #38383a 60%, transparent);
|
|
--color-secondary-alpha-70: color-mix(in srgb, #38383a 70%, transparent);
|
|
--color-secondary-alpha-80: color-mix(in srgb, #38383a 80%, transparent);
|
|
--color-secondary-alpha-90: color-mix(in srgb, #38383a 90%, transparent);
|
|
--color-body: #000000;
|
|
--color-box-header: #1c1c1e;
|
|
--color-box-body: #0d0d0e;
|
|
--color-box-body-highlight: #1c1c1e;
|
|
--color-text-dark: #ffffff;
|
|
--color-text: #f5f5f7;
|
|
--color-text-light: #d1d1d6;
|
|
--color-text-light-1: #c7c7cc;
|
|
--color-text-light-2: #a1a1a6;
|
|
--color-text-light-3: #8e8e93;
|
|
--color-footer: transparent;
|
|
--color-timeline: #38383a;
|
|
--color-input-text: #f5f5f7;
|
|
--color-input-background: #1c1c1e;
|
|
--color-input-toggle-background: #3a3a3c;
|
|
--color-input-border: #38383a;
|
|
--color-input-border-hover: #636366;
|
|
--color-light: rgba(255,255,255,.04);
|
|
--color-light-border: rgba(255,255,255,.10);
|
|
--color-hover: rgba(255,255,255,.06);
|
|
--color-hover-opaque: #1c1c1e;
|
|
--color-active: rgba(255,255,255,.10);
|
|
--color-menu: rgba(28,28,30,.78);
|
|
--color-card: #0d0d0e;
|
|
--color-markup-table-row: rgba(255,255,255,.03);
|
|
--color-markup-code-block: rgba(255,255,255,.05);
|
|
--color-markup-code-inline: rgba(255,255,255,.08);
|
|
--color-button: #1c1c1e;
|
|
--color-code-bg: #0d0d0e;
|
|
--color-shadow: rgba(0,0,0,.5);
|
|
--color-shadow-opaque: #000000;
|
|
--color-secondary-bg: #1c1c1e;
|
|
--color-expand-button: #2c2c2e;
|
|
--color-placeholder-text: #8e8e93;
|
|
--color-editor-line-highlight: rgba(255,255,255,.05);
|
|
--color-caret: #f5f5f7;
|
|
--color-reaction-bg: rgba(255,255,255,.06);
|
|
--color-reaction-hover-bg: rgba(255,255,255,.10);
|
|
--color-reaction-active-bg: rgba(255,255,255,.14);
|
|
--color-tooltip-text: #000000;
|
|
--color-tooltip-bg: rgba(245,245,247,.92);
|
|
--color-nav-bg: rgba(0,0,0,.66);
|
|
--color-nav-hover-bg: rgba(255,255,255,.08);
|
|
--color-nav-text: #f5f5f7;
|
|
--color-secondary-nav-bg: #000000;
|
|
--color-label-text: #f5f5f7;
|
|
--color-label-bg: rgba(255,255,255,.10);
|
|
--color-label-hover-bg: rgba(255,255,255,.14);
|
|
--color-label-active-bg: rgba(255,255,255,.20);
|
|
--color-accent: #f5f5f7;
|
|
--color-small-accent: rgba(255,255,255,.08);
|
|
--color-overlay-backdrop: rgba(0,0,0,.5);
|
|
--color-blue: #f5f5f7;
|
|
--color-link: #f5f5f7;
|
|
}
|
|
}
|
|
|
|
/* ---- shape + type: Apple system font, softer radii ---- */
|
|
:root {
|
|
--fonts-override: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
|
|
--border-radius: 10px;
|
|
--border-radius-medium: 12px;
|
|
--border-radius-full: 999px;
|
|
--rithub-glass-blur: saturate(180%) blur(20px);
|
|
}
|
|
body, button, input, select, textarea, .ui.button, .markup {
|
|
font-family: var(--fonts-override), var(--fonts-regular, sans-serif);
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
body, .ui.card, .ui.segment, .ui.button, .page-content { background-image: none !important; }
|
|
|
|
/* links: ink, never blue; underline only on hover */
|
|
a, .ui.breadcrumb a, .markup a { color: var(--color-text); }
|
|
a:hover, .markup a:hover { color: var(--color-text-dark); text-decoration: underline; text-underline-offset: 2px; }
|
|
.flex-item-title a, .repo-title a, .repository.list .item .header a { font-weight: 600; }
|
|
|
|
/* ---- glass navigation layer (HIG: Liquid Glass only for nav/controls) ---- */
|
|
#navbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
background: var(--color-nav-bg) !important;
|
|
-webkit-backdrop-filter: var(--rithub-glass-blur);
|
|
backdrop-filter: var(--rithub-glass-blur);
|
|
border-bottom: 1px solid var(--color-light-border) !important;
|
|
}
|
|
#navbar .item { color: var(--color-nav-text); border-radius: 8px; }
|
|
#navbar .item:hover, #navbar .item.active { background: var(--color-nav-hover-bg); }
|
|
|
|
.ui.dropdown .menu, .ui.menu .dropdown.item .menu, .tippy-box, .ui.popup, .menu.user-menu {
|
|
background: var(--color-menu) !important;
|
|
-webkit-backdrop-filter: var(--rithub-glass-blur);
|
|
backdrop-filter: var(--rithub-glass-blur);
|
|
border: 1px solid var(--color-light-border) !important;
|
|
border-radius: 12px !important;
|
|
box-shadow: 0 8px 32px var(--color-shadow) !important;
|
|
}
|
|
.tippy-box[data-theme="tooltip"] { background: var(--color-tooltip-bg) !important; color: var(--color-tooltip-text); }
|
|
.ui.modal {
|
|
background: var(--color-menu) !important;
|
|
-webkit-backdrop-filter: var(--rithub-glass-blur);
|
|
backdrop-filter: var(--rithub-glass-blur);
|
|
border-radius: 16px !important;
|
|
border: 1px solid var(--color-light-border);
|
|
}
|
|
.ui.modal > .header, .ui.modal > .content, .ui.modal > .actions { background: transparent !important; }
|
|
.ui.dimmer { background: var(--color-overlay-backdrop) !important; }
|
|
|
|
/* ---- content layer: plain surfaces, hairlines, no shadows ---- */
|
|
.ui.card, .ui.cards > .card, .ui.segment, .ui.attached.segment, .ui.attached.header, .repository.list .item {
|
|
box-shadow: none !important;
|
|
}
|
|
.ui.segment, .ui.attached.segment, .ui.attached.header { border-color: var(--color-light-border) !important; }
|
|
.ui.attached.header, .ui.top.attached.header { background: var(--color-box-header) !important; color: var(--color-text); font-weight: 600; }
|
|
.ui.attached.segment, .ui.segment { background: var(--color-box-body) !important; color: var(--color-text); }
|
|
|
|
/* ---- buttons: ink capsule primary, quiet secondary ---- */
|
|
.ui.button { border-radius: 999px !important; font-weight: 500; }
|
|
.ui.primary.button, .ui.primary.buttons .button, .ui.green.button, .ui.blue.button {
|
|
background: var(--color-primary) !important;
|
|
color: var(--color-primary-contrast) !important;
|
|
border-color: var(--color-primary) !important;
|
|
}
|
|
.ui.primary.button:hover, .ui.green.button:hover, .ui.blue.button:hover { background: var(--color-primary-hover) !important; }
|
|
.ui.basic.button, .ui.basic.buttons .button, .ui.button:not(.primary):not(.red):not(.green):not(.blue):not(.basic) {
|
|
background: var(--color-button) !important;
|
|
color: var(--color-text) !important;
|
|
border: 1px solid var(--color-light-border) !important;
|
|
}
|
|
.ui.basic.button:hover { background: var(--color-hover) !important; }
|
|
.ui.labeled.button > .label, .ui.label { border-radius: 999px; }
|
|
|
|
/* ---- inputs: always readable in both schemes ---- */
|
|
input, textarea, select, .ui.input > input, .ui.form input:not([type]), .ui.form input[type="text"],
|
|
.ui.form input[type="email"], .ui.form input[type="password"], .ui.form input[type="search"], .ui.form textarea,
|
|
.ui.selection.dropdown {
|
|
background: var(--color-input-background) !important;
|
|
color: var(--color-input-text) !important;
|
|
border: 1px solid var(--color-input-border) !important;
|
|
border-radius: 10px !important;
|
|
}
|
|
input:focus, textarea:focus, .ui.form input:focus, .ui.form textarea:focus, .ui.input > input:focus {
|
|
border-color: var(--color-text-light-2) !important;
|
|
box-shadow: 0 0 0 3px var(--color-primary-alpha-10) !important;
|
|
outline: none;
|
|
}
|
|
.ui.form .field > label, .ui.form .inline.field > label, .ui.checkbox label, label { color: var(--color-text) !important; }
|
|
.ui.action.input > .button, .ui.action.input > .buttons > .button { border-radius: 0 10px 10px 0 !important; }
|
|
.ui.action.input > input { border-radius: 10px 0 0 10px !important; }
|
|
::placeholder { color: var(--color-placeholder-text) !important; }
|
|
|
|
/* ---- tabs / secondary nav: ink underline, no blue ---- */
|
|
.ui.secondary.pointing.menu .active.item, .ui.secondary.pointing.menu .item.active {
|
|
border-color: var(--color-text) !important; color: var(--color-text) !important; font-weight: 600;
|
|
}
|
|
.secondary-nav { background: var(--color-secondary-nav-bg) !important; border-bottom: 1px solid var(--color-light-border); }
|
|
|
|
/* ---- sign-in / sign-up: one centred card, Apple ID-style ---- */
|
|
.page-content.user.signin, .page-content.user.signup, .page-content.user.link-account, .page-content.user.forgot.password {
|
|
padding-top: 48px;
|
|
}
|
|
.user.signin .ui.container, .user.signup .ui.container { max-width: 440px !important; }
|
|
/* 2026-11-18 (rithub-signup-page-friction fix): one-line value prop
|
|
directly under the Register header -- see signup_inner.tmpl comment. */
|
|
.rithub-signup-note {
|
|
text-align: center; font-size: 14px; line-height: 1.4;
|
|
color: var(--color-text-light-2); margin: 0 0 16px; padding: 0 8px;
|
|
}
|
|
.user.signin .ui.attached.header, .user.signup .ui.attached.header {
|
|
background: transparent !important; border: 0 !important; font-size: 28px; font-weight: 600;
|
|
letter-spacing: -0.01em; text-align: center; padding-bottom: 8px;
|
|
}
|
|
.user.signin .ui.attached.segment, .user.signup .ui.attached.segment {
|
|
border: 1px solid var(--color-light-border) !important; border-radius: 16px !important;
|
|
padding: 24px !important;
|
|
}
|
|
.user.signin .ui.form .field > label, .user.signup .ui.form .field > label {
|
|
font-size: 13px; font-weight: 500; color: var(--color-text-light-2) !important;
|
|
}
|
|
.user.signin .ui.form .ui.primary.button, .user.signup .ui.form .ui.primary.button { width: 100%; height: 44px; font-size: 15px; }
|
|
.user.signin .ui.segment.tw-text-center, .user.signup .ui.segment.tw-text-center,
|
|
.user.signin .ui.container > .ui.segment:last-child { border-radius: 16px !important; }
|
|
/* third-party sign-in (GitHub / Google / Apple) as full-width outline capsules */
|
|
#oauth2-login-navigator, .oauth2-login-navigator { margin-top: 16px; }
|
|
#oauth2-login-navigator-inner, .oauth2-login-navigator-inner { display: flex; flex-direction: column; gap: 10px; }
|
|
.oauth-login-link, a.oauth-login-image, #oauth2-login-navigator a.ui.button {
|
|
display: flex !important; align-items: center; justify-content: center; gap: 10px;
|
|
width: 100%; height: 44px; border-radius: 999px !important;
|
|
background: var(--color-button) !important; color: var(--color-text) !important;
|
|
border: 1px solid var(--color-input-border) !important; font-weight: 500;
|
|
}
|
|
.oauth-login-link:hover, #oauth2-login-navigator a.ui.button:hover { background: var(--color-hover) !important; text-decoration: none; }
|
|
.oauth-login-link img, .oauth-login-link svg { width: 20px; height: 20px; filter: grayscale(1); }
|
|
@media (prefers-color-scheme: dark) { .oauth-login-link img { filter: grayscale(1) invert(1); } }
|
|
|
|
/* ---- explore + repo lists: airy rows, quiet meta ---- */
|
|
.flex-list > .flex-item { padding: 18px 4px; border-color: var(--color-light-border) !important; }
|
|
.flex-item-title { font-size: 16px; }
|
|
.flex-item-body, .flex-item-trailing { color: var(--color-text-light-2) !important; }
|
|
.flex-item .flex-text-inline.text.grey, .flex-item .text.grey { color: var(--color-text-light-2) !important; }
|
|
.ui.label, .repo-topic { background: var(--color-label-bg) !important; color: var(--color-label-text) !important; border: 0 !important; font-weight: 500; }
|
|
.ui.search.action.input > input, .explore .ui.input > input { height: 40px; }
|
|
.explore .ui.secondary.menu .item { border-radius: 8px; }
|
|
|
|
/* ---- 2026-11-19: Explore "Featured" section (UI round 2) ----
|
|
rithub-beat-github-2026-11-18.md finding #3: lead Explore with real
|
|
curated repos instead of the raw bulk-imported list. Cards generated
|
|
by apps/gitea/scripts/explore-featured-refresh.sh into
|
|
templates/explore/featured.tmpl -- icon-only, neutral + one accent,
|
|
no emoji/gradients, per plans/gtm/APPLE-DESIGN-RULES-2026-11-17.md. */
|
|
.rithub-explore-featured { padding: 20px 4px 4px; }
|
|
.rithub-explore-featured-label {
|
|
font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
|
|
color: var(--color-text-light-3); margin-bottom: 12px;
|
|
}
|
|
.rithub-explore-featured-grid {
|
|
display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
|
|
}
|
|
.rithub-featured-card {
|
|
display: block; padding: 14px 16px; border: 1px solid var(--color-light-border);
|
|
border-radius: 12px; background: var(--color-box-body); min-width: 0;
|
|
}
|
|
.rithub-featured-card:hover { border-color: var(--color-primary); text-decoration: none; }
|
|
.rithub-featured-card-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
|
|
.rithub-featured-card-head svg { flex-shrink: 0; color: var(--color-text-light-2); }
|
|
.rithub-featured-card-name {
|
|
font-size: 14px; font-weight: 600; color: var(--color-text);
|
|
overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
|
|
}
|
|
.rithub-featured-card-desc {
|
|
margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--color-text-light-2);
|
|
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
|
|
}
|
|
@media (max-width: 600px) {
|
|
.rithub-explore-featured-grid { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
/* ---- homepage hero ---- */
|
|
.rithub-home { max-width: 1080px; margin: 0 auto; padding: 96px 24px 64px; text-align: center; }
|
|
.rithub-hero-title {
|
|
font-size: 56px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.07;
|
|
color: var(--color-text-dark) !important; margin: 0 0 16px;
|
|
}
|
|
.rithub-hero-sub { font-size: 21px; line-height: 1.38; color: var(--color-text-light-2); margin: 0 0 40px; }
|
|
.rithub-hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; }
|
|
/* ---- 2026-11-18: visible-text hero CTAs (PH-launch funnel fix) ----
|
|
Same "explicit exception to icon-only" pattern already shipped for the
|
|
nav Sign up/Sign in controls in 765a46c6 — see home.tmpl's comment for
|
|
why. Icon + real label, pill shape, one accent color, no gradients. */
|
|
.rithub-cta-btn {
|
|
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
|
|
height: 52px; padding: 0 26px; border-radius: 999px;
|
|
font-size: 17px; font-weight: 500; white-space: nowrap;
|
|
background: var(--color-button); color: var(--color-text);
|
|
border: 1px solid var(--color-light-border);
|
|
transition: background-color .2s ease-out, transform .2s ease-out;
|
|
}
|
|
.rithub-cta-btn:hover { background: var(--color-hover); transform: translateY(-1px); text-decoration: none; }
|
|
.rithub-cta-btn-primary { background: var(--color-primary); color: var(--color-primary-contrast); border-color: var(--color-primary); }
|
|
.rithub-cta-btn-primary:hover { background: var(--color-primary-hover); }
|
|
/* ---- 2026-11-19: tertiary "works with agents" link (UI round 2) ----
|
|
One small text link under the two primary CTAs, pointing at
|
|
/mcp-docs. Deliberately not a third pill button -- the two-CTA hero
|
|
stays the primary conversion surface; this is a lower-weight line for
|
|
the agent/dev audience, same hierarchy pattern as a footer link. */
|
|
.rithub-hero-agent-link {
|
|
display: inline-flex; align-items: center; gap: 6px;
|
|
margin-bottom: 56px;
|
|
font-size: 14px; color: var(--color-text-light-2);
|
|
}
|
|
.rithub-hero-agent-link:hover { color: var(--color-text); text-decoration: underline; }
|
|
@media (max-width: 600px) {
|
|
.rithub-hero-agent-link { margin-bottom: 28px; }
|
|
}
|
|
/* ---- 2026-11-19: Product Hunt social proof badge ----
|
|
Small and calm, under the hero. Official PH embed-image badge, real
|
|
post (launch id 1320215, live 2026-11-18), no invented numbers. */
|
|
.rithub-ph-badge { display: inline-block; margin-bottom: 56px; opacity: .85; transition: opacity .2s ease-out; }
|
|
.rithub-ph-badge:hover { opacity: 1; }
|
|
.rithub-ph-badge img { display: block; width: 180px; height: 39px; }
|
|
@media (max-width: 600px) {
|
|
.rithub-ph-badge { margin-bottom: 28px; }
|
|
}
|
|
.rithub-shot-frame {
|
|
border-radius: 20px; overflow: hidden; border: 1px solid var(--color-light-border);
|
|
box-shadow: 0 24px 64px var(--color-shadow);
|
|
}
|
|
.rithub-shot { display: block; width: 100%; height: auto; }
|
|
.rithub-shot-dark { display: none; }
|
|
@media (prefers-color-scheme: dark) {
|
|
.rithub-shot-light { display: none; }
|
|
.rithub-shot-dark { display: block; }
|
|
}
|
|
@media (max-width: 600px) {
|
|
.rithub-home { padding: 40px 16px 32px; }
|
|
.rithub-hero-title { font-size: 30px; }
|
|
.rithub-hero-sub { font-size: 16px; margin-bottom: 28px; }
|
|
.rithub-hero-actions { flex-direction: column; gap: 10px; margin-bottom: 14px; }
|
|
.rithub-cta-btn { width: 100%; max-width: 320px; }
|
|
}
|
|
|
|
/* ---- footer ---- */
|
|
.page-footer { background: transparent !important; border-top: 1px solid var(--color-light-border); }
|
|
.rithub-footer-links {
|
|
text-align: center;
|
|
padding: 10px 16px;
|
|
font-size: 12px;
|
|
color: var(--color-text-light-2);
|
|
}
|
|
.rithub-footer-links a {
|
|
color: var(--color-text-light-2);
|
|
}
|
|
/* mobile footer cleanup (2026-11-17, wave5): the 12-link SEO list stays
|
|
as the desktop footer (unchanged); <=640px shows the short 5-link
|
|
version instead -- see templates/custom/footer.tmpl. */
|
|
.rithub-footer-links-short {
|
|
display: none;
|
|
}
|
|
@media (max-width: 640px) {
|
|
.rithub-footer-links-full {
|
|
display: none;
|
|
}
|
|
.rithub-footer-links-short {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
/* ---- icon-only chrome: visually hide label text still renders for
|
|
screen readers via each link's own aria-label/title (added in the
|
|
template overrides below), keeping one accessible name per control. ---- */
|
|
#navbar .item .nav-label,
|
|
.secondary-nav .item .nav-label {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
/* ---- 2026-11-18: visible "Sign up" / "Sign in" text, signed-out visitors
|
|
only (owner: icon-only Register/Sign In were invisible as an
|
|
account-creation CTA). Every other nav control above stays icon-only;
|
|
these two keep the icon but also show real text. ---- */
|
|
#navbar .item.rithub-navbar-signup,
|
|
#navbar .item.rithub-navbar-signin {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
width: auto;
|
|
padding: 0 14px !important;
|
|
}
|
|
#navbar .item.rithub-navbar-signup .rithub-navbar-cta-text,
|
|
#navbar .item.rithub-navbar-signin .rithub-navbar-cta-text {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
#navbar .item.rithub-navbar-signup {
|
|
background: var(--color-primary);
|
|
color: var(--color-primary-contrast) !important;
|
|
border-radius: 999px;
|
|
margin-left: 4px;
|
|
}
|
|
#navbar .item.rithub-navbar-signup svg { color: var(--color-primary-contrast) !important; }
|
|
#navbar .item.rithub-navbar-signup:hover { background: var(--color-primary-hover); }
|
|
#navbar .item.rithub-navbar-signin { color: var(--color-nav-text) !important; }
|
|
|
|
/* rithub-no-emoji (2026-11-17, products-8c, box-only edit synced back into
|
|
the repo 2026-11-17 by icon-mark-rev3): no emoji UI components --
|
|
reaction pickers and reaction chips hidden */
|
|
.select-reaction, .bottom-reactions, .comment-reaction-button, .reactions-picker, .emoji-picker { display: none !important; }
|
|
|
|
/* ---- repo tabs: Material Symbols Rounded, outline (inactive) + filled
|
|
(active), 2026-11-17. Both SVGs render in markup; this toggles which
|
|
one shows so the template doesn't need to branch on the active class
|
|
twice. Google-search-tab-bar pattern: outline inactive, filled +
|
|
accent active. Issues uses "error" (circle-exclamation), not
|
|
"bug_report" -- see icons/ATTRIBUTION.md, it used to read identically
|
|
to the Settings gear at 18-24px. ---- */
|
|
.secondary-nav .msym {
|
|
display: inline-block;
|
|
vertical-align: text-bottom;
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-right: 4px;
|
|
}
|
|
.secondary-nav .item .msym-filled { display: none; }
|
|
.secondary-nav .item .msym-outline { display: inline-block; }
|
|
.secondary-nav .item.active .msym-filled { display: inline-block; }
|
|
.secondary-nav .item.active .msym-outline { display: none; }
|
|
|
|
/* ---- new mobile bottom tab bar (<=640px): Home / Explore /
|
|
Notifications / Profile, icon-only, Google-app/Google-search tab-bar
|
|
style -- outline inactive, filled + accent active, 24px, no labels
|
|
(Apple design rules: icon-only controls on mobile). Hidden on
|
|
desktop; repo tabs above keep their text labels per spec. ---- */
|
|
.rithub-tabbar {
|
|
display: none;
|
|
}
|
|
@media (max-width: 640px) {
|
|
.rithub-tabbar {
|
|
display: flex;
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 900;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
height: 56px;
|
|
padding-bottom: env(safe-area-inset-bottom, 0);
|
|
background: var(--color-nav-bg);
|
|
-webkit-backdrop-filter: var(--rithub-glass-blur);
|
|
backdrop-filter: var(--rithub-glass-blur);
|
|
border-top: 1px solid var(--color-light-border);
|
|
}
|
|
/* keep the bottom bar from hiding page content underneath it.
|
|
2026-11-17 (wave5, 8c): `body`'s own padding-bottom here turned out
|
|
to be a no-op on any page taller than one screen -- confirmed live
|
|
via getBoundingClientRect + a forced reflow that body's box is
|
|
pinned to exactly 100dvh (a flex-column shell with
|
|
`height: 100vh`/border-box) and does not grow no matter what
|
|
padding is set on it; real page content lives in a flex child
|
|
(`.full.height`) that's allowed to overflow past that pinned box
|
|
via the flex-item default `min-height: auto`, so anything rendered
|
|
after it (our footer) sits in the *overflow* region where the
|
|
body's own padding box no longer has any effect at all. Verified
|
|
fix: push the padding onto the actual last-in-flow element
|
|
(.rithub-footer-links) instead, which is a normal block box not
|
|
subject to the same pinned-height forcing -- confirmed this adds a
|
|
real 56px gap (scrollHeight increases by exactly that much) on the
|
|
longest real page (a repo's file-list view, ~21000px tall). Kept
|
|
the no-op `body` rule too since it's harmless and still correct
|
|
for any future short-page case. */
|
|
body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0)); }
|
|
.rithub-footer-links {
|
|
padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
|
|
}
|
|
}
|
|
.rithub-tabbar a {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 8px;
|
|
}
|
|
.rithub-tabbar .msym {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
.rithub-tabbar a .msym-filled { display: none; }
|
|
.rithub-tabbar a .msym-outline { display: inline-block; }
|
|
.rithub-tabbar a.active .msym-filled { display: inline-block; }
|
|
.rithub-tabbar a.active .msym-outline { display: none; }
|
|
|
|
/* icon colours: outline = secondary label, filled = ink (no blue) */
|
|
.msym-outline { color: var(--color-text-light-2); }
|
|
.msym-filled { color: var(--color-text); }
|
|
.rithub-tabbar a { color: var(--color-text-light-2); }
|
|
|
|
/* sign-in footer box (passkey + register): small secondary text, not a header */
|
|
.user.signin .ui.attached.segment.header, .user.signup .ui.attached.segment.header {
|
|
font-size: 14px !important; font-weight: 400 !important; letter-spacing: 0;
|
|
padding: 16px 24px !important; gap: 6px; margin-top: 12px;
|
|
border: 1px solid var(--color-light-border) !important; border-radius: 16px !important;
|
|
background: var(--color-box-body) !important; color: var(--color-text-light-2) !important;
|
|
}
|
|
.user.signin .ui.attached.segment.header .field { margin: 0; }
|
|
.user.signin .ui.attached.segment.header a, .user.signup .ui.attached.segment.header a { font-weight: 600; color: var(--color-text) !important; cursor: pointer; }
|
|
|
|
/* ===== Mobile app-page fix (repo file browser), 2026-11-19 =====
|
|
rithub-beat-github-2026-11-18.md finding #1: stock Gitea already
|
|
collapses #repo-files-table to a 3-col grid under 767.98px, but at a
|
|
real 390px phone width each row is still icon+name+message+age crammed
|
|
onto one line -- cramped, not a GitHub-style collapsing card layout.
|
|
Live-verified before this change (gstack screenshot, 390x844 viewport):
|
|
no horizontal overflow, but unreadably dense rows.
|
|
Fix: stack each row into a 2-line card (name full-width on top, commit
|
|
message + age below in small grey text), GitHub-mobile style. Issue/PR
|
|
list pages were already reasonably responsive (Gitea's own .flex-item
|
|
layout, confirmed via screenshot) -- only the file browser and the
|
|
branch/clone button row needed this.
|
|
|
|
ROUND-2 FIX (2026-11-19, UI round 2): the block above forced
|
|
`.repo-file-item` from stock Gitea's `display: contents` to
|
|
`display: flex`, which pulled it OUT of `#repo-files-table`'s own
|
|
3-column CSS grid (`grid-template-columns: auto 1fr auto` at this
|
|
breakpoint -- `.repo-file-item{display:contents}` is exactly what lets
|
|
each row's 3 cells line up as real columns across the table; the
|
|
stock layout isn't actually broken). Once `.repo-file-item` stopped
|
|
being `contents`, Chrome placed each *item* itself into column 1 of
|
|
that 3-col grid at its own intrinsic content width (measured live:
|
|
669.5px, i.e. desktop-sized), which is what spilled every row's
|
|
commit-message text off the right edge of a 390px viewport with no
|
|
ellipsis (confirmed live: `.repo-file-cell.message`'s own box was
|
|
645.5px wide while `window.innerWidth` was 390 -- the ellipsis CSS on
|
|
that cell was correct all along, the cell's *box* was just never
|
|
constrained to the screen). Fix, part 1: also collapse
|
|
`#repo-files-table` itself to a single grid column at this breakpoint,
|
|
so each (now-flex) `.repo-file-item` fills the full row width instead
|
|
of being auto-placed into a desktop-width column track. Fix, part 2
|
|
(the part that actually closes the gap): a `1fr` grid track still
|
|
won't shrink below its item's *min-content* size by default
|
|
(`minmax(auto, 1fr)` is the implicit sizing CSS Grid uses), and a
|
|
`white-space: nowrap` text node's min-content width is its full
|
|
unwrapped length -- so the single `1fr` column was still blowing out
|
|
to fit the longest commit message verbatim (confirmed live via
|
|
`inspect`: computed `grid-template-columns` was a single value,
|
|
911.625px, matching one specific row's un-wrapped commit-message
|
|
length, not `374px`/the real container width). `min-width: 0` on both
|
|
the grid item and the flex cells inside it is the standard fix -- lets
|
|
the box actually shrink to the column/flex-container's real width so
|
|
the existing `overflow:hidden;text-overflow:ellipsis` on `.message`
|
|
can finally do its job. */
|
|
@media (max-width: 768px) {
|
|
#repo-files-table {
|
|
grid-template-columns: 1fr !important;
|
|
}
|
|
#repo-files-table .repo-file-item {
|
|
display: flex !important;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 2px;
|
|
padding: 10px 12px !important;
|
|
border-top: 1px solid var(--color-secondary);
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
}
|
|
#repo-files-table .repo-file-item:first-child { border-top: none; }
|
|
#repo-files-table .repo-file-cell {
|
|
border-top: none !important;
|
|
padding: 0 !important;
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
#repo-files-table .repo-file-cell.name {
|
|
max-width: 100% !important;
|
|
white-space: normal;
|
|
overflow-wrap: anywhere;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
}
|
|
#repo-files-table .repo-file-cell.message {
|
|
display: block !important;
|
|
max-width: 100% !important;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-size: 13px;
|
|
color: var(--color-text-light-2);
|
|
}
|
|
#repo-files-table .repo-file-cell.age {
|
|
font-size: 12px;
|
|
color: var(--color-text-light-3);
|
|
}
|
|
#repo-files-table .repo-file-line {
|
|
grid-column: 1 / -1;
|
|
min-width: 0;
|
|
padding: 10px 12px;
|
|
flex-wrap: wrap;
|
|
row-gap: 4px;
|
|
}
|
|
#repo-files-table .repo-file-line .latest-commit {
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* Branch dropdown / find-file / clone-panel row: let children wrap
|
|
instead of overflowing past the 390px edge. */
|
|
.repo-button-row-left, .repo-button-row-right {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|
|
|
|
/* ===== Issues/PR empty state, 2026-11-19 =====
|
|
rithub-beat-github-2026-11-18.md finding #2: an empty issue/PR list
|
|
rendered as a blank white area under the filter bar -- no icon, no
|
|
copy, no CTA -- inconsistent with Actions' own "no runs yet" empty
|
|
state. Markup added in custom/templates/shared/issuelist.tmpl
|
|
(override of the upstream shared partial); styled here. Icon-only,
|
|
neutral + one accent (ink), no emoji, no gradients, per
|
|
plans/gtm/APPLE-DESIGN-RULES-2026-11-17.md. */
|
|
.rithub-empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
gap: 12px;
|
|
padding: 56px 16px;
|
|
color: var(--color-text-light-2);
|
|
}
|
|
.rithub-empty-state .rithub-empty-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 999px;
|
|
background: var(--color-secondary-alpha-20, var(--color-secondary));
|
|
color: var(--color-text-light-2);
|
|
}
|
|
.rithub-empty-state .rithub-empty-icon svg { width: 22px; height: 22px; }
|
|
.rithub-empty-state .rithub-empty-text {
|
|
margin: 0;
|
|
font-size: 15px;
|
|
color: var(--color-text-light-1);
|
|
}
|
|
.rithub-empty-state .rithub-empty-cta { margin-top: 4px; }
|
|
|
|
/* ---- 2026-11-19: "Bring your code" one-screen onboarding ----
|
|
Replaces the (otherwise blank) dashboard/profile for a signed-in user
|
|
with 0 repos — templates/shared/bring_your_code.tmpl. Same icon-led,
|
|
neutral + one accent, no-gradient language as the homepage hero
|
|
(.rithub-cta-btn, reused here) and the Explore .rithub-empty-state
|
|
block above. plans/railyard.md, 2026-11-19. */
|
|
.rithub-bring-code {
|
|
max-width: 560px; margin: 48px auto; padding: 56px 24px 48px; text-align: center;
|
|
}
|
|
.rithub-bring-code-icon {
|
|
display: flex; align-items: center; justify-content: center;
|
|
width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 999px;
|
|
background: var(--color-secondary-alpha-20, var(--color-secondary));
|
|
color: var(--color-text-light-2);
|
|
}
|
|
.rithub-bring-code-title { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--color-text-dark); margin: 0 0 10px; }
|
|
.rithub-bring-code-sub { font-size: 15px; color: var(--color-text-light-2); margin: 0 0 32px; }
|
|
.rithub-bring-code-primary { margin-bottom: 28px; }
|
|
.rithub-bring-code-primary .rithub-cta-btn { width: 100%; max-width: 360px; }
|
|
.rithub-bring-code-url-form { margin: 0 0 28px; }
|
|
.rithub-bring-code-url-label { display: block; font-size: 13px; color: var(--color-text-light-2); margin-bottom: 8px; }
|
|
.rithub-bring-code-url-row {
|
|
display: flex; align-items: center; gap: 8px;
|
|
background: var(--color-input-background); border: 1px solid var(--color-light-border);
|
|
border-radius: 10px; padding: 0 12px; height: 48px;
|
|
}
|
|
.rithub-bring-code-url-row svg { flex-shrink: 0; color: var(--color-text-light-2); }
|
|
.rithub-bring-code-url-row input {
|
|
flex: 1; min-width: 0; border: none; background: transparent; height: 100%;
|
|
font-size: 15px; color: var(--color-text); outline: none;
|
|
}
|
|
.rithub-bring-code-url-row .rithub-cta-btn { height: 36px; padding: 0 18px; font-size: 14px; flex-shrink: 0; }
|
|
.rithub-bring-code-empty { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--color-text-light-2); }
|
|
.rithub-bring-code-empty:hover { color: var(--color-text); text-decoration: underline; }
|
|
@media (max-width: 480px) {
|
|
.rithub-bring-code { padding: 40px 16px 32px; }
|
|
.rithub-bring-code-title { font-size: 24px; }
|
|
.rithub-bring-code-url-row { flex-wrap: wrap; height: auto; padding: 10px 12px; }
|
|
.rithub-bring-code-url-row input { width: 100%; order: 2; margin-top: 6px; }
|
|
.rithub-bring-code-url-row .rithub-cta-btn { order: 3; width: 100%; margin-top: 8px; }
|
|
}
|
|
|
|
/* ---- 2026-11-19: "what moves, what doesn't" import preview ----
|
|
Real user feedback (PremAnjwani, Product Hunt forum): shown right
|
|
before the GitHub button on the "Bring your code" screen, see
|
|
bring_your_code.tmpl's comment for the fact source. Icon-only rows,
|
|
neutral text, no colour-coding (avoids implying "warning" with red/
|
|
green on a page whose whole point is "this is safe"). */
|
|
.rithub-import-preview {
|
|
text-align: left; margin: 0 0 28px; padding: 16px 18px;
|
|
background: var(--color-box-body); border: 1px solid var(--color-light-border);
|
|
border-radius: 12px;
|
|
}
|
|
.rithub-import-preview-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-light-2); margin-bottom: 10px; }
|
|
.rithub-import-preview-row { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 13px; line-height: 1.45; color: var(--color-text-light-1); }
|
|
.rithub-import-preview-row svg { flex-shrink: 0; margin-top: 2px; color: var(--color-text-light-2); }
|
|
.rithub-import-preview-row b { color: var(--color-text-dark); font-weight: 600; }
|
|
|
|
/* ---- 2026-11-19: dashboard share card ----
|
|
"SHARE EVERYWHERE + REASONS TO SHARE", plans/growth-loops-2026-11-19.md.
|
|
One-time card, see share_card.tmpl for the localStorage gate. Same
|
|
icon-led, neutral + one accent, no-gradient language as the rest of
|
|
this file. */
|
|
.rithub-share-card {
|
|
position: relative; max-width: 640px; margin: 20px auto 0; padding: 20px 44px 20px 20px;
|
|
display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
|
|
background: var(--color-box-body); border: 1px solid var(--color-light-border);
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.rithub-share-card[hidden] { display: none; }
|
|
.rithub-share-card-icon {
|
|
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
|
|
width: 36px; height: 36px; border-radius: 999px;
|
|
background: var(--color-secondary-alpha-20, var(--color-secondary)); color: var(--color-text-light-2);
|
|
}
|
|
.rithub-share-card-text { flex: 1 1 220px; min-width: 0; margin: 0; font-size: 14px; color: var(--color-text); }
|
|
.rithub-share-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
|
.rithub-share-btn {
|
|
display: flex; align-items: center; justify-content: center;
|
|
width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0;
|
|
color: var(--color-text-light-2); background: transparent; border: 1px solid var(--color-light-border);
|
|
cursor: pointer; transition: background .15s, color .15s;
|
|
}
|
|
.rithub-share-btn:hover { background: var(--color-hover); color: var(--color-text); }
|
|
.rithub-share-btn[data-copied] { color: var(--color-primary); border-color: var(--color-primary); }
|
|
.rithub-share-card-dismiss {
|
|
position: absolute; top: 10px; right: 10px; display: flex; align-items: center; justify-content: center;
|
|
width: 24px; height: 24px; border-radius: 999px; border: none; background: transparent; color: var(--color-text-light-2);
|
|
cursor: pointer;
|
|
}
|
|
.rithub-share-card-dismiss:hover { background: var(--color-hover); color: var(--color-text); }
|
|
@media (max-width: 560px) {
|
|
.rithub-share-card { margin: 16px 12px 0; }
|
|
.rithub-share-card-text { flex: 1 1 100%; }
|
|
}
|
|
|
|
/* ---- 2026-11-19: README badge popup (repo header) ----
|
|
Native <details>/<summary> disclosure, see repo/header.tmpl. Drop the
|
|
default marker/arrow so the summary reads as a plain icon button,
|
|
consistent with the other repo-buttons in this row. */
|
|
.rithub-badge-details { position: relative; display: inline-block; }
|
|
.rithub-badge-details > summary { list-style: none; cursor: pointer; }
|
|
.rithub-badge-details > summary::-webkit-details-marker { display: none; }
|
|
.rithub-badge-details > summary::marker { content: ""; }
|
|
.rithub-badge-popup {
|
|
position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; width: 260px;
|
|
padding: 14px; background: var(--color-body); border: 1px solid var(--color-light-border);
|
|
border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
|
|
}
|
|
.rithub-badge-popup img { display: block; margin-bottom: 10px; }
|
|
.rithub-badge-copy-row .js-rithub-badge-md { font-size: 11px; }
|