chat / css /input.css
incognitolm's picture
Initial
5383ef0 verified
Raw
History Blame
4.94 kB
/* ── Center (welcome) input ──────────────────────────────────────────────── */
.center-input-container {
display: flex;
flex-direction: column;
background: var(--bg-raised);
border: 1px solid var(--border-bright);
border-radius: var(--radius-xl);
padding: 12px 14px 10px;
gap: 10px;
box-shadow: var(--shadow-md);
transition: border-color var(--transition), box-shadow var(--transition);
}
.center-input-container:focus-within {
border-color: rgba(74,158,255,0.4);
box-shadow: var(--shadow-glow-blue);
}
.center-textarea {
width: 100%;
background: transparent;
border: none;
outline: none;
color: var(--text);
font-size: 16px;
line-height: 1.55;
min-height: 26px;
max-height: calc(1.55em * 6 + 24px);
overflow-y: auto;
padding: 0 4px;
}
.center-textarea::placeholder { color: var(--text-muted); }
.center-input-actions {
display: flex;
align-items: center;
gap: 4px;
}
.tool-btn {
display: flex; align-items: center; justify-content: center;
width: 30px; height: 30px;
border-radius: var(--radius-md);
color: var(--text-muted);
transition: color var(--transition), background var(--transition);
}
.tool-btn:hover { color: var(--text); background: var(--bg-hover); }
.tool-btn.active { color: var(--yellow); background: var(--yellow-glow); }
.send-btn-center {
display: flex; align-items: center; justify-content: center;
width: 34px; height: 34px; border-radius: 50%;
background: var(--yellow); color: #111;
margin-left: auto;
transition: opacity var(--transition), transform var(--transition);
flex-shrink: 0;
}
.send-btn-center:hover { opacity: 0.88; transform: scale(1.05); }
.send-btn-center:disabled { opacity: 0.4; transform: none; }
/* Attach btn beside center input */
.attach-btn-wrap {
display: flex;
align-items: flex-end;
}
.attach-btn {
display: flex; align-items: center; justify-content: center;
width: 30px; height: 30px; border-radius: 50%;
color: var(--text-muted);
border: 1px solid var(--border-bright);
transition: color var(--transition), background var(--transition);
}
.attach-btn:hover { color: var(--text); background: var(--bg-hover); }
/* ── Bottom input bar ────────────────────────────────────────────────────── */
.bottom-input-bar {
flex-shrink: 0;
padding: 0 24px 16px;
}
.file-preview-row {
display: flex; flex-wrap: wrap; gap: 8px;
padding: 0 0 8px;
max-width: 760px; margin: 0 auto;
}
.bottom-input-wrap {
display: flex;
align-items: flex-end;
gap: 8px;
max-width: 760px;
margin: 0 auto;
background: var(--bg-raised);
border: 1px solid var(--border-bright);
border-radius: var(--radius-xl);
padding: 8px 10px;
box-shadow: var(--shadow-md);
transition: border-color var(--transition), box-shadow var(--transition);
}
.bottom-input-wrap:focus-within {
border-color: rgba(74,158,255,0.4);
box-shadow: var(--shadow-glow-blue);
}
.attach-btn-bottom {
flex-shrink: 0;
display: flex; align-items: center; justify-content: center;
width: 30px; height: 30px; border-radius: 50%;
color: var(--text-muted);
margin-bottom: 4px;
transition: color var(--transition), background var(--transition);
}
.attach-btn-bottom:hover { color: var(--text); background: var(--bg-hover); }
.bottom-textarea-wrap {
flex: 1; min-width: 0;
display: flex; flex-direction: column; gap: 6px;
}
.tool-row {
display: flex; gap: 4px;
}
.tool-btn-sm {
display: inline-flex; align-items: center; gap: 5px;
padding: 3px 9px; border-radius: var(--radius-full);
font-size: 12px; color: var(--text-muted);
border: 1px solid transparent;
transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.tool-btn-sm:hover { color: var(--text); border-color: var(--border-bright); }
.tool-btn-sm.active {
color: var(--yellow);
border-color: rgba(229,200,70,0.3);
background: var(--yellow-glow);
}
.bottom-textarea {
width: 100%;
background: transparent;
border: none;
outline: none;
color: var(--text);
font-size: 15px;
line-height: 1.55;
min-height: calc(1.55em + 2px);
max-height: calc(1.55em * 6 + 2px);
overflow-y: auto;
padding: 0;
}
.bottom-textarea::placeholder { color: var(--text-muted); }
.send-btn-bottom {
flex-shrink: 0;
display: flex; align-items: center; justify-content: center;
width: 34px; height: 34px; border-radius: 50%;
background: var(--yellow); color: #111;
margin-bottom: 2px;
transition: opacity var(--transition), transform var(--transition);
}
.send-btn-bottom:hover { opacity: 0.88; transform: scale(1.05); }
.send-btn-bottom:disabled { opacity: 0.4; transform: none; cursor: not-allowed; }
.send-btn-bottom.stop { background: var(--bg-active); color: var(--text); }