2022-05-29 16:31:39 +08:00

156 lines
4.8 KiB
SCSS
Vendored

.project-list {
flex: 1;
height: 100%;
display: flex;
flex-direction: column;
align-items: flex-start;
.list-search {
width: 100%;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
height: 54px;
padding: 0 12px;
background-color: #f8f8f8;
.search-wrapper {
flex: 1;
background-color: #ffffff;
padding: 0 8px;
margin: 0 4px;
border-radius: 12px;
overflow: hidden;
.search-pre {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
.common-loading {
width: 14px;
height: 14px;
margin: 0;
}
}
.ivu-input {
border-color: transparent;
background-color: transparent;
&:hover,
&:focus {
box-shadow: none;
}
}
}
}
> ul {
flex: 1;
height: 0;
width: 100%;
overflow: auto;
background-color: #f8f8f8;
user-select: none;
> li {
padding: 16px;
margin: 16px;
border-radius: 12px;
background-color: #ffffff;
list-style: none;
&.nothing,
&.loading {
text-align: center;
height: 100%;
margin: 0;
padding: 24px;
border-radius: 0;
line-height: 22px;
}
&.loading {
display: flex;
align-items: flex-start;
justify-content: center;
.common-loading {
width: 20px;
height: 20px;
margin: 1px;
}
}
.project-item {
display: flex;
align-items: center;
.item-left {
flex: 1;
width: 0;
.project-h1 {
display: flex;
align-items: flex-start;
> span {
font-size: 16px;
line-height: 22px;
font-weight: 600;
word-break: break-all;
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
> em {
margin-top: 1px;
margin-left: 6px;
flex-shrink: 0;
font-style: normal;
display: inline-block;
background-color: rgba(253, 156, 155, 0.15);
color: #FF7559;
padding: 0 5px;
min-width: 10px;
height: 20px;
line-height: 20px;
text-align: center;
border-radius: 10px;
box-sizing: content-box;
font-weight: 500;
font-size: 14px;
white-space: nowrap;
}
}
.project-h2 {
margin-top: 8px;
line-height: 22px;
word-break: break-all;
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
color: #999999;
}
}
.item-right {
flex-shrink: 0;
display: flex;
align-items: center;
margin-left: 28px;
.ivu-chart-circle {
.ivu-icon {
font-size: 40px;
font-weight: 900;
color: rgba($primary-color, 0.25);
}
.percent-text {
color: $primary-color;
font-weight: 600;
}
}
}
}
}
}
}