multiparty-meeting/app/stylus/components/Chat.styl

73 lines
1.0 KiB
Stylus

[data-component='Chat'] {
height: 100%;
display: flex;
flex-grow: 1;
flex-direction: column;
}
[data-component='MessageList'] {
overflow-y: scroll;
flex-grow: 1;
> .message {
display: flex;
word-wrap: break-word;
word-break: break-all;
&:not(:first-child) {
margin-top: 0.5rem;
}
> .client {
margin-left: auto;
}
> .client, > .response {
background-color: rgba(#000, 0.1);
border-radius: 5px;
max-width: 85%;
display: flex;
align-items: center;
padding: 0.5rem;
> .message-avatar {
height: 2rem;
border-radius: 50%;
}
> .message-content {
padding-left: 0.5rem;
> .message-text {
font-size: 1rem;
}
> .message-time {
font-size: 0.8rem;
opacity: 0.8;
}
}
}
}
}
[data-component='Sender'] {
display: flex;
background-color: rgba(0, 0, 0, 0.1);
padding: 1rem;
flex-shrink: 0;
border-radius: 5px;
margin-top: 0.5rem;
height: 3rem;
> .new-message {
width: 100%;
border: 0;
color: #FFF;
font-size: 1rem;
&.focus {
outline: none;
}
}
}