/
ALMY
/
Chat_WebSocket
Обзор
Документация
Войти
/
ALMY
/
Chat_WebSocket
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
web/style.css
158 строк
2 KB
almy-win
first_commit
29 мар 2026, 11:10
29 мар 2026, 11:10
5440b67
Код
Авторство
О чём код?
* { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f0f2f5; color: #333; display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; } .chat-container { width: 100%; max-width: 1200px; height: 80vh; background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); display: flex; overflow: hidden; } .sidebar { width: 260px; background: #f7f9fc; border-right: 1px solid #ddd; padding: 20px; display: flex; flex-direction: column; } .sidebar h3 { font-size: 1.1em; margin-bottom: 15px; color: #2c3e50; } .users-list { list-style: none; overflow-y: auto; flex: 1; } .user-item { padding: 10px 14px; margin-bottom: 6px; background: white; border-radius: 8px; cursor: pointer; transition: all 0.2s; font-size: 0.95em; display: flex; justify-content: space-between; align-items: center; } .user-item:hover { background: #e0ebff; } .user-item.active { background: #0b65c2; color: white; } .user-item.unread::after { content: "●"; color: #e74c3c; font-weight: bold; margin-left: 6px; } .chat-area { flex: 1; display: flex; flex-direction: column; } .messages { flex: 1; padding: 20px; overflow-y: auto; background: #fdfdfd; display: flex; flex-direction: column; } .message { max-width: 80%; padding: 10px 14px; margin-bottom: 10px; border-radius: 12px; line-height: 1.4; word-wrap: break-word; } .message.mine { align-self: flex-end; background: #0b65c2; color: white; } .message.other { align-self: flex-start; background: #e4e6eb; color: #000; } .placeholder { color: #aaa; font-style: italic; align-self: center; } .input-area { padding: 12px 16px; border-top: 1px solid #ddd; background: white; display: flex; gap: 10px; } #messageInput { flex: 1; padding: 12px; border: 1px solid #ccc; border-radius: 24px; outline: none; font-size: 1em; } #messageInput:focus { border-color: #0b65c2; } #sendButton { width: 48px; height: 48px; border: none; background: #0b65c2; color: white; border-radius: 50%; cursor: pointer; font-size: 1.2em; display: flex; align-items: center; justify-content: center; } #sendButton:hover { background: #0a56a4; }