chatui2
Version:
The React library for Chatbot UI
127 lines (114 loc) • 2.26 kB
text/less
.Composer {
display: flex;
align-items: flex-end;
padding: @composer-padding;
> div + div {
margin-left: 9px;
}
}
.Composer-actions {
display: flex;
align-items: center;
height: @composer-input-min-height;
.IconBtn {
font-size: 30Px;
color: var(--gray-1);
}
}
.Composer-toggleBtn {
transition: transform 0.2s;
&.active .Icon {
transform: rotate(45deg);
}
}
.Composer-inputWrap {
flex: 1;
position: relative;
}
.Composer-input-area{
background-color: rgb(243 244 246, 0.5);
border: 1px solid red;
border-radius: 12px;
}
.Composer-input {
overflow-x: hidden;
max-height: @composer-input-max-height;
padding: @composer-input-padding;
border: @composer-input-border;
// border-radius: @composer-input-border-radius;
// background: @composer-input-bg;
line-height: 20Px;
font-size: 15Px;
caret-color: @composer-input-caret-color;
transition: @composer-input-transition;
}
.Composer-sendBtn {
min-width: 0;
padding-left: 16Px;
padding-right: 16Px;
}
.ChatApp[data-elder-mode="true"] {
.Composer-actions {
height: 50Px;
.IconBtn {
font-size: 34Px;
}
}
.Composer-input {
padding: 9Px 12Px;
font-size: 21Px;
line-height: 32Px;
}
.Composer-sendBtn {
padding: 4Px 13Px;
font-size: 17Px;
}
}
.AutoComplete {
padding: 0;
list-style-type: none;
position: absolute;
left: 0;
bottom: 100%;
z-index: 15;
overflow-y: auto;
width: 100%;
max-width: 400px;
max-height: 200px;
margin-bottom: 8px;
border-radius: 8px;
box-shadow: 0 2px 8px 0 rgba(0,0,0,.15);
background: var(--white);
// opacity: 0;
transform: translateY(5px);
transition: .2s;
pointer-events: none;
display: none;
&.show{
// opacity: 1;
-webkit-transform: translateY(0);
transform: translateY(0);
pointer-events: auto;
display: block;
}
li {
display: list-item;
}
span{
display: block;
padding: 9px 16px;
border-top: 1px solid #eee;
color: var(--gray-dark);
text-decoration: none;
background-color: transparent;
outline: none;
cursor: pointer;
transition: color .3s;
&:hover{
color: #40a9ff;
}
.RichText {
white-space: pre-wrap;
}
}
}