Chat_with_Evison / ui /styles.css
SoniAI's picture
Upload folder using huggingface_hub
5884015 verified
Raw
History Blame Contribute Delete
3.45 kB
html,
body,
.gradio-container {
background: #0a0f1f !important;
color: #e5e7eb !important;
}
:root {
color-scheme: dark;
}
:root {
--bg-main: #0a0f1f;
--bg-panel: #0f172a;
--bg-card: #111827;
--bg-elevated: #1e293b;
--bg-input: #0f172a;
--text-primary: #e5e7eb;
--text-secondary: #9ca3af;
--text-muted: #6b7280;
--accent: #22c55e;
--accent-strong: #16a34a;
--border-subtle: rgba(148, 163, 184, 0.18);
--radius-lg: 18px;
--radius-md: 10px;
--shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
--shadow-card: 0 10px 24px rgba(0, 0, 0, 0.45);
}
.app-row {
max-width: 1180px;
margin: 50px auto;
padding: 28px;
border-radius: 26px;
background: var(--bg-card);
border: 1px solid rgba(255, 255, 255, 0.04);
box-shadow: var(--shadow-soft);
}
.title-text h3,
.title-text h1 {
color: var(--text-primary);
font-weight: 600;
}
#chatbot {
background: var(--bg-panel) !important;
border-radius: var(--radius-lg);
border: 1px solid var(--border-subtle);
height: 520px !important;
box-shadow: var(--shadow-card);
}
#chatbot .message.user {
background: rgba(255, 255, 255, 0.05) !important;
color: var(--text-primary) !important;
}
#chatbot .message.bot {
background: rgba(20, 25, 40, 0.8) !important;
color: var(--text-secondary) !important;
}
#chat-input {
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 0 !important;
}
#chat-input textarea {
width: 100%;
background: #020617;
border: 1px solid rgba(148, 163, 184, 0.35);
font-size: 0.95rem;
color: #e5e7eb;
outline: none;
box-shadow: none;
transition: border-color 0.15s ease, box-shadow 0.15s ease,
background-color 0.15s ease;
}
#chat-input textarea::placeholder {
color: rgba(148, 163, 184, 0.8);
}
#chat-input textarea:focus {
background-color: #020617;
border-color: #585858; /* soft green */
box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}
.button-row {
margin-top: 12px;
gap: 12px;
}
#send-btn {
background: linear-gradient(135deg, #1ed760, #1abc5b);
border: none;
color: white;
font-weight: 600;
border-radius: 999px;
padding: 0.65rem 1.8rem;
font-size: 0.95rem;
box-shadow: 0 4px 14px rgba(30, 215, 96, 0.25); /* subtle shadow */
transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
#send-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 18px rgba(30, 215, 96, 0.32);
filter: brightness(1.05);
}
#send-btn:active {
transform: scale(0.97);
box-shadow: 0 3px 12px rgba(30, 215, 96, 0.2);
}
#clear-btn {
background: transparent;
color: var(--text-secondary);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 999px;
padding: 0.65rem 1.8rem;
}
#clear-btn:hover {
background: rgba(255, 255, 255, 0.06);
color: var(--text-primary);
}
.about-card {
background: var(--bg-panel) !important;
padding: 22px;
border-radius: var(--radius-lg);
border: 1px solid rgba(255, 255, 255, 0.06);
box-shadow: var(--shadow-card);
color: var(--text-secondary) !important;
}
.about-card h3 {
color: var(--text-primary);
margin-bottom: 10px;
}
.about-card li::marker {
color: var(--accent);
}
@media (max-width: 768px) {
.app-row {
margin: 20px;
padding: 18px;
}
}