2020-11-29 07:58:36 +00:00
|
|
|
@keyframes left-shift-animation {
|
|
|
|
|
|
|
|
0%,
|
|
|
|
100% {
|
|
|
|
transform: translateX(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
50% {
|
|
|
|
transform: translateX(1px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
.conversation {
|
|
|
|
@include flex;
|
|
|
|
@include flex-shrink;
|
2021-12-03 15:16:49 +00:00
|
|
|
border-radius: var(--border-radius-large);
|
2019-08-14 09:48:44 +00:00
|
|
|
cursor: pointer;
|
2022-01-03 11:51:04 +00:00
|
|
|
margin: var(--space-smaller) var(--space-small);
|
|
|
|
padding: var(--space-small);
|
2020-02-16 10:16:26 +00:00
|
|
|
position: relative;
|
2019-08-14 09:48:44 +00:00
|
|
|
|
|
|
|
&.active {
|
2020-11-29 07:58:36 +00:00
|
|
|
animation: left-shift-animation .25s $swift-ease-out-function;
|
2021-12-03 15:16:49 +00:00
|
|
|
background: var(--color-background);
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
|
|
|
|
2020-05-04 17:37:56 +00:00
|
|
|
|
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
.conversation--details {
|
2022-01-03 11:51:04 +00:00
|
|
|
margin-left: var(--space-small);
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
2019-10-27 13:58:02 +00:00
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
.conversation--user {
|
|
|
|
font-size: $font-size-small;
|
2020-05-04 17:37:56 +00:00
|
|
|
margin-bottom: 0;
|
2020-02-16 10:16:26 +00:00
|
|
|
text-transform: capitalize;
|
2019-08-14 09:48:44 +00:00
|
|
|
|
|
|
|
.label {
|
|
|
|
left: $space-micro;
|
|
|
|
max-width: $space-jumbo;
|
|
|
|
overflow: hidden;
|
2020-02-16 10:16:26 +00:00
|
|
|
position: relative;
|
2019-08-14 09:48:44 +00:00
|
|
|
text-overflow: ellipsis;
|
2020-02-16 10:16:26 +00:00
|
|
|
top: $space-micro;
|
2019-08-14 09:48:44 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.conversation--message {
|
2020-02-16 10:16:26 +00:00
|
|
|
color: $color-body;
|
2021-12-06 15:14:16 +00:00
|
|
|
flex-grow: 0;
|
2019-08-14 09:48:44 +00:00
|
|
|
font-size: $font-size-small;
|
2020-02-19 05:00:34 +00:00
|
|
|
font-weight: $font-weight-normal;
|
2020-02-16 10:16:26 +00:00
|
|
|
height: $space-medium;
|
|
|
|
line-height: $space-medium;
|
2020-05-04 17:37:56 +00:00
|
|
|
margin: 0;
|
2020-02-16 10:16:26 +00:00
|
|
|
max-width: 96%;
|
2019-08-14 09:48:44 +00:00
|
|
|
overflow: hidden;
|
2020-02-16 10:16:26 +00:00
|
|
|
text-overflow: ellipsis;
|
2019-08-14 09:48:44 +00:00
|
|
|
white-space: nowrap;
|
2021-12-03 15:16:49 +00:00
|
|
|
width: auto;
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.unread-chat {
|
|
|
|
.unread {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2019-10-27 13:58:02 +00:00
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
.conversation--message {
|
2020-07-01 09:10:21 +00:00
|
|
|
font-weight: $font-weight-bold;
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
2019-10-27 13:58:02 +00:00
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
.conversation--user {
|
2020-07-01 09:10:21 +00:00
|
|
|
font-weight: $font-weight-bold;
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
|
|
|
}
|
2020-01-13 05:47:03 +00:00
|
|
|
|
|
|
|
&.compact {
|
|
|
|
padding-left: 0;
|
|
|
|
|
|
|
|
.conversation--details {
|
2021-09-05 18:49:09 +00:00
|
|
|
border-radius: var(--border-radius-small);
|
2020-01-13 05:47:03 +00:00
|
|
|
margin-left: 0;
|
2021-09-05 18:49:09 +00:00
|
|
|
padding-left: var(--space-two);
|
|
|
|
padding-right: var(--space-small);
|
2020-01-13 05:47:03 +00:00
|
|
|
}
|
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|