Files
websockets-chat-golang/static/index.css
T
2026-07-24 21:38:32 +01:00

60 lines
962 B
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: monospace;
display: flex;
flex-direction: column;
height: 100vh;
background: #1a1a2e;
color: #e0e0e0;
}
#messages {
flex: 1;
overflow-y: auto;
padding: 1rem;
}
.message {
padding: 0.4rem 0.6rem;
margin-bottom: 0.3rem;
background: #16213e;
border-radius: 4px;
word-break: break-word;
}
#publish-form {
display: flex;
padding: 1rem;
background: #0f0f23;
border-top: 1px solid #333;
}
#message-input {
flex: 1;
padding: 0.5rem;
background: #16213e;
border: 1px solid #333;
border-radius: 4px;
color: #e0e0e0;
font-family: monospace;
}
#publish-form button {
margin-left: 0.5rem;
padding: 0.5rem 1rem;
background: #6d4aff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
#publish-form button:hover {
background: #5a3acc;
}