rename html folder to public
This commit is contained in:
91
website/public/styles/chat.css
Normal file
91
website/public/styles/chat.css
Normal file
@@ -0,0 +1,91 @@
|
||||
/* Overall chat-screen */
|
||||
.chat {
|
||||
position: fixed;
|
||||
top: 80px;
|
||||
left: 256px;
|
||||
padding: 15px 0;
|
||||
width: calc(100% - 256px);
|
||||
height: calc(100% - 120px);
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.chat-left {
|
||||
width: 256px;
|
||||
height: calc(100% - 100px);
|
||||
margin: 0 10px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.chat-right {
|
||||
width: calc(100% - 256px - 40px);
|
||||
height: calc(100% - 80px);
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
/* Chat history. */
|
||||
.chat-history {
|
||||
overflow-y: auto;
|
||||
height: 100%;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
/* Chat-message takes the whole width of the chat area */
|
||||
.chat-message {
|
||||
width: 100%;
|
||||
min-height: 40px;
|
||||
padding-top: 10px;
|
||||
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: darkgreen;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.chat-message-other {
|
||||
float: left;
|
||||
margin-left: 10px;
|
||||
background-color: aquamarine;
|
||||
}
|
||||
|
||||
/* Chat reply field */
|
||||
|
||||
.chat-field {
|
||||
width: 100%;
|
||||
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;
|
||||
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-radius: 0 10px 10px 0;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
|
||||
}
|
||||
Reference in New Issue
Block a user