99 lines
1.6 KiB
CSS
99 lines
1.6 KiB
CSS
/* Overall chat-screen */
|
|
.chat {
|
|
position: fixed;
|
|
top: 80px;
|
|
left: 256px;
|
|
text-align: center;
|
|
padding: 15px 0;
|
|
width: calc(100% - 256px);
|
|
height: calc(100% - 120px);
|
|
display: inline-flex;
|
|
}
|
|
|
|
.chat-left {
|
|
width: 256px;
|
|
height: 100%;
|
|
margin-left: 10px;
|
|
margin-right: 10px;
|
|
display: inline-flex;
|
|
|
|
}
|
|
.chat-recent, .chat-history {
|
|
border-radius: 20px;
|
|
width: 100%;
|
|
background-color: white;
|
|
}
|
|
|
|
/* List of chats. */
|
|
.chat-recent {
|
|
height: 600px;
|
|
overflow-y: auto;
|
|
padding: 10px;
|
|
text-align: left;
|
|
}
|
|
|
|
.chat-conversation {
|
|
margin: 5px;
|
|
}
|
|
|
|
.chat-right {
|
|
width: calc(100% - 256px - 40px);
|
|
height: calc(100% - 80px);
|
|
vertical-align: bottom;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
/* Chat history. */
|
|
.chat-history {
|
|
overflow-y: auto;
|
|
height: 100%;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.chat-message {
|
|
width: 100%;
|
|
min-height: 40px;
|
|
padding-top: 10px;
|
|
clear: both;
|
|
}
|
|
|
|
.chat-message-self, .chat-message-other {
|
|
text-align: left;
|
|
border-radius: 20px;
|
|
padding: 10px 12px;
|
|
max-width: 45%;
|
|
}
|
|
|
|
.chat-message-self {
|
|
float: right;
|
|
margin-right: 10px;
|
|
background-color: darkgreen;
|
|
color: white;
|
|
}
|
|
|
|
.chat-message-other {
|
|
float: left;
|
|
margin-left: 10px;
|
|
background-color: aquamarine;
|
|
}
|
|
|
|
/* Chat reply field */
|
|
|
|
.chat-field {
|
|
padding: 15px;
|
|
}
|
|
|
|
.chat-field input {
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.chat-field input[type="text"] {
|
|
width: calc(100% - 80px);
|
|
}
|
|
|
|
.chat-field input[type="submit"] {
|
|
width: auto;
|
|
background-color: #845663;
|
|
color: white;
|
|
padding: 5px 10px;
|
|
} |