Files
plugins/packages/output-strategy/page/style.css
T
Mañjūṣakaandmanjughosa dba24067c2 output-strategy 0.2.3: remove the panel byline; keep attribution in the README (#1009)
Removes the "by" byline from the Output Strategy panel (index.html, i18n.js, style.css); the attribution stays in the README. Bumps the package to 0.2.3 so dist packs it (0.2.2 is already packed and is never packed again).

Run at the reviewed head 121f571f (on mote, temp HOME):
- `git diff 0d03f7bf 121f571f`: only package.json 0.2.2 -> 0.2.3 and the matching version assertion in test/page.test.mjs. Everything else was reviewed at 0d03f7bf.
- packages/output-strategy `bun test`: 59 pass, 0 fail. `bun scripts/check.mjs`: ok.
- Root `bun test` (suite lock) on origin/main a69931ec merged with #1009, #1012 and #1013: 8373 pass, 0 fail (8392 tests across 590 files, 361s; the rest skipped), on Linux (Ubuntu 24.04, magpie-desktop) because both Macs' suite locks were held by hours-long runs. `bun scripts/check.mjs` on that tree: ok.
- Earlier, at 0d03f7bf: Playwright 1.62 Chromium and WebKit at 1200 and 420px, en and zh-CN, with a stub bridge. No byline, the conversation note shows, all 7 styles load, no horizontal overflow, no page errors.

Broken by hand (at 0d03f7bf): putting main's page/index.html back, or main's page/i18n.js, makes 1 test fail ("shows conversation guidance in both languages without a panel byline").

Not tried: the panel inside a real magpie window.

Co-authored-by: manjughosa <3220325975@qq.com>
2026-11-11 23:37:38 +08:00

289 lines
5.2 KiB
CSS

:root {
color-scheme: light dark;
--paper: var(--magpie-bg, #f3f5f4);
--surface: var(--magpie-card, #ffffff);
--ink: var(--magpie-fg, #1d2523);
--muted: var(--magpie-muted, #63706c);
--line: var(--magpie-line, #d5dcd8);
--accent: var(--magpie-accent, #315f72);
--accent-soft: var(--magpie-accent-soft, #e7eff2);
--danger: var(--magpie-red, #9b3535);
font-family: var(--magpie-font, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif);
font-synthesis: none;
}
* { box-sizing: border-box; }
body {
margin: 0;
min-width: 0;
background: var(--paper);
color: var(--ink);
font-size: 14px;
line-height: 1.55;
}
button,
input { font: inherit; }
button,
label,
input { -webkit-tap-highlight-color: transparent; }
.shell {
width: min(100% - 48px, 780px);
margin: 0 auto;
padding: 42px 0 36px;
}
.intro {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
justify-content: space-between;
gap: 16px 24px;
padding-bottom: 25px;
border-bottom: 2px solid var(--ink);
}
h1,
h2,
h3,
p { margin-top: 0; }
h1 {
margin-bottom: 7px;
font-size: clamp(28px, 4vw, 40px);
font-weight: 680;
line-height: 1.15;
letter-spacing: -0.035em;
}
.lede {
max-width: 580px;
margin-bottom: 0;
color: var(--muted);
font-size: 15px;
}
#conversationNote { margin-bottom: 14px; }
.selection-count {
display: flex;
flex-direction: column;
align-items: flex-end;
flex: none;
margin-bottom: 1px;
color: var(--muted);
font-size: 12px;
}
.selection-count strong {
color: var(--accent);
font-size: 23px;
font-variant-numeric: tabular-nums;
font-weight: 650;
line-height: 1.2;
}
.styles-section { padding-top: 28px; }
.section-heading {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 16px;
margin-bottom: 11px;
}
.section-heading h2 {
flex: none;
margin-bottom: 0;
font-size: 16px;
font-weight: 650;
}
.section-heading p {
margin-bottom: 0;
color: var(--muted);
font-size: 12px;
text-align: right;
}
fieldset {
min-width: 0;
margin: 0;
padding: 0;
border: 0;
}
.styles-list {
border-top: 1px solid var(--line);
}
.style-row {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
min-height: 76px;
padding: 14px 12px 14px 16px;
border-bottom: 1px solid var(--line);
cursor: pointer;
transition: background-color 120ms ease;
}
.style-row::before {
position: absolute;
inset: 14px auto 14px 0;
width: 3px;
background: transparent;
content: "";
}
.style-row:hover { background: rgb(255 255 255 / 55%); }
.style-row:has(input:checked) { background: var(--accent-soft); }
.style-row:has(input:checked)::before { background: var(--accent); }
.style-row:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.style-row:has(input:disabled) { cursor: default; opacity: 0.65; }
.style-copy {
display: flex;
flex-direction: column;
gap: 3px;
min-width: 0;
}
.style-name {
font-size: 15px;
font-weight: 620;
}
.style-description {
max-width: 590px;
color: var(--muted);
font-size: 13px;
line-height: 1.45;
}
.style-row input[type="checkbox"] {
flex: none;
width: 19px;
height: 19px;
margin: 0;
accent-color: var(--accent);
cursor: pointer;
}
.style-row input[type="checkbox"]:focus-visible {
outline: 3px solid var(--accent);
outline-offset: 3px;
}
.form-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
min-height: 48px;
margin-top: 18px;
}
.form-message {
margin-bottom: 0;
color: var(--muted);
font-size: 12px;
}
.form-message.error,
.inline-error { color: var(--danger); }
button {
min-height: 40px;
padding: 8px 18px;
border: 1px solid var(--accent);
border-radius: 5px;
background: var(--accent);
color: color-mix(in srgb, var(--accent) 15%, #fff);
cursor: pointer;
font-weight: 600;
}
button:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 85%, #000); }
button:focus-visible {
outline: 3px solid var(--ink);
outline-offset: 3px;
}
button:disabled {
border-color: var(--line);
background: var(--line);
color: var(--muted);
cursor: not-allowed;
}
.empty-state {
margin: 0;
padding: 22px 0;
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
color: var(--muted);
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
@media (max-width: 720px) {
.shell {
width: min(100% - 32px, 600px);
padding-top: 28px;
}
}
@media (max-width: 460px) {
.intro { align-items: flex-start; }
.lede { font-size: 13px; }
.selection-count strong { font-size: 19px; }
.section-heading { display: block; }
.section-heading p {
margin-top: 4px;
text-align: left;
}
.style-row {
gap: 12px;
padding-right: 6px;
}
.form-footer {
align-items: stretch;
flex-direction: column;
gap: 12px;
}
button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
transition-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
}
}