$chat-bubble-user-color:#35cfab;
|
$chat-bubble-assistant-color:#ececec;
|
|
$chat-bubble-bg-color:$chat-bubble-user-color;
|
$chat-bubble-border-color:$chat-bubble-user-color;
|
$chat-bubble-arrow-x-offset:-14rpx;
|
$avatar-message-space:17rpx;
|
|
|
.chat-bubble {
|
/* display: none; */
|
font-size: 25rpx;
|
line-height: 30rpx;
|
padding:20rpx;
|
max-width: 520rpx;
|
position: relative;
|
border-width: 1px;
|
border-style: solid;
|
border-radius: 5px;
|
}
|
|
.chat-bubble:after {
|
content: '';
|
width: 20rpx;
|
height: 20rpx;
|
position: absolute;
|
top: 15rpx;
|
|
transform: rotate(135deg);
|
border-width: 1px;
|
border-style: solid none none solid;
|
}
|
|
.assistant {
|
margin-right: auto;
|
flex-direction: row-reverse;
|
|
.chat-bubble {
|
margin-left: $avatar-message-space;
|
border-color: $chat-bubble-assistant-color;
|
background-color: $chat-bubble-assistant-color;
|
|
&::after {
|
left: $chat-bubble-arrow-x-offset;
|
border-color: $chat-bubble-assistant-color;
|
background-color: $chat-bubble-assistant-color;
|
|
}
|
}
|
}
|
|
.user {
|
margin-left: auto;
|
.chat-bubble {
|
margin-right: $avatar-message-space;
|
|
border-color: $chat-bubble-user-color;
|
background-color: $chat-bubble-user-color;
|
|
&::after {
|
right: $chat-bubble-arrow-x-offset;
|
border-color: $chat-bubble-user-color;
|
background-color: $chat-bubble-user-color;
|
|
|
}
|
}
|
}
|
|
|
|
$tip-positon-left:20%;
|
$tip-border-width:20px;
|
$tip-border-color:transparent;
|
$tip-bg-color:#ccdcf5;
|
$tip-middle-color:#ebf3fe;
|
.robot-tip{
|
position: relative;
|
width: fit-content;
|
// height: 260rpx;
|
height: fit-content;
|
background: linear-gradient(90deg, $tip-bg-color 0%, $tip-bg-color 25%,$tip-middle-color 55%,$tip-bg-color 100%);
|
border: 4px solid $tip-border-color;
|
border-radius: 10px;
|
&::after{
|
content: "";
|
position: absolute;
|
top: 100%;
|
left: $tip-positon-left;
|
transform: translateX(-50%);
|
border:$tip-border-width solid transparent;
|
border-top: $tip-border-width solid $tip-border-color;
|
}
|
|
&::before{
|
content: "";
|
position: absolute;
|
top: 100%;
|
left: $tip-positon-left;
|
transform: translateX(-50%);
|
border: $tip-border-width solid transparent;
|
border-top:$tip-border-width solid $tip-bg-color;
|
z-index: 1;
|
}
|
|
}
|
|
|
.van-field{
|
.van-icon-replay{
|
font-size: 40rpx;
|
}
|
}
|