Files
WebDB/website/styles/chat.css
Lars van Hijfte b95aa49c32 Styled chat page
Change the chat tap so it has the same style as the rest of the page
2017-01-12 14:59:29 +01:00

112 lines
1.9 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 {
width: 100%;
}
/* 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: 0 0 10px 0;
}
.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 {
width: 100%;
padding: 15px 0;
display: table;
}
.chat-field form {
width: 100%;
overflow: hidden;
}
.chat-field span {
display: block;
overflow: hidden;
}
.chat-field input[type="text"] {
width: 100%;
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}
.chat-field input[type="submit"] {
width: auto;
float: right;
background-color: #845663;
color: white;
padding: 5px 10px;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}