2020-05-02 04:17:36 +00:00
|
|
|
@mixin bubble-with-types {
|
2020-05-04 17:37:56 +00:00
|
|
|
@include padding($space-small $space-normal);
|
2020-02-19 05:00:34 +00:00
|
|
|
@include margin($zero);
|
2020-05-02 04:17:36 +00:00
|
|
|
background: $color-woot;
|
|
|
|
border-radius: $space-one;
|
2021-01-15 09:10:50 +00:00
|
|
|
color: var(--white);
|
2020-02-19 05:00:34 +00:00
|
|
|
font-size: $font-size-small;
|
2020-05-02 04:17:36 +00:00
|
|
|
font-weight: $font-weight-normal;
|
2020-02-19 05:00:34 +00:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.message-text__wrap {
|
|
|
|
position: relative;
|
2020-05-02 04:17:36 +00:00
|
|
|
|
|
|
|
.link {
|
2021-01-15 09:10:50 +00:00
|
|
|
color: var(--white);
|
2020-06-09 10:56:33 +00:00
|
|
|
text-decoration: underline;
|
2020-05-02 04:17:36 +00:00
|
|
|
}
|
2020-02-19 05:00:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.image {
|
2020-03-22 10:24:36 +00:00
|
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
2020-02-19 05:00:34 +00:00
|
|
|
|
2020-03-22 10:24:36 +00:00
|
|
|
.modal-container {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2020-02-19 05:00:34 +00:00
|
|
|
.modal-image {
|
2020-10-25 18:58:23 +00:00
|
|
|
max-width: 85%;
|
2020-02-19 05:00:34 +00:00
|
|
|
}
|
2020-03-22 10:24:36 +00:00
|
|
|
|
|
|
|
&::before {
|
2020-05-02 04:17:36 +00:00
|
|
|
background-image: linear-gradient(-180deg, transparent 3%, $color-heading 130%);
|
2020-03-22 10:24:36 +00:00
|
|
|
bottom: 0;
|
|
|
|
content: '';
|
|
|
|
height: 20%;
|
|
|
|
left: 0;
|
|
|
|
opacity: .8;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2020-02-19 05:00:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-02 17:14:04 +00:00
|
|
|
.conversations-list-wrap {
|
2019-08-14 09:48:44 +00:00
|
|
|
@include flex;
|
2019-10-20 08:04:19 +00:00
|
|
|
flex-direction: column;
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2020-02-26 15:45:01 +00:00
|
|
|
.load-more-conversations {
|
|
|
|
font-size: $font-size-small;
|
2020-05-02 04:17:36 +00:00
|
|
|
margin: 0;
|
2020-02-26 15:45:01 +00:00
|
|
|
padding: $space-normal;
|
2020-03-22 06:14:40 +00:00
|
|
|
width: 100%;
|
2020-02-26 15:45:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.end-of-list-text {
|
|
|
|
padding: $space-normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.conversations-list {
|
|
|
|
@include flex-weight(1);
|
|
|
|
@include scroll-on-hover;
|
|
|
|
}
|
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
.chat-list__top {
|
2019-12-12 07:23:15 +00:00
|
|
|
@include flex;
|
2020-11-29 07:58:36 +00:00
|
|
|
@include padding($zero $zero $space-micro $zero);
|
2019-12-12 07:23:15 +00:00
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
.page-title {
|
|
|
|
margin-bottom: $zero;
|
|
|
|
margin-left: $space-normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.status--filter {
|
|
|
|
@include padding($zero null $zero $space-normal);
|
|
|
|
@include round-corner;
|
|
|
|
@include margin($space-smaller $space-slab $zero $zero);
|
2020-05-02 04:17:36 +00:00
|
|
|
background-color: $color-background-light;
|
|
|
|
border: 1px solid $color-border;
|
2019-10-07 19:36:01 +00:00
|
|
|
float: right;
|
|
|
|
font-size: $font-size-mini;
|
2019-08-14 09:48:44 +00:00
|
|
|
height: $space-medium;
|
2019-10-07 19:36:01 +00:00
|
|
|
width: auto;
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.content-box {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.conversation-panel {
|
|
|
|
@include flex;
|
|
|
|
@include flex-weight(1);
|
|
|
|
@include margin($zero);
|
2020-02-19 05:00:34 +00:00
|
|
|
flex-direction: column;
|
2019-08-14 09:48:44 +00:00
|
|
|
height: 100%;
|
2020-02-22 13:45:45 +00:00
|
|
|
overflow-y: auto;
|
2021-01-13 12:36:25 +00:00
|
|
|
padding-bottom: var(--space-normal);
|
2020-05-04 17:37:56 +00:00
|
|
|
position: relative;
|
2020-05-02 04:17:36 +00:00
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2020-05-02 04:17:36 +00:00
|
|
|
.conversation-panel>li {
|
|
|
|
@include flex;
|
|
|
|
@include flex-shrink;
|
|
|
|
@include margin($zero $zero $space-micro);
|
2020-05-04 17:37:56 +00:00
|
|
|
position: relative;
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2020-05-02 04:17:36 +00:00
|
|
|
&:first-child {
|
|
|
|
margin-top: auto;
|
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2020-05-02 04:17:36 +00:00
|
|
|
&:last-child {
|
|
|
|
margin-bottom: $space-small;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.unread--toast {
|
|
|
|
span {
|
|
|
|
@include elegant-card;
|
|
|
|
@include round-corner;
|
|
|
|
background: $color-woot;
|
2021-01-15 09:10:50 +00:00
|
|
|
color: var(--white);
|
2020-05-02 04:17:36 +00:00
|
|
|
font-size: $font-size-mini;
|
|
|
|
font-weight: $font-weight-medium;
|
|
|
|
margin: $space-one auto;
|
|
|
|
padding: $space-smaller $space-two;
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
2020-05-02 04:17:36 +00:00
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2020-05-02 04:17:36 +00:00
|
|
|
.bubble {
|
|
|
|
@include bubble-with-types;
|
|
|
|
text-align: left;
|
|
|
|
word-wrap: break-word;
|
|
|
|
|
|
|
|
.aplayer {
|
|
|
|
box-shadow: none;
|
|
|
|
font-family: inherit;
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
2020-05-02 04:17:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.left {
|
2019-08-14 09:48:44 +00:00
|
|
|
|
|
|
|
.bubble {
|
2020-05-02 04:17:36 +00:00
|
|
|
@include border-normal;
|
|
|
|
background: $white;
|
|
|
|
border-bottom-left-radius: $space-smaller;
|
|
|
|
border-top-left-radius: $space-smaller;
|
|
|
|
color: $color-body;
|
|
|
|
margin-right: auto;
|
2021-04-05 05:22:51 +00:00
|
|
|
word-break: break-word;
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2021-01-06 12:26:29 +00:00
|
|
|
&.is-image {
|
|
|
|
border-radius: var(--border-radius-large);
|
|
|
|
}
|
|
|
|
|
2020-05-02 04:17:36 +00:00
|
|
|
.link {
|
|
|
|
color: $color-primary-dark;
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
|
|
|
|
2020-05-02 04:17:36 +00:00
|
|
|
.file {
|
|
|
|
.text-block-title {
|
|
|
|
color: $color-body;
|
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2020-05-02 04:17:36 +00:00
|
|
|
.icon-wrap {
|
|
|
|
color: $color-woot;
|
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2020-05-02 04:17:36 +00:00
|
|
|
.download {
|
|
|
|
color: $color-primary-dark;
|
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
2021-01-15 09:10:50 +00:00
|
|
|
|
2020-05-02 04:17:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
+.right {
|
|
|
|
margin-top: $space-one;
|
2019-08-14 09:48:44 +00:00
|
|
|
|
|
|
|
.bubble {
|
2020-05-02 04:17:36 +00:00
|
|
|
border-top-right-radius: $space-one;
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
2020-05-02 04:17:36 +00:00
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2020-05-02 04:17:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.right {
|
|
|
|
@include flex-align(right, null);
|
2019-10-07 19:36:01 +00:00
|
|
|
|
2020-05-02 04:17:36 +00:00
|
|
|
.wrap {
|
|
|
|
margin-right: $space-normal;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bubble {
|
|
|
|
border-bottom-right-radius: $space-smaller;
|
|
|
|
border-top-right-radius: $space-smaller;
|
|
|
|
margin-left: auto;
|
2021-04-05 05:22:51 +00:00
|
|
|
word-break: break-word;
|
2020-05-02 04:17:36 +00:00
|
|
|
|
|
|
|
&.is-private {
|
|
|
|
background: lighten($warning-color, 32%);
|
2020-07-03 17:47:39 +00:00
|
|
|
border: 1px solid lighten($warning-color, 15%);
|
2020-05-02 04:17:36 +00:00
|
|
|
color: $color-heading;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
bottom: 0;
|
|
|
|
color: $medium-gray;
|
|
|
|
position: absolute;
|
|
|
|
right: $space-one;
|
|
|
|
top: $space-smaller + $space-micro;
|
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
2021-01-06 12:26:29 +00:00
|
|
|
|
|
|
|
&.is-image {
|
|
|
|
border-radius: var(--border-radius-large);
|
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
|
|
|
|
2020-05-02 04:17:36 +00:00
|
|
|
+.left {
|
|
|
|
margin-top: $space-one;
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2020-05-02 04:17:36 +00:00
|
|
|
.bubble {
|
|
|
|
border-top-left-radius: $space-one;
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
|
|
|
}
|
2020-05-02 04:17:36 +00:00
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2021-04-13 17:28:54 +00:00
|
|
|
&.center {
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2020-05-02 04:17:36 +00:00
|
|
|
.wrap {
|
|
|
|
@include margin($zero $space-normal);
|
2021-05-10 14:28:44 +00:00
|
|
|
|
|
|
|
--bubble-max-width: 49.6rem;
|
|
|
|
max-width: Min(var(--bubble-max-width), 85%);
|
2020-05-02 04:17:36 +00:00
|
|
|
|
|
|
|
.sender--name {
|
|
|
|
font-size: $font-size-mini;
|
|
|
|
margin-bottom: $space-smaller;
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
2020-05-02 04:17:36 +00:00
|
|
|
}
|
2019-10-07 19:36:01 +00:00
|
|
|
|
2020-05-02 04:17:36 +00:00
|
|
|
.sender--thumbnail {
|
|
|
|
@include round-corner();
|
|
|
|
height: $space-slab;
|
|
|
|
margin-right: $space-one;
|
|
|
|
margin-top: $space-micro;
|
|
|
|
width: $space-slab;
|
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2020-05-02 04:17:36 +00:00
|
|
|
.activity-wrap {
|
2021-04-08 14:12:03 +00:00
|
|
|
background: var(--s-50);
|
|
|
|
border: 1px solid var(--s-100);
|
|
|
|
border-radius: var(--border-radius-medium);
|
|
|
|
display: flex;
|
|
|
|
font-size: var(--font-size-small);
|
|
|
|
justify-content: center;
|
|
|
|
margin: var(--space-small) var(--space-normal);
|
|
|
|
padding: var(--space-small) var(--space-normal);
|
|
|
|
|
|
|
|
.is-text {
|
2021-01-06 12:26:29 +00:00
|
|
|
display: inline-block;
|
2021-04-08 14:12:03 +00:00
|
|
|
text-align: start;
|
|
|
|
|
2021-04-13 17:28:54 +00:00
|
|
|
@include breakpoint(xxxlarge up) {
|
2021-04-08 14:12:03 +00:00
|
|
|
display: flex;
|
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-05-04 17:37:56 +00:00
|
|
|
|
2021-01-15 09:10:50 +00:00
|
|
|
.activity-wrap .message-text__wrap {
|
|
|
|
.text-content p {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-04 17:37:56 +00:00
|
|
|
.conversation-footer {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.typing-indicator-wrap {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
height: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: -$space-large;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.typing-indicator {
|
|
|
|
@include elegant-card;
|
|
|
|
@include round-corner;
|
2021-01-15 09:10:50 +00:00
|
|
|
background: var(--white);
|
2020-05-04 17:37:56 +00:00
|
|
|
color: $color-light-gray;
|
|
|
|
font-size: $font-size-mini;
|
|
|
|
font-weight: $font-weight-bold;
|
|
|
|
margin: $space-one auto;
|
|
|
|
padding: $space-small $space-normal $space-small $space-two;
|
|
|
|
|
|
|
|
.gif {
|
|
|
|
margin-left: $space-small;
|
|
|
|
width: $space-medium;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-01-15 09:10:50 +00:00
|
|
|
|
|
|
|
.left .bubble .text-content {
|
|
|
|
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
color: var(--color-body);
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: var(--color-woot);
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
blockquote {
|
|
|
|
border-left-color: var(--s-300);
|
|
|
|
|
|
|
|
p {
|
|
|
|
color: var(--s-300);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
p:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.right .bubble .text-content {
|
|
|
|
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
color: var(--white);
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: var(--white);
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
blockquote {
|
|
|
|
border-left-color: var(--w-100);
|
|
|
|
|
|
|
|
p {
|
|
|
|
color: var(--w-100);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pre code {
|
|
|
|
background: var(--color-background);
|
|
|
|
}
|
|
|
|
|
|
|
|
p:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|