You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
soapbox/app/styles/chats.scss

118 lines
2.0 KiB

.pane {
box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.3);
position: fixed;
bottom: 0;
right: 20px;
width: 265px;
height: 265px;
max-height: calc(100vh - 70px);
display: flex;
flex-direction: column;
z-index: 99999;
transition: 0.2s;
&--main {
height: calc(100vh - 70px);
.pane__header {
font-size: 16px;
}
}
&--minimized {
height: 31px;
}
&__header {
box-sizing: border-box;
background: var(--brand-color);
color: #fff;
padding: 0 10px;
font-weight: bold;
border-radius: 6px 6px 0 0;
display: flex;
align-items: center;
height: 31px;
.account__avatar {
margin-right: 7px;
}
.pane__title {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
height: 100%;
background: transparent;
border: 0;
padding: 0;
color: #fff;
font-weight: bold;
text-align: left;
font-size: 14px;
}
.icon-button {
color: #fff;
> div {
height: auto !important;
width: auto !important;
margin-right: -6px;
}
}
.pane__close {
margin-left: auto;
}
}
&__content {
background: var(--foreground-color);
display: flex;
flex: 1;
flex-direction: column;
overflow: hidden;
}
&__actions {
background: var(--foreground-color);
margin-top: auto;
padding: 6px;
input {
width: 100%;
margin: 0;
box-sizing: border-box;
padding: 6px;
background: var(--background-color);
border: 0;
border-radius: 6px;
color: var(--primary-text-color);
font-size: 16px;
}
}
}
.chat-messages {
overflow-y: scroll;
}
.chat-message {
margin: 14px 10px;
display: flex;
&__bubble {
padding: 4px 10px;
max-width: 70%;
border-radius: 10px;
background-color: var(--background-color);
}
&--me .chat-message__bubble {
margin-left: auto;
background-color: hsla(var(--brand-color_hsl), 0.2);
}
}