| 1 | /* goframework.io: the look. Light by default, dark with the system or the |
| 2 | switch; Inter for text, JetBrains Mono for code, output and samples |
| 3 | (both in assets/fonts, each under the SIL Open Font License, its OFL-*.txt |
| 4 | there); nothing loaded from elsewhere. --sans, --mono and --code-size |
| 5 | below choose them. */ |
| 6 | |
| 7 | /* Inter and JetBrains Mono, variable fonts: every weight in one file per script */ |
| 8 | @font-face { |
| 9 | font-family: "Inter"; |
| 10 | font-style: normal; |
| 11 | font-weight: 100 900; |
| 12 | font-display: swap; |
| 13 | src: url("fonts/inter-latin.woff2") format("woff2"); |
| 14 | unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; |
| 15 | } |
| 16 | @font-face { |
| 17 | font-family: "Inter"; |
| 18 | font-style: normal; |
| 19 | font-weight: 100 900; |
| 20 | font-display: swap; |
| 21 | src: url("fonts/inter-latin-ext.woff2") format("woff2"); |
| 22 | unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; |
| 23 | } |
| 24 | @font-face { |
| 25 | font-family: "JetBrains Mono"; |
| 26 | font-style: normal; |
| 27 | font-weight: 100 800; |
| 28 | font-display: swap; |
| 29 | src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); |
| 30 | unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; |
| 31 | } |
| 32 | @font-face { |
| 33 | font-family: "JetBrains Mono"; |
| 34 | font-style: normal; |
| 35 | font-weight: 100 800; |
| 36 | font-display: swap; |
| 37 | src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); |
| 38 | unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; |
| 39 | } |
| 40 | |
| 41 | :root { |
| 42 | --bg: #f5f6fa; --surface: #ffffff; --surface-2: #f0f1f6; --text: #1d2130; --muted: #5d6478; --faint: #8a90a3; |
| 43 | --line: #dde0ea; --line-strong: #c4c9da; --accent: #4f55c9; --accent-soft: #e9eafb; --accent-text: #3a3fae; |
| 44 | --hot: #e46b2d; --hot-soft: #fdeee4; --ok: #1f8a4c; --ok-soft: #e4f4ea; --error: #c63a3a; --error-soft: #fbe8e8; |
| 45 | --busy: #3d6fd6; --busy-soft: #e6eefc; --usual: #8a6d3b; --usual-soft: #f7f1e6; |
| 46 | --card-outside: #eceef3; --card-decision: #eeefff; --card-state: #f3f0ff; --card-effect: #ffffff; |
| 47 | --border-decision: #a9ade8; --border-state: #b9a9e8; --border-effect: #c4c9da; --border-outside: #c9ccd6; |
| 48 | --code-bg: #f6f7fa; --mark: #ffe58f; |
| 49 | --shadow: 0 1px 2px rgb(20 24 40 / 6%), 0 4px 14px rgb(20 24 40 / 6%); |
| 50 | --radius: 6px; |
| 51 | --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; |
| 52 | --code-size: 13.5px; /* code, output and samples */ |
| 53 | --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; |
| 54 | color-scheme: light; |
| 55 | } |
| 56 | @media (prefers-color-scheme: dark) { |
| 57 | :root:not([data-theme="light"]) { |
| 58 | --bg: #0e1016; --surface: #161922; --surface-2: #1c2030; --text: #e6e8f0; --muted: #a2a8bb; --faint: #7a8096; |
| 59 | --line: #2a2f40; --line-strong: #3a4058; --accent: #8f94ff; --accent-soft: #23264a; --accent-text: #b7baff; |
| 60 | --hot: #ff8a4c; --hot-soft: #3a2418; --ok: #4cc27f; --ok-soft: #16301f; --error: #ff6b6b; --error-soft: #3a1c1c; |
| 61 | --busy: #6f9bff; --busy-soft: #1a2747; --usual: #d2b07a; --usual-soft: #2c2416; |
| 62 | --card-outside: #1b1e27; --card-decision: #1d2040; --card-state: #231d3d; --card-effect: #171a24; |
| 63 | --border-decision: #4d52a8; --border-state: #6450a8; --border-effect: #3a4058; --border-outside: #3a3f50; |
| 64 | --code-bg: #11131b; --mark: #6b5a12; --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 4px 14px rgb(0 0 0 / 30%); |
| 65 | color-scheme: dark; |
| 66 | } |
| 67 | } |
| 68 | :root[data-theme="dark"] { |
| 69 | --bg: #0e1016; --surface: #161922; --surface-2: #1c2030; --text: #e6e8f0; --muted: #a2a8bb; --faint: #7a8096; |
| 70 | --line: #2a2f40; --line-strong: #3a4058; --accent: #8f94ff; --accent-soft: #23264a; --accent-text: #b7baff; |
| 71 | --hot: #ff8a4c; --hot-soft: #3a2418; --ok: #4cc27f; --ok-soft: #16301f; --error: #ff6b6b; --error-soft: #3a1c1c; |
| 72 | --busy: #6f9bff; --busy-soft: #1a2747; --usual: #d2b07a; --usual-soft: #2c2416; |
| 73 | --card-outside: #1b1e27; --card-decision: #1d2040; --card-state: #231d3d; --card-effect: #171a24; |
| 74 | --border-decision: #4d52a8; --border-state: #6450a8; --border-effect: #3a4058; --border-outside: #3a3f50; |
| 75 | --code-bg: #11131b; --mark: #6b5a12; --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 4px 14px rgb(0 0 0 / 30%); |
| 76 | color-scheme: dark; |
| 77 | } |
| 78 | |
| 79 | * { box-sizing: border-box; } |
| 80 | body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); -webkit-text-size-adjust: 100%; } |
| 81 | a { color: var(--accent-text); text-underline-offset: 2px; } |
| 82 | code, pre, kbd { font-family: var(--mono); font-size: 0.88em; font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; } /* code shows the characters typed: != stays !=, not a ligature */ |
| 83 | code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 3px; } |
| 84 | pre { margin: 0; tab-size: 4; } |
| 85 | pre code { background: none; padding: 0; font-size: inherit; } |
| 86 | button, input, select { font: inherit; color: inherit; } |
| 87 | :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } |
| 88 | .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } |
| 89 | .muted { color: var(--muted); } |
| 90 | .wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; } |
| 91 | h1 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 4px 0 8px; } |
| 92 | h2 { font-size: 20px; letter-spacing: -0.01em; margin: 0 0 8px; } |
| 93 | |
| 94 | /* header */ |
| 95 | .top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 14px; |
| 96 | background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); } |
| 97 | .brand { font-weight: 750; font-size: 18px; text-decoration: none; color: var(--text); white-space: nowrap; letter-spacing: -0.01em; } |
| 98 | .brand span { color: var(--accent); } |
| 99 | .menu-button { display: none; } |
| 100 | .top .crumbs-bar { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0; margin-left: -10px; white-space: nowrap; overflow: hidden; } |
| 101 | .crumbs-bar .crumb-sep { color: var(--faint); font-family: var(--mono); font-size: 17px; padding: 0 3px; } |
| 102 | .crumbs-bar .crumb { font-family: var(--mono); font-size: 14.5px; font-weight: 650; color: var(--accent-text); text-decoration: none; padding: 1px 6px; border-radius: 3px; background: var(--accent-soft); } |
| 103 | .crumbs-bar a.crumb:hover { background: var(--accent); color: #fff; } |
| 104 | .crumbs-bar .crumb.current { color: var(--text); background: none; padding: 1px 2px; overflow: hidden; text-overflow: ellipsis; } |
| 105 | .top nav { display: flex; gap: 14px; align-items: center; margin-left: auto; } |
| 106 | .top nav a { color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; } |
| 107 | .top nav a:hover, .top nav a.current { color: var(--text); } |
| 108 | .icon-button { border: 1px solid var(--line); background: var(--surface); border-radius: 4px; width: 36px; height: 34px; cursor: pointer; font-size: 17px; flex: none; } |
| 109 | .header-links { display: flex; gap: 6px; } |
| 110 | a.icon-button { display: inline-grid; place-items: center; color: var(--muted); text-decoration: none; } |
| 111 | a.icon-button:hover { color: var(--text); border-color: var(--line-strong); } |
| 112 | |
| 113 | /* the two panes */ |
| 114 | .shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - 58px); } |
| 115 | .side { position: sticky; top: 58px; height: calc(100vh - 58px); overflow-y: auto; border-right: 1px solid var(--line); background: var(--surface); |
| 116 | padding: 8px 6px 16px; scrollbar-width: thin; } |
| 117 | .side-nav { display: grid; gap: 1px; } |
| 118 | .side-link, .side-group, .side-module { display: grid; text-decoration: none; color: var(--text); border-radius: 4px; } |
| 119 | .side-link { grid-template-columns: 1fr auto; padding: 4px 8px; font-weight: 600; font-size: 14px; } |
| 120 | .side-heading { margin: 10px 8px 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); } |
| 121 | .side-search { position: relative; margin: 2px 2px 6px; } |
| 122 | .side-filter { width: 100%; height: 30px; border: 1px solid var(--line-strong); background: var(--bg); border-radius: 4px; padding: 0 28px 0 8px; font-size: 13.5px; } |
| 123 | .side-search kbd { position: absolute; right: 7px; top: 6px; border: 1px solid var(--line-strong); border-radius: 3px; padding: 0 4px; font-size: 11px; color: var(--faint); pointer-events: none; } |
| 124 | .side-filter:focus + kbd, .side-filter:not(:placeholder-shown) + kbd { display: none; } |
| 125 | .side-list { display: grid; gap: 1px; } |
| 126 | .side-empty { margin: 6px 8px; font-size: 13px; color: var(--muted); } |
| 127 | .side-all { display: block; margin: 8px 8px 0; font-size: 13px; } |
| 128 | .side-group { grid-template-columns: 1fr auto; column-gap: 8px; padding: 3px 8px; position: relative; } |
| 129 | .side-group code { background: none; padding: 0; font-size: 13.5px; font-weight: 600; color: var(--text); } |
| 130 | .side-title { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); line-height: 1.3; } |
| 131 | .side-count { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; align-self: center; } |
| 132 | .side-link:hover, .side-group:hover, .side-module:hover { background: var(--surface-2); } |
| 133 | .side-link.current, .side-group.current { background: var(--accent-soft); } |
| 134 | .side-group.current code, .side-link.current { color: var(--accent-text); } |
| 135 | .side-group.current::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; border-radius: 2px; background: var(--accent); } |
| 136 | .side-modules { display: grid; gap: 0; margin: 1px 0 4px 12px; padding-left: 8px; border-left: 1px solid var(--line); } |
| 137 | .side-module { padding: 1px 6px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; } |
| 138 | .side-module.current { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; } |
| 139 | .detail { min-width: 0; padding: 14px clamp(12px, 2vw, 24px) 0; max-width: 1240px; } |
| 140 | .detail.flush { padding-top: 0; } |
| 141 | .g-body > .g-head { padding-top: 10px; } |
| 142 | @media (max-width: 960px) { |
| 143 | .shell { grid-template-columns: minmax(0, 1fr); } |
| 144 | .menu-button { display: inline-block; } |
| 145 | .side { position: fixed; z-index: 35; top: 58px; left: 0; width: min(320px, 86vw); box-shadow: var(--shadow); transform: translateX(-102%); transition: transform 0.2s; } |
| 146 | body.side-open .side { transform: none; } |
| 147 | body.side-open::after { content: ""; position: fixed; inset: 58px 0 0 0; background: rgb(0 0 0 / 25%); z-index: 34; } |
| 148 | } |
| 149 | @media (max-width: 700px) { |
| 150 | .top { padding: 0 12px; gap: 8px; } |
| 151 | body.has-crumbs .brand { display: none; } |
| 152 | .crumbs-bar > .crumb-sep:first-child { display: none; } |
| 153 | body.deep-crumbs .crumbs-bar > :not(:last-child) { display: none; } |
| 154 | body.has-crumbs .top .crumbs-bar { margin-left: 0; } |
| 155 | .detail { padding: 12px 12px 0; } |
| 156 | } |
| 157 | @media (prefers-reduced-motion: reduce) { .side { transition: none; } } |
| 158 | |
| 159 | /* home */ |
| 160 | .hero { padding: 0; } |
| 161 | .hero h1 { font-size: clamp(26px, 3.2vw, 38px); max-width: 22em; margin-bottom: 8px; } |
| 162 | .lead { font-size: 17px; color: var(--muted); max-width: 48em; margin: 0 0 10px; } |
| 163 | .intro { max-width: 46em; color: var(--text); } |
| 164 | .intro p { margin: 0 0 6px; } |
| 165 | .runs-on { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 12px; font-size: 14px; color: var(--muted); } |
| 166 | .runs-on .system { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 4px; padding: 0 8px; color: var(--text); } |
| 167 | .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 6px 0; } |
| 168 | .fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; display: grid; gap: 2px; min-width: 0; } |
| 169 | .fact b { font-size: 20px; letter-spacing: -0.01em; } |
| 170 | .fact span { color: var(--muted); font-size: 14px; } |
| 171 | .fact small { color: var(--faint); font-family: var(--mono); font-size: 11.5px; overflow-wrap: anywhere; } |
| 172 | .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 10px 0 4px; } |
| 173 | .stat { display: grid; align-content: start; gap: 1px; padding: 8px 12px; background: var(--surface); text-decoration: none; color: var(--text); min-width: 0; } |
| 174 | .stat b { font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; } |
| 175 | .stat span { font-size: 13px; color: var(--muted); line-height: 1.35; } |
| 176 | a.stat:hover { background: var(--surface-2); } |
| 177 | .section-title { margin: 18px 0 8px; } |
| 178 | .section-title h2 { margin: 0 0 2px; font-size: 20px; } |
| 179 | .section-title p { margin: 0; color: var(--muted); max-width: 54em; } |
| 180 | .g-body > .section-title:first-child { margin-top: 6px; } |
| 181 | .group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; } |
| 182 | .group-tile { display: grid; gap: 2px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); |
| 183 | padding: 9px 12px; text-decoration: none; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; } |
| 184 | .group-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); } |
| 185 | .tile-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } |
| 186 | .tile-head code { background: none; padding: 0; color: var(--accent-text); font-weight: 650; font-size: 14px; } |
| 187 | .tile-count { font-size: 12px; color: var(--faint); } |
| 188 | .group-tile b { font-size: 15.5px; } |
| 189 | .group-tile p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.4; } |
| 190 | .tile-foot { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--faint); margin-top: 4px; } |
| 191 | .tile-foot .has { color: var(--accent-text); background: var(--accent-soft); border-radius: 4px; padding: 0 8px; } |
| 192 | .get { display: flex; align-items: center; gap: 8px; min-width: 0; } |
| 193 | .get code { overflow-x: auto; white-space: nowrap; flex: 1; min-width: 0; } |
| 194 | |
| 195 | /* a group */ |
| 196 | .g-head { padding: 0; } |
| 197 | .g-pattern { font-family: var(--mono); font-size: 14px; font-weight: 650; color: var(--accent-text); background: var(--accent-soft); display: inline-block; padding: 1px 8px; border-radius: 3px; } |
| 198 | .g-head h1 { margin: 6px 0 2px; font-size: clamp(24px, 2.8vw, 32px); } |
| 199 | .g-purpose { font-size: 16.5px; color: var(--muted); max-width: 52em; margin: 0; } |
| 200 | .g-tabs { position: sticky; top: 58px; z-index: 20; display: flex; gap: 2px; overflow-x: auto; margin: 0; border-bottom: 1px solid var(--line); |
| 201 | background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); scrollbar-width: none; } |
| 202 | .g-tabs a { display: flex; align-items: center; gap: 6px; padding: 8px 12px 7px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; |
| 203 | border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; } |
| 204 | .g-tabs a:hover { color: var(--text); } |
| 205 | .g-tabs a.current { color: var(--accent-text); border-bottom-color: var(--accent); } |
| 206 | .g-tabs .count { font-size: 11.5px; font-weight: 650; color: var(--accent-text); background: var(--accent-soft); border-radius: 4px; padding: 0 7px; font-variant-numeric: tabular-nums; } |
| 207 | .g-tabs .count.zero { color: var(--faint); background: var(--surface-2); } |
| 208 | .g-body { padding-top: 2px; min-height: 50vh; } |
| 209 | .empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 10px 12px; } |
| 210 | .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 10px 0; min-width: 0; } |
| 211 | .card-title { margin: 0 0 4px; font-size: 17px; letter-spacing: -0.01em; } |
| 212 | .problem { margin: 0 0 8px; color: var(--muted); max-width: 60em; } |
| 213 | .notice { margin: 8px 0 0; padding: 7px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 4px 4px 0; } |
| 214 | .side-by-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; } |
| 215 | @media (max-width: 1100px) { .side-by-side { grid-template-columns: minmax(0, 1fr); } } |
| 216 | .code-pane, .snippet, .output-pane { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; min-width: 0; } |
| 217 | .code-pane pre, .snippet pre, .tab-pane > pre { padding: 8px 10px; overflow-x: auto; font-size: var(--code-size); line-height: 1.55; background: var(--code-bg); } |
| 218 | .pane-label { padding: 4px 10px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--surface-2); } |
| 219 | .pane-label.dark { background: #1d2029; color: #b9bfd0; border-bottom-color: #2a2f3d; } |
| 220 | .code-pane.usual .pane-label { background: var(--usual-soft); color: var(--usual); } |
| 221 | .code-pane.with .pane-label { background: var(--accent-soft); color: var(--accent-text); } |
| 222 | .output-pane { background: #14161d; border-color: #2a2f3d; } |
| 223 | .output-pane pre.output { border-radius: 0; max-height: 520px; } |
| 224 | .code-output { align-items: start; } |
| 225 | .code-output .code-pane pre { max-height: 520px; overflow: auto; } |
| 226 | .tab-pane > pre { border: 1px solid var(--line); border-radius: 5px; } |
| 227 | .output-title { margin: 10px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); } |
| 228 | pre.output { padding: 8px 10px; overflow: auto; max-height: 460px; font-size: var(--code-size); line-height: 1.5; background: #14161d; color: #e3e6ee; border-radius: 5px; } |
| 229 | pre.output .out-head { color: #ffd28a; } |
| 230 | .output-pane .pills button { background: #1d2029; border-color: #2a2f3d; color: #b9bfd0; } |
| 231 | .output-pane .pills { padding: 6px 10px 0; margin: 0; } |
| 232 | .output-pane .choose-label { color: #8a90a3; } |
| 233 | .run-meta { font-size: 12.8px; color: var(--faint); margin: 6px 0 0; } |
| 234 | .choose-label { font-size: 13px; color: var(--faint); margin: 8px 0 4px; } |
| 235 | .tabs, .pills { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; align-items: center; } |
| 236 | .tabs button, .pills button { border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 2px 10px; font-size: 13.5px; cursor: pointer; color: var(--muted); } |
| 237 | .tabs button[aria-selected="true"], .pills button[aria-selected="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); font-weight: 600; } |
| 238 | |
| 239 | /* where a group sits */ |
| 240 | .neighbours { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; } |
| 241 | .neighbours h5 { margin: 0 0 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); } |
| 242 | .neighbours .centre code { display: inline-block; padding: 6px 12px; border-radius: 5px; border: 1.5px solid var(--hot); background: var(--hot-soft); font-weight: 700; font-size: 14px; } |
| 243 | .neighbours p { margin: 0; } |
| 244 | @media (max-width: 760px) { .neighbours { grid-template-columns: minmax(0, 1fr); } } |
| 245 | .group-chip { display: inline-flex; gap: 6px; align-items: baseline; } |
| 246 | .group-chip code { background: none; padding: 0; font-weight: 650; } |
| 247 | .group-chip span { font-size: 11.5px; color: var(--faint); font-family: var(--sans); } |
| 248 | .chip.plain { font-family: var(--sans); font-size: 13.5px; color: var(--text); background: var(--surface-2); } |
| 249 | |
| 250 | /* what a module was checked against */ |
| 251 | .checked { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; } |
| 252 | .checked li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; } |
| 253 | .kind { font-size: 11.5px; font-weight: 650; border-radius: 3px; padding: 2px 7px; text-align: center; white-space: nowrap; border: 1px solid; } |
| 254 | .kind-suite { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); } |
| 255 | .kind-servers, .kind-systems { color: var(--busy); border-color: var(--busy); background: var(--busy-soft); } |
| 256 | .kind-libraries, .kind-measured { color: var(--hot); border-color: var(--hot); background: var(--hot-soft); } |
| 257 | .kind-reference { color: var(--accent-text); border-color: var(--accent); background: var(--accent-soft); } |
| 258 | .kind-fuzzed, .kind-model, .kind-tests { color: var(--muted); border-color: var(--line-strong); background: var(--surface-2); } |
| 259 | .fact-module { font-family: var(--mono); font-size: 12.5px; margin-right: 6px; } |
| 260 | .quote { margin-top: 2px; } |
| 261 | .quote summary { cursor: pointer; font-family: var(--mono); font-size: 11.5px; color: var(--faint); list-style: none; } |
| 262 | .quote summary::-webkit-details-marker { display: none; } |
| 263 | .quote summary::before { content: "▸ "; } |
| 264 | .quote[open] summary::before { content: "▾ "; } |
| 265 | .quote blockquote { margin: 4px 0 0; padding: 6px 10px; border-left: 3px solid var(--line-strong); color: var(--muted); font-size: 13px; background: var(--surface-2); border-radius: 0 3px 3px 0; } |
| 266 | @media (max-width: 600px) { .checked li { grid-template-columns: minmax(0, 1fr); gap: 3px; } .kind { justify-self: start; } } |
| 267 | |
| 268 | /* comparison sections */ |
| 269 | .prose { max-width: 70em; min-width: 0; } |
| 270 | .prose pre { overflow-x: auto; padding: 10px 12px; background: var(--code-bg); border: 1px solid var(--line); border-radius: 5px; font-size: var(--code-size); margin: 8px 0; } |
| 271 | .prose p { margin: 6px 0; } |
| 272 | .prose h4 { margin: 12px 0 4px; font-size: 15.5px; } |
| 273 | .prose h5 { margin: 10px 0 2px; font-size: 14.5px; } |
| 274 | .prose ul, .prose ol { margin: 4px 0 6px; padding-left: 20px; } |
| 275 | .prose li { margin: 1px 0; } |
| 276 | .prose table { font-size: 13.5px; } |
| 277 | .prose table.matrix th:first-child { white-space: nowrap; } |
| 278 | .compared .source { margin-bottom: 8px; } |
| 279 | |
| 280 | /* measurements */ |
| 281 | .bars { display: grid; grid-template-columns: minmax(90px, 230px) minmax(0, 1fr) auto; gap: 5px 10px; align-items: center; margin: 6px 0; font-size: 14px; } |
| 282 | .bar-row { display: contents; } |
| 283 | .bar-name { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; color: var(--muted); } |
| 284 | .bar-track { background: var(--surface-2); border-radius: 3px; height: 18px; overflow: hidden; } |
| 285 | .bar { display: block; height: 100%; background: var(--line-strong); border-radius: 3px; } |
| 286 | .bar-row.ours .bar { background: var(--accent); } |
| 287 | .bar-row.ours .bar-name { color: var(--accent-text); font-weight: 700; } |
| 288 | .bar-value { font-variant-numeric: tabular-nums; min-width: 64px; max-width: 16em; text-align: right; overflow-wrap: anywhere; font-size: 13.5px; } |
| 289 | .bar-note { font-size: 12.8px; color: var(--faint); margin: 4px 0 0; } |
| 290 | .caption { font-size: 14px; color: var(--muted); margin: 6px 0 2px; } |
| 291 | .measured-how, .source { font-size: 12.8px; color: var(--faint); margin: 2px 0; overflow-wrap: anywhere; } |
| 292 | .numbers summary { cursor: pointer; font-size: 13.5px; color: var(--muted); margin-top: 6px; } |
| 293 | .table-wrap { overflow-x: auto; margin-top: 6px; } |
| 294 | table { border-collapse: collapse; font-size: 13.5px; width: 100%; } |
| 295 | th, td { border-bottom: 1px solid var(--line); padding: 5px 8px; text-align: left; vertical-align: top; } |
| 296 | thead th { background: var(--surface-2); font-weight: 600; } |
| 297 | table.matrix td.cell-yes { color: var(--ok); font-weight: 600; } |
| 298 | table.matrix td.cell-no { color: var(--faint); } |
| 299 | .measured-group { margin: 16px 0 -2px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; } |
| 300 | .measured-section { margin-top: 16px; } |
| 301 | .measured-section > h2 { margin-bottom: 0; } |
| 302 | .measured-module .card-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; } |
| 303 | .module-link { font-family: var(--mono); font-size: 17px; text-decoration: none; } |
| 304 | .card-sub { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; } |
| 305 | .measure-tabs { margin-top: 8px; } |
| 306 | .against { margin: 4px 0 6px; color: var(--muted); font-size: 14.5px; } |
| 307 | .choices { display: grid; gap: 0; margin-bottom: 4px; } |
| 308 | .choices .pills { margin: 2px 0; } |
| 309 | .bar-row.missing .bar-text { grid-column: 2 / 4; font-size: 13px; color: var(--faint); } |
| 310 | table.matrix tr.ours th, table.matrix tr.ours td { background: var(--accent-soft); } |
| 311 | table.matrix tr.ours th { color: var(--accent-text); } |
| 312 | |
| 313 | /* stages */ |
| 314 | .stages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0; } |
| 315 | .stage-button { display: grid; gap: 1px; text-align: left; border: 1.5px solid var(--border-decision); background: var(--card-decision); border-radius: 5px; padding: 5px 10px; cursor: pointer; } |
| 316 | .stage-button small { color: var(--faint); font-size: 12px; } |
| 317 | .stage-button[aria-selected="true"] { border-color: var(--hot); box-shadow: 0 0 0 3px var(--hot-soft); } |
| 318 | .stage-arrow { color: var(--faint); font-size: 18px; } |
| 319 | .stage-panel { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; } |
| 320 | .stage-panel h4 { margin: 0 0 4px; } |
| 321 | .stage-panel p { margin: 0 0 8px; color: var(--muted); } |
| 322 | .chips { display: flex; flex-wrap: wrap; gap: 6px; } |
| 323 | .chip { font-family: var(--mono); font-size: 12.8px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 2px 10px; text-decoration: none; color: var(--text); background: var(--surface); } |
| 324 | .chip:hover { border-color: var(--accent); } |
| 325 | |
| 326 | /* recorded flows */ |
| 327 | .flow-intro, .flow-summary { color: var(--muted); margin: 0 0 8px; } |
| 328 | .scenario { border: 1px solid var(--line); border-radius: 4px; margin: 6px 0 10px; } |
| 329 | .scenario summary { cursor: pointer; padding: 6px 12px; font-size: 14px; color: var(--muted); } |
| 330 | .scenario pre { padding: 4px 14px 12px; font-size: var(--code-size); overflow-x: auto; } |
| 331 | .chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px; margin: 2px 0 8px; } |
| 332 | .chapter { display: flex; gap: 8px; align-items: flex-start; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 7px 10px; cursor: pointer; font-size: 13.5px; color: var(--muted); } |
| 333 | .chapter-number { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 4px; background: var(--surface-2); font-weight: 700; font-size: 12px; } |
| 334 | .chapter.current { border-color: var(--hot); color: var(--text); background: var(--hot-soft); } |
| 335 | .chapter.current .chapter-number { background: var(--hot); color: #fff; } |
| 336 | .stage-frame { position: relative; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); |
| 337 | background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 18px 18px; } |
| 338 | .stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; } |
| 339 | .stage svg { position: absolute; inset: 0; overflow: visible; pointer-events: none; } |
| 340 | .edge path { fill: none; } |
| 341 | .edge path.line { stroke: var(--line-strong); stroke-width: 1.6; } |
| 342 | .edge.taken path.line { stroke: var(--faint); } |
| 343 | .edge.active path.line { stroke: var(--hot); stroke-width: 3; } |
| 344 | .edge .hit { stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: help; } |
| 345 | .edge .badge { pointer-events: all; cursor: help; } |
| 346 | .edge .badge circle { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.4; } |
| 347 | .edge .badge text { fill: var(--muted); font: 600 11.5px var(--sans); text-anchor: middle; dominant-baseline: central; } |
| 348 | .edge.active .badge circle { fill: var(--hot); stroke: var(--hot); } |
| 349 | .edge.active .badge text { fill: #fff; } |
| 350 | .pulse { fill: var(--hot); } |
| 351 | .node { position: absolute; border-radius: 5px; border: 1.5px solid var(--border-effect); background: var(--card-effect); padding: 8px 11px; overflow: hidden; cursor: help; |
| 352 | transition: border-color 0.25s, box-shadow 0.25s; } |
| 353 | .node.kind-outside { background: var(--card-outside); border-color: var(--border-outside); border-style: dashed; } |
| 354 | .node.kind-decision { background: var(--card-decision); border-color: var(--border-decision); } |
| 355 | .node.kind-state { background: var(--card-state); border-color: var(--border-state); } |
| 356 | .node .title { font-weight: 700; font-size: 15px; line-height: 1.25; } |
| 357 | .node .module { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-bottom: 4px; } |
| 358 | .node .module.outside { font-family: var(--sans); font-style: italic; } |
| 359 | .node .lines { display: grid; gap: 1px; font-size: 12.5px; } |
| 360 | .node .lines div { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); } |
| 361 | .node .lines b { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
| 362 | .node .lines b.changed { animation: flash 1.2s ease-out; border-radius: 2px; } |
| 363 | @keyframes flash { 0% { background: var(--hot-soft); color: var(--hot); } 100% { background: transparent; } } |
| 364 | .node.status-busy { border-color: var(--busy); box-shadow: 0 0 0 3px var(--busy-soft); } |
| 365 | .node.status-ok { border-color: var(--ok); border-style: solid; } |
| 366 | .node.status-error { border-color: var(--error); box-shadow: 0 0 0 3px var(--error-soft); border-style: solid; } |
| 367 | .node.status-off { opacity: 0.75; border-style: dashed; } |
| 368 | .node.active { border-color: var(--hot); border-style: solid; box-shadow: 0 0 0 4px var(--hot-soft), var(--shadow); } |
| 369 | .cells { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 11px; color: var(--faint); } |
| 370 | .cells[hidden] { display: none; } |
| 371 | .cells .cell { min-width: 30px; height: 22px; padding: 0 4px; border-radius: 3px; border: 1px dashed var(--line-strong); display: inline-grid; place-items: center; font-weight: 600; font-size: 11.5px; } |
| 372 | .cells .cell.full { border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent-text); } |
| 373 | @media (prefers-reduced-motion: reduce) { .node, .node .lines b.changed { transition: none; animation: none; } } |
| 374 | .controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; } |
| 375 | .controls .ctl { border: 1px solid var(--line); background: var(--surface); border-radius: 4px; height: 34px; min-width: 36px; padding: 0 10px; cursor: pointer; } |
| 376 | .controls .ctl.play { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; } |
| 377 | .controls input[type="range"] { flex: 1 1 180px; accent-color: var(--accent); } |
| 378 | .controls .where { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; white-space: nowrap; } |
| 379 | .step-box { margin-top: 8px; border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; background: var(--surface-2); } |
| 380 | .step-text { font-size: 17px; margin: 0 0 4px; } |
| 381 | .step-meta { font-size: 13px; color: var(--faint); margin: 0 0 8px; } |
| 382 | .tab-panel p { margin: 0 0 8px; } |
| 383 | .code-ref { border: 1px solid var(--line); border-radius: 4px; margin-top: 8px; overflow: hidden; background: var(--surface); } |
| 384 | .code-ref header { display: flex; justify-content: space-between; gap: 8px; padding: 5px 10px; background: var(--surface-2); font-size: 12.5px; color: var(--muted); font-family: var(--mono); flex-wrap: wrap; } |
| 385 | .code-ref pre { padding: 8px 10px; font-size: var(--code-size); overflow: auto; max-height: 280px; } |
| 386 | .asker { display: flex; gap: 6px; } |
| 387 | .asker input { flex: 1; min-width: 0; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 4px; padding: 6px 10px; } |
| 388 | .asker button { border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 4px; padding: 0 14px; cursor: pointer; font-weight: 600; } |
| 389 | .suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } |
| 390 | .suggestions button { border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 3px 10px; font-size: 13px; cursor: pointer; color: var(--muted); } |
| 391 | .results { display: grid; gap: 6px; margin-top: 8px; } |
| 392 | .result { border: 1px solid var(--line); border-radius: 4px; padding: 9px 11px; background: var(--surface); overflow-wrap: anywhere; min-width: 0; } |
| 393 | .result h4 { margin: 0 0 4px; font-size: 14.5px; } |
| 394 | .result p { margin: 0 0 6px; font-size: 14.5px; } |
| 395 | .ai-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13.5px; } |
| 396 | .timeline { max-height: 320px; overflow: auto; margin: 0; padding: 0; list-style: none; font-size: 13.5px; position: relative; } |
| 397 | .timeline li { display: grid; grid-template-columns: 48px 24px 1fr; gap: 6px; padding: 4px 6px; border-radius: 3px; cursor: pointer; } |
| 398 | .timeline li:hover { background: var(--surface); } |
| 399 | .timeline li.current { background: var(--hot-soft); } |
| 400 | .timeline li.future { color: var(--faint); } |
| 401 | .timeline .t, .timeline .e { color: var(--faint); font-variant-numeric: tabular-nums; } |
| 402 | .recorded { font-size: 12.5px; color: var(--faint); margin: 8px 0 0; } |
| 403 | .tooltip { position: fixed; z-index: 60; max-width: 320px; background: var(--text); color: var(--bg); border-radius: 4px; padding: 7px 10px; font-size: 13px; pointer-events: none; } |
| 404 | .tooltip[hidden] { display: none; } |
| 405 | |
| 406 | /* modules */ |
| 407 | .modules { display: grid; gap: 4px; } |
| 408 | .module { background: var(--surface); border: 1px solid var(--line); border-radius: 5px; scroll-margin-top: 100px; } |
| 409 | .card, .measured-module { scroll-margin-top: 100px; } |
| 410 | .card .module { background: var(--bg); } |
| 411 | .module[open] { border-color: var(--line-strong); } |
| 412 | .module > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 5px 10px; } |
| 413 | .module > summary::-webkit-details-marker { display: none; } |
| 414 | .module .name { font-family: var(--mono); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; } |
| 415 | .module .line { color: var(--muted); font-size: 14.5px; } |
| 416 | .tags { display: flex; gap: 5px; flex-wrap: wrap; justify-content: end; } |
| 417 | @media (max-width: 760px) { .module > summary { grid-template-columns: minmax(0, 1fr); gap: 3px; } .tags { justify-content: start; } } |
| 418 | .badge, .tag { font-size: 11.5px; border-radius: 4px; padding: 1px 8px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; } |
| 419 | .badge.verified { border-color: var(--ok); color: var(--ok); } |
| 420 | .badge.new { border-color: var(--hot); color: var(--hot); } |
| 421 | .tag.role { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); } |
| 422 | .tag.third { border-color: var(--hot); color: var(--hot); } |
| 423 | .tag.warn { border-color: var(--error); color: var(--error); } |
| 424 | .tag.measured { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); } |
| 425 | .tag.checks { border-color: var(--busy); color: var(--busy); } |
| 426 | .module-summary { font-size: 15.5px; } |
| 427 | .module-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 4px; } |
| 428 | .module-grid.single { grid-template-columns: minmax(0, 1fr); } |
| 429 | @media (max-width: 1100px) { .module-grid { grid-template-columns: minmax(0, 1fr); } } |
| 430 | .checked-box h5, .module-measures h5 { margin: 0 0 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); } |
| 431 | .module-measures { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 2px; } |
| 432 | .module-body { padding: 4px 10px 10px; border-top: 1px dashed var(--line); display: grid; gap: 6px; } |
| 433 | .module-body p { margin: 4px 0 0; } |
| 434 | .replaces { font-size: 14.5px; } |
| 435 | .deps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 0.8fr) minmax(0, 1fr); gap: 10px; align-items: center; } |
| 436 | @media (max-width: 640px) { .deps { grid-template-columns: minmax(0, 1fr); } } |
| 437 | .deps .col { display: grid; gap: 5px; } |
| 438 | .deps h5 { margin: 0; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); } |
| 439 | .mini { border: 1.3px solid var(--border-effect); background: var(--card-effect); border-radius: 4px; padding: 3px 8px; font-family: var(--mono); font-size: 12.5px; text-decoration: none; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; } |
| 440 | a.mini:hover { border-color: var(--accent); } |
| 441 | .mini.center { border-color: var(--hot); background: var(--hot-soft); font-weight: 700; text-align: center; padding: 6px; } |
| 442 | .mini.none { font-family: var(--sans); color: var(--faint); border-style: dashed; } |
| 443 | .more { font-size: 12.5px; color: var(--faint); } |
| 444 | .copy { border: 1px solid var(--line); background: var(--surface-2); border-radius: 3px; padding: 3px 10px; cursor: pointer; font-size: 12.5px; color: var(--muted); white-space: nowrap; } |
| 445 | .copy.done { color: var(--ok); border-color: var(--ok); } |
| 446 | .tok-k { color: #a2378f; } .tok-s { color: #1f7a45; } .tok-c { color: var(--faint); font-style: italic; } .tok-f { color: #3555c0; } .tok-n { color: #b45c0c; } |
| 447 | :root[data-theme="dark"] .tok-k { color: #e48bd3; } :root[data-theme="dark"] .tok-s { color: #7fd8a3; } :root[data-theme="dark"] .tok-f { color: #93abff; } :root[data-theme="dark"] .tok-n { color: #f5b06b; } |
| 448 | @media (prefers-color-scheme: dark) { |
| 449 | :root:not([data-theme="light"]) .tok-k { color: #e48bd3; } :root:not([data-theme="light"]) .tok-s { color: #7fd8a3; } |
| 450 | :root:not([data-theme="light"]) .tok-f { color: #93abff; } :root:not([data-theme="light"]) .tok-n { color: #f5b06b; } |
| 451 | } |
| 452 | footer.bottom { border-top: 1px solid var(--line); margin-top: 24px; padding: 12px 0 18px; color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; } |
| 453 | footer.bottom .powered { text-align: right; margin-left: auto; } |
| 454 | @media (max-width: 600px) { |
| 455 | .bars { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; } |
| 456 | .bar-row .bar-name { grid-column: 1 / -1; margin-top: 4px; } |
| 457 | .bar-row.missing .bar-text { grid-column: 1 / -1; } |
| 458 | } |
| 459 | |
| 460 | /* the source viewer's widget */ |
| 461 | .source-frame { display: block; width: 100%; border: 0; background: transparent; } |
| 462 | .source-none { margin: 4px 2px; } |
| 463 | .source-card { padding: 8px 10px; } |
| 464 | .module-tabs { margin: 2px 0 0; } |
| 465 | .module-about { display: grid; gap: 6px; } |
| 466 | .module-source { display: grid; gap: 6px; } |
| 467 | .module-source .browse { font-size: 14px; } |