pynterest83's picture
Telasap-0.8B v1.0 (exp10yc): router model + /v1/systemone server
72c7148 verified
Raw History Blame Contribute Delete
6.35 kB
/* MacJev shared styles: header, nav, EN/中文 toggle, theme, basic controls.
Owned by the Playground. Every page and demo includes:
<link rel="stylesheet" href="/common.css"><script src="/common.js" defer></script>
Bilingual text: <span lang="en">..</span><span lang="zh">..</span> (English is the default).
Light/dark: follows the system; the header button can pin light or dark (html[data-theme]). */
:root {
--bg: #f7f7f5; --fg: #1b1b1a; --muted: #6b6b66; --line: #e2e1dc; --card: #ffffff; --soft: #efeeea;
--accent: #2f5bd3; --accent-fg: #ffffff; --bar: #2f5bd3; --bar-bg: #e9e8e3;
--act: #1f7a3f; --review: #a86400; --block: #b3261e; --act-bg: #e3f3e8; --review-bg: #fbeed6; --block-bg: #fbe3e1;
--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
--radius: 8px;
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--bg: #131312; --fg: #ecebe7; --muted: #9d9c96; --line: #2d2d2b; --card: #1b1b1a; --soft: #232322;
--accent: #7c9cff; --accent-fg: #0f1a3a; --bar: #7c9cff; --bar-bg: #2a2a28;
--act: #6fd08f; --review: #f0b35a; --block: #ff8a80; --act-bg: #173322; --review-bg: #3a2c12; --block-bg: #3d1b19;
color-scheme: dark;
}
}
:root[data-theme="dark"] {
--bg: #131312; --fg: #ecebe7; --muted: #9d9c96; --line: #2d2d2b; --card: #1b1b1a; --soft: #232322;
--accent: #7c9cff; --accent-fg: #0f1a3a; --bar: #7c9cff; --bar-bg: #2a2a28;
--act: #6fd08f; --review: #f0b35a; --block: #ff8a80; --act-bg: #173322; --review-bg: #3a2c12; --block-bg: #3d1b19;
color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--fg);
font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif; }
body { overflow-x: hidden; }
a { color: var(--accent); }
h1 { font-size: 22px; margin: 4px 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 16px; margin: 0 0 8px; }
h3 { font-size: 14px; margin: 0 0 6px; }
[data-lang="en"] [lang="zh"], [data-lang="zh"] [lang="en"] { display: none !important; }
/* header */
.mj-header { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line);
background: var(--bg); position: sticky; top: 0; z-index: 20; }
.mj-brand { font-weight: 700; text-decoration: none; color: var(--fg); white-space: nowrap; }
.mj-nav { display: flex; gap: 14px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.mj-nav::-webkit-scrollbar { display: none; }
.mj-nav a { text-decoration: none; color: var(--muted); padding: 2px 0; }
.mj-nav a:hover { color: var(--fg); }
.mj-nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.mj-tools { display: flex; gap: 6px; flex: none; }
.mj-lang, .mj-theme { border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 6px;
padding: 3px 9px; cursor: pointer; font: inherit; font-size: 13px; }
main { max-width: 960px; margin: 0 auto; padding: 16px; }
pre { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; overflow: auto;
font: 12.5px/1.45 var(--mono); }
code { font-family: var(--mono); font-size: 0.92em; }
/* shared controls (optional for demos) */
.mj-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.mj-muted { color: var(--muted); }
.mj-small { font-size: 13px; }
.mj-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mj-btn { font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--card); color: var(--fg);
border-radius: 6px; padding: 5px 12px; cursor: pointer; }
.mj-btn:hover { border-color: var(--muted); }
.mj-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 600; }
.mj-btn:disabled { opacity: .55; cursor: default; }
.mj-btn.icon { padding: 2px 8px; line-height: 1.2; }
.mj-input, .mj-textarea, .mj-select { font: inherit; font-size: 14px; color: var(--fg); background: var(--bg);
border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; width: 100%; min-width: 0; }
.mj-textarea { font-family: var(--mono); font-size: 13px; line-height: 1.45; resize: vertical; }
.mj-input:focus, .mj-textarea:focus, .mj-select:focus, .mj-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mj-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; flex: none; }
.mj-seg button { font: inherit; font-size: 13px; border: 0; background: var(--card); color: var(--muted); padding: 3px 10px; cursor: pointer; }
.mj-seg button + button { border-left: 1px solid var(--line); }
.mj-seg button[aria-pressed="true"] { background: var(--soft); color: var(--fg); font-weight: 600; }
.mj-chip { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.mj-chip.act { background: var(--act-bg); color: var(--act); }
.mj-chip.review { background: var(--review-bg); color: var(--review); }
.mj-chip.block { background: var(--block-bg); color: var(--block); }
.mj-err { color: var(--block); }
/* probability bars */
.mj-bars { display: grid; grid-template-columns: minmax(0, 38%) 1fr auto; gap: 4px 8px; align-items: center; font-size: 13px; }
.mj-bars > .row { display: contents; }
.mj-bars .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mj-bars .trk { height: 10px; background: var(--bar-bg); border-radius: 5px; overflow: hidden; }
.mj-bars .fil { height: 100%; background: var(--bar); border-radius: 5px; min-width: 1px; transition: width .25s; }
.mj-bars .val { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; min-width: 3.6em; }
.mj-bars .top .lbl { font-weight: 600; }
.mj-bars .top .val { color: var(--fg); }
@media (max-width: 600px) {
.mj-header { padding: 8px 12px; gap: 10px; }
main { padding: 12px; }
}
/* engine notice (fake engine / untrained dev release), added by common.js */
.mj-engine-note { padding: 6px 16px; font-size: 13px; color: var(--review); background: var(--review-bg);
border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }