182 lines
3.2 KiB
CSS
182 lines
3.2 KiB
CSS
body {
|
|
font-family: Arial, sans-serif;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
margin: 0;
|
|
background-color: #e5e5e5;
|
|
}
|
|
|
|
.chat-container {
|
|
width: 100%;
|
|
max-width: 800px;
|
|
height: 90vh;
|
|
background-color: white;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chat-header {
|
|
background-color: #007bb5;
|
|
color: white;
|
|
padding: 25px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
position: relative;
|
|
}
|
|
.room-name {
|
|
position: absolute;
|
|
left: 50%;
|
|
font-size: 24px;
|
|
}
|
|
.members {
|
|
border: none;
|
|
position: absolute;
|
|
left: 80%;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
width: 150px;
|
|
background-color: #f7f7f7;
|
|
height: 25px;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
.members:hover {
|
|
background-color: #218838;
|
|
}
|
|
.chat-messages {
|
|
flex: 1;
|
|
padding: 15px;
|
|
overflow-y: auto;
|
|
background-color: #f7f7f7;
|
|
}
|
|
|
|
.chat-message {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.chat-message .avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.chat-message .avatar img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.chat-message .message-content {
|
|
max-width: 70%;
|
|
background-color: white;
|
|
padding: 10px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.chat-message .message-content .username {
|
|
font-weight: bold;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.chat-message .message-content .text {
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.chat-footer {
|
|
display: flex;
|
|
padding: 15px;
|
|
padding-left: 50px;
|
|
border-top: 1px solid #ddd;
|
|
}
|
|
|
|
.chat-input {
|
|
flex: 1;
|
|
padding: 10px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 20px;
|
|
margin-right: 10px;
|
|
outline: none;
|
|
}
|
|
|
|
.chat-send-button {
|
|
padding: 10px 20px;
|
|
border: none;
|
|
background-color: #0088cc;
|
|
color: white;
|
|
border-radius: 20px;
|
|
cursor: pointer;
|
|
outline: none;
|
|
}
|
|
.members-list {
|
|
display: none;
|
|
position: fixed;
|
|
background-color: #fff;
|
|
margin: 10% auto;
|
|
padding: 20px;
|
|
border: 1px solid #888;
|
|
width: 80%;
|
|
max-width: 400px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
|
|
}
|
|
.members-list-header {
|
|
display: flex;
|
|
}
|
|
.all-members {
|
|
position: absolute;
|
|
left: 32%;
|
|
top: 0%;
|
|
margin-bottom: 30px;
|
|
font-family: Arial, sans-serif;
|
|
}
|
|
.close {
|
|
position: absolute;
|
|
right: 5%;
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
}
|
|
.members-list span {
|
|
cursor: pointer;
|
|
}
|
|
.members-list-body ul {
|
|
list-style-type: none;
|
|
left: 0%;
|
|
}
|
|
.members-list-body img {
|
|
margin-top: 10px;
|
|
left: 0%;
|
|
height: 30px;
|
|
width: 30px;
|
|
border-radius: 50%;
|
|
}
|
|
.members-list-body a {
|
|
margin-left: 5px;
|
|
margin-top: 10px;
|
|
text-decoration: none;
|
|
color: black;
|
|
}
|
|
.overlay {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 1000;
|
|
}
|
|
.chat-send-button:hover {
|
|
background-color: #007bb5;
|
|
} |