STUDIO_STYLE

tcmts.studio.STUDIO_STYLE · #q42oxtwp · term · runs anywhere

The studio's own styles, beside the forge's (SHARE_STYLE, whose colours, boxes, rows, badges and place bars it uses): the logo, a column of tabs on the left of every page (a row of them on a phone), the forge's pages laid out in the column beside it, a trace as a waterfall, and a scratch file's editor (CodeMirror, in the forge's colours).

export const STUDIO_STYLE = `
.logo { font-size: 17px; font-weight: 600; color: var(--fg); display: inline-flex; gap: 8px; align-items: center; }
.logo:hover { text-decoration: none; }
.logo .mark { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--any), var(--acc)); display: inline-block; }
header.app .wrap.studiobar { padding-bottom: 12px; }
.studio { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 24px; padding: 20px 24px 48px; max-width: var(--w); margin: 0 auto; }
.studio > * { min-width: 0; }
.studionav { position: sticky; top: 12px; align-self: start; }
.studionav .group { font-size: 12px; color: var(--dim); margin: 14px 10px 4px; }
.studionav hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.studio main > .page, .studio main > .narrow { padding: 0; max-width: none; margin: 0; }
.studio main > .narrow + .page { margin-top: 20px; }
.pagehead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.live { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--ok); }
.live.busy { background: var(--warn); } .live.off { background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line); }
.stats { display: flex; gap: 28px; flex-wrap: wrap; } .stat { font-size: 12.5px; color: var(--dim); }
.stat b { display: block; font-size: 22px; font-weight: 600; color: var(--fg); }
.box:has(> table.grid) { overflow-x: auto; }
table.grid { border-collapse: collapse; font: 12.5px var(--mono); width: 100%; }
table.grid th, table.grid td { text-align: left; padding: 6px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
table.grid th { font: 600 12px system-ui, sans-serif; color: var(--dim); border-top: 0; background: var(--bg2); }
table.grid td.num, table.grid th.num { text-align: right; }
.meter { display: block; height: 8px; border-radius: 4px; background: var(--bg3); overflow: hidden; min-width: 60px; }
.meter .fill { display: block; height: 8px; background: var(--srv); }
.wf { padding: 8px 0; }
.wf .r { display: grid; grid-template-columns: minmax(160px, 300px) minmax(0,1fr) 70px; gap: 10px; align-items: center; padding: 3px 14px; font-size: 12.5px; }
.wf .lbl { font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf .track { position: relative; height: 10px; background: var(--bg3); border-radius: 5px; }
.wf .b { position: absolute; top: 0; height: 10px; border-radius: 5px; min-width: 3px; }
.wf .b.srv { background: var(--srv); } .wf .b.brw { background: var(--brw); } .wf .b.any { background: var(--any); } .wf .b.bad { background: var(--bad); }
.wf .err { grid-column: 1 / -1; color: var(--bad); font: 12px var(--mono); padding-left: 14px; }
.trows .tr { display: grid; grid-template-columns: minmax(0,1fr) 130px 56px 56px 72px 72px 14%; gap: 10px; align-items: center; padding: 6px 14px; border-top: 1px solid var(--line); font: 12.5px var(--mono); color: var(--fg); }
.trows .tr.th { border-top: 0; background: var(--bg2); font: 600 12px system-ui, sans-serif; color: var(--dim); }
.trows a.tr:hover { background: var(--bg2); text-decoration: none; } .trows .num { text-align: right; }
.trows .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 960px) { .trows .tr { grid-template-columns: minmax(0,1fr) 56px 72px; } .trows .tr > :nth-child(2), .trows .tr > :nth-child(4), .trows .tr > :nth-child(5), .trows .tr > :nth-child(7) { display: none; } }
.errbody { display: grid; gap: 8px; padding: 12px 14px; }
.errbody pre.code.errmsg { margin: 0; padding: 8px 12px; color: var(--bad); background: var(--badbg); white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 6px; }
.errwhere { font-size: 12.5px; }
.tracerest { border-top: 1px solid var(--line); } .tracerest .fold-btn { background: none; padding: 7px 14px; font-size: 13px; }
.tracerest .fold[data-expanded] .fold-btn { border-bottom: 0; }
a.lrow.tracerow { color: var(--fg); } a.lrow.tracerow:hover { background: var(--bg2); text-decoration: none; }
.ver { font: 600 20px var(--mono); } .ver .from { color: var(--dim); font-weight: 400; }
.bump { display: inline-grid; grid-template-columns: repeat(3, 60px); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-size: 12px; text-align: center; }
.bump span { padding: 2px 0; color: var(--dim); border-left: 1px solid var(--line); } .bump span:first-child { border-left: 0; }
.bump .on.major { background: var(--badbg); color: var(--bad); font-weight: 600; } .bump .on.minor { background: var(--okbg); color: var(--ok); font-weight: 600; } .bump .on.patch { background: var(--bg3); color: var(--fg); font-weight: 600; }
.relpart { padding: 12px 16px; border-top: 1px solid var(--line); }
.relnotes .summary { display: block; margin: 0 0 12px; } .relnotes .summary textarea { width: 100%; font: inherit; font-size: 14px; line-height: 1.5; padding: 8px 10px; resize: vertical; }
.relgroup { border-top: 1px solid var(--line); } .relgroup .lrow:first-of-type { border-top: 0; }
.relhead { padding: 10px 14px 2px; font-size: 13px; font-weight: 600; } .relhead.bad { color: var(--bad); }
.relline { border-top: 1px solid var(--line); } .relline:first-of-type { border-top: 0; } .relline .fold-btn { background: none; flex-wrap: nowrap; } .relline .relsum { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slotbar { display: flex; gap: 3px; padding: 0 16px 16px; }
.slotbar span { flex: 1; height: 8px; border-radius: 4px; background: var(--bg3); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; }
.slotchart { width: 100%; height: 120px; display: block; }
.slotchart .mine { fill: var(--acc); } .slotchart .others { fill: var(--dim); opacity: .6; } .slotchart .waiting { fill: var(--warn); }
.slotchart .cap { stroke: var(--line); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.branchbtn { min-width: 0; height: 28px; font-weight: 400; }
.branchpop .menu { min-width: 360px; } .branchpop .opt .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.branchpop .branchago { font-size: 12px; white-space: nowrap; } .branchpop .opt[data-selected]::after { margin-left: 8px; }
.branchpop .menu-head { border: 0; margin: 4px 0 0; padding-bottom: 2px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--acc); cursor: pointer; font: inherit; } .linkbtn[data-hovered] { text-decoration: underline; }
.lib { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 16px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--fg); }
.lib:first-child { border-top: 0; } .lib .name { font-weight: 600; font-size: 15px; } .lib .desc { color: var(--dim); font-size: 13px; grid-column: 1; }
.lib .desc p { margin: 2px 0 0; }
.lib .meta { grid-column: 1 / -1; display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--dim); }
.lib .stat { text-align: right; font-size: 12px; color: var(--dim); } .lib .stat b { display: block; font-size: 15px; color: var(--fg); }
a.lib:hover { background: var(--bg2); text-decoration: none; }
.relrow .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.legend .li { display: inline-flex; gap: 5px; align-items: center; }
.cmbox { overflow: hidden; }
.cmbox .cm-editor { font-size: 12.5px; background: var(--bg); color: var(--fg); min-height: 240px; max-height: calc(100vh - 260px); }
.cmbox .cm-editor.cm-focused { outline: none; }
.cmbox .cm-scroller { font-family: var(--mono); line-height: 1.65; padding: 6px 0; }
.cmbox .cm-content { caret-color: var(--fg); }
.cmbox .cm-gutters { background: var(--bg); color: var(--dim); border: 0; }
.cmbox .cm-lineNumbers .cm-gutterElement { padding: 0 8px 0 14px; opacity: .65; }
.cmbox .cm-activeLine, .cmbox .cm-activeLineGutter { background: var(--bg2); }
.cmbox .cm-selectionBackground, .cmbox .cm-editor.cm-focused .cm-selectionBackground, .cmbox .cm-content ::selection { background: var(--accbg) !important; }
.cmbox .cm-cursor { border-left-color: var(--fg); }
.cmbox .cm-placeholder { color: var(--dim); }
.cmbox .cm-tooltip { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; color: var(--fg); }
.cmbox .cm-diagnostic { font: 12.5px var(--mono); padding: 6px 10px; white-space: pre-wrap; }
.cmbox .cm-diagnostic-error { border-left-color: var(--bad); } .cmbox .cm-diagnostic-warning { border-left-color: var(--warn); }
.cmbox .cm-panels { background: var(--bg2); color: var(--fg); border-color: var(--line); }
.cmbox .cm-searchMatch { background: var(--warnbg); } .cmbox .cm-matchingBracket { background: var(--bg3); outline: 1px solid var(--line); }
.scratch .box + .box { margin-top: 16px; }
.cmbox .cm-tooltip-hover { max-width: 560px; }
.cmhover { padding: 8px 12px; font-size: 13px; display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.cmhover .hovhead { display: flex; gap: 8px; align-items: baseline; }
.cmhover pre.code.hovsig { padding: 0; background: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmhover .md p { margin: 0 0 6px; } .cmhover .md > :last-child { margin-bottom: 0; }
.cmbox .cm-tooltip-autocomplete > ul { font: 12.5px var(--mono); max-height: 280px; }
.cmbox .cm-tooltip-autocomplete > ul > li { padding: 2px 10px 2px 6px; }
.cmbox .cm-tooltip-autocomplete > ul > li[aria-selected] { background: var(--accbg); color: var(--fg); }
.cmbox .cm-completionDetail { color: var(--dim); font-style: normal; margin-left: 10px; }
.cmbox .cm-completionMatchedText { text-decoration: none; font-weight: 600; }
.cmbox .cm-completionIcon { opacity: .7; width: 1.2em; }
.cmhover .hovkeys { display: flex; gap: 14px; font-size: 12.5px; border-top: 1px solid var(--line); padding-top: 6px; }
.cmhover .hovkeys .linkbtn:hover { text-decoration: underline; }
.relhead.refshead { display: flex; gap: 12px; align-items: baseline; } .refshead .linkbtn { font-weight: 400; margin-left: auto; padding-right: 14px; }
.pullpop .getit-body { width: 520px; max-width: 90vw; display: grid; gap: 8px; }
.pullpop input.field { width: 100%; }
.pulllist { max-height: 320px; overflow: auto; } .pulllist .opt { display: grid; gap: 1px; }
.pulllist .opt .sig { font: 11.5px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmvalue { padding: 2px 16px 6px 0; font: 12.5px/1.55 var(--mono); color: var(--dim); }
.cmvalue > * { margin: 0; padding: 4px 10px; background: var(--bg2); border-radius: 6px; }
.cmvalue pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; color: var(--fg); }
.cmvalue.bad pre { color: var(--bad); } .cmvalue.waits { font-family: system-ui, sans-serif; font-size: 12.5px; }
.cmvalue > .cmvalbar { background: none; padding: 4px 0 0; font: 12px system-ui, sans-serif; color: var(--dim); }
.cmvalue > iframe.cmrender { display: block; width: 100%; height: 48px; padding: 0; border: 1px solid var(--line); background: var(--bg); }
form.box.renamebar { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; }
.renamebar .react-aria-TextField { display: flex; gap: 8px; align-items: center; }
.renamebar input.field { min-width: 260px; }
table.grid td.cellv { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.box.datagrid { overflow: auto; max-height: calc(100vh - 230px); }
.datagrid table.grid thead th { position: sticky; top: 0; z-index: 1; vertical-align: bottom; }
.datagrid table.grid th .coltype { display: block; font: 400 11.5px var(--mono); color: var(--dim); margin-top: 1px; }
.datagrid table.grid tbody tr:hover td { background: var(--bg2); }
.datagrid table.grid tr.on td { background: var(--accbg); }
.datagrid table.grid td:first-child { position: sticky; left: 0; background: var(--bg); }
.datagrid table.grid th:first-child { position: sticky; left: 0; z-index: 2; }
.datafilters { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; margin: -4px 0 12px; font-size: 13px; }
.datafilter { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 1px 4px 1px 8px; }
.datafilter a { color: var(--dim); padding: 0 4px; } .datafilter a:hover { color: var(--bad); text-decoration: none; }
.addfilter { display: inline-flex; gap: 8px; align-items: center; } .addfilter input.field { width: 220px; }
.roweditor { display: grid; gap: 10px; padding: 12px 14px; }
.datagrid a.cellink { color: inherit; display: block; } .datagrid a.cellink:hover { text-decoration: none; }
.rowform { display: grid; gap: 8px; }
.rowfield { display: grid; grid-template-columns: 160px minmax(0, 420px) minmax(0, 1fr); gap: 12px; align-items: center; }
.rowfield .rowtext { display: contents; } .rowfield .rowlabel { font-size: 12.5px; color: var(--fg); overflow: hidden; text-overflow: ellipsis; }
.rowfield input.field, .rowfield textarea.field { width: 100%; font: 12.5px var(--mono); }
.rowfield textarea.field { resize: vertical; }
.rowfield .rowtype { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowfield .check { display: inline-flex; gap: 8px; align-items: center; font: 12.5px var(--mono); cursor: pointer; }
.prodform .check { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
.check .box-mark { flex: none; width: 14px; height: 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); }
.check[data-selected] .box-mark { background: var(--acc); border-color: var(--acc); box-shadow: inset 0 0 0 2px var(--bg); }
@media (max-width: 960px) { .rowfield { grid-template-columns: 1fr; gap: 4px; } }
.roweditor .rowcm { border: 1px solid var(--line); border-radius: 6px; } .roweditor .rowcm .cm-editor { min-height: 120px; max-height: 420px; }
.roweditor .actions .right { margin-left: auto; }
.roweditor-error { margin: 0; padding: 8px 12px; color: var(--bad); background: var(--badbg); white-space: pre-wrap; border-radius: 6px; }
table.grid tr.older td { background: var(--warnbg); }
.apiline .fold-btn { gap: 10px; } .apiline .fold-btn b { flex: none; }
.apisig pre.code { margin: 0; padding: 8px 12px; background: var(--bg2); border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.apiline .boxbody.md { white-space: pre-wrap; font-size: 13px; color: var(--dim); }
.box pre.code.applog { max-height: calc(100vh - 280px); overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.box pre.code.testlog { max-height: 320px; }
.failrow { border-top: 1px solid var(--line); } .failrow:first-of-type { border-top: 0; } .failrow .lrow { border-top: 0; }
.getit.wide { max-width: min(720px, 90vw); } .getit.wide pre.code { max-height: 320px; overflow: auto; white-space: pre-wrap; }
.conflictsides { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: -4px 14px 12px; font-size: 13px; }
.notice.mergewait, .notice.readnotice { display: flex; align-items: flex-start; gap: 12px; } .notice.mergewait > :first-child, .notice.readnotice > :first-child { flex: 1; }
.branchrow .live { margin-right: 6px; } .branchrow .rowacts { visibility: hidden; } .branchrow:hover .rowacts, .branchrow:focus-within .rowacts, .branchrow .rowacts:has([aria-expanded=true]) { visibility: visible; }
.failrow pre.code.errmsg { margin: 0 14px 12px; padding: 8px 12px; color: var(--bad); background: var(--badbg); white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 6px; }
.jobstate { display: inline-block; min-width: 72px; font-size: 12px; color: var(--dim); }
.jobstate.failed { color: var(--bad); } .jobstate.running { color: var(--acc); } .jobstate.queued { color: var(--warn); } .jobstate.done { color: var(--ok); }
.jobwhy { font-size: 12.5px; margin-left: 6px; }
a.lrow.tracerow.on { background: var(--accbg); }
.prodform { display: grid; gap: 10px; max-width: 520px; }
.prodform .fieldrow { display: grid; gap: 4px; } .prodform .fieldrow label { font-size: 13px; color: var(--dim); }
button.lrow.probrow { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 10px; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: none; font: 12.5px var(--mono); cursor: pointer; white-space: pre-wrap; }
button.lrow.probrow[data-hovered] { background: var(--bg2); }
.probfixes { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 8px 88px; }
.cmvalue > pre.cmout { color: var(--dim); background: none; padding: 2px 10px 4px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 200px; overflow: auto; border-left: 0; }
.cmbox .cm-foldGutter .cm-gutterElement { color: var(--dim); padding: 0 4px; cursor: pointer; opacity: .6; } .cmbox .cm-foldGutter .cm-gutterElement:hover { opacity: 1; color: var(--fg); }
.cmbox .cm-foldPlaceholder { background: var(--bg3); border: 0; color: var(--dim); padding: 0 6px; border-radius: 4px; }
.cmbox .cm-tooltip .cmchosen { padding: 6px 10px; display: grid; gap: 6px; max-width: 560px; font-size: 12.5px; }
.cmchosen .hovkeys { display: flex; gap: 14px; border-top: 0; padding-top: 0; }
.cmchosen .cmvalue { padding: 0; } .cmchosen .cmvalue > pre { max-height: 240px; }
.cmvalue.test { display: flex; gap: 12px; align-items: baseline; } .cmvalue.test > pre { flex: 1; }
.cmvalue.test > .testrun { background: none; padding: 0; font-size: 12px; flex: none; }
.cmvalue.test pre { color: var(--ok); } .cmvalue.test.bad pre { color: var(--bad); } .cmvalue.test.untested pre { color: var(--dim); }
.cmbox .cm-tooltip.cmsig, .cmbox .cmsig { padding: 4px 10px; font: 12.5px var(--mono); }
.cmsig b { color: var(--acc); }
.cmbox .cm-tooltip-lint .cm-diagnosticAction { font: 12px system-ui, sans-serif; background: var(--bg3); color: var(--fg); border-radius: 4px; padding: 1px 6px; }
@media (max-width: 960px) {
  .studio { grid-template-columns: 1fr; padding: 14px 14px 80px; }
  .studionav { position: static; } .studionav .tabs[data-orientation="vertical"] { flex-direction: row; flex-wrap: wrap; }
  .studionav hr, .studionav .group { display: none; }
  .wf .r { grid-template-columns: 130px minmax(0,1fr) 56px; }
}
`

used by