v1.6.0/brand new chat ui

This commit is contained in:
2020-08-03 18:05:08 -04:00
parent 3e7494aef4
commit 9d0cb56cda
6 changed files with 1486 additions and 436 deletions
+204 -81
View File
@@ -16,95 +16,218 @@ YouTube logo is a trademark and intellectual property of Google, Inc.
Hulu logo is a trademark and intellectual property of Hulu, LLC.
HBO Now and HBO Max logos are trademark and intellectual property of WarnerMedia Direct,LLC.
************************************************************************/
.thread-container * {
margin: 0;
padding: 0;
font-family: 'Roboto', sans-serif;
letter-spacing: 1.15px;
}
.thread-container {
max-height: none;
padding: 0 15px;
overflow: hidden;
}
.thread-item {
color: white;
width: fit-content;
margin: 10px 0;
width: 100%;
transition: all ease-in-out 0.5s;
}
.thread-item.highlight {
background-color: #111111;
border-radius: 26px 0px 0px 26px;
padding: 16px;
padding-right: 0px;
}
.thread-message {
width: 100%;
white-space: pre-wrap;
margin-top: 25px !important;
font-size: 12px !important;
position: relative;
}
.thread-item.no-space {
margin-top: 0 !important;
}
.system-message {
display: block;
text-align: center;
width: 100%;
text-align: center;
font-size: 12px;
margin-top: 7.5px !important;
color: rgba(147, 147, 147, 0.8) !important;
}
.system-message.alert {
background-color: black;
border-radius: 1rem;
color: white !important;
padding: 5px 10px;
position: sticky;
top: 2px;
z-index: 1;
}
.my-message {
display: block;
width: fit-content;
text-align: right;
margin-left: auto !important;
margin-right: 5px !important;
margin-top: 5px !important;
padding: 2.5px 10px !important;
border-radius: 13px;
max-width: 60%;
word-wrap: break-word;
background-color: rgb(49, 49, 49);
font-size: 14px !important;
}
img.my-message {
margin-right: 0 !important;
padding-right: 0 !important;
border-radius: 1rem;
max-width: 60%;
background: none;
border-radius: 2rem;
}
.party-message {
font-size: 14px !important;
display: block;
width: fit-content;
max-width: 60%;
word-wrap: break-word;
margin-top: 5px !important;
padding: 2.5px 10px !important;
border-radius: 13px;
background-color: rgb(88, 88, 88);
}
img.party-message {
border-radius: 1rem;
max-width: 60%;
background: none;
border-radius: 2rem;
margin-left: 0 !important;
padding-left: 0 !important;
}
.thread-item .name {
color: rgb(149, 149, 149);
font-size: 12px !important;
}
.time {
top: 0;
color: #3a3a3a;
position: absolute;
opacity: 0;
.thread-message .thread-overline {
height: 0;
overflow-y: visible;
font-size: 10px;
transition: all ease-in-out 0.3s;
transition-delay: 0.1s;
white-space: nowrap;
display: flex;
align-items: center;
opacity: 0;
color: #9f9f9f;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: row-reverse;
}
.party-message ~ .time {
right: 0;
.thread-message .thread-overline span {
flex: 1;
text-align: center;
}
.party-message:hover ~ .time {
opacity: 1;
}
.my-message ~ .time {
.thread-message .thread-overline .thread-reply-icon {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
font-size: 20px;
border-radius: 26px;
z-index: 999 !important;
white-space: break-spaces;
left: 0;
cursor: pointer;
bottom: 0;
transition: all ease-in-out 0.3s;
transition-delay: 0.1s;
width: 25px;
height: 25px;
padding: 0;
padding-bottom: 7px;
}
.my-message:hover ~ .time {
.thread-item:hover .thread-message .thread-overline {
height: 24px;
margin-bottom: 7px;
opacity: 1;
}
.thread-message p {
max-width: 65%;
padding: 5px 15px;
background: #424242;
border-radius: 26px;
z-index: 9999 !important;
transition: all ease-in-out 0.3s;
transition-delay: 0.1s;
width: fit-content;
min-height: 25px;
display: flex;
align-items: center;
line-height: 16px;
font-size: 13px;
font-weight: 100;
font-family: 'Roboto';
letter-spacing: 1.5px;
white-space: break-spaces;
word-break: break-all;
}
.thread-message img {
max-width: 55%;
border-radius: 26px;
transition: all ease-in-out 0.3s;
transition-delay: 0.1s;
z-index: 999;
}
.thread-item:hover .thread-message p,
.thread-item:hover .thread-message img {
margin-left: 40px;
}
.thread-message .thread-overline .thread-reply-icon:hover {
opacity: 0.6;
}
.thread-name {
font-size: 11px;
margin-top: 15px;
margin-bottom: 7px;
color: #adadad;
}
.thread-reply {
font-size: 11px;
margin-bottom: -20px;
padding: 7.5px 15px;
padding-bottom: 25px;
border-radius: 13px;
background: #222222;
width: fit-content;
max-width: 45%;
z-index: 999 !important;
transition: all ease-in-out 0.3s;
transition-delay: 0.1s;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
cursor: pointer;
}
.thread-reply-name {
color: #8a8a8a;
font-size: 10px;
text-transform: uppercase;
margin-bottom: 5px !important;
}
.thread-reply p {
width: fit-content;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
.thread-reply img {
max-height: 70px;
border-radius: 26px;
transition: all ease-in-out 0.3s;
transition-delay: 0.1s;
}
.thread-item:hover .thread-reply {
margin-bottom: 0;
padding-bottom: 7.5px;
}
.thread-reply:hover {
background: #111111;
}
.thread-item.continued-message .thread-name {
display: none;
}
/*
M Y
M E S S A G E S
*/
.thread-item.my-message {
display: flex;
flex-direction: column;
align-items: flex-end;
}
.thread-item.thread-item.my-message.highlight {
padding-left: 0px;
}
.thread-item.my-message .thread-name {
display: none;
}
.thread-item.my-message .thread-message {
display: flex;
flex-direction: column;
align-items: flex-end;
}
.thread-item.my-message .thread-message p {
text-align: right;
}
.thread-item.my-message .thread-message .thread-overline {
flex-direction: row;
}
.thread-item.my-message .thread-message .thread-overline .thread-reply-icon {
right: 0;
left: unset;
}
.thread-item.my-message:hover .thread-message p,
.thread-item.my-message:hover .thread-message img {
margin-left: 0;
margin-right: 40px;
}
/*
S Y S T E M
M E S S A G E S
*/
.thread-item.system-message .thread-name,
.thread-item.system-message .thread-reply,
.thread-item.system-message img,
.thread-item.system-message .thread-overline .thread-reply-icon {
display: none;
}
.thread-item.system-message .thread-message p {
width: 100%;
margin: 0 auto;
background: none;
font-size: 12px;
color: #555;
text-align: center;
display: block;
}
.thread-item.system-message:hover .thread-message p {
margin: 0 auto;
}