SWAT-D12 / chat /web /app.css
CrowdMind's picture
Release SWAT-D12 chat checkpoint and local inference app
10b4603 verified
Raw History Blame Contribute Delete
8.54 kB
:root {
color-scheme: light;
font-family: Inter, "Segoe UI", system-ui, sans-serif;
color: #201d2e;
background: #f9f8fc;
--muted: #6d677e;
--accent: #6344c4;
--accent-dark: #5133ac;
--border: #e7e2ef;
--sidebar: #211a36;
--sidebar-text: #f9f5ff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid #936af7; outline-offset: 4px; }
.shell {
display: grid;
grid-template-columns: 258px minmax(0, 1fr);
height: 100vh;
height: 100dvh;
}
.sidebar {
background: var(--sidebar);
color: var(--sidebar-text);
display: flex;
flex-direction: column;
padding: 30px 18px 18px;
min-height: 0;
}
.brand {
display: flex;
align-items: center;
gap: 12px;
margin: 0 8px 35px;
font-size: 22px;
font-weight: 660;
letter-spacing: -.055em;
}
.berry {
display: inline-block;
position: relative;
flex: 0 0 auto;
width: 28px;
height: 28px;
}
.berry i { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #b198ff; }
.berry i:nth-child(1) { left: 2px; top: 8px; background: #8d6cf0; }
.berry i:nth-child(2) { left: 13px; top: 6px; background: #bb9eff; }
.berry i:nth-child(3) { left: 9px; top: 15px; background: #a484ff; }
.berry::before {
content: "";
position: absolute;
top: 1px;
left: 11px;
width: 9px;
height: 5px;
border-radius: 100% 12% 100% 12%;
background: #bcaafb;
transform: rotate(-22deg);
}
.new-chat {
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
color: #fff;
background: #6047a5;
border: 1px solid #8068be;
border-radius: 10px;
padding: 9px 12px;
min-height: 43px;
font-size: 14px;
font-weight: 620;
}
.new-chat span { font-size: 19px; font-weight: 400; line-height: 1; }
.new-chat:hover:enabled { background: #6d50b9; }
.new-chat:disabled { opacity: .58; }
.library-heading { display: flex; align-items: center; justify-content: space-between; margin: 31px 7px 10px; }
.library-heading h2 { margin: 0; color: #d4c8e9; font-size: 13px; font-weight: 620; }
.refresh { border: 0; background: transparent; color: #e4d8fa; font-size: 21px; line-height: 1; padding: 4px; border-radius: 5px; }
.refresh:hover:enabled { background: #3a2b55; }
.model-list { display: grid; gap: 5px; overflow-y: auto; padding: 0 2px 5px; }
.model-list > p { margin: 5px 7px; color: #b6a9cc; font-size: 13px; }
.model {
display: grid;
grid-template-columns: 9px minmax(0, 1fr);
align-items: start;
gap: 9px;
text-align: left;
width: 100%;
padding: 11px 9px;
background: transparent;
color: #eee6fa;
border: 1px solid transparent;
border-radius: 9px;
}
.model:hover:enabled { background: #312646; }
.model[aria-pressed="true"] { background: #3b2d56; border-color: #584373; }
.model:disabled { opacity: .65; }
.model-dot { height: 7px; width: 7px; border: 1px solid #a690c7; border-radius: 50%; margin-top: 6px; }
.model[aria-pressed="true"] .model-dot { background: #c4a7ff; border-color: #c4a7ff; }
.model-name { font-size: 14px; font-weight: 630; overflow-wrap: anywhere; }
.model-detail { display: block; margin-top: 3px; font-size: 12px; color: #c8badc; line-height: 1.38; }
.folder-location {
margin-top: auto;
display: flex;
align-items: center;
gap: 9px;
padding: 15px 8px 3px;
color: #b9abd1;
font-size: 12px;
}
.folder-icon { display: inline-block; position: relative; width: 13px; height: 9px; border: 1px solid currentColor; border-radius: 2px; }
.folder-icon::before { content: ""; position: absolute; left: -1px; top: -4px; width: 6px; height: 4px; border: 1px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }
.workspace { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 18px;
min-height: 74px;
padding: 13px 29px;
background: #fdfcff;
border-bottom: 1px solid var(--border);
}
.current { min-width: 0; }
.current h1 { margin: 0; font-size: 18px; font-weight: 675; letter-spacing: -.035em; overflow-wrap: anywhere; }
.current span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.current span:empty { display: none; }
.device {
color: #57466a;
background: #f4effb;
border: 1px solid #ebe0f8;
border-radius: 16px;
font-size: 11px;
font-weight: 680;
letter-spacing: .035em;
padding: 5px 9px;
display: inline-flex;
align-items: center;
gap: 6px;
}
.device i { width: 6px; height: 6px; border-radius: 50%; background: #8f69cf; }
.scroll { min-height: 0; overflow-y: auto; padding: 25px 24px; display: flex; flex-direction: column; }
.scroll:focus-visible { outline-offset: -3px; }
.empty { margin: auto; padding: 20px 6px 36px; text-align: center; max-width: 460px; }
.empty-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 60px;
height: 60px;
background: #eee7fa;
border: 1px solid #e3d6f7;
border-radius: 18px;
margin-bottom: 19px;
}
.empty-icon .berry { transform: scale(1.14); }
.empty h2 { font-size: clamp(26px, 3vw, 35px); letter-spacing: -.06em; font-weight: 665; margin: 0 0 12px; }
.empty p { margin: 0 0 16px; font-size: 14px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.empty p:empty { display: none; }
.reload { background: white; border: 1px solid #dcd0ee; border-radius: 9px; padding: 8px 13px; font-size: 13px; color: var(--accent-dark); font-weight: 650; }
.reload:hover:enabled { background: #f4effb; }
.transcript { width: min(100%, 760px); margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.message { max-width: 100%; }
.message.user { align-self: flex-end; max-width: min(82%, 620px); }
.message-label { font-size: 12px; font-weight: 670; color: var(--muted); margin: 0 0 5px 3px; }
.message.user .message-label { text-align: right; margin-right: 3px; }
.message-text {
padding: 13px 16px;
border: 1px solid var(--border);
border-radius: 12px;
background: white;
white-space: pre-wrap;
overflow-wrap: anywhere;
line-height: 1.62;
font-size: 15px;
}
.message.user .message-text { background: #eee7fc; border-color: #e3d7f8; }
.message-text:empty::before { content: "…"; color: var(--muted); }
.composer-area { padding: 0 24px 13px; }
.composer, .status, .keyboard-hint { width: min(100%, 760px); margin-left: auto; margin-right: auto; }
.composer {
display: flex;
gap: 10px;
align-items: flex-end;
padding: 9px;
border-radius: 15px;
background: #fff;
border: 1px solid #e1d9ed;
box-shadow: 0 6px 22px #3428570a;
}
.composer:focus-within { border-color: #a687dd; box-shadow: 0 0 0 2px #eee6fa; }
.composer textarea { flex: 1; min-width: 0; min-height: 39px; max-height: 150px; resize: none; border: 0; background: transparent; outline: 0; padding: 9px 6px; line-height: 1.4; color: inherit; }
.composer textarea::placeholder { color: #746a84; }
.send, .stop { min-height: 38px; border: 0; border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 650; }
.send { color: white; background: var(--accent); }
.send:hover:enabled { background: var(--accent-dark); }
.send:disabled { background: #eae2f5; color: #685b79; }
.send span { margin-left: 3px; }
.stop { background: #eee6f8; color: #4f356c; }
.stop:hover { background: #e4d7f4; }
.status { min-height: 19px; margin-top: 0; margin-bottom: 7px; font-size: 12px; color: #695785; }
.status.error { color: #a33149; }
.keyboard-hint { text-align: center; margin-top: 9px; color: var(--muted); font-size: 11px; }
.keyboard-hint span { margin: 0 3px; }
@media (max-width: 670px) {
.shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
.sidebar { padding: 10px 13px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.brand { margin: 0; font-size: 19px; }
.new-chat { min-height: 33px; padding: 5px 9px; }
.library-heading { margin: 8px 2px 2px; grid-column: 1 / -1; }
.model-list { grid-column: 1 / -1; max-height: 88px; grid-template-columns: repeat(auto-fit, minmax(min(158px, 100%), 1fr)); }
.model { padding: 6px 5px; }
.model-name { font-size: 13px; }
.model-detail { font-size: 11px; }
.folder-location { display: none; }
.topbar { min-height: 57px; padding: 8px 15px; }
.scroll { padding: 15px 12px; }
.composer-area { padding: 0 12px 9px; }
.empty { padding-bottom: 12px; }
.keyboard-hint { display: none; }
}