Chatwoot/app/javascript/dashboard/assets/scss/widgets/_conversation-card.scss

89 lines
1.6 KiB
SCSS
Raw Normal View History

@keyframes left-shift-animation {
0%,
100% {
transform: translateX(0);
}
50% {
transform: translateX(1px);
}
}
.conversation {
@include flex;
@include flex-shrink;
border-radius: var(--border-radius-large);
cursor: pointer;
2022-01-03 11:51:04 +00:00
margin: var(--space-smaller) var(--space-small);
padding: var(--space-small);
position: relative;
&.active {
animation: left-shift-animation .25s $swift-ease-out-function;
background: var(--color-background);
}
.conversation--details {
2022-01-03 11:51:04 +00:00
margin-left: var(--space-small);
}
2019-10-27 13:58:02 +00:00
.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;
2021-12-06 15:14:16 +00:00
flex-grow: 0;
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;
}
&.unread-chat {
.unread {
display: inline-block;
}
2019-10-27 13:58:02 +00:00
.conversation--message {
font-weight: $font-weight-bold;
}
2019-10-27 13:58:02 +00:00
.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);
}
}
}