2019-08-14 09:48:44 +00:00
|
|
|
.conversation {
|
|
|
|
@include flex;
|
|
|
|
@include flex-shrink;
|
2020-05-04 17:37:56 +00:00
|
|
|
@include padding(0 0 0 $space-normal);
|
|
|
|
align-items: center;
|
|
|
|
border-bottom: 1px solid transparent;
|
|
|
|
border-left: $space-micro solid transparent;
|
|
|
|
border-top: 1px solid transparent;
|
2019-08-14 09:48:44 +00:00
|
|
|
cursor: pointer;
|
2020-02-16 10:16:26 +00:00
|
|
|
position: relative;
|
2019-08-14 09:48:44 +00:00
|
|
|
|
|
|
|
&.active {
|
|
|
|
background: $color-background;
|
2020-05-04 17:37:56 +00:00
|
|
|
border-bottom-color: $color-border-light;
|
2020-05-02 04:17:36 +00:00
|
|
|
border-left-color: $color-woot;
|
2020-05-04 17:37:56 +00:00
|
|
|
border-top-color: $color-border-light;
|
|
|
|
|
|
|
|
.conversation--details {
|
|
|
|
border-top-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
+.conversation .conversation--details {
|
|
|
|
border-top-color: transparent;
|
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
|
|
|
|
2020-05-04 17:37:56 +00:00
|
|
|
&:first-child {
|
|
|
|
.conversation--details {
|
|
|
|
border-top-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:nth-last-child(2) {
|
|
|
|
.conversation--details {
|
|
|
|
border-bottom-color: $color-border-light;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
.conversation--details {
|
2020-05-04 17:37:56 +00:00
|
|
|
@include margin(0 0 0 $space-one);
|
2019-08-14 09:48:44 +00:00
|
|
|
@include border-light-bottom;
|
2020-05-04 17:37:56 +00:00
|
|
|
@include border-light-top;
|
|
|
|
@include padding($space-slab 0);
|
|
|
|
border-bottom-color: transparent;
|
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;
|
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;
|
2020-02-16 10:16:26 +00:00
|
|
|
width: 27rem;
|
2020-03-22 06:14:40 +00:00
|
|
|
|
|
|
|
.small-icon {
|
|
|
|
font-size: $font-size-mini;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
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--meta {
|
2020-02-16 10:16:26 +00:00
|
|
|
@include flex;
|
|
|
|
flex-direction: column;
|
2019-08-14 09:48:44 +00:00
|
|
|
position: absolute;
|
|
|
|
right: $space-normal;
|
|
|
|
top: $space-normal;
|
|
|
|
|
|
|
|
.unread {
|
2020-05-04 17:37:56 +00:00
|
|
|
$unread-size: $space-normal;
|
2020-02-16 10:16:26 +00:00
|
|
|
@include round-corner;
|
2020-05-04 17:37:56 +00:00
|
|
|
@include light-shadow;
|
2019-08-14 09:48:44 +00:00
|
|
|
background: darken($success-color, 3%);
|
|
|
|
color: $color-white;
|
2020-02-16 10:16:26 +00:00
|
|
|
display: none;
|
2020-05-02 04:17:36 +00:00
|
|
|
font-size: $font-size-micro;
|
2020-05-04 17:37:56 +00:00
|
|
|
font-weight: $font-weight-black;
|
2020-02-16 10:16:26 +00:00
|
|
|
height: $unread-size;
|
|
|
|
line-height: $unread-size;
|
2019-08-14 09:48:44 +00:00
|
|
|
margin-left: auto;
|
|
|
|
margin-top: $space-smaller;
|
2020-02-16 10:16:26 +00:00
|
|
|
min-width: $unread-size;
|
|
|
|
padding: 0 $space-smaller;
|
|
|
|
text-align: center;
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
2019-10-27 13:58:02 +00:00
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
.timestamp {
|
|
|
|
color: $dark-gray;
|
|
|
|
font-size: $font-size-micro;
|
2020-02-16 10:16:26 +00:00
|
|
|
font-weight: $font-weight-normal;
|
|
|
|
line-height: $space-normal;
|
2019-08-14 09:48:44 +00:00
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.unread-chat {
|
|
|
|
.unread {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2019-10-27 13:58:02 +00:00
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
.conversation--message {
|
|
|
|
font-weight: $font-weight-medium;
|
|
|
|
}
|
2019-10-27 13:58:02 +00:00
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
.conversation--user {
|
|
|
|
font-weight: $font-weight-medium;
|
|
|
|
}
|
|
|
|
}
|
2020-01-13 05:47:03 +00:00
|
|
|
|
|
|
|
&.compact {
|
|
|
|
padding-left: 0;
|
|
|
|
|
|
|
|
.conversation--details {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|