/* css/chat.css / / Кодування UTF-8 / body { margin: 0; font-family: Arial, sans-serif;…
- User
/* css/chat.css / / Кодування UTF-8 */
body { margin: 0; font-family: Arial, sans-serif; background-color: #0e0e0e; color: #fff; }
.chat-header { display: flex; align-items: center; justify-content: space-between; /* Додаємо, щоб розташувати елементи по боках */ padding: 10px; background-color: #1e1e1e; flex-shrink: 0; } .chat-header img { border-radius: 50%; width: 50px; height: 50px; }
.chat-header h2 { margin-left: 10px; flex-grow: 1; /* Займає доступний простір між фото та кнопкою звуку */ }
/* Стилі для кнопки керування звуком */ .sound-toggle { cursor: pointer; }
.sound-toggle img { width: 24px; height: 24px; }
.chat-messages { padding: 20px; min-height: calc(100vh - 160px); /* Додаємо min-height */ overflow-y: auto; background-color: #0e0e0e; }
.message { display: flex; margin-bottom: 20px; }
.expert-message { flex-direction: row; }
.user-message { flex-direction: row-reverse; }
.message img { border-radius: 50%; width: 30px; height: 30px; }
.message-content { background-color: #1e1e1e; padding: 10px; border-radius: 10px; max-width: 70%; margin: 0 10px; }
.message-content p { margin: 0; }
.chat-input { /* position: fixed; / / Видаляємо fixed / display: flex; / Додаємо display: flex */ align-items: center; padding: 10px; }
.chat-input form { /* display: flex; / / display: flex; / / align-items: center; */ }
.chat-input textarea { width: 100%; height: 50px; resize: none; border: none; padding: 10px; margin-left: 10px; border-radius: 10px; background-color: #2e2e2e; color: #fff; }
.chat-input button { background-color: #6a82fb; border: none; padding: 10px 20px; margin-left: 10px; color: #fff; border-radius: 5px; cursor: pointer; }
.chat-input button:hover { background-color: #5a72eb; }
.attachment-label { cursor: pointer; font-size: 24px; color: #6a82fb; }
.attachment-label input { display: none; }
@media (max-width: 768px) { .chat-messages { padding: 10px; }
.message-content { max-width: 80%; }}
- Assistant
Hello! It looks like you've shared your CSS code for a chat application. How can I assist you with this code? Do you need help with debugging, optimizing, or adding new features? Let me know how I can help!