156 lines
2.6 KiB
CSS
156 lines
2.6 KiB
CSS
body, html, form, button, input {
|
|
font-family: "Lucida Console", "Lucida Sans Typewriter", monaco, "Bitstream Vera Sans Mono", monospace;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: #121212;
|
|
color: #e0e0e0;
|
|
height: 100vh;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
height: 100vh;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 200px;
|
|
background-color: #1e1e1e;
|
|
padding: 1rem;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.sidebar h2 {
|
|
color: #e0e0e0;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
#contacts {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.contact-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
color: white;
|
|
padding: 0.5rem;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.contact-item:hover {
|
|
background-color: #2c2c2c;
|
|
}
|
|
|
|
.remove-contact {
|
|
background-color: #ff4d4d;
|
|
color: white;
|
|
border: none;
|
|
padding: 2px 5px;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.remove-contact:hover {
|
|
background-color: #ff3333;
|
|
}
|
|
|
|
.chat-area {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
}
|
|
|
|
#recipientForm {
|
|
background: rgba(30, 30, 30, 0.95);
|
|
padding: 0.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
|
|
z-index: 1000;
|
|
}
|
|
|
|
#messages {
|
|
flex-grow: 1;
|
|
overflow-y: auto;
|
|
padding: 1rem;
|
|
list-style-type: none;
|
|
margin: 0;
|
|
}
|
|
|
|
#messages > li {
|
|
padding: 0.75rem 1.5rem;
|
|
margin: 0.5rem 0;
|
|
border-radius: 20px;
|
|
background: #1e1e1e;
|
|
max-width: 80%;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
#messages > li:nth-child(odd) {
|
|
background: #2c7a2e;
|
|
}
|
|
|
|
#form {
|
|
background: rgba(30, 30, 30, 0.95);
|
|
padding: 0.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
#input, #recipient {
|
|
border: 1px solid #555;
|
|
padding: 0.5rem 1rem;
|
|
flex-grow: 1;
|
|
border-radius: 20px;
|
|
margin-right: 0.5rem;
|
|
font-size: 1rem;
|
|
background-color: #1f1f1f;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
#input:focus, #recipient:focus {
|
|
outline: none;
|
|
border-color: #1a73e8;
|
|
}
|
|
|
|
button {
|
|
background-color: #2c7a2e;
|
|
color: #e0e0e0;
|
|
padding: 10px 15px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
margin: 0 10px;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #368f39;
|
|
}
|
|
|
|
#settings {
|
|
background-color: #1a73e8;
|
|
}
|
|
|
|
#settings:hover {
|
|
background-color: #155bb5;
|
|
}
|
|
|
|
#messageBox {
|
|
color: red;
|
|
margin: 0 10px;
|
|
}
|
|
.unread {
|
|
height: 5px;
|
|
width: 5px;
|
|
background-color: #bbb;
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
} |