2021-06-12 20:42:58 +08:00

368 lines
12 KiB
SCSS
Vendored

.task-detail {
display: flex;
flex-direction: column;
margin: 0 -10px 30px;
.task-info {
flex: 1;
display: flex;
flex-direction: column;
.head {
display: flex;
align-items: center;
height: 40px;
padding-bottom: 10px;
color: #888888;
position: relative;
&:before {
content: "";
position: absolute;
left: 36px;
right: 0;
bottom: 0;
height: 1px;
background-color: #f4f5f5;
}
.icon {
width: 18px;
font-size: 18px;
cursor: pointer;
}
.nav {
flex: 1;
display: flex;
align-items: center;
padding-left: 18px;
font-size: 12px;
> p {
display: flex;
align-items: center;
padding-right: 5px;
&:after {
content: "/";
padding-left: 5px;
}
&:last-child {
&:after {
display: none;
}
}
}
}
.menu {
font-size: 22px;
margin: 0 32px;
cursor: pointer;
}
}
.scroller {
margin-left: 36px;
padding-right: 36px;
overflow-x: hidden;
overflow-y: auto;
.title {
margin-top: 18px;
.ivu-input {
font-weight: 500;
font-size: 24px;
padding: 4px 0;
line-height: 1.4;
resize: none;
border-color: transparent;
&:focus {
box-shadow: none
}
}
}
.desc {
margin-top: 10px;
div[contenteditable="true"] {
outline: none
}
.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before {
color: #bbbbbb;
}
}
.items {
margin-top: 12px;
.ivu-form-item {
margin-bottom: 10px;
}
.item-label {
display: flex;
align-items: center;
color: #bbbbbb;
.iconfont {
margin-right: 4px;
}
}
.item-content {
margin-top: 5px;
margin-left: 12px;
> li {
display: flex;
align-items: center;
list-style: none;
line-height: 26px;
}
&.user {
margin-top: 4px;
> li {
}
}
&.file {
> li {
margin-bottom: 2px;
.file-ext {
width: 16px;
}
.file-name {
padding-left: 8px;
}
.file-size {
padding-left: 10px;
height: 24px;
font-size: 12px;
color: #bbbbbb;
}
}
}
&.subtask {
> li {
align-items: flex-start;
margin-bottom: 2px;
.subtask-icon {
width: 16px;
height: 26px;
line-height: 26px;
font-size: 16px;
color: #cccccc;
margin-right: 8px;
cursor: pointer;
&.completed {
color: #87d068;
}
&.sub-icon {
font-size: 16px;
width: 16px;
height: 16px;
margin-left: -20px;
margin-right: 4px;
color: #cfcfcf;
transition: transform 0.2s;
&.active {
transform: rotate(90deg);
}
}
}
.subtask-name {
flex: 1;
margin-right: 16px;
display: flex;
.ivu-input {
margin: -1px 0;
padding: 4px 0;
resize: none;
border-color: transparent;
line-height: 20px;
&:focus {
box-shadow: none
}
}
}
.subtask-time {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right: 6px;
font-size: 13px;
height: 26px;
line-height: 26px;
&.overdue {
font-weight: 600;
color: #ed4014;
}
&.today {
font-weight: 500;
color: #ff9900;
}
}
.subtask-avatar {
height: 26px;
line-height: 1;
.avatar-box {
&:before {
transform: scale(0.7);
right: -2px;
bottom: -1px;
}
}
}
}
}
}
}
.add {
margin-top: 12px;
}
.add-button {
cursor: pointer;
color: #bbbbbb;
display: flex;
align-items: center;
margin-top: 6px;
> i {
font-size: 14px;
padding-right: 8px;
}
> em {
font-style: normal;
padding-left: 4px;
&:after {
content: "/";
padding-left: 4px;
}
&:last-child {
&:after {
display: none;
}
}
}
&:hover {
color: #999999;
}
}
}
}
.task-dialog {
flex: 1;
display: flex;
flex-direction: column;
margin-top: 32px;
position: relative;
.head {
display: flex;
align-items: center;
height: 40px;
padding-bottom: 10px;
color: #888888;
position: relative;
&:before {
content: "";
position: absolute;
left: 36px;
right: 0;
bottom: 0;
height: 1px;
background-color: #f4f5f5;
}
.icon {
width: 18px;
font-size: 18px;
}
.nav {
flex: 1;
display: flex;
align-items: center;
padding-left: 18px;
font-weight: 500;
color: #666666;
> p {
display: flex;
align-items: center;
margin-right: 24px;
&.active {
margin-top: -2px;
font-size: 16px;
font-weight: 600;
color: #555555;
}
}
}
}
.no-dialog {
flex: 1;
display: flex;
flex-direction: column;
.no-tip {
flex: 1;
display: none;
margin-left: 36px;
}
.no-input {
margin: 32px 0 0 36px;
background-color: #F4F5F7;
padding: 10px 12px;
border-radius: 10px;
.ivu-input {
border: 0;
resize: none;
background-color: transparent;
&:focus {
box-shadow: none;
}
}
}
}
}
&.open-dialog {
flex-direction: row;
.task-info {
overflow: auto;
.head {
.menu {
margin-right: 0;
}
}
}
.task-dialog {
margin: 0 0 0 18px;
min-width: 320px;
max-width: 450px;
&:before {
content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 1px;
background-color: #f4f5f5;
}
.head {
&:before {
left: 18px;
}
.icon {
&:before {
display: none;
}
}
.nav {
padding-left: 0;
> p {
margin-right: 28px;
&.active {
font-size: 18px;
}
}
}
}
.no-dialog {
.no-tip {
display: flex;
align-items: center;
justify-content: center;
margin-left: 18px;
color: #999999;
}
.no-input {
margin: 0 0 0 18px;
}
}
}
}
}