inkling-playground / style.css
amirsharfu's picture
Inkling Playground: static multimodal demo with OAuth + streamed reasoning
0ef9612 verified
Raw
History Blame Contribute Delete
4.09 kB
:root {
color-scheme: light dark;
--bg: #fbfbfd;
--panel: #ffffff;
--border: #e3e3ec;
--ink: #16161d;
--muted: #6b6b7b;
--accent: #5b5bd6;
--accent-soft: #eeeefc;
--pink: #d6478a;
--radius: 14px;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #0e0e13;
--panel: #17171f;
--border: #2a2a36;
--ink: #ececf2;
--muted: #9a9aae;
--accent: #8b8bf0;
--accent-soft: #1e1e2e;
--pink: #f07ab0;
}
}
* { box-sizing: border-box; }
body {
margin: 0;
padding: 2rem 1.25rem 4rem;
background: var(--bg);
color: var(--ink);
font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 1080px; margin: 0 auto; }
header { margin-bottom: 1.75rem; }
h1 {
margin: 0 0 .4rem;
font-size: clamp(1.8rem, 4vw, 2.5rem);
letter-spacing: -.02em;
background: linear-gradient(100deg, var(--accent), var(--pink));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.tagline { margin: 0; color: var(--muted); max-width: 60ch; }
a { color: var(--accent); }
.grid {
display: grid;
grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
gap: 1.25rem;
align-items: start;
}
@media (max-width: 860px) {
.grid { grid-template-columns: 1fr; }
}
.card {
background: var(--panel);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.1rem;
}
label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .4rem; }
textarea, input[type="number"] {
width: 100%;
padding: .7rem .8rem;
border-radius: 10px;
border: 1px solid var(--border);
background: var(--bg);
color: var(--ink);
font: inherit;
resize: vertical;
}
textarea:focus, input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.attachments { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .9rem; }
@media (max-width: 520px) { .attachments { grid-template-columns: 1fr; } }
.drop {
border: 1.5px dashed var(--border);
border-radius: 10px;
padding: .85rem;
text-align: center;
cursor: pointer;
transition: border-color .15s, background .15s;
}
.drop:hover, .drop.is-active { border-color: var(--accent); background: var(--accent-soft); }
.drop small { display: block; color: var(--muted); font-size: .75rem; }
.drop .filled { font-size: .8rem; color: var(--accent); word-break: break-all; }
input[type="file"] { display: none; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
button {
font: inherit;
font-weight: 600;
border-radius: 10px;
border: 1px solid transparent;
padding: .6rem 1.1rem;
cursor: pointer;
background: var(--accent);
color: #fff;
}
button.ghost { background: transparent; border-color: var(--border); color: var(--ink); }
button:disabled { opacity: .5; cursor: not-allowed; }
details.advanced { margin-top: 1rem; }
details.advanced summary { cursor: pointer; font-size: .85rem; color: var(--muted); font-weight: 600; }
.knob { margin-top: .75rem; }
.knob output { float: right; color: var(--muted); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.hint { font-size: .82rem; color: var(--muted); margin-top: .9rem; }
#output { min-height: 300px; white-space: pre-wrap; overflow-wrap: anywhere; }
#output:empty::before { content: "Answers appear here."; color: var(--muted); }
details.think {
background: var(--accent-soft);
border: 1px solid var(--border);
border-radius: 10px;
padding: .6rem .8rem;
margin-bottom: .9rem;
white-space: pre-wrap;
}
details.think summary { cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--muted); }
details.think .body { margin-top: .5rem; font-size: .88rem; color: var(--muted); }
.notice {
border-left: 3px solid var(--pink);
padding: .55rem .8rem;
background: var(--accent-soft);
border-radius: 6px;
font-size: .9rem;
}
.who { font-size: .85rem; color: var(--muted); }
.who b { color: var(--ink); }
footer { margin-top: 2rem; font-size: .82rem; color: var(--muted); }