mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
412 lines
13 KiB
SCSS
Vendored
412 lines
13 KiB
SCSS
Vendored
.page-dashboard {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: #ffffff;
|
|
|
|
.dashboard-warning {
|
|
border-top: 0;
|
|
border-top-left-radius: 0;
|
|
border-top-right-radius: 0;
|
|
padding-right: 14px;
|
|
position: fixed;
|
|
top: 0;
|
|
z-index: 2;
|
|
> span {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.dashboard-wrapper {
|
|
width: 100%;
|
|
height: auto;
|
|
max-height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
|
|
.dashboard-hello,
|
|
.dashboard-time,
|
|
.dashboard-desc,
|
|
.dashboard-block,
|
|
.dashboard-list .dashboard-title,
|
|
.dashboard-list .dashboard-ul {
|
|
width: 660px;
|
|
max-width: 80%;
|
|
margin: 0 auto;
|
|
}
|
|
.dashboard-hello {
|
|
padding: 6% 12px 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
> h2 {
|
|
flex: 1;
|
|
color: $primary-title-color;
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
word-wrap: break-word;
|
|
}
|
|
.dashboard-search {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
min-width: 120px;
|
|
max-width: 220px;
|
|
margin-left: 24px;
|
|
height: 34px;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
padding: 0 12px;
|
|
border-radius: 8px;
|
|
color: #515a6e;
|
|
background-color: #F4F5F7;
|
|
background-image: none;
|
|
cursor: pointer;
|
|
opacity: 0.8;
|
|
transition: opacity 0.3s;
|
|
> i {
|
|
font-size: 22px;
|
|
cursor: pointer;
|
|
}
|
|
> span {
|
|
padding: 0 4px 0 8px;
|
|
cursor: pointer;
|
|
}
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
&.min-search {
|
|
min-width: auto;
|
|
background-color: transparent;
|
|
opacity: 1;
|
|
> i {
|
|
font-size: 24px;
|
|
}
|
|
> span {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.dashboard-time,
|
|
.dashboard-desc {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-top: 18px;
|
|
padding: 0 12px;
|
|
color: #888888;
|
|
font-size: 13px;
|
|
}
|
|
.dashboard-time {
|
|
margin-bottom: -14px;
|
|
> span {
|
|
margin-right: 4px;
|
|
}
|
|
}
|
|
.dashboard-desc {
|
|
.dashboard-load {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 14px;
|
|
height: 14px;
|
|
margin: 0 0 0 4px;
|
|
}
|
|
}
|
|
.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: transform 0.3s ease-out 0s, box-shadow 0.3s ease-out 0s;
|
|
&:first-child {
|
|
background-color: #6f9ef6;
|
|
}
|
|
&:last-child {
|
|
background-color: #98de6e;
|
|
margin-right: 0;
|
|
}
|
|
&:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 2px 10px 0 #fa8e8c;
|
|
&:first-child {
|
|
box-shadow: 0 2px 10px 0 #6f9ef6;
|
|
}
|
|
&:last-child {
|
|
box-shadow: 0 2px 10px 0 #98de6e;
|
|
}
|
|
}
|
|
.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-list {
|
|
width: 100%;
|
|
margin-top: 48px;
|
|
padding-bottom: 6%;
|
|
.dashboard-ref {
|
|
height: 0;
|
|
}
|
|
.dashboard-title {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
margin: 0 auto;
|
|
padding: 0 12px;
|
|
height: 46px;
|
|
line-height: 46px;
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
background-color: #ffffff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
> i {
|
|
font-weight: normal;
|
|
opacity: 0.8;
|
|
transform: rotate(180deg);
|
|
transition: transform 0.3s;
|
|
}
|
|
&.title-close {
|
|
> i {
|
|
opacity: 1;
|
|
transform: rotate(90deg);
|
|
}
|
|
}
|
|
}
|
|
.dashboard-ul {
|
|
margin: 0 auto 18px;
|
|
padding: 6px 12px 0;
|
|
overflow: hidden;
|
|
&.ul-hidden {
|
|
margin: 0;
|
|
max-height: 0;
|
|
}
|
|
> li {
|
|
position: relative;
|
|
list-style: none;
|
|
display: flex;
|
|
background: #F9FAFB;
|
|
padding: 12px;
|
|
margin-bottom: 8px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: box-shadow 0.3s ease-out 0s;
|
|
&:hover {
|
|
box-shadow: 0 0 6px #dfdfdf;
|
|
}
|
|
&.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;
|
|
}
|
|
.item-select {
|
|
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;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
> span {
|
|
font-size: 12px;
|
|
height: 18px;
|
|
min-width: 20px;
|
|
line-height: 16px;
|
|
padding: 0 2px;
|
|
border-radius: 3px;
|
|
color: $primary-color;
|
|
border: 1px solid $primary-color;
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
margin-top: 3px;
|
|
margin-right: 3px;
|
|
text-align: center;
|
|
&.start {
|
|
background-color: var(--flow-item-custom-color-10, rgba($flow-status-start-color, 0.1));
|
|
border-color: var(--flow-item-custom-color-10, rgba($flow-status-start-color, 0.1));
|
|
color: var(--flow-item-custom-color-100, $flow-status-start-color);
|
|
}
|
|
&.progress {
|
|
background-color: var(--flow-item-custom-color-10, rgba($flow-status-progress-color, 0.1));
|
|
border-color: var(--flow-item-custom-color-10, rgba($flow-status-progress-color, 0.1));
|
|
color: var(--flow-item-custom-color-100, $flow-status-progress-color);
|
|
}
|
|
&.test {
|
|
background-color: var(--flow-item-custom-color-10, rgba($flow-status-test-color, 0.1));
|
|
border-color: var(--flow-item-custom-color-10, rgba($flow-status-test-color, 0.1));
|
|
color: var(--flow-item-custom-color-100, $flow-status-test-color);
|
|
}
|
|
&.end {
|
|
background-color: var(--flow-item-custom-color-10, rgba($flow-status-end-color, 0.1));
|
|
border-color: var(--flow-item-custom-color-10, rgba($flow-status-end-color, 0.1));
|
|
color: var(--flow-item-custom-color-100, $flow-status-end-color);
|
|
}
|
|
}
|
|
}
|
|
.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;
|
|
}
|
|
&.today {
|
|
color: #ff9900;
|
|
}
|
|
&.overdue {
|
|
color: #ed4014;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.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;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 加载状态(延时显示,立即隐藏)
|
|
.dashboard-load-enter-active {
|
|
transition: opacity 0.3s ease;
|
|
transition-delay: 1s;
|
|
}
|
|
|
|
.dashboard-load-leave-active {
|
|
transition: opacity 0.2s ease;
|
|
transition-delay: 0s;
|
|
}
|
|
|
|
.dashboard-load-enter,
|
|
.dashboard-load-leave-to {
|
|
opacity: 0;
|
|
}
|
|
|
|
body.window-portrait {
|
|
.page-dashboard {
|
|
.dashboard-wrapper {
|
|
display: block;
|
|
.dashboard-hello,
|
|
.dashboard-time,
|
|
.dashboard-desc,
|
|
.dashboard-block ,
|
|
.dashboard-list .dashboard-title,
|
|
.dashboard-list .dashboard-ul {
|
|
max-width: 96%;
|
|
}
|
|
.dashboard-block {
|
|
display: block;
|
|
margin-top: 12px;
|
|
> li {
|
|
margin: 0 0 10px;
|
|
padding: 8px 12px;
|
|
}
|
|
}
|
|
.dashboard-list {
|
|
height: auto;
|
|
padding-bottom: 20px;
|
|
.scrollbar-content {
|
|
overflow: visible;
|
|
> ul {
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
}
|
|
.dashboard-ul {
|
|
margin-bottom: 20px;
|
|
&.ul-hidden {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|