2019-07-18 16:22:11 +02:00
|
|
|
//
|
|
|
|
// Component: Direct Chat
|
|
|
|
//
|
2020-05-30 15:06:11 +02:00
|
|
|
|
2015-10-31 22:00:16 +01:00
|
|
|
.direct-chat {
|
2018-03-17 18:07:55 +01:00
|
|
|
.card-body {
|
2015-10-31 22:00:16 +01:00
|
|
|
overflow-x: hidden;
|
|
|
|
padding: 0;
|
2019-06-28 10:02:07 +02:00
|
|
|
position: relative;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
2019-06-28 10:02:07 +02:00
|
|
|
|
2015-10-31 22:00:16 +01:00
|
|
|
&.chat-pane-open {
|
|
|
|
.direct-chat-contacts {
|
|
|
|
@include translate(0, 0);
|
|
|
|
}
|
|
|
|
}
|
2019-10-29 09:22:51 +01:00
|
|
|
|
|
|
|
|
|
|
|
&.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%);
|
|
|
|
}
|
|
|
|
}
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.direct-chat-messages {
|
|
|
|
@include translate(0, 0);
|
|
|
|
height: 250px;
|
|
|
|
overflow: auto;
|
2019-06-28 10:02:07 +02:00
|
|
|
padding: 10px;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.direct-chat-msg,
|
|
|
|
.direct-chat-text {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.direct-chat-msg {
|
2020-05-30 15:06:11 +02:00
|
|
|
@include clearfix ();
|
2015-10-31 22:00:16 +01:00
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.direct-chat-messages,
|
|
|
|
.direct-chat-contacts {
|
|
|
|
transition: transform .5s ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.direct-chat-text {
|
2018-03-17 18:07:55 +01:00
|
|
|
@if $enable-rounded {
|
|
|
|
@include border-radius($border-radius-lg);
|
|
|
|
}
|
|
|
|
|
2020-06-13 12:22:58 +02:00
|
|
|
background-color: $direct-chat-default-msg-bg;
|
2015-10-31 22:00:16 +01:00
|
|
|
border: 1px solid $direct-chat-default-msg-border-color;
|
|
|
|
color: $direct-chat-default-font-color;
|
2019-06-28 10:02:07 +02:00
|
|
|
margin: 5px 0 0 50px;
|
|
|
|
padding: 5px 10px;
|
|
|
|
position: relative;
|
2015-10-31 22:00:16 +01:00
|
|
|
|
|
|
|
//Create the arrow
|
2019-06-28 10:02:07 +02:00
|
|
|
&::after,
|
|
|
|
&::before {
|
2015-10-31 22:00:16 +01:00
|
|
|
border: solid transparent;
|
|
|
|
border-right-color: $direct-chat-default-msg-border-color;
|
2020-05-30 15:06:11 +02:00
|
|
|
content: " ";
|
2015-10-31 22:00:16 +01:00
|
|
|
height: 0;
|
|
|
|
pointer-events: none;
|
2019-06-28 10:02:07 +02:00
|
|
|
position: absolute;
|
|
|
|
right: 100%;
|
|
|
|
top: 15px;
|
|
|
|
width: 0;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
2019-06-28 10:02:07 +02:00
|
|
|
&::after {
|
2015-10-31 22:00:16 +01:00
|
|
|
border-width: 5px;
|
|
|
|
margin-top: -5px;
|
|
|
|
}
|
2019-06-28 10:02:07 +02:00
|
|
|
|
|
|
|
&::before {
|
2015-10-31 22:00:16 +01:00
|
|
|
border-width: 6px;
|
|
|
|
margin-top: -6px;
|
|
|
|
}
|
2019-06-28 10:02:07 +02:00
|
|
|
|
2015-10-31 22:00:16 +01:00
|
|
|
.right & {
|
|
|
|
margin-left: 0;
|
2019-06-28 10:02:07 +02:00
|
|
|
margin-right: 50px;
|
|
|
|
|
|
|
|
&::after,
|
|
|
|
&::before {
|
2015-10-31 22:00:16 +01:00
|
|
|
border-left-color: $direct-chat-default-msg-border-color;
|
2019-06-28 10:02:07 +02:00
|
|
|
border-right-color: transparent;
|
|
|
|
left: 100%;
|
|
|
|
right: auto;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.direct-chat-img {
|
|
|
|
@include border-radius(50%);
|
|
|
|
float: left;
|
|
|
|
height: 40px;
|
2019-06-28 10:02:07 +02:00
|
|
|
width: 40px;
|
|
|
|
|
2015-10-31 22:00:16 +01:00
|
|
|
.right & {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-18 16:22:11 +02:00
|
|
|
.direct-chat-infos {
|
2015-10-31 22:00:16 +01:00
|
|
|
display: block;
|
2018-03-17 18:07:55 +01:00
|
|
|
font-size: $font-size-sm;
|
2019-06-28 10:02:07 +02:00
|
|
|
margin-bottom: 2px;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.direct-chat-name {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
.direct-chat-timestamp {
|
2019-06-28 10:02:07 +02:00
|
|
|
color: darken($gray-500, 25%);
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
//Direct chat contacts pane
|
|
|
|
.direct-chat-contacts-open {
|
|
|
|
.direct-chat-contacts {
|
|
|
|
@include translate(0, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.direct-chat-contacts {
|
|
|
|
@include translate(101%, 0);
|
2020-06-13 12:22:58 +02:00
|
|
|
background-color: $dark;
|
2015-10-31 22:00:16 +01:00
|
|
|
bottom: 0;
|
2018-03-17 18:07:55 +01:00
|
|
|
color: $white;
|
2019-06-28 10:02:07 +02:00
|
|
|
height: 250px;
|
2015-10-31 22:00:16 +01:00
|
|
|
overflow: auto;
|
2019-06-28 10:02:07 +02:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
2019-08-19 13:11:11 +02:00
|
|
|
.direct-chat-contacts-light {
|
2020-06-13 12:22:58 +02:00
|
|
|
background-color: $light;
|
2019-08-19 13:11:11 +02:00
|
|
|
|
|
|
|
.contacts-list-name {
|
|
|
|
color: $gray-700;
|
|
|
|
}
|
|
|
|
|
|
|
|
.contacts-list-date {
|
|
|
|
color: $gray-600;
|
|
|
|
}
|
|
|
|
|
|
|
|
.contacts-list-msg {
|
|
|
|
color: darken($gray-600, 10%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-31 22:00:16 +01:00
|
|
|
//Contacts list -- for displaying contacts in direct chat contacts pane
|
|
|
|
.contacts-list {
|
2020-05-30 15:06:11 +02:00
|
|
|
@include list-unstyled ();
|
2019-06-28 10:02:07 +02:00
|
|
|
|
2015-10-31 22:00:16 +01:00
|
|
|
> li {
|
2020-05-30 15:06:11 +02:00
|
|
|
@include clearfix ();
|
|
|
|
border-bottom: 1px solid rgba($black, .2);
|
2015-10-31 22:00:16 +01:00
|
|
|
margin: 0;
|
2019-06-28 10:02:07 +02:00
|
|
|
padding: 10px;
|
|
|
|
|
2015-10-31 22:00:16 +01:00
|
|
|
&:last-of-type {
|
2019-07-17 23:01:00 +02:00
|
|
|
border-bottom: 0;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.contacts-list-img {
|
|
|
|
@include border-radius(50%);
|
|
|
|
float: left;
|
2019-06-28 10:02:07 +02:00
|
|
|
width: 40px;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.contacts-list-info {
|
2018-03-17 18:07:55 +01:00
|
|
|
color: $white;
|
2019-06-28 10:02:07 +02:00
|
|
|
margin-left: 45px;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.contacts-list-name,
|
|
|
|
.contacts-list-status {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.contacts-list-name {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
.contacts-list-status {
|
2018-03-17 18:07:55 +01:00
|
|
|
font-size: $font-size-sm;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.contacts-list-date {
|
2019-08-19 13:11:11 +02:00
|
|
|
color: $gray-400;
|
2020-05-30 15:06:11 +02:00
|
|
|
font-weight: 400;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.contacts-list-msg {
|
2019-08-19 13:11:11 +02:00
|
|
|
color: darken($gray-400, 10%);
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
2019-07-18 16:22:11 +02:00
|
|
|
// Color variants
|
|
|
|
@each $name, $color in $theme-colors {
|
|
|
|
.direct-chat-#{$name} {
|
|
|
|
@include direct-chat-variant($color);
|
|
|
|
}
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
2019-07-18 16:22:11 +02:00
|
|
|
@each $name, $color in $colors {
|
|
|
|
.direct-chat-#{$name} {
|
|
|
|
@include direct-chat-variant($color);
|
|
|
|
}
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
2020-09-23 16:08:15 +02:00
|
|
|
|
|
|
|
.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%);
|
|
|
|
}
|
2020-09-24 09:08:20 +02:00
|
|
|
}
|
|
|
|
.direct-chat-timestamp {
|
|
|
|
color: $gray-500;
|
2020-09-23 16:08:15 +02:00
|
|
|
}
|
|
|
|
.right > .direct-chat-text {
|
|
|
|
&::after,
|
|
|
|
&::before {
|
|
|
|
border-right-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
2021-03-09 20:44:26 +01:00
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
}
|
2020-09-23 16:08:15 +02:00
|
|
|
}
|