|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
background-color: #1a1a1a;
|
|
color: #e6e6e6;
|
|
line-height: 1.5;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
min-width: 100%;
|
|
}
|
|
main {
|
|
min-width: 100%;
|
|
}
|
|
|
|
header {
|
|
background-color: #0f0f0f;
|
|
padding: 10px 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
header .logo {
|
|
color: #fff;
|
|
font-size: 1.5em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
header nav a {
|
|
color: #aaa;
|
|
text-decoration: none;
|
|
margin-left: 15px;
|
|
font-size: 1em;
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
header nav a:hover {
|
|
color: #fff;
|
|
}
|
|
|
|
main {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 250px;
|
|
background-color: #121212;
|
|
padding: 20px;
|
|
overflow-y: auto;
|
|
border-right: 1px solid #333;
|
|
}
|
|
|
|
.sidebar h2 {
|
|
color: #f05a28;
|
|
font-size: 1.2em;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.sidebar ul {
|
|
list-style: none;
|
|
}
|
|
|
|
.sidebar ul li {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.sidebar ul li a {
|
|
color: #ccc;
|
|
text-decoration: none;
|
|
font-size: 1em;
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
.sidebar ul li a:hover {
|
|
color: #fff;
|
|
}
|
|
|
|
.chat-area {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: #1a1a1a;
|
|
}
|
|
|
|
.chat-header {
|
|
padding: 10px 20px;
|
|
background-color: #0f0f0f;
|
|
border-bottom: 1px solid #333;
|
|
}
|
|
|
|
.chat-header h2 {
|
|
font-size: 1.2em;
|
|
color: #fff;
|
|
}
|
|
message-list {
|
|
flex: 1;;
|
|
height: 200px;
|
|
padding-bottom: 40px;
|
|
overflow-y: auto;
|
|
}
|
|
.chat-messages {
|
|
flex: 1;
|
|
padding: 10px;
|
|
height: 200px;
|
|
background: #1a1a1a;
|
|
}
|
|
|
|
.message-list-manager {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
background: #1a1a1a;
|
|
}
|
|
|
|
.chat-messages .message {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
margin-bottom: 0px;
|
|
padding: 5px;
|
|
/*background: #222;*/
|
|
border-radius: 8px;
|
|
/* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);*/
|
|
}
|
|
|
|
.chat-messages .message .avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: #f05a28;
|
|
color: #fff;
|
|
font-size: 1em;
|
|
font-weight: bold;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
.chat-messages .message .message-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.chat-messages .message .message-content .author {
|
|
font-weight: bold;
|
|
color: #f05a28;
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
.chat-messages .message .message-content .text {
|
|
margin-bottom: 5px;
|
|
color: #e6e6e6;
|
|
}
|
|
|
|
.chat-messages .message .message-content .time {
|
|
font-size: 0.8em;
|
|
color: #aaa;
|
|
}
|
|
|
|
.chat-input {
|
|
padding: 15px;
|
|
background-color: #121212;
|
|
display: flex;
|
|
align-items: center;
|
|
border-top: 1px solid #333;
|
|
}
|
|
|
|
.chat-input textarea {
|
|
flex: 1;
|
|
background-color: #1a1a1a;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px;
|
|
border-radius: 5px;
|
|
resize: none;
|
|
}
|
|
|
|
.chat-input button {
|
|
background-color: #f05a28;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 15px;
|
|
margin-left: 10px;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-size: 1em;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.chat-input button:hover {
|
|
background-color: #e04924;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.sidebar {
|
|
display: none;
|
|
}
|
|
|
|
.chat-area {
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
.message {
|
|
.avatar {
|
|
opacity: 0;
|
|
}
|
|
|
|
.author {
|
|
display: none;
|
|
}
|
|
|
|
.time {
|
|
display: none;
|
|
}
|
|
}
|
|
.message.switch-user {
|
|
.avatar {
|
|
opacity: 1;
|
|
}
|
|
.author {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.message:has(+ .message.switch-user) {
|
|
.time {
|
|
display: block;
|
|
}
|
|
}
|