Restyling light pastel: tema blanco/azul/verde + Inter self-hosted
- theme.css reescrito: paleta light (sky/emerald accents, slate neutrals), tokens de spacing/typography/radii/shadows, @font-face Inter + JetBrains Mono variable woff2 self-hosted. - ops-shell: header blanco con nav active=accent-soft + status pill pastel. - run-timeline: bubbles emerald-100 (user) / blue-100 (bot) sobre blanco. - home-dashboard: helpers cssVar + withAlpha, 6 charts coordinados a paleta pastel (--chart-blue/green/purple/orange/pink/gray). - 8 CRUDs (users, products, orders, conversations, aliases, recommendations, quantities, takeovers, settings, debug) migrados de hex hardcoded oscuros a var(--*). - modal.js + toast.js refactor a vars con fallbacks; modal blanco con shadow-lg y soft icon backgrounds. - test-panel: aliases :host apuntan a globals en vez de override dark. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -11,25 +11,49 @@ class ChatSimulator extends HTMLElement {
|
||||
this._sending = false;
|
||||
this.shadowRoot.innerHTML = `
|
||||
<style>
|
||||
:host { display:block; height:100%; overflow:hidden; }
|
||||
:host { display:block; height:100%; overflow:hidden; font-family: var(--font-sans); background: var(--panel); }
|
||||
* { box-sizing:border-box; }
|
||||
.container { display:grid; grid-template-columns:1fr 1fr; gap:0; height:100%; min-height:0; overflow:hidden; }
|
||||
.col { display:flex; flex-direction:column; padding:10px 12px; border-right:1px solid var(--border); min-width:0; min-height:0; overflow:hidden; }
|
||||
.col {
|
||||
display:flex; flex-direction:column;
|
||||
padding: var(--space-4) var(--space-5);
|
||||
border-right: 1px solid var(--border);
|
||||
min-width:0; min-height:0; overflow:hidden;
|
||||
}
|
||||
.col:last-child { border-right:none; }
|
||||
.muted { color:var(--text-muted); font-size:11px; margin-bottom:6px; }
|
||||
.row { display:flex; gap:8px; align-items:center; }
|
||||
input,textarea,button { background:var(--panel-2); color:var(--text); border:1px solid var(--border-hi); border-radius:var(--r-sm); padding:6px 8px; font-size:12px; box-sizing:border-box; }
|
||||
.muted { color: var(--text-muted); font-size: var(--fs-xs); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: var(--fw-semibold); }
|
||||
.row { display:flex; gap: var(--space-2); align-items:center; }
|
||||
input, textarea, button, select {
|
||||
background: var(--panel);
|
||||
color: var(--text);
|
||||
border: 1px solid var(--border-hi);
|
||||
border-radius: var(--r-md);
|
||||
padding: 8px 12px;
|
||||
font: 400 var(--fs-sm)/1.4 var(--font-sans);
|
||||
box-sizing:border-box;
|
||||
transition: border-color .15s, box-shadow .15s;
|
||||
}
|
||||
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
|
||||
input { width:100%; min-width:0; }
|
||||
textarea { width:100%; resize:vertical; min-height:120px; max-height:60vh; min-width:0; margin-bottom:10px; word-break:break-word; overflow-wrap:anywhere; }
|
||||
button { cursor:pointer; white-space:nowrap; }
|
||||
button.primary { background:var(--accent); border-color:var(--accent); }
|
||||
button:disabled { opacity:.6; cursor:not-allowed; }
|
||||
.status { font-size:11px; color:var(--text-muted); margin-top:6px; word-break:break-word; }
|
||||
.inputs-col { display:flex; flex-direction:column; gap:6px; flex:1; min-height:0; min-width:0; overflow-y:auto; padding-right:4px; }
|
||||
textarea {
|
||||
width:100%; resize:vertical;
|
||||
min-height:120px; max-height:60vh;
|
||||
min-width:0; margin-bottom: var(--space-3);
|
||||
word-break:break-word; overflow-wrap:anywhere;
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--fs-sm);
|
||||
}
|
||||
button { cursor:pointer; white-space:nowrap; font-weight: var(--fw-medium); }
|
||||
button:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); }
|
||||
button.primary { background: var(--accent); border-color: var(--accent); color: var(--text-on-acc); }
|
||||
button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--text-on-acc); }
|
||||
button:disabled { opacity:.5; cursor:not-allowed; }
|
||||
.status { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 8px; word-break:break-word; }
|
||||
.inputs-col { display:flex; flex-direction:column; gap: 10px; flex:1; min-height:0; min-width:0; overflow-y:auto; padding-right: 4px; }
|
||||
.field { display:flex; flex-direction:column; min-width:0; }
|
||||
.field label { font-size:10px; color:var(--text-muted); margin-bottom:2px; }
|
||||
.field label { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 4px; font-weight: var(--fw-medium); }
|
||||
.msg-col { display:flex; flex-direction:column; min-width:0; min-height:0; flex:1; }
|
||||
.msg-bottom { display:flex; gap:8px; align-items:center; margin-top:6px; flex-wrap:wrap; }
|
||||
.msg-bottom { display:flex; gap: var(--space-2); align-items:center; margin-top: 8px; flex-wrap:wrap; }
|
||||
</style>
|
||||
|
||||
<div class="container">
|
||||
|
||||
Reference in New Issue
Block a user