248 lines
7.5 KiB
SCSS
Vendored
248 lines
7.5 KiB
SCSS
Vendored
.page-dashboard {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
.dashboard-wrapper {
|
|
width: 664px;
|
|
max-width: 80%;
|
|
max-height: 80%;
|
|
margin-bottom: 2%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
.dashboard-hello {
|
|
padding: 0 12px;
|
|
color: #333333;
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
word-wrap: break-word;
|
|
}
|
|
.dashboard-desc {
|
|
margin-top: 18px;
|
|
padding: 0 12px;
|
|
color: #888888;
|
|
font-size: 13px;
|
|
}
|
|
.dashboard-block {
|
|
margin-top: 18px;
|
|
padding: 0 12px;
|
|
display: flex;
|
|
> li {
|
|
flex: 1;
|
|
flex-shrink: 0;
|
|
list-style: none;
|
|
margin-right: 24px;
|
|
border-radius: 8px;
|
|
padding: 16px 24px;
|
|
background-color: #fa8e8c;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: box-shadow 0.3s;
|
|
&:hover {
|
|
box-shadow: 0 0 10px #cccccc;
|
|
}
|
|
&:first-child {
|
|
background-color: #6f9ef6;
|
|
}
|
|
&:last-child {
|
|
background-color: #98de6e;
|
|
margin-right: 0;
|
|
cursor: default;
|
|
box-shadow: none;
|
|
}
|
|
.block-title {
|
|
color: rgba(255, 255, 255, 0.6);
|
|
font-size: 12px;
|
|
}
|
|
.block-data {
|
|
display: flex;
|
|
align-items: center;
|
|
padding-top: 10px;
|
|
line-height: 1;
|
|
.block-num {
|
|
flex: 1;
|
|
color: #ffffff;
|
|
font-weight: 600;
|
|
font-size: 32px;
|
|
}
|
|
.taskfont {
|
|
color: rgba(255, 255, 255, 0.7);
|
|
font-size: 20px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.dashboard-title {
|
|
margin-top: 60px;
|
|
padding: 0 12px;
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
}
|
|
.dashboard-list {
|
|
margin-top: 4px;
|
|
padding: 0 12px;
|
|
overflow: auto;
|
|
> li {
|
|
position: relative;
|
|
list-style: none;
|
|
display: flex;
|
|
background: #F9FAFB;
|
|
margin-top: 12px;
|
|
padding: 8px 12px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: box-shadow 0.3s;
|
|
&:hover {
|
|
box-shadow: 0 0 6px #dfdfdf;
|
|
}
|
|
&:last-child {
|
|
margin-bottom: 12px;
|
|
}
|
|
&.complete {
|
|
.item-title {
|
|
opacity: 0.5;
|
|
text-decoration: line-through;
|
|
}
|
|
.item-icon {
|
|
display: none;
|
|
}
|
|
}
|
|
.priority-color {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
left: 0;
|
|
height: 12px;
|
|
width: 2px;
|
|
}
|
|
.el-dropdown {
|
|
flex-shrink: 0;
|
|
width: 22px;
|
|
height: 22px;
|
|
line-height: 22px;
|
|
.taskfont {
|
|
color: #bbbbbb;
|
|
font-size: 18px;
|
|
}
|
|
}
|
|
.item-title {
|
|
flex: 1;
|
|
padding-left: 6px;
|
|
line-height: 22px;
|
|
> span {
|
|
font-size: 12px;
|
|
height: 18px;
|
|
min-width: 20px;
|
|
line-height: 16px;
|
|
padding: 0 2px;
|
|
border-radius: 3px;
|
|
color: #8bcf70;
|
|
border: 1px solid #8bcf70;
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
margin-top: 3px;
|
|
margin-right: 3px;
|
|
text-align: center;
|
|
&.start {
|
|
background-color: rgba(38, 38, 38, 0.05);
|
|
border-color: rgba(38, 38, 38, 0.05);
|
|
color: #595959;
|
|
}
|
|
&.progress {
|
|
background-color: rgba(27, 154, 238, 0.1);
|
|
border-color: rgba(27, 154, 238, 0.1);
|
|
color: #0171c2;
|
|
}
|
|
&.end {
|
|
background-color: rgba(21, 173, 49, 0.1);
|
|
border-color: rgba(21, 173, 49, 0.1);
|
|
color: #038a24;
|
|
}
|
|
}
|
|
}
|
|
.item-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 13px;
|
|
margin-left: 16px;
|
|
height: 22px;
|
|
color: #aaaaaa;
|
|
cursor: pointer;
|
|
.taskfont {
|
|
font-size: 13px;
|
|
}
|
|
> em {
|
|
font-style: normal;
|
|
margin-left: 4px;
|
|
}
|
|
&.overdue {
|
|
color: #ed4014;
|
|
}
|
|
&.today {
|
|
color: #ff9900;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.nopage {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
.nopage-icon {
|
|
background-color: #f4f5f7;
|
|
padding: 20px;
|
|
border-radius: 50%;
|
|
.ivu-icon {
|
|
color: #d1d8dd;
|
|
font-size: 46px;
|
|
}
|
|
}
|
|
.nopage-text {
|
|
margin-top: 16px;
|
|
color: #bec6cc;
|
|
background-color: #f4f5f7;
|
|
padding: 4px 15px;
|
|
border-radius: 14px;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.page-dashboard {
|
|
.dashboard-wrapper {
|
|
display: block;
|
|
max-width: 86%;
|
|
max-height: 86%;
|
|
.dashboard-block {
|
|
display: block;
|
|
margin-top: 10px;
|
|
> li {
|
|
margin: 0 0 10px;
|
|
padding: 8px 12px;
|
|
}
|
|
}
|
|
.dashboard-title {
|
|
margin-top: 36px;
|
|
}
|
|
.dashboard-list {
|
|
padding-bottom: 22px;
|
|
> li {
|
|
.item-title {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|