| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 | //// Component: Direct Chat//.direct-chat {  .card-body {    overflow-x: hidden;    padding: 0;    position: relative;  }  &.chat-pane-open {    .direct-chat-contacts {      @include translate(0, 0);    }  }  &.timestamp-light {    .direct-chat-timestamp {      color: lighten(color-yiq($yiq-text-light), 10%);    }  }  &.timestamp-dark {    .direct-chat-timestamp {      color: darken(color-yiq($yiq-text-dark), 20%);    }  }}.direct-chat-messages {  @include translate(0, 0);  height: 250px;  overflow: auto;  padding: 10px;}.direct-chat-msg,.direct-chat-text {  display: block;}.direct-chat-msg {  @include clearfix ();  margin-bottom: 10px;}.direct-chat-messages,.direct-chat-contacts {  transition: transform .5s ease-in-out;}.direct-chat-text {  @if $enable-rounded {    @include border-radius($border-radius-lg);  }  background-color: $direct-chat-default-msg-bg;  border: 1px solid $direct-chat-default-msg-border-color;  color: $direct-chat-default-font-color;  margin: 5px 0 0 50px;  padding: 5px 10px;  position: relative;  //Create the arrow  &::after,  &::before {    border: solid transparent;    border-right-color: $direct-chat-default-msg-border-color;    content: " ";    height: 0;    pointer-events: none;    position: absolute;    right: 100%;    top: 15px;    width: 0;  }  &::after {    border-width: 5px;    margin-top: -5px;  }  &::before {    border-width: 6px;    margin-top: -6px;  }  .right & {    margin-left: 0;    margin-right: 50px;    &::after,    &::before {      border-left-color: $direct-chat-default-msg-border-color;      border-right-color: transparent;      left: 100%;      right: auto;    }  }}.direct-chat-img {  @include border-radius(50%);  float: left;  height: 40px;  width: 40px;  .right & {    float: right;  }}.direct-chat-infos {  display: block;  font-size: $font-size-sm;  margin-bottom: 2px;}.direct-chat-name {  font-weight: 600;}.direct-chat-timestamp {  color: darken($gray-500, 25%);}//Direct chat contacts pane.direct-chat-contacts-open {  .direct-chat-contacts {    @include translate(0, 0);  }}.direct-chat-contacts {  @include translate(101%, 0);  background-color: $dark;  bottom: 0;  color: $white;  height: 250px;  overflow: auto;  position: absolute;  top: 0;  width: 100%;}.direct-chat-contacts-light {  background-color: $light;  .contacts-list-name {    color: $gray-700;  }  .contacts-list-date {    color: $gray-600;  }  .contacts-list-msg {    color: darken($gray-600, 10%);  }}//Contacts list -- for displaying contacts in direct chat contacts pane.contacts-list {  @include list-unstyled ();  > li {    @include clearfix ();    border-bottom: 1px solid rgba($black, .2);    margin: 0;    padding: 10px;    &:last-of-type {      border-bottom: 0;    }  }}.contacts-list-img {  @include border-radius(50%);  float: left;  width: 40px;}.contacts-list-info {  color: $white;  margin-left: 45px;}.contacts-list-name,.contacts-list-status {  display: block;}.contacts-list-name {  font-weight: 600;}.contacts-list-status {  font-size: $font-size-sm;}.contacts-list-date {  color: $gray-400;  font-weight: 400;}.contacts-list-msg {  color: darken($gray-400, 10%);}// Color variants@each $name, $color in $theme-colors {  .direct-chat-#{$name} {    @include direct-chat-variant($color);  }}@each $name, $color in $colors {  .direct-chat-#{$name} {    @include direct-chat-variant($color);  }}@include dark-mode () {  .direct-chat-text {    background-color: lighten($dark, 7.5%);    border-color: lighten($dark, 10%);    color: $white;    &::after,    &::before {      border-right-color: lighten($dark, 10%);    }  }  .direct-chat-timestamp {    color: $gray-500;  }  .right > .direct-chat-text {    &::after,    &::before {      border-right-color: transparent;    }  }  // Color variants  @each $name, $color in $theme-colors-alt {    .direct-chat-#{$name} {      @include direct-chat-variant($color);    }  }  @each $name, $color in $colors-alt {    .direct-chat-#{$name} {      @include direct-chat-variant($color);    }  }}
 |