Repository Public
1/**2 * =============================================================================3 * SP BOUCHER | SOURCE FILE4 * =============================================================================5 * Project : KA Maps Engine6 * File : sdk/web/demo/demo.css7 * Author : Simon-Pierre Boucher | https://spboucher.ai8 * Contact : support@spboucher.ai9 * Copyright : (c) 2026 Simon-Pierre Boucher10 * License : None specified (no license file in this repository)11 * =============================================================================12 * END OF SP BOUCHER SOURCE HEADER13 * =============================================================================14 */1516:root {17 color-scheme: light;18 --ink: #1b1f24;19 --muted: #4a5360;20 --line: #d5dae0;21 --bg: #f6f7f9;22 --accent: #0b57d0;23}24* {25 box-sizing: border-box;26}27html,28body {29 height: 100%;30 margin: 0;31}32body {33 display: flex;34 flex-direction: column;35 font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;36 color: var(--ink);37 background: var(--bg);38}39.bar {40 padding: 8px 14px;41 border-bottom: 1px solid var(--line);42 background: #fff;43}44.bar h1 {45 margin: 0;46 font-size: 17px;47}48.bar .sub {49 font-weight: 400;50 color: var(--muted);51}52.notice {53 margin: 2px 0 0;54 font-size: 12.5px;55 color: var(--muted);56}57.layout {58 flex: 1;59 min-height: 0;60 display: grid;61 grid-template-columns: 330px 1fr;62}63.panel {64 overflow: auto;65 padding: 8px 12px 24px;66 border-right: 1px solid var(--line);67 background: #fff;68}69.panel section {70 padding: 8px 0 10px;71 border-bottom: 1px solid var(--line);72}73.panel h2 {74 margin: 0 0 6px;75 font-size: 13px;76 text-transform: uppercase;77 letter-spacing: 0.04em;78 color: var(--muted);79}80.tag {81 font-size: 11px;82 padding: 1px 6px;83 border-radius: 9px;84 background: #5b3d00;85 color: #fff;86 text-transform: none;87 letter-spacing: 0;88}89.row {90 display: flex;91 flex-wrap: wrap;92 gap: 6px;93 align-items: end;94 margin: 6px 0;95}96.grow {97 flex: 1;98 min-width: 140px;99}100label {101 display: block;102}103.lbl {104 display: block;105 font-size: 12px;106 color: var(--muted);107}108.check {109 display: flex;110 gap: 6px;111 align-items: center;112}113.checks {114 display: grid;115 grid-template-columns: 1fr 1fr;116 gap: 4px 10px;117}118button,119select,120input[type="search"] {121 font: inherit;122 color: var(--ink);123 padding: 5px 9px;124 border: 1px solid #8a94a1;125 border-radius: 6px;126 background: #fff;127}128input[type="search"],129select {130 width: 100%;131}132button {133 cursor: pointer;134}135button:hover {136 border-color: var(--accent);137}138button[aria-pressed="true"] {139 background: var(--accent);140 border-color: var(--accent);141 color: #fff;142}143:focus-visible {144 outline: 3px solid var(--accent);145 outline-offset: 2px;146}147.msg {148 margin: 4px 0 0;149 font-size: 12.5px;150 color: var(--muted);151 min-height: 1.2em;152}153.results {154 list-style: none;155 margin: 0;156 padding: 0;157}158.results button {159 width: 100%;160 text-align: left;161 margin-top: 4px;162}163.info {164 margin: 0;165 max-height: 200px;166 overflow: auto;167 padding: 6px;168 font: 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;169 background: var(--bg);170 border: 1px solid var(--line);171 border-radius: 6px;172 white-space: pre-wrap;173 word-break: break-word;174}175.stage {176 position: relative;177 min-height: 0;178 min-width: 0;179}180.map {181 position: absolute;182 inset: 0;183}184.perf {185 position: absolute;186 left: 8px;187 top: 8px;188 padding: 6px 8px;189 font: 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;190 color: #e8f0fe;191 background: rgba(16, 20, 26, 0.82);192 border-radius: 6px;193 white-space: pre;194 pointer-events: none;195 z-index: 5;196}197.fallback {198 position: absolute;199 inset: 0;200 display: grid;201 place-content: center;202 text-align: center;203 padding: 24px;204 background: #fff;205}206.fallback[hidden] {207 display: none;208}209.demo-pin {210 padding: 3px 8px;211 border-radius: 12px;212 border: 2px solid #fff;213 background: #1b1f24;214 color: #fff;215 font: 600 12px/1.2 system-ui, sans-serif;216 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);217 cursor: pointer;218}219.demo-popup {220 max-width: 260px;221 padding: 8px 10px;222 border-radius: 8px;223 background: #fff;224 color: var(--ink);225 font-size: 12.5px;226 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);227}228@media (max-width: 760px) {229 .layout {230 grid-template-columns: 1fr;231 grid-template-rows: 46vh 1fr;232 }233 .stage {234 order: -1;235 }236}237@media (prefers-reduced-motion: reduce) {238 * {239 scroll-behavior: auto;240 }241}242243.react-root {244 flex: 1;245 min-height: 0;246 display: flex;247}248.react-root .layout {249 flex: 1;250}251.react-root h1 {252 margin: 0 0 4px;253 font-size: 17px;254}255