Chatwoot/app/javascript/dashboard/assets/scss/widgets/_conversation-card.scss
2021-12-03 20:46:49 +05:30

89 lines
1.6 KiB
SCSS

@keyframes left-shift-animation {
0%,
100% {
transform: translateX(0);
}
50% {
transform: translateX(1px);
}
}
.conversation {
@include flex;
@include flex-shrink;
padding: 0 var(--space-small);
margin: var(--space-small);
border-radius: var(--border-radius-large);
cursor: pointer;
position: relative;
&.active {
animation: left-shift-animation .25s $swift-ease-out-function;
background: var(--color-background);
}
.conversation--details {
@include margin(0 0 0 $space-small);
@include padding($space-small 0);
}
.conversation--user {
font-size: $font-size-small;
margin-bottom: 0;
text-transform: capitalize;
.label {
left: $space-micro;
max-width: $space-jumbo;
overflow: hidden;
position: relative;
text-overflow: ellipsis;
top: $space-micro;
white-space: nowrap;
}
}
.conversation--message {
color: $color-body;
font-size: $font-size-small;
font-weight: $font-weight-normal;
height: $space-medium;
line-height: $space-medium;
margin: 0;
max-width: 96%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: auto;
flex-grow: 0;
}
&.unread-chat {
.unread {
display: inline-block;
}
.conversation--message {
font-weight: $font-weight-bold;
}
.conversation--user {
font-weight: $font-weight-bold;
}
}
&.compact {
padding-left: 0;
.conversation--details {
border-radius: var(--border-radius-small);
margin-left: 0;
padding-left: var(--space-two);
padding-right: var(--space-small);
}
}
}