Skip to content

3D engine that AI agents drive

4.4 KB
Raw Blame
/* The marketplace page: packs and addons as quiet surfaces, separated by spacing. No rules between rows. */
body.marketplace > main { gap: 40px; }
.marketplace main > section { display: grid; gap: 16px; }
.marketplace main > h1 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -1.4px; }
.market-list { display: grid; gap: 12px; }
.market-icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.market-card { display: grid; gap: 16px; padding: 16px; border-radius: var(--panel-radius); background: var(--bg); min-width: 0; }
.market-card h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: 18px; overflow-wrap: anywhere; }
.marketplace .market-card h3 a:hover { text-decoration: underline; }
.market-version { color: var(--muted); font-family: var(--mono); font-size: 13px; font-weight: 400; }
.market-description { color: var(--muted); font-size: 15px; }
.market-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.market-facts li { padding: 3px 10px; border-radius: 6px; background: var(--tint); color: var(--muted); font-size: 13px; }

.pack-card { grid-template-columns: 168px minmax(0, 1fr); align-items: start; }
.pack-preview { width: 168px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--window); }
.pack-preview-empty { display: grid; place-items: center; color: var(--muted); }
.pack-preview-empty .market-icon { width: 36px; height: 36px; }
.pack-body { display: grid; gap: 12px; min-width: 0; }
.pack-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pack-checksum { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 12px; }
.pack-checksum span { white-space: nowrap; }
.pack-checksum code { min-width: 0; overflow-wrap: anywhere; font-size: 12px; user-select: text; }

.marketplace .market-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control-height); padding: 8px 16px; border-radius: var(--radius); background: var(--primary); color: var(--primary-text); font-size: 14px; font-weight: 500; user-select: none; }
.marketplace .market-button:hover { opacity: .88; }
.market-button-icon { width: 17px; height: 17px; }
.marketplace .market-button-quiet { background: var(--tint); color: var(--text); }
.marketplace .market-button-quiet:hover { opacity: 1; background: var(--tint-strong); }
.market-copy { min-height: 30px; padding: 4px 12px; font-size: 13px; }

.addon-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.addon-body { display: grid; gap: 8px; min-width: 0; }

.market-trust, .market-state { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--panel-radius); background: var(--bg); color: var(--muted); font-size: 15px; }
.market-trust .market-icon { margin-top: 2px; color: var(--text); }
.market-state { align-items: center; flex-wrap: wrap; }
.marketplace .market-state a { color: var(--text); text-decoration: underline; }
.market-state-error .market-icon { color: var(--error); }
@media (prefers-reduced-motion: no-preference) {
  .market-state-loading .market-icon { animation: market-spin 1s linear infinite; }
}
@keyframes market-spin { to { transform: rotate(360deg); } }

.market-install { display: grid; gap: 12px; margin-top: 12px; padding: 16px; border-radius: var(--panel-radius); background: var(--bg); }
.market-install ol { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.market-install li { display: grid; gap: 8px; counter-increment: step; }
.market-install li p { color: var(--muted); font-size: 15px; }
.market-install li p::before { content: counter(step) ". "; font-variant-numeric: tabular-nums; }
.market-install .command-row code, .market-card .command-row code { user-select: text; }

.marketplace button, .marketplace .market-button, .marketplace .section-heading a { user-select: none; }

@media (max-width: 640px) {
  body.marketplace { --page: calc(100% - 32px); }
  .pack-card { grid-template-columns: minmax(0, 1fr); }
  .pack-preview { width: 100%; max-height: 220px; aspect-ratio: 16 / 9; }
  .addon-card { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .addon-card .market-button { justify-self: start; }
  .pack-actions { align-items: flex-start; }
}