添加聊天
This commit is contained in:
16
TUIKit/components/TUIContact/contact-list/style/h5.scss
Normal file
16
TUIKit/components/TUIContact/contact-list/style/h5.scss
Normal file
@@ -0,0 +1,16 @@
|
||||
.tui-contact-list-h5 {
|
||||
.tui-contact-list-item {
|
||||
.tui-contact-list-item-header {
|
||||
cursor: none;
|
||||
}
|
||||
|
||||
.tui-contact-list-item-header:active,
|
||||
.tui-contact-list-item-main-item:active {
|
||||
background-color: #eef0f3;
|
||||
}
|
||||
}
|
||||
|
||||
.tui-contact-list-group-title {
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
@import './web';
|
||||
@import './h5';
|
||||
@import '../../../../assets/styles/common';
|
||||
111
TUIKit/components/TUIContact/contact-list/style/web.scss
Normal file
111
TUIKit/components/TUIContact/contact-list/style/web.scss
Normal file
@@ -0,0 +1,111 @@
|
||||
.tui-contact-list {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
list-style: none;
|
||||
|
||||
&-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
&-header {
|
||||
position: relative;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-direction: row;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
padding: 10px 15px;
|
||||
justify-content: space-between;
|
||||
|
||||
&::after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
width: calc(100% - 60px);
|
||||
height: .5px;
|
||||
background: #E5E5E5;
|
||||
bottom: 0;
|
||||
left: 60px;
|
||||
}
|
||||
|
||||
&-left {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
|
||||
&-unread {
|
||||
position: absolute;
|
||||
right: -8px;
|
||||
top: -8px;
|
||||
display: flex;
|
||||
min-width: 10px;
|
||||
width: fit-content;
|
||||
padding: 0 2.5px;
|
||||
height: 15px;
|
||||
font-size: 10px;
|
||||
text-align: center;
|
||||
line-height: 15px;
|
||||
border-radius: 7.5px;
|
||||
background: red;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
&-right {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
&-main {
|
||||
&.hidden{
|
||||
display: none;
|
||||
}
|
||||
|
||||
&-item {
|
||||
margin: 0 15px;
|
||||
padding: 5px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-group-title {
|
||||
padding: 8px 16px;
|
||||
background-color: #f8f9fa;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #666;
|
||||
line-height: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.tui-contact-search-list {
|
||||
padding: 0 15px !important;
|
||||
|
||||
&-title {
|
||||
font-size: 14px;
|
||||
color: #999;
|
||||
border-bottom: 1px solid #f4f5f9;
|
||||
}
|
||||
|
||||
&-item {
|
||||
padding: 5px 0;
|
||||
}
|
||||
|
||||
&-default {
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user