2022-04-13 13:51:55 +07:00

234 lines
6.5 KiB
SCSS

.event-chat-ryt{
.chat-area{
.chat-reciver,
.chat-sender {
margin-bottom: 1.875rem;
padding: 0;
img{
border-radius: 30px;
}
}
.media {
position: relative;
&-body {
p {
margin: 0;
max-width: 100%;
display: inline-block;
position: relative;
@include media-breakpoint-up(sm) {
// max-width: 60%;
}
span {
padding: 1rem;
display: inline-block;
top: 103%;
position: relative;
border: 1px solid $border;
}
}
}
}
}
.chat-reciver{
padding: .5rem 1rem;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: end;
-ms-flex-pack: end;
justify-content: flex-end;
.media {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
.media-body {
margin-right: 2rem;
text-align: right;
@at-root [direction="rtl"] & {
text-align: left;
margin-left: 2rem;
margin-right: auto;
}
p {
background: $white;
margin-bottom: 0;
border-radius: 5px 5px 0 5px;
span {
text-align: left;
border: 1px solid $border;
&::after{
content: "";
width: 20px;
height: 20px;
border-bottom: 1px solid $border;
border-right: 1px solid $border;
position: absolute;
right: 0;
bottom: 0;
background: $white;
-webkit-transform: rotate(-45deg) translateX(15px);
transform: rotate(-45deg) translateX(15px);
@at-root [direction="rtl"] & {
left: 0;
right: auto;
-webkit-transform: rotate(135deg) translateY(15px);
transform: rotate(135deg) translateY(15px);
}
}
}
.time {
position: absolute;
font-size: 12px;
color: $body-color;
font-weight: 400;
bottom: 0;
left: -80px;
@at-root [direction="rtl"] & {
right: -5rem;
left: auto;
}
}
}
}
}
}
.chat-sender{
text-align: left;
padding: .5rem 1rem;
.media {
.media-body {
margin-left: 2rem;
@at-root [direction="rtl"] & {
text-align: right;
margin-right: 2rem;
margin-left: auto;
}
p {
background-color: $white;
margin-bottom: 0;
span {
&::after {
content: "";
width: 20px;
height: 20px;
border-bottom: 1px solid $border;
border-left: 1px solid $border;
position: absolute;
left: 0;
bottom: 0;
background: $white;
-webkit-transform: rotate(45deg) translateX(-15px);
transform: rotate(45deg) translateX(-15px);
@at-root [direction="rtl"] & {
left: auto;
right: 0;
-webkit-transform: rotate(-135deg) translateY(15px);
transform: rotate(-135deg) translateY(15px);
}
}
}
.time {
position: absolute;
font-size: 10px;
color: $body-color;
font-weight: 400;
bottom: 0;
right: -5rem;
@at-root [direction="rtl"] & {
left: -5rem;
right: auto;
}
}
}
}
}
}
}
.char-type{
padding-top: 30px;
padding-bottom: 30px;
form{
.form-control{
height: 45px;
// border-radius: 30px;
padding-left: 18px;
background: $body-bg;
border-right: 0;
}
.input-group{
&-append{
i{
color: $gray;
font-size: 18px;
}
.input-group-text{
padding-left: .7rem;
padding-right: .7rem;
background: $body-bg;
border-color: $border;
border-left: 0;
&:last-child{
// border-top-right-radius: 30px;
// border-bottom-right-radius: 30px;
padding-right: 1.8rem;
}
}
}
}
}
}
.media-avatar{
padding: 25px 0;
border-bottom: 1px solid $border;
&:last-child{
border-bottom: 0px;
}
p{
margin-bottom: 0;
}
.avatar-status{
position: relative;
i{
position: absolute;
right: 0;
bottom: 0;
}
}
}