waybetter/packages/shell/src/panel/plugins.css
CRT a834b0b513 Panel: area plugin cards with per-feature toggles, the Fixes list, modes (first-run screen and Settings)
- PanelSite.features: the app's feature table; AreaPlugins draws one card per area (switch, count, grouped features, Settings button that runs the area's command in the site tab) and the core flags as Fixes
- a feature still backed by an old plugin file is switched through plugin_set_enabled from its card and left out of the JavaScript plugins list
- Modes: Onboarding (three cards, recommended preselected; an existing setup may be kept) and ModeSettings with the keep-my-changes question; openOnboardingWhenDue for ShellSite.start
- flags are saved sparsely (only what differs from the table's defaults)
- PanelSite.appearance.extra; palette commands of an area are listed under its name
- the kit's words for feature settings and health notes; English in the framework catalog
2026-09-30 11:34:14 +00:00

54 lines
4.9 KiB
CSS

/* The Store section is the framework's Store view (waybetter packages/shell store.css, `--wb-*`
tokens); here it follows the panel tokens (--c-*), so it follows the theme. */
.wbs {
--wb-text: var(--c-text); --wb-text-2: var(--c-text-2); --wb-text-rgb: var(--c-text-rgb); --wb-muted: var(--c-muted);
--wb-card: var(--c-card); --wb-field: var(--c-field);
--wb-border: var(--c-line); --wb-border-soft: var(--c-line-soft); --wb-border-strong: var(--c-line-strong);
--wb-accent: var(--c-accent); --wb-accent-rgb: var(--c-accent-rgb); --wb-accent-soft: var(--c-accent-soft);
--wb-ok: var(--c-ok); --wb-warn: var(--c-warn);
--wb-font-mono: var(--f-mono, ui-monospace, monospace); --wb-ease: var(--ease, ease);
}
/* Plugins list: permission and source badges (Extensions.tsx). */
.wbx-perms { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-inline-start: 6px; vertical-align: middle; }
.wbx-perms span { padding: 0 6px; height: 18px; display: inline-flex; align-items: center; border-radius: 5px; font: 500 10.5px/1 var(--f-mono, ui-monospace, monospace); color: var(--c-muted); background: var(--c-field); border: 1px solid var(--c-line-soft); }
.wbx-perms span.is-warn { color: var(--c-warn); border-color: color-mix(in srgb, var(--c-warn) 35%, transparent); }
.wbx-perms span.is-ok { color: var(--c-ok); border-color: color-mix(in srgb, var(--c-ok) 30%, transparent); }
.wbx-perms span.is-source { color: var(--c-accent); border-color: rgb(var(--c-accent-rgb) / .3); }
/* Area plugins (PluginFeatures.tsx): one card per area, its features inside. */
.wbf-area + .wbf-area { border-top: 1px solid var(--c-line-soft); }
.wbf-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 60px; }
.wbf-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--c-accent-soft); color: var(--c-accent); }
.wbf-area.is-off .wbf-icon { background: var(--c-field); color: var(--c-muted); }
.wbf-title { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.wbf-title strong { font-size: 14px; font-weight: 620; }
.wbf-title small { grid-column: 1 / -1; margin-top: 2px; color: var(--c-muted); font-size: 12px; line-height: 1.45; }
.wbf-title:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; border-radius: 6px; }
.wbf-count { color: var(--c-muted); font: 500 11px/1 var(--f-mono, ui-monospace, monospace); }
.wbf-body { border-top: 1px solid var(--c-line-soft); background: color-mix(in srgb, var(--c-field) 45%, transparent); }
.wbf-area.is-off .wbf-body .bt-row-copy { opacity: .6; }
.wbf-group h3 { margin: 0; padding: 12px 16px 2px; color: var(--c-muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.wbf-group + .wbf-group { border-top: 1px solid var(--c-line-soft); }
.wbf-note { display: block; margin-top: 4px; color: var(--c-warn); }
.wbf-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; color: var(--c-text); }
.wbf-ask small { flex-basis: 100%; color: var(--c-muted); }
/* Modes (Modes.tsx): the first-run screen and its cards. */
.btp.is-onboarding { display: grid; place-items: center; overflow: auto; }
.wbm-onboarding { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(880px, 100%); padding: 40px 24px; text-align: center; }
.wbm-onboarding > img { border-radius: 22%; }
.wbm-onboarding h1 { margin: 8px 0 0; font-size: 24px; font-weight: 680; letter-spacing: -.01em; text-wrap: balance; }
.wbm-onboarding > p { margin: 0; max-width: 58ch; color: var(--c-muted); font-size: 13px; line-height: 1.5; }
.wbm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; width: 100%; margin: 18px 0 6px; }
.wbm-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--c-line-soft); border-radius: 14px; background: var(--c-card); color: inherit; font: inherit; text-align: start; cursor: pointer; transition: border-color .12s var(--ease, ease), box-shadow .12s var(--ease, ease); }
.wbm-card:hover { border-color: var(--c-line-strong); }
.wbm-card.is-on { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.wbm-card:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.wbm-card strong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 640; }
.wbm-card > span:last-child { color: var(--c-muted); font-size: 12.5px; line-height: 1.5; }
.wbm-art { display: grid; place-items: center; height: 72px; border-radius: 10px; background: var(--c-field); color: var(--c-muted); }
.wbm-card.is-on .wbm-art { color: var(--c-accent); }
.wbm-note { color: var(--c-text-2, var(--c-muted)); }
.wbm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }