Files
WebDB/website/public/styles/chat.css
Lars van Hijfte a57465189a Chat post images
2017-01-27 16:03:33 +01:00

133 lines
2.0 KiB
CSS

body {
overflow: hidden;
}
/* Overall chat-screen */
.chat {
position: fixed;
top: 80px;
left: 256px;
width: calc(100% - 256px);
height: calc(100% - 120px);
padding: 20px 0;
display: inline-block;
}
#chat-recent-panel {
width: 256px;
height: calc(100% - 100px);
display: inline-block;
overflow-y: auto;
}
/* Chat history. */
#chat-history {
overflow-y: auto;
overflow-x: hidden;
width: calc(100% - 256px - 75px);
height: calc(100% - 80px);
padding: 10px;
display: inline-block;
word-wrap: break-word;
}
/* Chat-message takes the whole width of the chat area */
.day-message {
width: 100%;
min-height: 40px;
padding: 10px 0;
clear: both;
text-align: center;
}
.day-message-content {
width: auto;
padding: 10px;
background-color: #F8F8F8;
color: #666;
}
.chat-message {
width: 100%;
min-height: 40px;
padding: 10px 0;
clear: both;
}
.chat-message::after {
content: '';
display: table;
clear: both;
}
.chat-message-self, .chat-message-other {
border-radius: 20px;
padding: 10px;
max-width: 45%;
}
.chat-message-self {
float: right;
margin-right: 10px;
background-color: #FBC02D;
color: #333;
}
.chat-message-other {
float: left;
margin-left: 10px;
background-color: #4CAF50;
color: white;
}
/* Chat reply field */
.chat-field {
width: calc(100% - 10px);
display: table;
}
.chat-field form {
width: 100%;
overflow: hidden;
}
.chat-field span {
display: block;
overflow: hidden;
}
.chat-field input[type="text"] {
width: 100%;
border: none;
border-radius: 10px 0 0 10px;
}
.chat-field input[type="submit"] {
width: auto;
float: right;
background-color: #FBC02D;
color: white;
padding: 5px 10px;
border-radius: 0 10px 10px 0;
}
.active-friend-chat {
background: #4CAF50;
color: white;
}
.chat-message img {
max-width: 100%;
}