95 lines
1.6 KiB
SCSS
95 lines
1.6 KiB
SCSS
.xt-bubble-list {
|
|
gap: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.xt-bubble {
|
|
display: flex;
|
|
justify-content: start;
|
|
column-gap: 12px;
|
|
@mixin cts {
|
|
color: var(--Text-1, #211f24);
|
|
font-family: $font-family-regular;
|
|
font-size: 14px;
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
line-height: 22px;
|
|
}
|
|
&.xt-bubble-start {
|
|
flex-direction: row;
|
|
}
|
|
|
|
&.xt-bubble-end {
|
|
justify-content: end;
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
.xt-bubble-avatar {
|
|
}
|
|
|
|
.xt-bubble-content {
|
|
display: flex;
|
|
align-items: center;
|
|
@include cts;
|
|
&-filled {
|
|
background-color: #f2f3f5;
|
|
padding: 6px 12px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
&-outlined {
|
|
background-color: #fff;
|
|
border: 1px solid #e5e6eb;
|
|
padding: 6px 12px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
&-shadow {
|
|
background-color: #fff;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
padding: 6px 12px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
&-borderless {
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
// 形状样式
|
|
&-default {
|
|
border-radius: 10px;
|
|
}
|
|
|
|
&-round {
|
|
padding: 6px 12px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border-radius: 50px;
|
|
background-color: var(--BG-200, #f2f3f5);
|
|
}
|
|
|
|
&-corner {
|
|
border-radius: 4px;
|
|
}
|
|
}
|
|
|
|
.xt-bubble-header {
|
|
@include cts;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.xt-bubble-footer {
|
|
@include cts;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
&.xt-bubble-typing {
|
|
display: inline-block;
|
|
min-width: 36px;
|
|
}
|
|
}
|