Skip to content

Share mode: centered page layout with paper styling#17

Open
cathrynlavery wants to merge 1 commit into
EveryInc:mainfrom
cathrynlavery:os/feature/share-formatting-background
Open

Share mode: centered page layout with paper styling#17
cathrynlavery wants to merge 1 commit into
EveryInc:mainfrom
cathrynlavery:os/feature/share-formatting-background

Conversation

@cathrynlavery

@cathrynlavery cathrynlavery commented Mar 12, 2026

Copy link
Copy Markdown

Summary

Gives shared documents a polished, centered-page look — transforming the full-bleed white canvas into a paper card on a light gray background. This PR contains all the CSS that brings the share-mode visual refresh to life, including styling for the formatting toolbar introduced in PR #16.

Why

Share mode is the public face of Proof documents. The previous layout was a plain white page with no visual distinction — it didn't feel like a crafted reading experience. This update creates a warm, editorial aesthetic: a centered paper card with subtle shadows, rounded corners, and comfortable reading margins. The goal is to make shared Proof documents feel as intentional as a well-designed blog post or published article.

What changed (all in index.html CSS)

Page background & container:

  • body[data-share-mode="true"] gets background: #f9f9f9 (light gray) — clean, neutral backdrop
  • #editor-container capped at 1120px with vertical padding for breathing room

Editor card (the "paper"):

  • #editor constrained to 860px, centered, with warm-tinted background using color-mix() with #f7ecd9 (parchment)
  • Rounded corners (18px) and layered box-shadow for soft depth
  • Generous padding (88px 96px) for comfortable reading width (~65-75 characters per line)

Formatting bar styles (companion to PR #16):

  • Full CSS for #share-formatting-bar — right rail on desktop (absolute positioned in the ~130px margin), bottom dock on mobile (fixed, frosted glass with backdrop-filter)
  • CSS for #share-contextual-formatting-bar — floating popup near text selection
  • Hides existing .mark-selection-bar when contextual toolbar is visible to prevent overlap
  • CSS custom properties (--fmt-text, --fmt-bg-hover, etc.) using warm parchment-derived colors

Mobile responsive (≤900px):

  • Container and card shrink gracefully — tighter padding (48px 36px), smaller border-radius (12px), lighter shadow
  • Formatting bar switches from right rail to bottom dock layout

Design tokens

The formatting bar uses a warm color system derived from the paper aesthetic:

  • --fmt-text: #9a8e7f (warm gray for icons/labels)
  • --fmt-bg-hover: rgba(154,142,127,0.10) (subtle hover states)
  • --fmt-border: rgba(154,142,127,0.18) (group dividers)
  • --fmt-active: #5c4f3d (active state — darker warm tone)

Dependency

Builds on the data-share-mode attribute introduced in PR #16. Should be merged after or together with #16.

Files changed

File Lines What changed
src/index.html +216 / -2 All CSS for share-mode layout, paper card, and formatting bar styling

Test plan

  • Open a shared doc — page appears as centered card on gray background
  • Resize browser to mobile width — card fills viewport with tighter padding, no horizontal overflow
  • Formatting rail appears on right side (desktop) / bottom dock (mobile) with correct styling
  • Select text on desktop — contextual popup appears with matching style, existing mark-selection-bar is hidden
  • Open a non-share doc — no visual changes (all styles scoped to data-share-mode="true")

@cathrynlavery cathrynlavery changed the title feat: share-mode formatting bar background styling Share mode: centered page layout with paper styling Mar 12, 2026
maphilipps added a commit to maphilipps/proof-sdk that referenced this pull request May 24, 2026
Reads proposal-*.SKILL.md from ../skills/ (adProof repo root) via
filesystem, parses JSON frontmatter inline. Mounted when ADPROOF_MODE=1.
Storage-agnostic — no db dependency.

Related: adProof issue EveryInc#17 INT-2 skill-loader slice
maphilipps added a commit to maphilipps/proof-sdk that referenced this pull request May 24, 2026
…ugin für Inline-Einfärbung

- Neues Plugin provenance-inline.ts: liest proofAuthored-Marks, erzeugt
  Decoration.inline mit CSS-Klasse prov-human oder prov-ai-free
- CSS-Klassen in src/index.html ergänzt (mint-transparent / lavender-transparent)
- Plugin in editor/index.ts registriert nach authoredTrackerPlugin
- ai-with-source-Klasse bleibt TODO bis EveryInc#17 (INT-2) Sources-Index verfügbar

Browser-verify: span.prov-human erscheint sofort beim Tippen (human:Anonymous-Mark)
407/407 Unit-Tests grün, tsc --noEmit sauber (keine neuen Fehler)
maphilipps added a commit to maphilipps/proof-sdk that referenced this pull request May 24, 2026
…ot-Metriken-Aggregation

- adproof-metrics-route.ts: In-Memory-Store (inline, kein Cross-Package-Import aus src/)
- aggregateMetrics(): 4 PRD-Metriken, histogram-Typ (sum+values) und rate-Typ (avg+values)
- recordServerMetric(): Export für späteres Event-Wiring in EveryInc#17 (INT-2)
- GET /adproof/metrics: {success, metrics, sampleCount, wireStatus}
- index.ts: Router unter ADPROOF_MODE=1 registriert (3. adProof-Route)
- Store ist intentional leer bis Bridge-Tools in EveryInc#17 Events schreiben
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant