AdminLTE/build/scss/_direct-chat.scss

225 lines
3.5 KiB
SCSS
Raw Normal View History

//
// Component: Direct Chat
//
2015-10-31 21:00:16 +00:00
.direct-chat {
2018-03-17 17:07:55 +00:00
.card-body {
2015-10-31 21:00:16 +00:00
overflow-x: hidden;
padding: 0;
position: relative;
2015-10-31 21:00:16 +00:00
}
2015-10-31 21:00:16 +00:00
&.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%);
}
}
2015-10-31 21:00:16 +00:00
}
.direct-chat-messages {
@include translate(0, 0);
height: 250px;
overflow: auto;
padding: 10px;
2015-10-31 21:00:16 +00:00
}
.direct-chat-msg,
.direct-chat-text {
display: block;
}
.direct-chat-msg {
@include clearfix;
2015-10-31 21:00:16 +00:00
margin-bottom: 10px;
}
.direct-chat-messages,
.direct-chat-contacts {
transition: transform .5s ease-in-out;
}
.direct-chat-text {
2018-03-17 17:07:55 +00:00
@if $enable-rounded {
@include border-radius($border-radius-lg);
}
2015-10-31 21:00:16 +00:00
background: $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;
2015-10-31 21:00:16 +00:00
//Create the arrow
&::after,
&::before {
2015-10-31 21:00:16 +00:00
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;
2015-10-31 21:00:16 +00:00
}
&::after {
2015-10-31 21:00:16 +00:00
border-width: 5px;
margin-top: -5px;
}
&::before {
2015-10-31 21:00:16 +00:00
border-width: 6px;
margin-top: -6px;
}
2015-10-31 21:00:16 +00:00
.right & {
margin-left: 0;
margin-right: 50px;
&::after,
&::before {
2015-10-31 21:00:16 +00:00
border-left-color: $direct-chat-default-msg-border-color;
border-right-color: transparent;
left: 100%;
right: auto;
2015-10-31 21:00:16 +00:00
}
}
}
.direct-chat-img {
@include border-radius(50%);
float: left;
height: 40px;
width: 40px;
2015-10-31 21:00:16 +00:00
.right & {
float: right;
}
}
.direct-chat-infos {
2015-10-31 21:00:16 +00:00
display: block;
2018-03-17 17:07:55 +00:00
font-size: $font-size-sm;
margin-bottom: 2px;
2015-10-31 21:00:16 +00:00
}
.direct-chat-name {
font-weight: 600;
}
.direct-chat-timestamp {
color: darken($gray-500, 25%);
2015-10-31 21:00:16 +00:00
}
//Direct chat contacts pane
.direct-chat-contacts-open {
.direct-chat-contacts {
@include translate(0, 0);
}
}
.direct-chat-contacts {
@include translate(101%, 0);
background: $dark;
2015-10-31 21:00:16 +00:00
bottom: 0;
2018-03-17 17:07:55 +00:00
color: $white;
height: 250px;
2015-10-31 21:00:16 +00:00
overflow: auto;
position: absolute;
top: 0;
width: 100%;
2015-10-31 21:00:16 +00:00
}
.direct-chat-contacts-light {
background: $light;
.contacts-list-name {
color: $gray-700;
}
.contacts-list-date {
color: $gray-600;
}
.contacts-list-msg {
color: darken($gray-600, 10%);
}
}
2015-10-31 21:00:16 +00:00
//Contacts list -- for displaying contacts in direct chat contacts pane
.contacts-list {
@include list-unstyled;
2015-10-31 21:00:16 +00:00
> li {
@include clearfix;
border-bottom: 1px solid rgba($black, 0.2);
2015-10-31 21:00:16 +00:00
margin: 0;
padding: 10px;
2015-10-31 21:00:16 +00:00
&:last-of-type {
border-bottom: 0;
2015-10-31 21:00:16 +00:00
}
}
}
.contacts-list-img {
@include border-radius(50%);
float: left;
width: 40px;
2015-10-31 21:00:16 +00:00
}
.contacts-list-info {
2018-03-17 17:07:55 +00:00
color: $white;
margin-left: 45px;
2015-10-31 21:00:16 +00:00
}
.contacts-list-name,
.contacts-list-status {
display: block;
}
.contacts-list-name {
font-weight: 600;
}
.contacts-list-status {
2018-03-17 17:07:55 +00:00
font-size: $font-size-sm;
2015-10-31 21:00:16 +00:00
}
.contacts-list-date {
color: $gray-400;
2015-10-31 21:00:16 +00:00
font-weight: normal;
}
.contacts-list-msg {
color: darken($gray-400, 10%);
2015-10-31 21:00:16 +00:00
}
// Color variants
@each $name, $color in $theme-colors {
.direct-chat-#{$name} {
@include direct-chat-variant($color);
}
2015-10-31 21:00:16 +00:00
}
@each $name, $color in $colors {
.direct-chat-#{$name} {
@include direct-chat-variant($color);
}
2015-10-31 21:00:16 +00:00
}