4349 lines
92 KiB
CSS
4349 lines
92 KiB
CSS
/* Programming+: a lab notebook for algorithms. Tokens first; light and dark; IBM Plex in two voices. */
|
|
:root {
|
|
--paper: #f7f8fa;
|
|
--paper-2: #ffffff;
|
|
--paper-3: #eef0f4;
|
|
--ink: #16191f;
|
|
--ink-2: #5c6370;
|
|
--ink-3: #646b77;
|
|
--line: #dde1e8;
|
|
--line-2: #c9cfd8;
|
|
--accent: #2f5bea;
|
|
--accent-ink: #ffffff;
|
|
--accent-bg: #e7edfd;
|
|
--marker: #f6c453;
|
|
--marker-bg: #fff3cf;
|
|
--last-bg: #e3ecfb;
|
|
--ok: #157a4c;
|
|
--ok-bg: #e2f5ea;
|
|
--warn: #8f5807;
|
|
--warn-bg: #fdf0d6;
|
|
--err: #b83232;
|
|
--err-bg: #fbe3e3;
|
|
--mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
|
|
--sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
--r: 6px;
|
|
--r-lg: 10px;
|
|
--shadow: 0 10px 30px rgba(22, 25, 31, .10);
|
|
--tok-keyword: #1d46c7;
|
|
--tok-builtin: #7a3fc4;
|
|
--tok-string: #a8580d;
|
|
--tok-number: #0f7b6c;
|
|
--tok-comment: #646b77;
|
|
--tok-label: #b4247a;
|
|
/* the P+ mark: a light tile on the light theme, a dark one on the dark theme */
|
|
--brand-bg: #f6c453;
|
|
--brand-fg: #16191f;
|
|
--brand-edge: #e0ab35;
|
|
color-scheme: light;
|
|
}
|
|
|
|
:root[data-theme="dark"] {
|
|
--paper: #141821;
|
|
--paper-2: #1b2029;
|
|
--paper-3: #232935;
|
|
--ink: #e9ecf1;
|
|
--ink-2: #a7afbc;
|
|
--ink-3: #8b93a1;
|
|
--line: #2c333f;
|
|
--line-2: #3b4452;
|
|
--accent: #8db0ff;
|
|
--accent-ink: #0f1626;
|
|
--accent-bg: #1f2b4a;
|
|
--marker: #f0c05a;
|
|
--marker-bg: #4a3c12;
|
|
--last-bg: #1f3350;
|
|
--ok: #5fd39a;
|
|
--ok-bg: #16331f;
|
|
--warn: #f0b860;
|
|
--warn-bg: #3a2c12;
|
|
--err: #ff8585;
|
|
--err-bg: #3f1b1b;
|
|
--shadow: 0 10px 30px rgba(0, 0, 0, .45);
|
|
--tok-keyword: #8db0ff;
|
|
--tok-builtin: #c9a7ff;
|
|
--tok-string: #f2b56b;
|
|
--tok-number: #5fd3c6;
|
|
--tok-comment: #8b93a1;
|
|
--tok-label: #f49ac2;
|
|
--brand-bg: #0e1117;
|
|
--brand-fg: #f0c05a;
|
|
--brand-edge: #2c333f;
|
|
color-scheme: dark;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root:not([data-theme="light"]):not([data-theme="dark"]) {
|
|
--paper: #141821;
|
|
--paper-2: #1b2029;
|
|
--paper-3: #232935;
|
|
--ink: #e9ecf1;
|
|
--ink-2: #a7afbc;
|
|
--ink-3: #8b93a1;
|
|
--line: #2c333f;
|
|
--line-2: #3b4452;
|
|
--accent: #8db0ff;
|
|
--accent-ink: #0f1626;
|
|
--accent-bg: #1f2b4a;
|
|
--marker: #f0c05a;
|
|
--marker-bg: #4a3c12;
|
|
--last-bg: #1f3350;
|
|
--ok: #5fd39a;
|
|
--ok-bg: #16331f;
|
|
--warn: #f0b860;
|
|
--warn-bg: #3a2c12;
|
|
--err: #ff8585;
|
|
--err-bg: #3f1b1b;
|
|
--shadow: 0 10px 30px rgba(0, 0, 0, .45);
|
|
--tok-keyword: #8db0ff;
|
|
--tok-builtin: #c9a7ff;
|
|
--tok-string: #f2b56b;
|
|
--tok-number: #5fd3c6;
|
|
--tok-comment: #8b93a1;
|
|
--tok-label: #f49ac2;
|
|
--brand-bg: #0e1117;
|
|
--brand-fg: #f0c05a;
|
|
--brand-edge: #2c333f;
|
|
color-scheme: dark;
|
|
}
|
|
}
|
|
|
|
/* legacy aliases used by older rules */
|
|
:root {
|
|
--bg: var(--paper);
|
|
--bg-2: var(--paper-2);
|
|
--bg-3: var(--paper-3);
|
|
--fg: var(--ink);
|
|
--fg-2: var(--ink-2);
|
|
--note: var(--ink-3);
|
|
--current: var(--marker-bg);
|
|
--last: var(--last-bg);
|
|
--radius: var(--r-lg);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
background: var(--paper);
|
|
color: var(--ink);
|
|
font: 14px/1.5 var(--sans);
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
body.is-embed {
|
|
background: var(--paper-2);
|
|
}
|
|
|
|
#app {
|
|
height: 100%;
|
|
}
|
|
|
|
a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
margin: 0 0 .4em;
|
|
font-weight: 600;
|
|
line-height: 1.2;
|
|
letter-spacing: -.01em;
|
|
}
|
|
|
|
h4 {
|
|
font-size: 13px;
|
|
color: var(--ink-2);
|
|
font-weight: 600;
|
|
margin: 14px 0 6px;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
code,
|
|
.mono {
|
|
font-family: var(--mono);
|
|
font-size: 12.5px;
|
|
}
|
|
|
|
.muted {
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.small {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.hint {
|
|
font-size: 12.5px;
|
|
color: var(--ink-2);
|
|
background: var(--paper-3);
|
|
border-left: 3px solid var(--accent);
|
|
padding: 6px 10px;
|
|
border-radius: 4px;
|
|
margin: 0 0 10px;
|
|
}
|
|
|
|
.math {
|
|
font-family: "STIX Two Math", "Cambria Math", var(--mono);
|
|
font-size: 13px;
|
|
}
|
|
|
|
:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
transition: none !important;
|
|
animation: none !important;
|
|
}
|
|
}
|
|
|
|
/* ---------- controls ---------- */
|
|
.btn {
|
|
font: inherit;
|
|
font-size: 13px;
|
|
padding: 5px 11px;
|
|
border: 1px solid var(--line-2);
|
|
border-radius: var(--r);
|
|
background: var(--paper-2);
|
|
color: var(--ink);
|
|
cursor: pointer;
|
|
transition: border-color .12s, background .12s;
|
|
}
|
|
|
|
.btn:hover {
|
|
border-color: var(--ink-3);
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: var(--accent-ink);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
filter: brightness(1.06);
|
|
}
|
|
|
|
.btn-quiet {
|
|
background: transparent;
|
|
border-color: transparent;
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.btn-quiet:hover {
|
|
background: var(--paper-3);
|
|
border-color: transparent;
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 2px 8px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.btn-option {
|
|
margin: 4px 6px 0 0;
|
|
background: var(--accent-bg);
|
|
border-color: transparent;
|
|
}
|
|
|
|
.btn.on {
|
|
background: var(--accent-bg);
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.linkish {
|
|
background: none;
|
|
border: 0;
|
|
padding: 0;
|
|
color: var(--accent);
|
|
cursor: pointer;
|
|
font: inherit;
|
|
text-decoration: underline dotted;
|
|
}
|
|
|
|
.select,
|
|
.input {
|
|
font: inherit;
|
|
font-size: 13px;
|
|
padding: 5px 8px;
|
|
border: 1px solid var(--line-2);
|
|
border-radius: var(--r);
|
|
background: var(--paper-2);
|
|
color: var(--ink);
|
|
}
|
|
|
|
.input {
|
|
min-width: 240px;
|
|
}
|
|
|
|
.tool-label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
color: var(--ink-2);
|
|
font-size: 12.5px;
|
|
}
|
|
|
|
.badge {
|
|
display: inline-block;
|
|
font-size: 11.5px;
|
|
padding: 1px 8px;
|
|
border-radius: 10px;
|
|
font-weight: 600;
|
|
margin-right: 6px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.badge-proved {
|
|
background: var(--ok-bg);
|
|
color: var(--ok);
|
|
}
|
|
|
|
.badge-broken {
|
|
background: var(--err-bg);
|
|
color: var(--err);
|
|
}
|
|
|
|
.badge-open {
|
|
background: var(--warn-bg);
|
|
color: var(--warn);
|
|
}
|
|
|
|
.chip {
|
|
display: inline-block;
|
|
font-size: 11.5px;
|
|
padding: 1px 8px;
|
|
border-radius: 10px;
|
|
background: var(--paper-3);
|
|
color: var(--ink-2);
|
|
margin-right: 4px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.chip-saved {
|
|
background: var(--ok-bg);
|
|
color: var(--ok);
|
|
}
|
|
|
|
.chip-level-intro {
|
|
background: var(--ok-bg);
|
|
color: var(--ok);
|
|
}
|
|
|
|
.chip-level-advanced {
|
|
background: var(--warn-bg);
|
|
color: var(--warn);
|
|
}
|
|
|
|
.chip-tag {
|
|
background: transparent;
|
|
border: 1px solid var(--line);
|
|
}
|
|
|
|
kbd {
|
|
font-family: var(--mono);
|
|
font-size: 11px;
|
|
padding: 1px 6px;
|
|
border: 1px solid var(--line-2);
|
|
border-bottom-width: 2px;
|
|
border-radius: 4px;
|
|
background: var(--paper-2);
|
|
color: var(--ink);
|
|
}
|
|
|
|
/* a segmented switch: Mojo | pseudo */
|
|
.seg {
|
|
display: inline-flex;
|
|
border: 1px solid var(--line-2);
|
|
border-radius: 999px;
|
|
padding: 2px;
|
|
background: var(--paper-2);
|
|
gap: 2px;
|
|
}
|
|
|
|
.seg-opt {
|
|
font: inherit;
|
|
font-size: 12.5px;
|
|
font-weight: 600;
|
|
padding: 3px 12px;
|
|
border: 0;
|
|
border-radius: 999px;
|
|
background: transparent;
|
|
color: var(--ink-2);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.seg-opt:hover {
|
|
color: var(--ink);
|
|
}
|
|
|
|
.seg-opt.on {
|
|
background: var(--ink);
|
|
color: var(--paper);
|
|
}
|
|
|
|
/* ---------- top bar ---------- */
|
|
.toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 8px 14px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: var(--paper-2);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.brand {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-weight: 700;
|
|
font-size: 15px;
|
|
color: var(--ink);
|
|
margin-right: 6px;
|
|
white-space: nowrap;
|
|
letter-spacing: -.01em;
|
|
}
|
|
|
|
.brand:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.brand-mark {
|
|
min-width: 22px;
|
|
height: 22px;
|
|
padding: 0 4px;
|
|
border-radius: 6px;
|
|
background: var(--brand-bg);
|
|
color: var(--brand-fg);
|
|
box-shadow: inset 0 0 0 1px var(--brand-edge);
|
|
display: inline-grid;
|
|
place-items: center;
|
|
font-family: var(--mono);
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.spacer {
|
|
flex: 1;
|
|
}
|
|
|
|
.icon-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
padding: 0;
|
|
display: inline-grid;
|
|
place-items: center;
|
|
font-size: 15px;
|
|
}
|
|
|
|
/* ---------- home ---------- */
|
|
.home {
|
|
max-width: 1120px;
|
|
margin: 0 auto;
|
|
padding: 0 24px 64px;
|
|
}
|
|
|
|
.home-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 18px 0 8px;
|
|
}
|
|
|
|
.home-nav a {
|
|
color: var(--ink-2);
|
|
font-size: 13.5px;
|
|
}
|
|
|
|
.hero {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
|
|
gap: 40px;
|
|
align-items: center;
|
|
padding: 36px 0 44px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 44px;
|
|
line-height: 1.08;
|
|
letter-spacing: -.025em;
|
|
margin: 0 0 16px;
|
|
max-width: 14ch;
|
|
}
|
|
|
|
.hero .lede {
|
|
font-size: 17px;
|
|
color: var(--ink-2);
|
|
margin: 0 0 22px;
|
|
max-width: 48ch;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.hero-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.hero-actions .btn {
|
|
padding: 9px 16px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.demo {
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--r-lg);
|
|
background: var(--paper-2);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.demo-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--line);
|
|
font-size: 12.5px;
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.demo-head b {
|
|
color: var(--ink);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.demo-code {
|
|
margin: 0;
|
|
padding: 12px 14px;
|
|
font-family: var(--mono);
|
|
font-size: 12.5px;
|
|
line-height: 1.7;
|
|
white-space: pre;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.demo-line {
|
|
display: block;
|
|
padding: 0 6px;
|
|
margin: 0 -6px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.demo-line.cur {
|
|
background: var(--marker-bg);
|
|
box-shadow: inset 3px 0 var(--marker);
|
|
}
|
|
|
|
.demo-foot {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
gap: 10px;
|
|
align-items: center;
|
|
padding: 10px 12px;
|
|
border-top: 1px solid var(--line);
|
|
background: var(--paper);
|
|
}
|
|
|
|
.demo-vars {
|
|
display: flex;
|
|
gap: 14px;
|
|
font-family: var(--mono);
|
|
font-size: 12.5px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.demo-vars b {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.demo-vars .v-new {
|
|
background: var(--last-bg);
|
|
border-radius: 3px;
|
|
padding: 0 4px;
|
|
}
|
|
|
|
.demo-ctl {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
.ruler {
|
|
display: inline-flex;
|
|
gap: 2px;
|
|
font-family: var(--mono);
|
|
}
|
|
|
|
.ruler-cell {
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
min-width: 20px;
|
|
line-height: 1.1;
|
|
border-radius: 3px;
|
|
padding: 2px 1px;
|
|
}
|
|
|
|
.ruler-cell b {
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.ruler-cell i {
|
|
font-style: normal;
|
|
font-size: 9.5px;
|
|
color: var(--ink-3);
|
|
}
|
|
|
|
.ruler-cell.read {
|
|
background: var(--marker-bg);
|
|
box-shadow: inset 0 -2px var(--marker);
|
|
}
|
|
|
|
.ruler-cell.wrote {
|
|
background: var(--last-bg);
|
|
}
|
|
|
|
.how {
|
|
padding: 36px 0 28px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.how .hero-actions {
|
|
margin-top: 18px;
|
|
}
|
|
|
|
.how h2,
|
|
.home-h2,
|
|
.reference h2 {
|
|
font-size: 24px;
|
|
letter-spacing: -.02em;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.how>p,
|
|
.home-sub {
|
|
color: var(--ink-2);
|
|
max-width: 64ch;
|
|
margin: 0 0 18px;
|
|
}
|
|
|
|
.ways {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
gap: 10px;
|
|
}
|
|
|
|
.way {
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--r-lg);
|
|
background: var(--paper-2);
|
|
padding: 12px 12px 10px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.way h3 {
|
|
font-size: 14px;
|
|
margin: 0 0 2px;
|
|
}
|
|
|
|
.way p {
|
|
margin: 0 0 8px;
|
|
font-size: 12.5px;
|
|
color: var(--ink-2);
|
|
min-height: 3.6em;
|
|
}
|
|
|
|
.way pre {
|
|
margin: 0;
|
|
font-family: var(--mono);
|
|
font-size: 11px;
|
|
line-height: 1.5;
|
|
white-space: pre;
|
|
overflow: hidden;
|
|
color: var(--ink);
|
|
border-top: 1px solid var(--line);
|
|
padding-top: 8px;
|
|
}
|
|
|
|
.problems-head {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 16px;
|
|
flex-wrap: wrap;
|
|
margin: 40px 0 12px;
|
|
}
|
|
|
|
.filters {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.filter {
|
|
font: inherit;
|
|
font-size: 12.5px;
|
|
padding: 3px 10px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--line-2);
|
|
background: var(--paper-2);
|
|
color: var(--ink-2);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.filter.on {
|
|
background: var(--ink);
|
|
color: var(--paper);
|
|
border-color: var(--ink);
|
|
}
|
|
|
|
.search {
|
|
min-width: 220px;
|
|
}
|
|
|
|
.home-group {
|
|
font-size: 13px;
|
|
color: var(--ink-2);
|
|
margin: 20px 0 8px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.card {
|
|
display: block;
|
|
color: inherit;
|
|
background: var(--paper-2);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--r-lg);
|
|
padding: 14px 16px 12px;
|
|
transition: border-color .12s;
|
|
}
|
|
|
|
.card:hover {
|
|
border-color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.card h3 {
|
|
font-size: 15px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.card p {
|
|
margin: 0 0 10px;
|
|
color: var(--ink-2);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.card-meta,
|
|
.card-foot {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 2px;
|
|
}
|
|
|
|
.card-meta {
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.home-foot {
|
|
margin-top: 40px;
|
|
color: var(--ink-2);
|
|
font-size: 12.5px;
|
|
border-top: 1px solid var(--line);
|
|
padding-top: 14px;
|
|
}
|
|
|
|
/* ---------- shell: an IDE layout ---------- */
|
|
.shell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
|
|
.workspace {
|
|
--dock: 68%;
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: grid;
|
|
grid-template-rows: minmax(0, var(--dock)) 6px minmax(0, 1fr);
|
|
}
|
|
|
|
.workspace.dock-collapsed {
|
|
grid-template-rows: minmax(0, 1fr) 0 auto;
|
|
}
|
|
|
|
.workspace.dock-collapsed .splitter-y {
|
|
display: none;
|
|
}
|
|
|
|
.workspace.dock-collapsed .dock-body {
|
|
display: none;
|
|
}
|
|
|
|
.main {
|
|
--split: 54%;
|
|
min-height: 0;
|
|
display: grid;
|
|
grid-template-columns: minmax(280px, var(--split)) 6px minmax(320px, 1fr);
|
|
}
|
|
|
|
.panes,
|
|
.side {
|
|
min-height: 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.side {
|
|
background: var(--paper);
|
|
border-left: 0;
|
|
}
|
|
|
|
/* tabs: file tabs over the editor, panel tabs elsewhere */
|
|
.tabs {
|
|
display: flex;
|
|
gap: 2px;
|
|
padding: 6px 10px 0;
|
|
border-bottom: 1px solid var(--line);
|
|
background: var(--paper);
|
|
overflow-x: auto;
|
|
align-items: flex-end;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.tab {
|
|
font: inherit;
|
|
font-size: 13px;
|
|
padding: 6px 12px;
|
|
border: 1px solid transparent;
|
|
border-bottom: 0;
|
|
border-radius: var(--r) var(--r) 0 0;
|
|
background: transparent;
|
|
color: var(--ink-2);
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.tab:hover {
|
|
color: var(--ink);
|
|
}
|
|
|
|
.tab.active {
|
|
background: var(--paper-2);
|
|
border-color: var(--line);
|
|
color: var(--ink);
|
|
font-weight: 600;
|
|
margin-bottom: -1px;
|
|
}
|
|
|
|
.tab.tab-dim {
|
|
color: var(--ink-3);
|
|
}
|
|
|
|
.pane-tabs .tab-dim .tab-dot {
|
|
opacity: .3;
|
|
}
|
|
|
|
/* the Bridge sets the generated Mojo tab slightly apart from the four languages kept in step */
|
|
.pane-tabs .tab-apart {
|
|
margin-left: 14px;
|
|
}
|
|
|
|
/* where a pane stands against the others: edited here, in step, or not in step */
|
|
.tab-state {
|
|
font-size: 11px;
|
|
margin-left: 5px;
|
|
color: var(--ink-3);
|
|
}
|
|
|
|
.tab-link-stale .tab-state {
|
|
color: var(--warn);
|
|
}
|
|
|
|
.pane-stale {
|
|
color: var(--warn);
|
|
}
|
|
|
|
.badge-generated {
|
|
background: var(--warn-bg);
|
|
color: var(--warn);
|
|
border: 1px dashed currentColor;
|
|
}
|
|
|
|
.tab.tab-dim.active {
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.tab-dot {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
background: var(--ink-3);
|
|
opacity: .7;
|
|
}
|
|
|
|
.tab-lingo .tab-dot {
|
|
background: var(--lang-lingo);
|
|
}
|
|
|
|
.tab-matho .tab-dot {
|
|
background: var(--lang-matho);
|
|
}
|
|
|
|
.tab-pseudo .tab-dot {
|
|
background: var(--lang-pseudo);
|
|
}
|
|
|
|
.tab-speco .tab-dot {
|
|
background: var(--lang-speco);
|
|
}
|
|
|
|
.tab-mojo .tab-dot {
|
|
background: var(--lang-mojo);
|
|
}
|
|
|
|
.tab-asm .tab-dot {
|
|
background: var(--lang-asm);
|
|
}
|
|
|
|
.tab-badge {
|
|
display: inline-block;
|
|
min-width: 16px;
|
|
padding: 0 5px;
|
|
border-radius: 8px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
background: var(--paper-3);
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.tab-badge.err {
|
|
background: var(--err-bg);
|
|
color: var(--err);
|
|
}
|
|
|
|
.tab-badge.warn {
|
|
background: var(--warn-bg);
|
|
color: var(--warn);
|
|
}
|
|
|
|
.tabs .spacer {
|
|
flex: 1;
|
|
}
|
|
|
|
.tabs-tool {
|
|
font-size: 12px;
|
|
color: var(--ink-2);
|
|
padding: 0 4px 6px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.badge {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tab-toggle {
|
|
margin-left: auto;
|
|
font-size: 14px;
|
|
padding: 4px 10px;
|
|
}
|
|
|
|
.inspect-tabs .tab,
|
|
.dock-tabs .tab {
|
|
font-size: 12.5px;
|
|
padding: 5px 10px;
|
|
}
|
|
|
|
.inspect-tabs .tab-toggle {
|
|
margin-left: 4px;
|
|
padding: 3px 8px;
|
|
}
|
|
|
|
/* the editor column */
|
|
.pane-split {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr);
|
|
background: var(--paper-2);
|
|
}
|
|
|
|
.pane-host {
|
|
min-height: 0;
|
|
display: flex;
|
|
}
|
|
|
|
.pane-host .ed {
|
|
flex: 1;
|
|
}
|
|
|
|
.pane-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 4px 12px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: var(--paper);
|
|
font-size: 12px;
|
|
min-height: 30px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.pane-note {
|
|
color: var(--ink-2);
|
|
min-width: 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.pane-note b {
|
|
font-weight: 600;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.tool-label.tool-check {
|
|
gap: 4px;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* the side column: run setup, controls, next, variables, inspect */
|
|
.setup {
|
|
border-bottom: 1px solid var(--line);
|
|
background: var(--paper);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.setup-head {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font: inherit;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--ink-2);
|
|
background: transparent;
|
|
border: 0;
|
|
padding: 6px 12px;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
}
|
|
|
|
.setup-head:hover {
|
|
color: var(--ink);
|
|
}
|
|
|
|
.setup-caret {
|
|
width: 10px;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.setup-summary {
|
|
font-weight: 400;
|
|
font-family: var(--mono);
|
|
font-size: 11.5px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
min-width: 0;
|
|
}
|
|
|
|
.setup-grid {
|
|
display: grid;
|
|
grid-template-columns: auto minmax(0, 1fr);
|
|
gap: 6px 10px;
|
|
align-items: start;
|
|
padding: 2px 12px 10px;
|
|
}
|
|
|
|
.setup-label {
|
|
font-size: 12px;
|
|
color: var(--ink-2);
|
|
padding-top: 5px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.setup-grid .input,
|
|
.setup-grid .select {
|
|
width: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
.setup-ta {
|
|
resize: vertical;
|
|
min-height: 44px;
|
|
line-height: 1.4;
|
|
font-size: 12.5px;
|
|
border: 1px solid var(--line-2);
|
|
border-radius: var(--r);
|
|
padding: 5px 8px;
|
|
background: var(--paper-2);
|
|
color: var(--ink);
|
|
font-family: var(--mono);
|
|
display: block;
|
|
}
|
|
|
|
.run-bar {
|
|
padding: 6px 14px 4px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: var(--paper);
|
|
flex-shrink: 0;
|
|
outline: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.run-bar .run-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.run-bar .run-controls .stepper {
|
|
flex: 1;
|
|
min-width: 320px;
|
|
margin: 0;
|
|
}
|
|
|
|
.run-bar .run-controls .stepper-row2 {
|
|
margin: 0;
|
|
}
|
|
|
|
.run-bar .run-status {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.view-setup {
|
|
padding: 10px 14px 14px;
|
|
}
|
|
|
|
.view-setup .setup-grid {
|
|
max-width: 760px;
|
|
padding: 0;
|
|
}
|
|
|
|
.setup-note {
|
|
margin: 10px 0 0;
|
|
max-width: 76ch;
|
|
}
|
|
|
|
.tab-note {
|
|
font-size: 11px;
|
|
color: var(--ink-3);
|
|
font-weight: 400;
|
|
max-width: 240px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tab.active .tab-note {
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.run-bar:focus-visible {
|
|
box-shadow: inset 0 0 0 2px var(--accent);
|
|
}
|
|
|
|
.run-controls .stepper {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.run-controls .stepper-row2 {
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.run-controls .stepper .btn,
|
|
.run-controls .stepper-row2 .btn {
|
|
padding: 3px 8px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.run-status {
|
|
font-size: 11.5px;
|
|
color: var(--ink-2);
|
|
min-height: 0;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.run-status:empty {
|
|
display: none;
|
|
}
|
|
|
|
.next-host {
|
|
padding: 8px 12px 0;
|
|
background: var(--paper);
|
|
flex-shrink: 0;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.next-host .trace-next {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.next-host .predict {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.side-split {
|
|
--right: 50%;
|
|
flex: 1;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
display: grid;
|
|
grid-template-rows: minmax(60px, var(--right)) 6px minmax(60px, 1fr);
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
|
|
.side-split.inspect-max {
|
|
grid-template-rows: minmax(60px, 1fr);
|
|
}
|
|
|
|
.side-split.inspect-max .panel-vars,
|
|
.side-split.inspect-max>.splitter {
|
|
display: none;
|
|
}
|
|
|
|
.panel {
|
|
min-height: 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--paper-2);
|
|
}
|
|
|
|
.panel-title {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--ink-2);
|
|
padding: 6px 12px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: var(--paper);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.panel-body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
padding: 8px 12px 16px;
|
|
}
|
|
|
|
.vars-host .vars-tbl {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.inspect-host {
|
|
padding: 0;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.inspect-view {
|
|
padding: 8px 12px 16px;
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
}
|
|
|
|
.inspect-view.view {
|
|
padding: 10px 12px 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.inspect-view.view>.viz-scroll {
|
|
flex: 1;
|
|
min-height: 0;
|
|
max-height: none;
|
|
min-width: 0;
|
|
width: 100%;
|
|
align-self: stretch;
|
|
}
|
|
|
|
.inspect-view.view>.viz-head {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.legend {
|
|
font-size: 11.5px;
|
|
color: var(--ink-2);
|
|
position: relative;
|
|
align-self: center;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.legend summary {
|
|
cursor: pointer;
|
|
list-style: none;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--line);
|
|
}
|
|
|
|
.legend summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.legend[open] summary {
|
|
background: var(--paper-3);
|
|
}
|
|
|
|
.legend-list {
|
|
position: absolute;
|
|
right: 0;
|
|
top: calc(100% + 4px);
|
|
z-index: 5;
|
|
background: var(--paper-2);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--r);
|
|
box-shadow: var(--shadow);
|
|
padding: 8px 10px;
|
|
display: grid;
|
|
gap: 4px;
|
|
min-width: 190px;
|
|
}
|
|
|
|
.legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* the dock */
|
|
.dock {
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--paper-2);
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
.dock-body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
}
|
|
|
|
.view {
|
|
padding: 10px 14px 20px;
|
|
}
|
|
|
|
.view-output {
|
|
padding: 8px 14px 14px;
|
|
}
|
|
|
|
.view-output .trace-output {
|
|
margin: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
padding: 0;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.output-empty {
|
|
margin: 0;
|
|
}
|
|
|
|
.splitter {
|
|
background: var(--line);
|
|
cursor: col-resize;
|
|
position: relative;
|
|
touch-action: none;
|
|
}
|
|
|
|
.splitter::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0 -4px;
|
|
}
|
|
|
|
.splitter:hover,
|
|
.splitter.dragging,
|
|
.splitter:focus-visible {
|
|
background: var(--accent);
|
|
outline: none;
|
|
}
|
|
|
|
body.resizing {
|
|
cursor: col-resize;
|
|
user-select: none;
|
|
}
|
|
|
|
body.resizing-y {
|
|
cursor: row-resize;
|
|
}
|
|
|
|
.splitter-y {
|
|
cursor: row-resize;
|
|
}
|
|
|
|
.splitter-y::after {
|
|
inset: -4px 0;
|
|
}
|
|
|
|
body.resizing iframe,
|
|
body.resizing textarea {
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* narrow screens: everything stacks */
|
|
@media (max-width: 900px) {
|
|
.shell {
|
|
height: auto;
|
|
min-height: 100%;
|
|
}
|
|
|
|
.workspace {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.main>.splitter,
|
|
.workspace>.splitter,
|
|
.side-split>.splitter {
|
|
display: none;
|
|
}
|
|
|
|
.panes {
|
|
min-height: 320px;
|
|
}
|
|
|
|
.pane-host .ed {
|
|
min-height: 300px;
|
|
}
|
|
|
|
.side-split {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.panel-body {
|
|
max-height: 360px;
|
|
}
|
|
|
|
.dock-body {
|
|
max-height: 50vh;
|
|
}
|
|
}
|
|
|
|
/* step colors: what a step does, the same everywhere */
|
|
:root {
|
|
--k-write: #2f5bea;
|
|
--k-decision: #b5700d;
|
|
--k-loop: #7a3fc4;
|
|
--k-call: #0f7b6c;
|
|
--k-return: #1f9d63;
|
|
--k-io: #b4247a;
|
|
--k-life: #8a919c;
|
|
--k-error: #d64545;
|
|
--k-other: #c9cfd8;
|
|
--lang-lingo: #1f9d63;
|
|
--lang-matho: #b5700d;
|
|
--lang-pseudo: #2f5bea;
|
|
--lang-speco: #7a3fc4;
|
|
--lang-mojo: #e0592a;
|
|
--lang-asm: #5c6370;
|
|
}
|
|
|
|
:root[data-theme="dark"] {
|
|
--k-write: #8db0ff;
|
|
--k-decision: #f0b860;
|
|
--k-loop: #c9a7ff;
|
|
--k-call: #5fd3c6;
|
|
--k-return: #5fd39a;
|
|
--k-io: #f49ac2;
|
|
--k-life: #7c8594;
|
|
--k-error: #ff8585;
|
|
--k-other: #3b4452;
|
|
--lang-mojo: #ff8a5c;
|
|
--lang-asm: #a7afbc;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root:not([data-theme="light"]):not([data-theme="dark"]) {
|
|
--k-write: #8db0ff;
|
|
--k-decision: #f0b860;
|
|
--k-loop: #c9a7ff;
|
|
--k-call: #5fd3c6;
|
|
--k-return: #5fd39a;
|
|
--k-io: #f49ac2;
|
|
--k-life: #7c8594;
|
|
--k-error: #ff8585;
|
|
--k-other: #3b4452;
|
|
--lang-mojo: #ff8a5c;
|
|
--lang-asm: #a7afbc;
|
|
}
|
|
}
|
|
|
|
.k-dot {
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--k-other);
|
|
margin-right: 5px;
|
|
vertical-align: middle;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.k-dot.k-write {
|
|
background: var(--k-write);
|
|
}
|
|
|
|
.k-dot.k-decision {
|
|
background: var(--k-decision);
|
|
}
|
|
|
|
.k-dot.k-loop {
|
|
background: var(--k-loop);
|
|
}
|
|
|
|
.k-dot.k-call {
|
|
background: var(--k-call);
|
|
}
|
|
|
|
.k-dot.k-return {
|
|
background: var(--k-return);
|
|
}
|
|
|
|
.k-dot.k-io {
|
|
background: var(--k-io);
|
|
}
|
|
|
|
.k-dot.k-life {
|
|
background: var(--k-life);
|
|
}
|
|
|
|
.k-dot.k-error {
|
|
background: var(--k-error);
|
|
}
|
|
|
|
.trace-tbl tr.k-write td:first-child {
|
|
box-shadow: inset 3px 0 var(--k-write);
|
|
}
|
|
|
|
.trace-tbl tr.k-decision td:first-child {
|
|
box-shadow: inset 3px 0 var(--k-decision);
|
|
}
|
|
|
|
.trace-tbl tr.k-loop td:first-child {
|
|
box-shadow: inset 3px 0 var(--k-loop);
|
|
}
|
|
|
|
.trace-tbl tr.k-call td:first-child {
|
|
box-shadow: inset 3px 0 var(--k-call);
|
|
}
|
|
|
|
.trace-tbl tr.k-return td:first-child {
|
|
box-shadow: inset 3px 0 var(--k-return);
|
|
}
|
|
|
|
.trace-tbl tr.k-io td:first-child {
|
|
box-shadow: inset 3px 0 var(--k-io);
|
|
}
|
|
|
|
.trace-tbl tr.k-life td:first-child {
|
|
box-shadow: inset 3px 0 var(--k-life);
|
|
}
|
|
|
|
.trace-tbl tr.k-error td:first-child {
|
|
box-shadow: inset 3px 0 var(--k-error);
|
|
}
|
|
|
|
.trace-tbl .step-no {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.trace-next.k-write {
|
|
border-left-color: var(--k-write);
|
|
}
|
|
|
|
.trace-next.k-decision {
|
|
border-left-color: var(--k-decision);
|
|
}
|
|
|
|
.trace-next.k-loop {
|
|
border-left-color: var(--k-loop);
|
|
}
|
|
|
|
.trace-next.k-call {
|
|
border-left-color: var(--k-call);
|
|
}
|
|
|
|
.trace-next.k-return {
|
|
border-left-color: var(--k-return);
|
|
}
|
|
|
|
.trace-next.k-io {
|
|
border-left-color: var(--k-io);
|
|
}
|
|
|
|
.trace-next.k-life {
|
|
border-left-color: var(--k-life);
|
|
}
|
|
|
|
.trace-next.k-error {
|
|
border-left-color: var(--k-error);
|
|
background: var(--err-bg);
|
|
}
|
|
|
|
.trace-next.k-done {
|
|
border-left-color: var(--ok);
|
|
background: var(--ok-bg);
|
|
}
|
|
|
|
.trace-next.k-empty {
|
|
border-left-color: var(--line-2);
|
|
background: var(--paper-3);
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
/* ---------- editor (CodeMirror 6, vendored) ---------- */
|
|
.ed {
|
|
position: relative;
|
|
display: flex;
|
|
min-height: 120px;
|
|
min-width: 0;
|
|
background: var(--paper-2);
|
|
font-family: var(--mono);
|
|
font-size: 13px;
|
|
line-height: 20px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ed .cm-editor {
|
|
flex: 1;
|
|
min-width: 0;
|
|
height: 100%;
|
|
outline: none !important;
|
|
}
|
|
|
|
.ed .cm-scroller {
|
|
font: inherit;
|
|
line-height: inherit;
|
|
overflow: auto;
|
|
}
|
|
|
|
.ed .cm-content {
|
|
padding: 8px 0;
|
|
caret-color: var(--ink);
|
|
tab-size: 4;
|
|
}
|
|
|
|
.ed .cm-line {
|
|
padding: 0 12px;
|
|
}
|
|
|
|
.ed .cm-gutters {
|
|
background: var(--paper);
|
|
border-right: 1px solid var(--line);
|
|
color: var(--ink-3);
|
|
font-size: 11.5px;
|
|
user-select: none;
|
|
}
|
|
|
|
.ed .cm-gutterElement {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.ed .cm-lineNumbers .cm-gutterElement {
|
|
padding: 0 4px 0 6px;
|
|
justify-content: flex-end;
|
|
min-width: 28px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ed .cm-lineNumbers .cm-gutterElement:hover {
|
|
color: var(--ink);
|
|
}
|
|
|
|
.ed .ed-g-marks .cm-gutterElement {
|
|
width: 16px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.ed .ed-g-hits .cm-gutterElement {
|
|
width: 34px;
|
|
justify-content: flex-end;
|
|
padding-right: 2px;
|
|
}
|
|
|
|
.ed .ed-g-arrow .cm-gutterElement {
|
|
width: 16px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.ed .ed-mark {
|
|
cursor: pointer;
|
|
font-size: 9px;
|
|
}
|
|
|
|
.ed .ed-mark-error {
|
|
color: var(--err);
|
|
}
|
|
|
|
.ed .ed-mark-warning {
|
|
color: var(--warn);
|
|
}
|
|
|
|
.ed .ed-mark-note {
|
|
color: var(--ink-3);
|
|
}
|
|
|
|
.ed .ed-hits {
|
|
color: var(--ink-3);
|
|
font-size: 10.5px;
|
|
}
|
|
|
|
.ed .ed-arrow {
|
|
color: var(--accent);
|
|
font-size: 10px;
|
|
}
|
|
|
|
.ed .cm-gutterElement.ed-gcurrent {
|
|
background: var(--marker-bg);
|
|
}
|
|
|
|
.ed .cm-lineNumbers .cm-gutterElement.ed-gbreak {
|
|
color: var(--err);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.ed .cm-lineNumbers .cm-gutterElement.ed-gbreak::before {
|
|
content: '●';
|
|
font-size: 8px;
|
|
margin-right: 3px;
|
|
}
|
|
|
|
.ed .cm-placeholder {
|
|
color: var(--ink-3);
|
|
opacity: .8;
|
|
font-style: normal;
|
|
}
|
|
|
|
.ed .cm-content ::selection,
|
|
.ed .cm-selectionBackground {
|
|
background: rgba(47, 91, 234, .22) !important;
|
|
}
|
|
|
|
.ed .cm-cursor {
|
|
border-left-color: var(--ink);
|
|
}
|
|
|
|
.ed .cm-matchingBracket {
|
|
background: var(--accent-bg);
|
|
outline: 1px solid var(--line-2);
|
|
}
|
|
|
|
.ed .cm-nonmatchingBracket {
|
|
color: var(--err);
|
|
}
|
|
|
|
.ed .cm-selectionMatch {
|
|
background: rgba(246, 196, 83, .35);
|
|
}
|
|
|
|
.ed .cm-searchMatch {
|
|
background: var(--marker-bg);
|
|
outline: 1px solid var(--marker);
|
|
}
|
|
|
|
.ed .cm-searchMatch-selected {
|
|
background: var(--marker);
|
|
}
|
|
|
|
.ed .cm-panels {
|
|
background: var(--paper);
|
|
border-bottom: 1px solid var(--line);
|
|
color: var(--ink);
|
|
font-family: var(--sans);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.ed .cm-panel.cm-search {
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
.ed .cm-panel.cm-search input,
|
|
.ed .cm-panel.cm-search button {
|
|
font: inherit;
|
|
font-size: 12px;
|
|
border: 1px solid var(--line-2);
|
|
border-radius: 4px;
|
|
background: var(--paper-2);
|
|
color: var(--ink);
|
|
padding: 2px 6px;
|
|
margin: 0 4px 2px 0;
|
|
}
|
|
|
|
.ed .cm-panel.cm-search label {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.ed-ro .cm-content {
|
|
cursor: default;
|
|
}
|
|
|
|
.ed-ro .cm-cursor {
|
|
display: none;
|
|
}
|
|
|
|
|
|
.ed-compact {
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.ed .ed-line-error {
|
|
box-shadow: inset 0 -2px var(--err);
|
|
}
|
|
|
|
.ed .ed-line-warning {
|
|
box-shadow: inset 0 -1px var(--warn);
|
|
}
|
|
|
|
.ed .ed-current {
|
|
background: var(--marker-bg);
|
|
box-shadow: inset 3px 0 var(--marker);
|
|
}
|
|
|
|
.ed .ed-last {
|
|
background: var(--last-bg);
|
|
}
|
|
|
|
.ed .ed-linked {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.ed-msg {
|
|
font-style: italic;
|
|
font-size: 11.5px;
|
|
opacity: .9;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ed-msg-error {
|
|
color: var(--err);
|
|
}
|
|
|
|
.ed-msg-warning {
|
|
color: var(--warn);
|
|
}
|
|
|
|
.ed-msg-note {
|
|
color: var(--ink-3);
|
|
}
|
|
|
|
.tok-keyword {
|
|
color: var(--tok-keyword);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tok-builtin {
|
|
color: var(--tok-builtin);
|
|
}
|
|
|
|
.tok-string {
|
|
color: var(--tok-string);
|
|
}
|
|
|
|
.tok-number {
|
|
color: var(--tok-number);
|
|
}
|
|
|
|
.tok-comment {
|
|
color: var(--tok-comment);
|
|
font-style: italic;
|
|
}
|
|
|
|
.tok-label {
|
|
color: var(--tok-label);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tok-op {
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.tok-error {
|
|
color: var(--err);
|
|
text-decoration: underline wavy;
|
|
text-decoration-skip-ink: none;
|
|
}
|
|
|
|
.tok-punct {
|
|
color: var(--ink-3);
|
|
}
|
|
|
|
/* Mojo: the words of ownership stand out, since they are what Programming+ teaches about Mojo */
|
|
.tok-convention {
|
|
color: var(--tok-keyword);
|
|
font-style: italic;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tok-transfer {
|
|
color: var(--accent);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.tok-name {
|
|
color: var(--ink);
|
|
}
|
|
|
|
/* ---------- step through ---------- */
|
|
.stepper {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.stepper .btn {
|
|
min-width: 34px;
|
|
}
|
|
|
|
.stepper-slider {
|
|
flex: 1;
|
|
min-width: 120px;
|
|
accent-color: var(--accent);
|
|
}
|
|
|
|
.stepper-count {
|
|
font-size: 12.5px;
|
|
color: var(--ink-2);
|
|
white-space: nowrap;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.stepper-row2 {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 8px;
|
|
font-size: 12.5px;
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.speed {
|
|
width: 90px;
|
|
accent-color: var(--accent);
|
|
}
|
|
|
|
.trace-status {
|
|
font-size: 12.5px;
|
|
color: var(--ink-2);
|
|
/* one line, filled or empty: an empty status had a shorter box than a full one, so the stepper moved 4px */
|
|
line-height: 19px;
|
|
height: 19px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.trace-next {
|
|
background: var(--marker-bg);
|
|
border-left: 3px solid var(--marker);
|
|
padding: 6px 10px;
|
|
border-radius: 4px;
|
|
margin-bottom: 10px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.trace-next .mono {
|
|
font-size: 12.5px;
|
|
}
|
|
|
|
/* What runs next holds one height on every step: two lines, each cut with an ellipsis instead of wrapping
|
|
(the tooltip has the whole text). A message on its own, such as the end of the run, may use both lines. */
|
|
.trace-next {
|
|
/* two line boxes of 19px; the padding comes on top (content-box) */
|
|
line-height: 19px;
|
|
height: 38px;
|
|
box-sizing: content-box;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.trace-next-line {
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 1;
|
|
overflow: hidden;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.trace-next-line:only-child {
|
|
-webkit-line-clamp: 2;
|
|
}
|
|
|
|
.trace-next-sub {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.predict {
|
|
background: var(--paper-3);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--r);
|
|
padding: 8px 10px;
|
|
margin-bottom: 10px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.predict-row {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.predict-score {
|
|
font-size: 12px;
|
|
color: var(--ink-2);
|
|
margin-left: auto;
|
|
}
|
|
|
|
.predict-right {
|
|
color: var(--ok);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.predict-wrong {
|
|
color: var(--err);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.trace-output {
|
|
background: var(--paper);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--r);
|
|
padding: 8px 10px;
|
|
margin: 10px 0 0;
|
|
font-size: 12.5px;
|
|
white-space: pre-wrap;
|
|
font-family: var(--mono);
|
|
}
|
|
|
|
.trace-cols {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 16px;
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.trace-cols {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.trace-col {
|
|
min-width: 0;
|
|
}
|
|
|
|
.trace-empty {
|
|
padding: 12px 0;
|
|
}
|
|
|
|
.tbl {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
font-size: 12.5px;
|
|
}
|
|
|
|
.tbl caption {
|
|
text-align: left;
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
color: var(--ink-2);
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.tbl th {
|
|
text-align: left;
|
|
font-weight: 600;
|
|
font-size: 11.5px;
|
|
color: var(--ink-2);
|
|
padding: 3px 6px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.tbl td {
|
|
padding: 3px 6px;
|
|
border-bottom: 1px solid var(--line);
|
|
vertical-align: top;
|
|
}
|
|
|
|
.trace-tbl tr {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.trace-tbl tr:hover td {
|
|
background: var(--paper-3);
|
|
}
|
|
|
|
.row-last td {
|
|
background: var(--last-bg);
|
|
}
|
|
|
|
.row-next td {
|
|
background: var(--marker-bg);
|
|
}
|
|
|
|
.just-wrote td,
|
|
.just-wrote {
|
|
background: var(--last-bg);
|
|
}
|
|
|
|
.about-to-read td {
|
|
box-shadow: inset 3px 0 var(--marker);
|
|
}
|
|
|
|
.vars-tbl {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.var-hist {
|
|
color: var(--ink-3);
|
|
font-size: 11.5px;
|
|
}
|
|
|
|
.var-hist .linkish {
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.var-ruler {
|
|
padding: 2px 6px 6px;
|
|
}
|
|
|
|
.flags {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.flag {
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
padding: 2px 8px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 4px;
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.flag.on {
|
|
background: var(--accent-bg);
|
|
color: var(--accent);
|
|
border-color: transparent;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.flag.just-wrote {
|
|
outline: 2px solid var(--accent);
|
|
}
|
|
|
|
.mem-region {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.mem-label {
|
|
font-size: 11.5px;
|
|
color: var(--ink-2);
|
|
margin-bottom: 2px;
|
|
font-family: var(--mono);
|
|
}
|
|
|
|
.mem-cells {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 2px;
|
|
}
|
|
|
|
.mem-cell {
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 26px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 3px;
|
|
font-family: var(--mono);
|
|
line-height: 1.1;
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.mem-cell b {
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.mem-cell i {
|
|
font-style: normal;
|
|
font-size: 9.5px;
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.mem-cell.touched {
|
|
background: var(--marker-bg);
|
|
border-color: var(--marker);
|
|
}
|
|
|
|
.explain ul {
|
|
margin: 4px 0 0;
|
|
padding-left: 18px;
|
|
}
|
|
|
|
/* ---------- other views ---------- */
|
|
.problems,
|
|
.obligations,
|
|
.failures,
|
|
.facts {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.problem {
|
|
display: grid;
|
|
grid-template-columns: 14px auto 1fr auto auto;
|
|
gap: 8px;
|
|
align-items: start;
|
|
padding: 7px 0;
|
|
border-bottom: 1px solid var(--line);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.problem-sev {
|
|
font-size: 10px;
|
|
padding-top: 3px;
|
|
}
|
|
|
|
.problem-error .problem-sev {
|
|
color: var(--err);
|
|
}
|
|
|
|
.problem-warning .problem-sev {
|
|
color: var(--warn);
|
|
}
|
|
|
|
.problem-note .problem-sev {
|
|
color: var(--ink-3);
|
|
}
|
|
|
|
.problem-guide {
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.problem-question {
|
|
grid-column: 3 / -1;
|
|
background: var(--paper);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--r);
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
.problem-q {
|
|
font-size: 12.5px;
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.proof-counts {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.proof-unit {
|
|
margin-bottom: 10px;
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--r);
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
.proof-unit summary {
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.obligation {
|
|
display: grid;
|
|
grid-template-columns: auto auto 1fr;
|
|
gap: 8px;
|
|
align-items: baseline;
|
|
padding: 6px 0;
|
|
border-top: 1px solid var(--line);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.ob-detail {
|
|
grid-column: 1 / -1;
|
|
font-size: 12.5px;
|
|
}
|
|
|
|
.ob-detail summary {
|
|
color: var(--ink-2);
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.facts li {
|
|
padding: 1px 0 1px 12px;
|
|
}
|
|
|
|
.goal {
|
|
padding: 2px 0 2px 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tests-unit {
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.failures li {
|
|
padding: 3px 0;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.perf-tbl {
|
|
max-width: 520px;
|
|
}
|
|
|
|
.perf-tbl td:first-child {
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.bounds {
|
|
padding-left: 18px;
|
|
}
|
|
|
|
.compile-out {
|
|
border-bottom: 1px solid var(--line);
|
|
background: var(--paper);
|
|
padding: 8px 12px;
|
|
max-height: 45%;
|
|
overflow: auto;
|
|
font-size: 12.5px;
|
|
}
|
|
|
|
.compile-head {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.compile-err {
|
|
color: var(--err);
|
|
white-space: pre-wrap;
|
|
margin: 0 0 6px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.compile-std {
|
|
white-space: pre-wrap;
|
|
margin: 0 0 6px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.compile-section {
|
|
margin: 10px 0 14px;
|
|
}
|
|
|
|
.compile-section h4 {
|
|
margin: 0 0 6px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.asm-fn,
|
|
.asm-library {
|
|
border: 1px solid var(--line);
|
|
border-radius: 6px;
|
|
padding: 4px 8px;
|
|
margin: 6px 0;
|
|
}
|
|
|
|
.asm-fn summary,
|
|
.asm-library summary {
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.asm-fn-library,
|
|
.asm-fn-entry {
|
|
border-style: dashed;
|
|
}
|
|
|
|
.asm-fn-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.asm-src {
|
|
color: var(--ink-3);
|
|
user-select: none;
|
|
}
|
|
|
|
button.asm-src {
|
|
font: inherit;
|
|
padding: 0;
|
|
border: 0;
|
|
background: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button.asm-src:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.compile-asm {
|
|
margin: 0;
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
white-space: pre;
|
|
}
|
|
|
|
/* ---------- dialogs, tooltip ---------- */
|
|
.share {
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--r-lg);
|
|
padding: 18px 20px;
|
|
width: min(720px, 92vw);
|
|
background: var(--paper-2);
|
|
color: var(--ink);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.share::backdrop {
|
|
background: rgba(10, 12, 18, .4);
|
|
}
|
|
|
|
.share h3 {
|
|
font-size: 17px;
|
|
}
|
|
|
|
.share-row {
|
|
display: grid;
|
|
grid-template-columns: 110px 1fr auto;
|
|
gap: 8px;
|
|
align-items: center;
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.share-row label {
|
|
font-size: 12.5px;
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.share-actions {
|
|
text-align: right;
|
|
margin-top: 10px;
|
|
display: flex;
|
|
gap: 8px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.keys {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
gap: 6px 14px;
|
|
font-size: 13px;
|
|
align-items: center;
|
|
}
|
|
|
|
.tip {
|
|
position: fixed;
|
|
z-index: 50;
|
|
background: var(--paper-2);
|
|
color: var(--ink);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--r);
|
|
padding: 8px 10px;
|
|
box-shadow: var(--shadow);
|
|
font-size: 12.5px;
|
|
line-height: 1.4;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.tip-title {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
.tip-title code {
|
|
font-weight: 600;
|
|
font-size: 12.5px;
|
|
}
|
|
|
|
.tip-where {
|
|
color: var(--ink-2);
|
|
font-size: 11px;
|
|
}
|
|
|
|
/* ---------- reference ---------- */
|
|
.reference {
|
|
margin: 36px 0 24px;
|
|
}
|
|
|
|
.ref-nav {
|
|
display: flex;
|
|
gap: 14px;
|
|
flex-wrap: wrap;
|
|
margin: 6px 0 14px;
|
|
font-size: 13.5px;
|
|
}
|
|
|
|
.ref-lang {
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--r-lg);
|
|
background: var(--paper-2);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.ref-lang>summary {
|
|
list-style: none;
|
|
cursor: pointer;
|
|
padding: 12px 16px;
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: baseline;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.ref-lang>summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.ref-lang>summary::before {
|
|
content: '▸';
|
|
color: var(--ink-3);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.ref-lang[open]>summary::before {
|
|
content: '▾';
|
|
}
|
|
|
|
.ref-lang>summary h3 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.ref-body {
|
|
padding: 0 16px 16px;
|
|
}
|
|
|
|
.ref-toc {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
font-size: 12.5px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.ref-section {
|
|
margin-top: 18px;
|
|
}
|
|
|
|
.ref-section h4 {
|
|
font-size: 14px;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.ref-table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.ref-table th {
|
|
text-align: left;
|
|
font-size: 11.5px;
|
|
color: var(--ink-2);
|
|
font-weight: 600;
|
|
padding: 4px 8px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.ref-table td {
|
|
padding: 6px 8px;
|
|
border-bottom: 1px solid var(--line);
|
|
vertical-align: top;
|
|
}
|
|
|
|
.ref-term {
|
|
white-space: nowrap;
|
|
max-width: 320px;
|
|
}
|
|
|
|
.ref-term code {
|
|
white-space: pre-wrap;
|
|
font-size: 12.5px;
|
|
}
|
|
|
|
.ref-meaning {
|
|
min-width: 220px;
|
|
}
|
|
|
|
.ref-extra {
|
|
min-width: 200px;
|
|
}
|
|
|
|
.ref-code {
|
|
margin: 0;
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
white-space: pre;
|
|
background: var(--paper);
|
|
border: 1px solid var(--line);
|
|
border-radius: 5px;
|
|
padding: 6px 8px;
|
|
overflow-x: auto;
|
|
max-width: 520px;
|
|
}
|
|
|
|
/* ---------- embed ---------- */
|
|
.embed {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
min-height: 100vh;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.embed-title {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 6px 12px;
|
|
border-bottom: 1px solid var(--line);
|
|
font-size: 12.5px;
|
|
}
|
|
|
|
.embed-open {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.embed-reset {
|
|
margin-left: auto;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.embed-pane-label {
|
|
font-size: 12px;
|
|
color: var(--ink-2);
|
|
padding: 6px 12px 0;
|
|
}
|
|
|
|
.embed .ed {
|
|
min-height: 120px;
|
|
max-height: 45vh;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.embed-row {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: center;
|
|
padding: 6px 12px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.embed-call {
|
|
flex: 1;
|
|
}
|
|
|
|
.embed-panel {
|
|
flex: 1;
|
|
overflow: auto;
|
|
}
|
|
|
|
.embed .trace-cols {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.embed-foot {
|
|
display: none;
|
|
}
|
|
|
|
/* A fixed-height embed: the editors on top, the panel below, a draggable divider between them.
|
|
--embed-top (set by the divider) is the editors' share; they take most of the frame by default. */
|
|
.embed:not(.embed-autosize) {
|
|
height: 100vh;
|
|
min-height: 0;
|
|
}
|
|
|
|
.embed-split {
|
|
--embed-top: 70%;
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: grid;
|
|
grid-template-rows: minmax(0, calc(var(--embed-top) - 3px)) 6px minmax(0, 1fr);
|
|
}
|
|
|
|
.embed-top {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.embed-top>.embed-pane-label,
|
|
.embed-top>.embed-row {
|
|
flex: none;
|
|
}
|
|
|
|
.embed-split .embed-top .ed {
|
|
flex: 1 1 0;
|
|
min-height: 48px;
|
|
max-height: none;
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.embed-top>.embed-row {
|
|
border-top: 1px solid var(--line);
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.embed-split>.splitter-y::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
width: 36px;
|
|
height: 2px;
|
|
margin: -1px 0 0 -18px;
|
|
border-radius: 1px;
|
|
background: var(--ink-3);
|
|
opacity: .6;
|
|
}
|
|
|
|
.embed-split>.embed-panel {
|
|
min-height: 0;
|
|
overflow: auto;
|
|
}
|
|
|
|
/* height="auto" embeds: the content decides the height, and the host grows the frame to match */
|
|
.embed-autosize {
|
|
min-height: 0;
|
|
height: auto;
|
|
}
|
|
|
|
.embed-autosize .ed {
|
|
max-height: none;
|
|
}
|
|
|
|
.embed-autosize .embed-panel {
|
|
flex: none;
|
|
overflow: visible;
|
|
}
|
|
|
|
.embed-autosize .viz-scroll {
|
|
max-height: none;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.workspace {
|
|
grid-template-columns: 1fr !important;
|
|
grid-template-rows: minmax(0, 1fr) 6px minmax(0, 1fr);
|
|
}
|
|
|
|
.workspace>.splitter {
|
|
cursor: row-resize;
|
|
}
|
|
|
|
.workspace.views-collapsed {
|
|
grid-template-rows: minmax(0, 1fr) 6px 40px;
|
|
}
|
|
|
|
.workspace.views-collapsed .view-tabs {
|
|
flex-direction: row;
|
|
height: auto;
|
|
}
|
|
|
|
.workspace.views-collapsed .view-tabs .tab {
|
|
writing-mode: horizontal-tb;
|
|
transform: none;
|
|
}
|
|
|
|
.input {
|
|
min-width: 140px;
|
|
}
|
|
|
|
.hero {
|
|
grid-template-columns: 1fr;
|
|
gap: 24px;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 34px;
|
|
}
|
|
|
|
.ways {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
|
|
.ref-table,
|
|
.ref-table thead,
|
|
.ref-table tbody,
|
|
.ref-table tr,
|
|
.ref-table td {
|
|
display: block;
|
|
}
|
|
|
|
.ref-table th {
|
|
display: none;
|
|
}
|
|
|
|
.ref-term {
|
|
white-space: normal;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
.ways {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.home {
|
|
padding: 0 16px 48px;
|
|
}
|
|
}
|
|
|
|
.way pre {
|
|
max-height: 150px;
|
|
-webkit-mask-image: linear-gradient(#000 70%, transparent);
|
|
mask-image: linear-gradient(#000 70%, transparent);
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Home: pitch sections */
|
|
/* ------------------------------------------------------------------ */
|
|
.home-nav a.on {
|
|
color: var(--ink);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.lede-2 {
|
|
color: var(--ink-2);
|
|
max-width: 72ch;
|
|
margin: 0 0 20px;
|
|
font-size: 15px;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.hub {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
|
|
gap: 12px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.hub-col {
|
|
display: grid;
|
|
gap: 12px;
|
|
align-content: stretch;
|
|
}
|
|
|
|
.hub .way {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.hub .way p {
|
|
min-height: 0;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.hub .way pre {
|
|
flex: 1;
|
|
}
|
|
|
|
.hub-center {
|
|
border: 1px solid var(--ink);
|
|
border-radius: var(--r-lg);
|
|
background: var(--paper-2);
|
|
padding: 16px 16px 12px;
|
|
min-width: 0;
|
|
box-shadow: var(--shadow);
|
|
position: relative;
|
|
}
|
|
|
|
.hub-center::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: -1px;
|
|
border-radius: inherit;
|
|
pointer-events: none;
|
|
box-shadow: 0 0 0 3px var(--marker-bg);
|
|
}
|
|
|
|
.hub-center h3 {
|
|
font-size: 20px;
|
|
margin: 0 0 4px;
|
|
letter-spacing: -.01em;
|
|
}
|
|
|
|
.hub-center>p {
|
|
margin: 0 0 10px;
|
|
font-size: 13px;
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.hub-center pre {
|
|
margin: 0;
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
white-space: pre;
|
|
overflow-x: auto;
|
|
border-top: 1px solid var(--line);
|
|
padding-top: 10px;
|
|
}
|
|
|
|
.demo-out {
|
|
margin: 0;
|
|
padding: 6px 10px;
|
|
font-family: var(--mono);
|
|
font-size: 12.5px;
|
|
white-space: pre-wrap;
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--r);
|
|
background: var(--paper-2);
|
|
max-height: 140px;
|
|
overflow: auto;
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.demo-stop {
|
|
color: var(--err);
|
|
}
|
|
|
|
.demo-frame {
|
|
color: var(--accent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.ref-prints {
|
|
display: block;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.input-lines {
|
|
resize: none;
|
|
min-height: 30px;
|
|
line-height: 1.4;
|
|
padding: 5px 8px;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.hub {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.hub-center {
|
|
order: -1;
|
|
}
|
|
}
|
|
|
|
.demo-vars>span {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.demo-vars .ruler {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.demo-foot {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.demo-ctl {
|
|
display: flex;
|
|
gap: 4px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.demo-ctl .btn {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.demo-ctl a.btn {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.toolbar .input-lines {
|
|
min-width: 120px;
|
|
width: 180px;
|
|
}
|
|
|
|
.toolbar:has(.input-lines) .input {
|
|
min-width: 170px;
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
.home-nav {
|
|
flex-wrap: wrap;
|
|
gap: 10px 12px;
|
|
}
|
|
|
|
.home-nav .brand {
|
|
flex-basis: 100%;
|
|
}
|
|
|
|
.home-nav .spacer {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* ---------- pictures of the procedure: flowchart, data flow, trace table ---------- */
|
|
.viz-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 8px;
|
|
font-size: 12.5px;
|
|
}
|
|
|
|
.viz-title {
|
|
font-family: var(--mono);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.viz-scroll {
|
|
overflow: auto;
|
|
max-width: 100%;
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--r-lg);
|
|
background: var(--paper-2);
|
|
padding: 8px;
|
|
}
|
|
|
|
.flow-svg {
|
|
display: block;
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.flow-svg text {
|
|
fill: var(--ink);
|
|
}
|
|
|
|
.flow-shape {
|
|
stroke: var(--ink-2);
|
|
stroke-width: 1.2;
|
|
}
|
|
|
|
.flow-term {
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.flow-edge {
|
|
fill: none;
|
|
stroke: var(--ink-2);
|
|
stroke-width: 1.4;
|
|
}
|
|
|
|
.flow-back {
|
|
stroke-dasharray: 4 3;
|
|
}
|
|
|
|
.flow-arrowhead {
|
|
fill: var(--ink-2);
|
|
}
|
|
|
|
.flow-badge {
|
|
fill: var(--paper-3);
|
|
stroke: var(--line);
|
|
}
|
|
|
|
.flow-badge-never {
|
|
fill: var(--warn-bg);
|
|
stroke: var(--warn);
|
|
}
|
|
|
|
.flow-badge-text {
|
|
font-size: 10.5px;
|
|
fill: var(--ink-2);
|
|
}
|
|
|
|
.flow-never .flow-shape {
|
|
stroke-dasharray: 3 3;
|
|
stroke: var(--ink-3);
|
|
}
|
|
|
|
.flow-never text {
|
|
fill: var(--ink-3);
|
|
}
|
|
|
|
.flow-edge-label {
|
|
font-size: 10.5px;
|
|
fill: var(--ink-2);
|
|
}
|
|
|
|
.flow-edge-label-bg {
|
|
fill: var(--paper-2);
|
|
}
|
|
|
|
.flow-clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.flow-clickable:hover .flow-shape,
|
|
.flow-clickable:hover .df-node {
|
|
stroke: var(--accent);
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.df-node {
|
|
stroke: var(--ink-2);
|
|
stroke-width: 1.2;
|
|
fill: var(--paper-2);
|
|
}
|
|
|
|
.df-node-in {
|
|
fill: var(--accent-bg);
|
|
}
|
|
|
|
.df-node-out {
|
|
fill: var(--ok-bg);
|
|
}
|
|
|
|
.df-node-loop {
|
|
stroke-dasharray: 5 3;
|
|
}
|
|
|
|
.df-edge {
|
|
fill: none;
|
|
stroke: var(--ink-2);
|
|
stroke-width: 1.4;
|
|
}
|
|
|
|
.df-edge-ctrl {
|
|
stroke-dasharray: 4 3;
|
|
stroke: var(--ink-3);
|
|
}
|
|
|
|
.df-type {
|
|
font-size: 10px;
|
|
fill: var(--ink-3);
|
|
}
|
|
|
|
.df-label {
|
|
font-size: 10px;
|
|
fill: var(--ink-2);
|
|
}
|
|
|
|
.df-label-bg {
|
|
fill: var(--paper-2);
|
|
}
|
|
|
|
.vals-scroll {
|
|
padding: 0;
|
|
}
|
|
|
|
.vals-tbl {
|
|
border-collapse: collapse;
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
min-width: 100%;
|
|
}
|
|
|
|
.vals-tbl th,
|
|
.vals-tbl td {
|
|
border: 1px solid var(--line);
|
|
padding: 3px 8px;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.vals-tbl thead th {
|
|
background: var(--paper-3);
|
|
color: var(--ink-2);
|
|
font-weight: 500;
|
|
text-align: center;
|
|
position: sticky;
|
|
top: 0;
|
|
}
|
|
|
|
.vals-tbl thead tr:nth-child(2) th {
|
|
top: 25px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.vals-corner,
|
|
.vals-var {
|
|
position: sticky;
|
|
left: 0;
|
|
background: var(--paper-3);
|
|
z-index: 1;
|
|
text-align: left !important;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.vals-tbl thead .vals-corner {
|
|
z-index: 2;
|
|
}
|
|
|
|
.vals-step.linkish {
|
|
cursor: pointer;
|
|
text-decoration: underline dotted;
|
|
}
|
|
|
|
.vals-changed {
|
|
font-weight: 600;
|
|
background: var(--accent-bg);
|
|
}
|
|
|
|
.vals-same {
|
|
color: var(--ink-3);
|
|
}
|
|
|
|
.vals-absent {
|
|
background: repeating-linear-gradient(45deg, transparent 0 4px, var(--paper-3) 4px 5px);
|
|
}
|
|
|
|
.vals-unset {
|
|
color: var(--ink-3);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.vals-out {
|
|
background: var(--ok-bg);
|
|
}
|
|
|
|
.view-table .viz-scroll,
|
|
.view-flow .viz-scroll,
|
|
.view-data .viz-scroll {
|
|
max-height: calc(100vh - 220px);
|
|
}
|
|
|
|
.embed .viz-scroll {
|
|
max-height: none;
|
|
}
|
|
|
|
/* The Lifetimes view: one lane per value, from made to destroyed or moved out */
|
|
.life {
|
|
display: grid;
|
|
gap: 6px;
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.life-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(120px, 18%) 1fr minmax(140px, 20%);
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.life-id {
|
|
color: var(--ink-3);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.life-lane {
|
|
position: relative;
|
|
height: 22px;
|
|
border-bottom: 1px dashed var(--line);
|
|
}
|
|
|
|
.life-bar {
|
|
position: absolute;
|
|
top: 7px;
|
|
height: 8px;
|
|
border-radius: 4px;
|
|
background: var(--accent);
|
|
opacity: 0.35;
|
|
}
|
|
|
|
.life-bar-copied {
|
|
background: var(--tok-string);
|
|
}
|
|
|
|
.life-bar-moved {
|
|
background: var(--tok-number);
|
|
}
|
|
|
|
.life-bar-open {
|
|
border-top-right-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
}
|
|
|
|
.life-mark {
|
|
position: absolute;
|
|
top: 4px;
|
|
width: 14px;
|
|
height: 14px;
|
|
margin-left: -7px;
|
|
padding: 0;
|
|
border: 2px solid var(--paper);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
background: var(--accent);
|
|
}
|
|
|
|
.life-mark.legend {
|
|
position: relative;
|
|
display: inline-block;
|
|
top: 3px;
|
|
margin: 0 2px 0 8px;
|
|
cursor: default;
|
|
}
|
|
|
|
.life-mark-copied {
|
|
background: var(--tok-string);
|
|
}
|
|
|
|
.life-mark-moved {
|
|
background: var(--tok-number);
|
|
}
|
|
|
|
.life-mark-moved-out {
|
|
background: var(--ink-3);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.life-mark-named {
|
|
background: var(--paper);
|
|
border-color: var(--accent);
|
|
width: 10px;
|
|
height: 10px;
|
|
top: 6px;
|
|
margin-left: -5px;
|
|
}
|
|
|
|
.life-mark-destroyed {
|
|
background: var(--err);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.life-cursor {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 2px;
|
|
margin-left: -1px;
|
|
background: var(--ink-2);
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.life-legend {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
/* The Compiler view, by Mojo line: each line of the program, then the instructions it became */
|
|
.asm-group {
|
|
border-left: 3px solid transparent;
|
|
padding: 2px 0 4px 8px;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.asm-group-head {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: baseline;
|
|
}
|
|
|
|
.asm-group-src {
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.asm-group-active {
|
|
border-left-color: var(--accent);
|
|
background: var(--paper-2);
|
|
}
|
|
|
|
/* Two builds of one function, side by side */
|
|
.build-pair {
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.build-cols {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px;
|
|
}
|
|
|
|
.build-col {
|
|
min-width: 0;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.cost-by-line {
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Home: Mojo-first pitch (features, mental model, specification) */
|
|
/* ------------------------------------------------------------------ */
|
|
.sample {
|
|
margin: 0;
|
|
font-family: var(--mono);
|
|
font-size: 11.5px;
|
|
line-height: 1.55;
|
|
white-space: pre;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.features {
|
|
padding: 40px 0 8px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.features h2,
|
|
.spec-section h2 {
|
|
font-size: 24px;
|
|
letter-spacing: -.02em;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.feat-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 14px;
|
|
margin-bottom: 36px;
|
|
}
|
|
|
|
.feat {
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--r-lg);
|
|
background: var(--paper-2);
|
|
padding: 16px 16px 14px;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.feat h3 {
|
|
font-size: 15px;
|
|
margin: 0;
|
|
}
|
|
|
|
.feat>p {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
color: var(--ink-2);
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.feat>p+* {
|
|
margin-top: auto;
|
|
border-top: 1px solid var(--line);
|
|
padding-top: 10px;
|
|
}
|
|
|
|
.feat-diags {
|
|
list-style: none;
|
|
margin: 8px 0 0;
|
|
padding: 0;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.feat-diag {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: baseline;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.feat-diag-sev {
|
|
font-size: 9px;
|
|
}
|
|
|
|
.feat-diag-error .feat-diag-sev {
|
|
color: var(--err);
|
|
}
|
|
|
|
.feat-diag-note .feat-diag-sev,
|
|
.feat-diag-note {
|
|
color: var(--ink-3);
|
|
}
|
|
|
|
.feat-steps {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.feat-steps li {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 4px;
|
|
padding: 2px 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.feat-steps code {
|
|
font-size: 11.5px;
|
|
}
|
|
|
|
.feat-legend {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px 12px;
|
|
font-size: 11px;
|
|
color: var(--ink-2);
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.feat-verdict {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
align-items: center;
|
|
}
|
|
|
|
.feat-verdict p {
|
|
margin: 4px 0 0;
|
|
flex-basis: 100%;
|
|
}
|
|
|
|
.feat-tests {
|
|
font-size: 12.5px;
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.ways-3 {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.ways-3 .way pre {
|
|
font-size: 11.5px;
|
|
}
|
|
|
|
|
|
.spec-section {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
|
|
gap: 32px;
|
|
align-items: center;
|
|
padding: 36px 0;
|
|
border-top: 1px solid var(--line);
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.spec-section .way {
|
|
padding: 16px;
|
|
}
|
|
|
|
.spec-section .proof-counts {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.chip-verified {
|
|
background: var(--ok-bg);
|
|
color: var(--ok);
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
|
|
.feat-grid,
|
|
.ways {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.spec-section {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* the variable's timeline: every value it takes, past, now, and to come */
|
|
.var-track {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 3px;
|
|
margin-top: 4px;
|
|
align-items: center;
|
|
}
|
|
|
|
.var-chip {
|
|
font: inherit;
|
|
font-family: var(--mono);
|
|
font-size: 11px;
|
|
line-height: 1.2;
|
|
padding: 1px 6px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--line);
|
|
background: var(--paper);
|
|
color: var(--ink-2);
|
|
cursor: pointer;
|
|
max-width: 160px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.var-chip-past {
|
|
background: var(--paper-3);
|
|
color: var(--ink);
|
|
}
|
|
|
|
.var-chip-now {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: var(--accent-ink);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.var-chip-next {
|
|
opacity: .45;
|
|
border-style: dashed;
|
|
}
|
|
|
|
.var-chip:hover {
|
|
opacity: 1;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.var-chip-more {
|
|
border: 0;
|
|
background: transparent;
|
|
cursor: default;
|
|
color: var(--ink-3);
|
|
}
|
|
|
|
/* the flowchart follows the stepper */
|
|
.flow-node.flow-current .flow-shape {
|
|
stroke: var(--marker);
|
|
stroke-width: 3;
|
|
}
|
|
|
|
.flow-node.flow-last .flow-shape {
|
|
stroke: var(--accent);
|
|
stroke-width: 2.4;
|
|
}
|
|
|
|
.flow-node.flow-current.flow-last .flow-shape {
|
|
stroke: var(--marker);
|
|
}
|
|
|
|
/* the data flow lights up what the step reads and writes */
|
|
.df-nodeg.df-reads .df-node {
|
|
stroke: var(--marker);
|
|
stroke-width: 3;
|
|
}
|
|
|
|
.df-nodeg.df-wrote .df-node {
|
|
stroke: var(--accent);
|
|
stroke-width: 3;
|
|
}
|
|
|
|
.df-edge.df-edge-active {
|
|
stroke: var(--accent);
|
|
stroke-width: 2.6;
|
|
}
|
|
|
|
/* the table of values marks the step that just ran */
|
|
.vals-tbl .vals-now {
|
|
box-shadow: inset 0 -3px var(--marker);
|
|
}
|
|
|
|
.vals-tbl td.vals-now {
|
|
background: var(--marker-bg);
|
|
box-shadow: none;
|
|
}
|
|
.embed-pane-label .badge,
|
|
.share-badges .badge {
|
|
margin-left: 6px;
|
|
}
|
|
|
|
.share-badges {
|
|
display: inline-flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
}
|
|
|
|
.practices {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.practice {
|
|
border: 1px solid var(--line);
|
|
border-radius: 6px;
|
|
padding: 8px 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.practice:hover {
|
|
border-color: var(--ink-2);
|
|
}
|
|
|
|
.practice p {
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.practice-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
|
|
.practice-diff {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 8px;
|
|
}
|
|
|
|
.practice-diff pre {
|
|
margin: 0;
|
|
padding: 6px 8px;
|
|
border-radius: 4px;
|
|
overflow: auto;
|
|
background: var(--panel, transparent);
|
|
border: 1px solid var(--line);
|
|
}
|
|
|
|
.practice-after {
|
|
border-color: var(--ok, currentColor);
|
|
}
|
|
|
|
.problem-origin {
|
|
font-size: 12px;
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.idiomatic {
|
|
flex-basis: 100%;
|
|
margin: 4px 0 0;
|
|
}
|
|
|
|
.idiomatic-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.idiomatic-code {
|
|
margin: 4px 0 0;
|
|
padding: 6px 8px;
|
|
max-height: 240px;
|
|
overflow: auto;
|
|
border: 1px solid var(--line);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.btn-on {
|
|
color: var(--ok);
|
|
}
|
|
|
|
.banner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 6px 14px;
|
|
background: var(--warn-bg);
|
|
color: var(--warn);
|
|
border-bottom: 1px solid var(--line);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.versions {
|
|
position: relative;
|
|
}
|
|
|
|
.versions-menu {
|
|
position: absolute;
|
|
z-index: 30;
|
|
top: calc(100% + 4px);
|
|
left: 0;
|
|
width: min(420px, 90vw);
|
|
max-height: 60vh;
|
|
overflow: auto;
|
|
padding: 6px;
|
|
background: var(--paper);
|
|
border: 1px solid var(--line-2);
|
|
border-radius: 8px;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
|
|
}
|
|
|
|
.version-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 4px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.version-row.on {
|
|
background: var(--ok-bg);
|
|
}
|
|
|
|
.version-pick {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
text-align: left;
|
|
border: 0;
|
|
background: none;
|
|
color: inherit;
|
|
font: inherit;
|
|
padding: 4px;
|
|
cursor: pointer;
|
|
min-width: 0;
|
|
}
|
|
|
|
.version-pick:hover .version-name {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.version-name {
|
|
font-weight: 600;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.version-none,
|
|
.version-warn {
|
|
padding: 4px 8px;
|
|
margin: 0;
|
|
}
|
|
|
|
.version-warn {
|
|
color: var(--warn);
|
|
}
|
|
|
|
.version-save {
|
|
border-top: 1px solid var(--line);
|
|
margin-top: 4px;
|
|
padding-top: 6px;
|
|
}
|
|
|
|
/* ---------- the Hardware area: the code on the left, the board on the right (src/ui/hw/board.ts) ---------- */
|
|
.workspace.workspace-board { grid-template-rows: minmax(0, 1fr); }
|
|
.board-side { overflow: auto; padding: 10px 12px 24px; }
|
|
.board { display: flex; flex-direction: column; gap: 0.5rem; }
|
|
.board-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; position: sticky; top: -10px; z-index: 2; background: var(--paper); padding: 6px 0; }
|
|
.board-blurb { margin: 0; }
|
|
.board-add-menu { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); }
|
|
.board-add-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
.board-add-name { font-size: 12px; color: var(--ink-2); min-width: 10.5rem; }
|
|
.board-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; align-items: start; }
|
|
.board-card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); grid-column: span 6; }
|
|
.board-card.wide { grid-column: 1 / -1; }
|
|
/* The machine code listing and the encoding of the instruction it marks, side by side (board.ts marks the pair).
|
|
The listing needs two thirds of the row to show its operands; on a narrow board the two stack, the encoding under
|
|
the listing. Either way the listing scrolls on its own, as tall as the encoding, and keeps the instruction about
|
|
to run in view, so the row and its bytes are always on screen together. */
|
|
.board-grid.is-roomy .board-card.pair-code { grid-column: span 8; }
|
|
.board-grid.is-roomy .board-card.pair-enc { grid-column: span 4; }
|
|
.board-grid:not(.is-roomy) .board-card.pair-code, .board-grid:not(.is-roomy) .board-card.pair-enc { grid-column: 1 / -1; }
|
|
.board-card.pair-code .board-card-body { max-height: var(--pair-h, 420px); overflow: auto; }
|
|
.board-grid:not(.is-roomy) .board-card.pair-code .board-card-body { max-height: 300px; }
|
|
.board-card-head { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 8px; border-bottom: 1px solid var(--line); cursor: grab; user-select: none; font-size: 13px; font-weight: 600; }
|
|
.board-card-head:active { cursor: grabbing; }
|
|
.board-grip { color: var(--ink-3); }
|
|
.board-tool { border: 0; background: transparent; color: var(--ink-2); cursor: pointer; padding: 0 5px; font-size: 13px; border-radius: 4px; }
|
|
.board-tool:hover:not(:disabled) { background: var(--paper-3); color: var(--ink); }
|
|
.board-tool:disabled { opacity: 0.35; cursor: default; }
|
|
.board-card-body { padding: 8px 10px; min-width: 0; overflow-x: auto; }
|
|
.board-card-body .view, .board-card-body .setup { padding: 0; }
|
|
.board-card.dragging { opacity: 0.45; }
|
|
.board-card.drop-before { box-shadow: inset 0 3px 0 var(--accent); }
|
|
.board-card.drop-after { box-shadow: inset 0 -3px 0 var(--accent); }
|
|
.board-card.wide.drop-before { box-shadow: 0 -3px 0 var(--accent); }
|
|
.board-card.flash { outline: 2px solid var(--accent); outline-offset: 2px; transition: outline-color 0.6s; }
|
|
.board-note { margin: 0; color: var(--ink-2); font-size: 13px; }
|
|
.board-empty { grid-column: 1 / -1; }
|
|
/* inside a card the course view needs no frame of its own: the card is the frame */
|
|
.board-card-body .board-a86 { font-size: 0.9rem; }
|
|
.board-card-body .board-a86 .a86-panel { border: 0; padding: 0; background: transparent; }
|
|
.board-card-body .board-a86 .a86-panel-title { display: none; }
|
|
@media (max-width: 1100px) { .board-grid { grid-template-columns: minmax(0, 1fr); } .board-card, .board-card.pair-code, .board-card.pair-enc { grid-column: 1 / -1; } }
|
|
|
|
/* the area's name in the toolbar, where the switch is when no other area would show the work as it is */
|
|
.area-name { font-weight: 600; font-size: 0.9rem; padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--paper-3); color: var(--ink); white-space: nowrap; }
|
|
|
|
/* ---------- the stepper, docked under the editor (same width, part of the editor column) ---------- */
|
|
.step-dock {
|
|
flex-shrink: 0;
|
|
background: var(--paper);
|
|
border-top: 1px solid var(--line);
|
|
box-shadow: 0 -1px 0 var(--paper-3);
|
|
}
|
|
.step-dock .run-bar { border-bottom: 0; padding: 6px 10px 2px; gap: 6px; }
|
|
.step-dock .run-bar .run-controls { flex-direction: column; align-items: stretch; gap: 2px; flex: 1 1 100%; }
|
|
.step-dock .run-bar .run-controls .stepper { min-width: 0; }
|
|
.step-dock .run-bar .run-status { white-space: normal; flex: 1 1 100%; }
|
|
.step-dock .next-host { border-bottom: 0; padding: 0 10px 2px; background: transparent; }
|
|
.step-dock .next-host .trace-next { margin-bottom: 6px; padding: 4px 10px; font-size: 12.5px; }
|
|
.step-dock .next-host:empty { display: none; }
|
|
|
|
.side-split.inspect-only { grid-template-rows: minmax(0, 1fr); }
|
|
|
|
/* ---------- the Run view (src/ui/views/run.ts): the run top to bottom, the variables followed as columns ---------- */
|
|
.view-trace { display: flex; flex-direction: column; min-height: 0; padding: 0; }
|
|
.run-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 12px 6px; border-bottom: 1px solid var(--line); background: var(--paper); }
|
|
.run-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; flex: 1; min-width: 0; }
|
|
.run-follow-label { font-size: 11.5px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.04em; margin-right: 4px; }
|
|
.run-fn { font-size: 11.5px; color: var(--ink-3); margin: 0 2px 0 8px; }
|
|
.run-chip { font: 12px var(--mono); padding: 1px 8px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; }
|
|
.run-chip:hover { border-color: var(--accent); color: var(--ink); }
|
|
.run-chip.on { border-style: solid; border-color: var(--accent); background: var(--accent-bg); color: var(--ink); }
|
|
.run-filter { color: var(--ink-2); white-space: nowrap; }
|
|
.run-now { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--paper-2); max-height: 38%; overflow: auto; flex-shrink: 0; }
|
|
.run-now:empty { display: none; }
|
|
.run-now > p { margin: 0; }
|
|
.run-var { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); max-width: 100%; }
|
|
.run-var.run-var-wrote { border-color: var(--marker); background: var(--marker-bg); }
|
|
.run-var.run-var-read { box-shadow: inset 0 -2px 0 var(--accent); }
|
|
.run-var-name { font-weight: 600; font-size: 12.5px; }
|
|
.run-var-type { font-size: 11px; color: var(--ink-3); }
|
|
.run-var-value { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
|
|
.run-var .ruler { flex-basis: 100%; }
|
|
.run-grid { flex-basis: 100%; border-collapse: collapse; font: 11.5px var(--mono); }
|
|
.run-grid td, .run-grid th { border: 1px solid var(--line); padding: 1px 5px; text-align: right; min-width: 1.6em; }
|
|
.run-grid th { color: var(--ink-3); font-weight: 400; border: 0; }
|
|
.run-scroll { flex: 1; min-height: 0; overflow: auto; position: relative; }
|
|
.run-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
|
|
.run-tbl thead th { position: sticky; top: 0; z-index: 1; background: var(--paper); border-bottom: 1px solid var(--line); text-align: left; font-weight: 600; font-size: 11.5px; color: var(--ink-2); padding: 5px 8px; }
|
|
.run-tbl th.run-colhead { color: var(--ink); border-left: 1px solid var(--line); }
|
|
.run-tbl td { padding: 3px 8px; border-bottom: 1px solid var(--paper-3); vertical-align: top; }
|
|
.run-row { cursor: pointer; }
|
|
.run-row:hover td { background: var(--paper-3); }
|
|
.run-row.row-last td { background: var(--accent-bg); }
|
|
.run-row.row-next td { background: var(--marker-bg); }
|
|
.run-row.row-next td.run-no { box-shadow: inset 3px 0 0 var(--marker); }
|
|
.run-no { width: 3.5em; white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
.run-no .k-dot { margin-right: 4px; }
|
|
.run-line { width: 2.5em; }
|
|
.run-what { min-width: 14ch; }
|
|
.run-indent { display: inline-block; }
|
|
.run-note { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
|
|
.run-printed { color: var(--ink-2); }
|
|
.run-cell { border-left: 1px solid var(--paper-3); color: var(--ink-3); white-space: nowrap; }
|
|
.run-cell.wrote { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--marker-bg) 70%, transparent); }
|
|
.run-cell.read { text-decoration: underline dotted var(--accent); text-underline-offset: 3px; }
|
|
.run-cell.out { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--paper-3) 6px 7px); }
|
|
.run-life { display: inline-block; margin-right: 4px; font-weight: 700; }
|
|
.run-life-made, .run-life-copied { color: #2f8f5b; }
|
|
.run-life-moved-in { color: var(--accent); }
|
|
.run-life-moved-out { color: #b26a00; }
|
|
.run-life-destroyed { color: #c0392b; }
|
|
.run-more td { text-align: center; padding: 6px; }
|
|
.run-empty, .run-error { padding: 10px 12px; }
|
|
.run-now { align-items: flex-start; }
|
|
.run-chip { display: inline-flex; align-items: center; gap: 2px; }
|
|
.run-chip-fn { color: var(--ink-3); }
|
|
.run-chip-x { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; padding: 0 0 0 4px; font-size: 13px; line-height: 1; }
|
|
.run-chip-x:hover { color: var(--ink); }
|
|
.run-chip-add { border-style: solid; color: var(--accent); }
|
|
.run-chip sup { font-size: 9px; color: var(--ink-3); margin-left: 2px; }
|
|
.run-picker { flex-basis: 100%; display: flex; flex-direction: column; gap: 4px; padding: 6px 0 2px; border-top: 1px dashed var(--line); max-height: 180px; overflow: auto; }
|
|
.run-picker-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
|
|
.run-picker-row .run-fn { min-width: 9ch; margin-left: 0; }
|
|
.run-what { overflow-wrap: anywhere; }
|
|
.run-what > :not(.run-indent):not(.run-note) { display: -webkit-box; }
|
|
.run-at { color: var(--ink-2); font-weight: 400; }
|
|
.run-grid td.wrote { background: var(--marker-bg); font-weight: 700; }
|
|
.run-grid td.read { box-shadow: inset 0 0 0 1.5px var(--accent); }
|
|
|
|
/* ---------- the Tests view: the fuzzer's report (src/ui/views/tests.ts) ---------- */
|
|
.fuzz-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
|
|
.fuzz-bar .fuzz-seed { width: 7em; max-width: 7em; flex: none; }
|
|
.fuzz-unit { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px 10px; margin-bottom: 10px; background: var(--paper-2); }
|
|
.fuzz-unit > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 0; }
|
|
.fuzz-sig { font-weight: 600; }
|
|
.fuzz-unit h5 { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); }
|
|
.fuzz-checks { margin: 0; padding-left: 0; list-style: none; font-size: 13px; }
|
|
.fuzz-checks li { padding-left: 1.4em; position: relative; margin: 2px 0; }
|
|
.fuzz-checks li::before { content: '✓'; position: absolute; left: 0; color: #2f8f5b; font-weight: 700; }
|
|
.fuzz-gens td, .fuzz-gens th { font-size: 12.5px; vertical-align: top; }
|
|
.fuzz-strats { margin: 6px 0 0; padding-left: 1.2em; font-size: 12.5px; }
|
|
.fuzz-strats li { margin: 2px 0; }
|
|
.fuzz-fail { border: 1px solid color-mix(in srgb, #c0392b 40%, var(--line)); border-left: 3px solid #c0392b; border-radius: 6px; padding: 8px 10px; margin: 6px 0; background: var(--paper); }
|
|
.fuzz-fail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
.fuzz-msg { margin: 6px 0; font-size: 13px; }
|
|
.fuzz-shrink { margin: 4px 0 0; padding-left: 1.6em; font-size: 12.5px; }
|
|
.fuzz-shrink li { margin: 1px 0; color: var(--ink-2); }
|
|
.fuzz-shrink-last { color: var(--ink) !important; font-weight: 600; }
|
|
.fuzz-cov { display: flex; flex-direction: column; gap: 1px; }
|
|
.fuzz-cov-row { display: grid; grid-template-columns: 3em 90px 4.5em minmax(0, 1fr); align-items: center; gap: 8px; border: 0; background: transparent; text-align: left; padding: 1px 4px; border-radius: 4px; cursor: pointer; color: var(--ink); font: inherit; font-size: 12.5px; }
|
|
.fuzz-cov-row:hover { background: var(--paper-3); }
|
|
.fuzz-cov-row.never { background: color-mix(in srgb, #c0392b 10%, transparent); }
|
|
.fuzz-cov-line { color: var(--ink-3); text-align: right; }
|
|
.fuzz-cov-bar { display: inline-block; height: 8px; background: var(--paper-3); border-radius: 4px; overflow: hidden; }
|
|
.fuzz-cov-bar > span { display: block; height: 100%; background: var(--accent); }
|
|
.fuzz-cov-n { color: var(--ink-2); }
|
|
.fuzz-cov-src { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
|
|
.fuzz-results { display: flex; flex-direction: column; gap: 2px; }
|
|
.fuzz-result { display: grid; grid-template-columns: minmax(8ch, max-content) 120px 4em; gap: 8px; align-items: center; font-size: 12.5px; }
|
|
.fuzz-filter { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
|
|
.fuzz-cases-wrap { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
|
|
.fuzz-cases { width: 100%; font-size: 12px; }
|
|
.fuzz-cases thead th { position: sticky; top: 0; background: var(--paper); z-index: 1; }
|
|
.fuzz-out { font-size: 11px; padding: 0 6px; border-radius: 999px; }
|
|
.fuzz-out-pass { color: #2f8f5b; background: color-mix(in srgb, #2f8f5b 12%, transparent); }
|
|
.fuzz-out-fail { color: #c0392b; background: color-mix(in srgb, #c0392b 12%, transparent); }
|
|
.fuzz-out-skip { color: var(--ink-2); background: var(--paper-3); }
|
|
.fuzz-out-raises { color: #b26a00; background: color-mix(in srgb, #b26a00 12%, transparent); }
|
|
.fuzz-new { color: var(--accent); }
|
|
|
|
/* ---------- the home page's three areas (src/ui/home.ts) ---------- */
|
|
.area-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; align-items: stretch; }
|
|
.area-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-2); min-width: 0; }
|
|
.area-tagline { margin: 0; color: var(--ink-2); font-size: 14px; }
|
|
.area-card .hero-actions { margin-top: auto; padding-top: 6px; }
|
|
.area-sample { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; }
|
|
.area-sample .sample { margin: 0; font-size: 11.5px; max-height: 12.5em; overflow: auto; }
|
|
.area-step { border-left: 3px solid var(--line-2); padding-left: 8px; min-width: 0; }
|
|
.area-step.way-matho { border-left-color: var(--lang-matho); }
|
|
.area-step.way-pseudo { border-left-color: var(--lang-pseudo); }
|
|
.area-step.way-lingo { border-left-color: var(--lang-lingo); }
|
|
.area-step.way-mojo { border-left-color: var(--lang-mojo); }
|
|
.area-step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0; font-size: 12.5px; }
|
|
.area-arrow { color: var(--ink-3); font-size: 12px; font-family: var(--mono); }
|
|
.area-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
|
|
.area-regs { font-size: 12px; }
|
|
.area-regs tr.is-changed td { background: var(--accent-bg); font-weight: 600; }
|
|
.area-a86.a86 { font-size: 12px; margin: 0; }
|
|
.area-a86 .hw-line-cell { min-height: 1.2rem; line-height: 1.2rem; font-size: 0.6rem; }
|
|
.feat-area { margin-top: 22px; }
|
|
.feat-area-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 10px; }
|
|
.feat-area-head h3 { margin: 0; font-size: 18px; }
|
|
.feat-area-head p { margin: 0; }
|
|
.way-area { font-weight: 400; }
|
|
.card { display: flex; flex-direction: column; }
|
|
.card-main { color: inherit; display: block; }
|
|
.card-main:hover { text-decoration: none; }
|
|
.card-areas { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
|
|
.chip-area { text-decoration: none; }
|
|
.chip-area:hover { border-color: var(--accent); text-decoration: none; }
|
|
.home-foot p { margin-top: 6px; }
|
|
@media (max-width: 1100px) { .area-cards { grid-template-columns: minmax(0, 1fr); } }
|
|
|
|
/* ---------- the home page's pitch (src/ui/home.ts): why it exists, then the areas, then why Mojo ---------- */
|
|
.hero.hero-pitch { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px 0 40px; }
|
|
.hero-kicker { margin: 0 0 14px; color: var(--accent); font-weight: 600; font-size: 14px; }
|
|
.hero.hero-pitch h1 { font-size: 46px; max-width: 16ch; margin-bottom: 20px; text-wrap: balance; }
|
|
.hero.hero-pitch .lede { max-width: 58ch; margin-bottom: 26px; }
|
|
|
|
/* the sign-off: who made it changes, the sentence at the bottom does not */
|
|
.signoff { margin: 0; padding: 22px 24px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-2); box-shadow: var(--shadow); }
|
|
.signoff-head { font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
|
|
.signoff-makers { list-style: none; margin: 0 0 18px; padding: 0; }
|
|
.signoff-makers li { padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; display: flex; align-items: center; gap: 10px; }
|
|
.signoff-makers li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-3); flex: none; }
|
|
.signoff-line { margin: 0 0 18px; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
|
|
.signoff-sign { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
|
|
.signoff-rule { flex: 1; height: 28px; border-bottom: 1.5px solid var(--ink); }
|
|
.signoff figcaption { margin: 0; }
|
|
|
|
.why { padding: 8px 0 40px; border-bottom: 1px solid var(--line); }
|
|
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
|
|
.why-col { border-top: 2px solid var(--ink); padding-top: 14px; }
|
|
.why-col h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.01em; }
|
|
.why-col p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; max-width: 60ch; }
|
|
.why-example { margin: 28px 0 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--paper-2); border-radius: 0 var(--r) var(--r) 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; max-width: 92ch; }
|
|
.why-example b { color: var(--ink); }
|
|
|
|
.areas { padding: 40px 0; border-bottom: 1px solid var(--line); }
|
|
.areas h2, .why-mojo h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 6px; }
|
|
.area-card { gap: 10px; }
|
|
.area-card h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
|
|
.area-tagline { min-height: 3em; }
|
|
/* every card's sample sits in a window of the same height, so the three read as a set */
|
|
.area-window { height: 400px; overflow: hidden; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); }
|
|
.area-window .area-sample .sample { max-height: none; overflow: hidden; }
|
|
.area-card .hero-actions { margin-top: 4px; }
|
|
|
|
.why-mojo { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; padding: 40px 0; border-bottom: 1px solid var(--line); }
|
|
.why-mojo-points { margin: 0 0 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
|
|
.why-mojo-points dt { font-weight: 600; margin-top: 10px; }
|
|
.why-mojo-points dd { margin: 0; color: var(--ink-2); max-width: 62ch; }
|
|
/* the range of one language, a real sequence from the first program to the far end */
|
|
.mojo-range { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: rung; position: relative; }
|
|
.mojo-range::before { content: ''; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--lang-lingo), var(--lang-mojo)); border-radius: 2px; }
|
|
.mojo-range li { counter-increment: rung; position: relative; padding: 8px 0 14px 40px; display: flex; flex-direction: column; gap: 2px; }
|
|
.mojo-range li::before { content: counter(rung); position: absolute; left: 0; top: 7px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--lang-mojo); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink); }
|
|
.mojo-range li span { font-size: 13px; }
|
|
|
|
/* the notations: six even boxes, two rows of three */
|
|
.ways.ways-even { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
|
|
.ways-even .way { display: flex; flex-direction: column; padding: 14px 14px 12px; }
|
|
.ways-even .way h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 4px; }
|
|
.ways-even .way-area { font-size: 11px; font-weight: 500; padding: 1px 8px; }
|
|
.ways-even .way > p { min-height: 4.5em; }
|
|
.ways-even .way pre { height: 150px; max-height: none; font-size: 11.5px; }
|
|
.ways-even .way-body { height: 158px; border-top: 1px solid var(--line); padding-top: 8px; }
|
|
.ways-even .way-body pre { height: auto; border-top: 0; padding-top: 0; -webkit-mask-image: none; mask-image: none; margin-bottom: 10px; }
|
|
.ways-even .way .way-note { min-height: 0; margin: 0; font-size: 12px; }
|
|
|
|
@media (max-width: 900px) {
|
|
.hero.hero-pitch, .why-mojo { grid-template-columns: 1fr; gap: 28px; }
|
|
.hero.hero-pitch h1 { font-size: 34px; }
|
|
.why-grid { grid-template-columns: 1fr; gap: 20px; }
|
|
.ways.ways-even { grid-template-columns: 1fr 1fr; }
|
|
.area-window { height: auto; max-height: 420px; }
|
|
}
|
|
@media (max-width: 560px) {
|
|
.ways.ways-even { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
/* the Run view: a string or list with no ruler yet keeps the ruler's height */
|
|
.ruler.ruler-placeholder { visibility: hidden; }
|
|
|
|
/* ---------- With Quarto (#/quarto, src/ui/quarto.ts) and its teaser on the home page ----------
|
|
The extension's own stylesheet (quarto/_extensions/pplus/pplus.css) draws the views as a Quarto page does; it
|
|
reads Bootstrap's variables, which here are the app's tokens. */
|
|
.qg, .quarto-teaser {
|
|
--bs-body-color: var(--ink);
|
|
--bs-body-bg: var(--paper-2);
|
|
--bs-secondary-color: var(--ink-3);
|
|
--bs-link-color: var(--accent);
|
|
--bs-font-monospace: var(--mono);
|
|
}
|
|
.qg-hero { padding: 40px 0 18px; }
|
|
.qg-hero h1 { font-size: 42px; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 16px; max-width: 22ch; text-wrap: balance; }
|
|
.qg-hero .lede { font-size: 17px; color: var(--ink-2); max-width: 70ch; line-height: 1.55; margin: 0 0 22px; }
|
|
.qg-kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 8px 0 36px; border-bottom: 1px solid var(--line); }
|
|
.qg-kindcard { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-2); }
|
|
.qg-kindcard p { margin: 8px 0 0; }
|
|
.qg-kind { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 9px; border-radius: 10px; line-height: 1.6; }
|
|
.qg-kind-chip-rendered { background: var(--ok-bg); color: var(--ok); }
|
|
.qg-kind-chip-live { background: var(--accent-bg); color: var(--accent); }
|
|
.qg-kind-chip-machine { background: color-mix(in srgb, var(--lang-asm) 16%, var(--paper-2)); color: var(--ink); }
|
|
.qg-index a.qg-kind-machine { color: var(--ink); }
|
|
.qg-explore { font-family: var(--mono); max-width: 100%; }
|
|
.qg-kind-chip-text { background: var(--paper-3); color: var(--ink-2); }
|
|
.qg h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 6px; }
|
|
.qg-gallery-sec { padding: 36px 0 12px; }
|
|
.qg-index { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 12px; font: 12.5px var(--mono); }
|
|
.qg-index a { color: var(--ink-2); }
|
|
.qg-index a.qg-kind-rendered { color: var(--ok); }
|
|
.qg-index a.qg-kind-live { color: var(--accent); }
|
|
.qg-gallery { display: flex; flex-direction: column; gap: 22px; margin-top: 14px; }
|
|
.qg-card { scroll-margin-top: 16px; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
|
|
.qg-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
|
|
.qg-card-head h3 { margin: 0; font-size: 17px; order: -1; flex-basis: 100%; }
|
|
.qg-name { font: 600 14px var(--mono); color: var(--ink); }
|
|
.qg-summary { margin: 8px 0 12px; color: var(--ink-2); max-width: 80ch; }
|
|
.qg-note { margin: -6px 0 12px; max-width: 80ch; }
|
|
.qg-label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin: 10px 0 6px; }
|
|
.qg-tabbar { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
|
|
.qg-tab { font: 12.5px var(--mono); padding: 5px 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-2); cursor: pointer; }
|
|
.qg-tab:hover { color: var(--ink); }
|
|
.qg-tab.on { color: var(--ink); border-bottom-color: var(--accent); }
|
|
.qg-codeblock, .qg-codeblock.pplus-static { position: relative; padding: 0; }
|
|
.qg-codeblock .pplus-code { max-height: 22rem; overflow: auto; }
|
|
.qg-codeblock .qg-copy { position: absolute; top: 6px; right: 6px; }
|
|
.qg-plain { padding: .55rem .8rem !important; white-space: pre-wrap; }
|
|
.qg-out .pplus-figure, .qg-out figure.pplus-embed { margin: 0; }
|
|
.qg-out .pplus-static { background: var(--paper-2); }
|
|
.qg-tabs.pplus-static, .qg-listings.pplus-static { padding: 0; }
|
|
.qg-tabs .qg-tabbody { padding: 2px 0 0; }
|
|
.qg-listings { display: flex; flex-direction: column; gap: 8px; }
|
|
.qg-opts { margin-top: 12px; font-size: 13px; }
|
|
.qg-opts summary { cursor: pointer; color: var(--ink-2); }
|
|
.qg-opts dl, .qg-optlist { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 8px 0 0; }
|
|
.qg-opts dt, .qg-optlist dt { font-weight: 400; }
|
|
.qg-opts dd, .qg-optlist dd { margin: 0; color: var(--ink-2); }
|
|
.qg-setup, .qg-ref { padding: 36px 0 12px; border-top: 1px solid var(--line); margin-top: 24px; }
|
|
.qg-steps { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 20px; }
|
|
.qg-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
|
|
.qg-step-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--accent-bg); color: var(--accent); }
|
|
.qg-step h3 { margin: 3px 0 6px; font-size: 16px; }
|
|
.qg-step p { margin: 0 0 8px; color: var(--ink-2); max-width: 80ch; }
|
|
.qg-step .qg-codeblock { margin-bottom: 8px; max-width: 760px; }
|
|
.qg-files { display: flex; flex-wrap: wrap; gap: 4px; }
|
|
.qg-files .chip { font-family: var(--mono); }
|
|
.qg-tbl td:first-child { white-space: nowrap; }
|
|
.qg-ref h3 { margin: 22px 0 4px; font-size: 16px; }
|
|
|
|
.quarto-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 36px; align-items: start; padding: 40px 0; border-bottom: 1px solid var(--line); }
|
|
.quarto-teaser h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 6px; }
|
|
.quarto-teaser .qg-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; }
|
|
.quarto-teaser .qg-chips a { font-family: var(--mono); }
|
|
.quarto-teaser .pplus-figure { margin: 0; }
|
|
.quarto-teaser .qg-codeblock { margin-bottom: 10px; }
|
|
|
|
@media (max-width: 900px) {
|
|
.qg-kinds, .quarto-teaser { grid-template-columns: 1fr; }
|
|
.qg-hero h1 { font-size: 32px; }
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* The library (#/library) */
|
|
/* ------------------------------------------------------------------ */
|
|
.lib-hero { padding: 32px 0 8px; }
|
|
.lib-hero h1 { margin: 6px 0 10px; }
|
|
.lib-use { margin-left: 12px; color: var(--ink-2); }
|
|
.lib-module { margin: 28px 0; }
|
|
.lib-mod-name { font-size: .8em; color: var(--ink-2); }
|
|
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
|
|
.lib-card { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); color: inherit; text-decoration: none; }
|
|
.lib-card:hover { border-color: var(--accent); }
|
|
.lib-card-name { font-weight: 600; margin-bottom: 4px; }
|
|
.lib-card p { margin: 0 0 10px; font-size: .92em; }
|
|
.lib-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
|
|
.lib-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78em; border: 1px solid var(--line); white-space: nowrap; }
|
|
.lib-pass { background: var(--ok-bg); color: var(--ok); }
|
|
.lib-open { background: var(--warn-bg); color: var(--warn); }
|
|
.lib-unverified, .lib-skipped { background: transparent; color: var(--ink-2); }
|
|
.lib-fail { background: var(--err-bg); color: var(--err); }
|
|
.lib-sec { margin: 26px 0; }
|
|
.lib-table { width: 100%; border-collapse: collapse; font-size: .92em; }
|
|
.lib-table th, .lib-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
|
|
.lib-ref { margin: 10px 0; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; }
|
|
.lib-ref summary { cursor: pointer; }
|
|
.lib pre.pplus-code { font-family: var(--mono); font-size: .88em; line-height: 1.5; overflow-x: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); }
|
|
.lib .pplus-lno { display: inline-block; width: 2.6em; color: var(--ink-2); user-select: none; }
|
|
|
|
/* ---------- notices: a note at the foot of the page (ui/notice.ts), and pages that say why there is nothing ---------- */
|
|
.notice {
|
|
position: fixed;
|
|
left: 50%;
|
|
bottom: 16px;
|
|
transform: translateX(-50%);
|
|
z-index: 50;
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: flex-start;
|
|
width: min(640px, calc(100vw - 32px));
|
|
padding: 12px 14px;
|
|
background: var(--paper-2);
|
|
color: var(--ink);
|
|
border: 1px solid var(--line-2);
|
|
border-left: 4px solid var(--warn);
|
|
border-radius: var(--r);
|
|
box-shadow: var(--shadow);
|
|
font-size: 14px;
|
|
line-height: 1.45;
|
|
}
|
|
.notice p { margin: 0; flex: 1; }
|
|
.message-page .lib-hero { max-width: 720px; }
|
|
.compile-input-note { max-width: 70ch; }
|
|
.compile-send-note { max-width: 70ch; }
|
|
/* index.html's note for a page whose scripts never ran (opened as a file, scripts blocked, offline on first load) */
|
|
.boot-note { max-width: 640px; margin: 64px auto; padding: 0 16px; color: var(--ink-2); font: 16px/1.5 var(--sans); opacity: 0; animation: boot-note-show 0s 4s forwards; }
|
|
@keyframes boot-note-show { to { opacity: 1; } }
|
|
|
|
/* the tab rows: the tabs are one tablist (shell.ts tabList) that lays out as if it were not there */
|
|
.tablist { display: contents; }
|
|
/* links inside running text are underlined, not told apart by color alone */
|
|
.home p a:not(.btn):not(.chip), .home-foot a, .lib-hero p a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
|
|
|
|
/* ---------- the site's words: the hero's sentence, the glosses, the footer ---------- */
|
|
/* the one sentence that says what Programming+ is, under the hero's reason */
|
|
.hero-what { font-weight: 500; color: var(--ink); }
|
|
/* what each notation is, beside its name, where the names first appear (the Bridge card) */
|
|
.area-gloss { color: var(--ink-3); font-size: 12px; }
|
|
/* the footer of the site's pages: license, disclaimer, version, what the site stores and sends */
|
|
.site-foot .site-foot-links { margin-top: 0; }
|
|
.site-version { font-family: var(--mono); }
|
|
.site-data { margin-top: 10px; max-width: 80ch; }
|
|
.site-data summary { cursor: pointer; color: var(--ink); font-weight: 500; }
|
|
.site-data ul { margin: 6px 0 0; padding-left: 20px; }
|
|
.site-data li { margin: 4px 0; line-height: 1.45; }
|
|
|
|
/* ---------- accessibility, second pass ---------- */
|
|
/* read by a screen reader, not shown: the headings a page needs for its outline (the workspaces' h1, the home page's "why") */
|
|
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
|
|
/* on the yellow "next" row the muted values and the current line number take the second ink, not the third
|
|
(--ink-3 is 3.5:1 on the dark theme's marker; --ink-2 is 5.0:1) */
|
|
.run-row.row-next .run-cell:not(.wrote), .ed .cm-gutterElement.ed-gcurrent { color: var(--ink-2); }
|
|
|
|
/* ---------- a phone-width screen: one part of the workspace at a time ----------
|
|
Under 700px the workspace's parts would stack below an editor as tall as its program, and the side column or the
|
|
Hardware board start several screens down. Here the workspace fills the screen and shows one part, chosen in the
|
|
bar at the foot of the toolbar (shell.ts, setNarrow): the code with the stepper under it; the side column (or the
|
|
board) with the stepper above it; or the dock. Each part scrolls inside itself. A wider screen never sees the bar. */
|
|
.narrow-bar { display: none; }
|
|
@media (max-width: 700px) {
|
|
.toolbar { gap: 6px 8px; padding: 6px 10px; }
|
|
.narrow-bar { display: flex; flex-basis: 100%; }
|
|
.narrow-bar .seg-opt { flex: 1; }
|
|
.shell { height: 100vh; height: 100dvh; min-height: 0; }
|
|
.workspace, .workspace.workspace-board { flex: 1; min-height: 0; }
|
|
.main { flex: 1; min-height: 0; }
|
|
.workspace[data-narrow="code"] .side, .workspace[data-narrow="code"] .dock { display: none; }
|
|
.workspace[data-narrow="code"] .panes { flex: 1; min-height: 0; }
|
|
.workspace[data-narrow="code"] .pane-host .ed { min-height: 0; }
|
|
.workspace[data-narrow="side"] .panes { flex: none; min-height: 0; order: -1; }
|
|
.workspace[data-narrow="side"] .panes > :not(.step-dock) { display: none; }
|
|
/* above the side column the stepper keeps its first row and what runs next; its other controls are with the code */
|
|
.workspace[data-narrow="side"] .step-dock .stepper-row2 { display: none; }
|
|
.workspace[data-narrow="side"] .side { flex: 1; min-height: 0; overflow: auto; }
|
|
.workspace[data-narrow="side"] .panel-body { max-height: none; }
|
|
.workspace[data-narrow="side"] .dock { display: none; }
|
|
.workspace[data-narrow="dock"] .main { display: none; }
|
|
.workspace[data-narrow="dock"] .dock { flex: 1; min-height: 0; }
|
|
.workspace[data-narrow="dock"] .dock-body { display: block; max-height: none; }
|
|
}
|