mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
154 lines
5.0 KiB
SCSS
Executable File
Vendored
154 lines
5.0 KiB
SCSS
Executable File
Vendored
.common-user-select {
|
|
&.select-border {
|
|
border: 1px solid #e8e8e8;
|
|
border-radius: 4px;
|
|
padding: 0 6px;
|
|
}
|
|
> ul {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-start;
|
|
align-items: flex-start;
|
|
> li {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 3px 6px 3px 0;
|
|
&:last-child {
|
|
margin-right: 0;
|
|
}
|
|
&.add-icon {
|
|
cursor: pointer;
|
|
border-radius: 50%;
|
|
width: 26px;
|
|
height: 26px;
|
|
background: #F2F3F5 url("data:image/svg+xml;base64,PHN2ZyB0PSIxNjg2NjIxNjA3NDE0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik04NzQuNjY2NjY3IDQ3My42aC0zMjQuMjY2NjY3VjE0OS4zMzMzMzNjMC0yMS4zMzMzMzMtMTcuMDY2NjY3LTM4LjQtMzguNC0zOC40cy0zOC40IDE3LjA2NjY2Ny0zOC40IDM4LjR2MzI0LjI2NjY2N0gxNDkuMzMzMzMzYy0yMS4zMzMzMzMgMC0zOC40IDE3LjA2NjY2Ny0zOC40IDM4LjRzMTcuMDY2NjY3IDM4LjQgMzguNCAzOC40aDMyNC4yNjY2Njd2MzI0LjI2NjY2N2MwIDIxLjMzMzMzMyAxNy4wNjY2NjcgMzguNCAzOC40IDM4LjRzMzguNC0xNy4wNjY2NjcgMzguNC0zOC40di0zMjQuMjY2NjY3aDMyNC4yNjY2NjdjMjEuMzMzMzMzIDAgMzguNC0xNy4wNjY2NjcgMzguNC0zOC40cy0xNy4wNjY2NjctMzguNC0zOC40LTM4LjR6IiAgZmlsbD0iIzYwNjI2NiI+PC9wYXRoPjwvc3ZnPg==") no-repeat center;
|
|
background-size: 50%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.common-user-select-modal {
|
|
.ivu-modal-body {
|
|
padding: 0 16px !important;
|
|
display: flex;
|
|
flex-direction: column;
|
|
.user-modal-search {
|
|
flex-shrink: 0;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 9;
|
|
padding: 8px 16px;
|
|
background: #ffffff;
|
|
.search-pre {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
.common-loading {
|
|
width: 14px;
|
|
height: 14px;
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|
|
.user-modal-list {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-height: 400px;
|
|
ul {
|
|
padding: 8px 0;
|
|
> li {
|
|
list-style: none;
|
|
padding: 8px 16px;
|
|
margin: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
&:hover {
|
|
background: #f3f3f3;
|
|
}
|
|
&.selected {
|
|
.user-modal-icon {
|
|
color: $primary-color;
|
|
}
|
|
}
|
|
&.disabled,
|
|
&.disabled:hover {
|
|
color: #c5c8ce;
|
|
cursor: not-allowed;
|
|
}
|
|
.user-modal-icon {
|
|
flex-shrink: 0;
|
|
font-size: 24px;
|
|
margin-right: 10px;
|
|
color: rgba($primary-desc-color, 0.7);
|
|
}
|
|
.user-modal-avatar {
|
|
flex: 1;
|
|
.avatar-name {
|
|
margin-left: 10px;
|
|
}
|
|
}
|
|
.user-modal-userid {
|
|
flex-shrink: 0;
|
|
margin-left: 10px;
|
|
font-size: 12px;
|
|
color: #cccccc;
|
|
transition: margin 0.1s;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.user-modal-multiple {
|
|
flex-shrink: 0;
|
|
position: sticky;
|
|
bottom: 0;
|
|
z-index: 9;
|
|
padding: 6px 16px 0;
|
|
background: #ffffff;
|
|
color: $primary-desc-color;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
.multiple-check {
|
|
margin-left: 4px;
|
|
}
|
|
.multiple-text {
|
|
flex: 1;
|
|
text-align: right;
|
|
line-height: 20px;
|
|
font-size: 12px;
|
|
padding-left: 6px;
|
|
> em {
|
|
padding-left: 2px;
|
|
font-style: normal;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.ivu-modal-fullscreen {
|
|
.ivu-modal-content {
|
|
margin-top: 46px;
|
|
border-top-left-radius: 18px !important;
|
|
border-top-right-radius: 18px !important;
|
|
.ivu-modal-body {
|
|
bottom: 80px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 576px) {
|
|
.common-user-select-modal {
|
|
.ivu-modal-body {
|
|
.user-modal-list {
|
|
max-height: none;
|
|
}
|
|
}
|
|
}
|
|
}
|