DevMate / src /App.css
FrederickSundeep's picture
commit update 0000001
7db2a6d
.App {
text-align: center;
}
.App-logo {
height: 40vmin;
pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}
.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
.App-link {
color: #61dafb;
}
body {
font-family: 'Roboto', sans-serif;
background: #121212;
color: #ffffff;
}
h2 {
color: #bb86fc;
margin-bottom: 20px;
font-weight: 500;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.formatted-text {
white-space: pre-wrap;
line-height: 1.5;
margin-bottom: 8px;
}
/* Global scrollbar styles */
* {
scrollbar-width: thin; /* Firefox */
scrollbar-color: #555 #1e1e2f; /* Firefox */
}
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
width: 8px;
height: 6px;
}
::-webkit-scrollbar-track {
background: #1e1e2f;
}
::-webkit-scrollbar-thumb {
background-color: #555;
border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
background-color: #777;
}
.chat-container {
max-width: 800px;
margin: 0 auto;
display: flex;
flex-direction: column;
height: 100vh;
color: #ffffff;
background: #2a2a2a;
background: #2a2a2a;
border-radius: 12px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
overflow: hidden; /* prevent accidental scrollbars */
}
.header-area {
display: flex;
justify-content: center;
text-align: center;
background: #383838;
}
.chat-input {
display: flex;
padding: 10px;
background: #383838;
}
textarea {
flex-grow: 1;
padding: 10px 12px;
resize: none;
border-radius: 6px;
background: #2a2a2a;
color: #fff;
border: 1px solid #444;
font-size: 14px;
}
.message {
display: block; /* ensures full-width layout */
width: fit-content;
max-width: 85%;
margin-bottom: 12px;
padding: 10px 14px;
border-radius: 16px;
line-height: 1.5;
word-wrap: break-word;
}
.message.user {
align-self: flex-end;
margin-left: auto;
background: #333c4d;
color: #e3f2fd;
border-bottom-right-radius: 0;
}
.message.assistant {
align-self: flex-start;
margin-right: auto;
background: #383838;
border-bottom-left-radius: 0;
}