55 lines
773 B
CSS
55 lines
773 B
CSS
.chat-container {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.chat-messages {
|
|
height: 400px;
|
|
overflow-y: auto;
|
|
border: 1px solid #ccc;
|
|
padding: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.message {
|
|
margin-bottom: 10px;
|
|
padding: 5px;
|
|
background: #f5f5f5;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.username {
|
|
font-weight: bold;
|
|
margin-right: 10px;
|
|
color: #2c5282;
|
|
}
|
|
|
|
.timestamp {
|
|
color: #666;
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.chat-form {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
#messageInput {
|
|
flex: 1;
|
|
padding: 8px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
button {
|
|
padding: 8px 16px;
|
|
background: #4299e1;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:hover {
|
|
background: #2b6cb0;
|
|
} |