.conversation { @include flex; @include flex-shrink; @include padding($space-normal $zero $zero $space-normal); cursor: pointer; position: relative; &.active { background: $color-background; } .conversation--details { @include margin($zero $zero $zero $space-one); @include border-light-bottom; @include padding($zero $zero $space-slab $zero); } .conversation--user { font-size: $font-size-small; margin-bottom: $zero; 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: $zero; max-width: 96%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 27rem; .small-icon { font-size: $font-size-mini; vertical-align: top; } } .conversation--meta { @include flex; display: block; flex-direction: column; position: absolute; right: $space-normal; top: $space-normal; .unread { $unread-size: $space-two - $space-micro; @include round-corner; background: darken($success-color, 3%); color: $color-white; display: none; font-size: $font-size-mini; font-weight: $font-weight-medium; height: $unread-size; line-height: $unread-size; margin-left: auto; margin-top: $space-smaller; min-width: $unread-size; padding: 0 $space-smaller; text-align: center; } .timestamp { color: $dark-gray; font-size: $font-size-micro; font-weight: $font-weight-normal; line-height: $space-normal; margin-left: auto; } } &.unread-chat { .unread { display: inline-block; } .conversation--message { font-weight: $font-weight-medium; } .conversation--user { font-weight: $font-weight-medium; } } &.compact { padding-left: 0; .conversation--details { margin-left: 0; } } }