Files
michaelschiemer/public/css/chat.css

88 lines
1.4 KiB
CSS

body {
font-family: Arial, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
.chat-container {
border: 1px solid #ccc;
border-radius: 8px;
overflow: hidden;
display: flex;
flex-direction: column;
height: 500px;
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 15px;
background: #f9f9f9;
}
.message {
margin-bottom: 10px;
padding: 8px 12px;
border-radius: 18px;
max-width: 80%;
word-wrap: break-word;
}
.message.system {
background-color: #f0f0f0;
color: #666;
text-align: center;
margin-left: auto;
margin-right: auto;
font-style: italic;
}
.message.user {
background-color: #e3f2fd;
margin-right: auto;
}
.message.self {
background-color: #dcf8c6;
margin-left: auto;
}
.chat-input {
display: flex;
padding: 10px;
background: #fff;
border-top: 1px solid #eee;
}
#messageInput {
flex: 1;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 20px;
margin-right: 10px;
}
button {
background-color: #4CAF50;
color: white;
border: none;
padding: 8px 16px;
border-radius: 20px;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
.connection-status {
text-align: center;
margin-bottom: 10px;
font-weight: bold;
}
.status-connecting { color: #f39c12; }
.status-connected { color: #2ecc71; }
.status-disconnected { color: #e74c3c; }