Files
MERN-template/client/styles/popup-chat.css
T
2021-03-24 03:22:16 +11:00

83 lines
1.2 KiB
CSS

.chat {
position: fixed;
bottom: 23px;
right: 28px;
width: 280px;
border: solid;
border-color: black;
border-width: 2px;
background-color: #CCC;
display: inline-block;
max-height: calc(50vh - 23px);
}
.chat > button.open {
color: white;
background-color: grey;
}
.chat > button.send {
color: white;
background-color: green;
}
.chat > button.close {
color: black;
background-color: red;
}
.chat > button {
width: 100%;
height: 2em;
opacity: 0.8;
}
.chat > button:hover {
opacity: 1;
}
.chat > .input {
width: calc(100% - 10px);
height: 2em;
}
.chat > .log {
min-height: 300px;
}
.chat > .log > .scrollable > .line {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.chat > .log > .scrollable > .line > .report {
color: red;
display: none;
}
.chat > .log > .scrollable > .line:hover {
background-color: #BBB;
}
.chat > .log > .scrollable > .line:hover > .report {
display: flex;
}
.chat > .log > .scrollable > .line > .content > .username {
font-weight: bold;
}
.chat > .log > .scrollable {
margin: 0;
padding: 10px;
min-height: 280px;
max-height: calc(50vh - 23px - 20px - 6em);
overflow-x: wrap;
overflow-y: scroll;
}
.chat ul {
list-style: none;
}