dootask/resources/assets/sass/pages/page-manage.scss
2022-01-07 18:23:30 +08:00

334 lines
11 KiB
SCSS
Vendored

.page-manage {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
.manage-box-menu {
position: relative;
flex-grow: 0;
flex-shrink: 0;
width: 255px;
height: 100%;
background: #F4F5F7;
display: flex;
flex-direction: column;
align-items: center;
transition: all 0.2s;
.manage-box-dropdown {
flex-shrink: 0;
width: 86%;
.ivu-select-dropdown {
padding: 7px 0;
.ivu-dropdown-item {
padding: 9px 16px;
}
.ivu-dropdown-item-divided {
margin-top: 7px;
&:before {
top: -9px;
}
}
}
.manage-box-title {
display: flex;
align-items: center;
flex-shrink: 0;
padding: 6px 10px;
margin-top: 27px;
border-radius: 8px;
background-color: #ffffff;
cursor: pointer;
transition: box-shadow 0.3s;
&.menu-visible {
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}
.manage-box-avatar {
width: 36px;
height: 36px;
}
> span {
flex: 1;
padding-left: 12px;
font-size: 16px;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.manage-box-arrow {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding-left: 16px;
padding-right: 2px;
> i {
font-size: 12px;
margin: -1px;
}
}
}
.manage-menu-language {
display: flex;
align-items: center;
justify-content: space-between;
.ivu-icon {
color: #666666;
}
}
}
> ul {
flex: 1;
width: 100%;
margin-top: 16px;
overflow: auto;
> li {
display: flex;
align-items: center;
height: 38px;
color: #6C7D8C;
cursor: pointer;
position: relative;
width: 80%;
max-width: 100%;
margin: 8px auto;
padding: 0 4%;
border-radius: 4px;
> i {
opacity: 0.3;
font-size: 20px;
margin-right: 10px;
}
.menu-title {
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.menu-badge {
margin-left: 12px;
transform: scale(0.9);
}
&.menu-project {
display: flex;
flex-direction: column;
align-items: center;
height: auto;
padding: 14px 0 0;
cursor: default;
> ul {
width: 100%;
> li {
display: flex;
flex-direction: column;
margin: 4px auto;
list-style: none;
cursor: pointer;
.project-h1 {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 8px 0 30px;
border-radius: 4px;
> em {
position: absolute;
top: 50%;
left: 2px;
width: 24px;
height: 24px;
cursor: pointer;
transform: translateY(-50%);
display: flex;
align-items: center;
justify-content: center;
&:before {
content: "";
width: 12px;
height: 12px;
background: url("data:image/svg+xml;base64,PHN2ZyB0PSIxNjIyMzkwODExNTQxIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI0OTk3IiB3aWR0aD0iNDgiIGhlaWdodD0iNDgiPjxwYXRoIGQ9Ik0zNjYuMTgyNCAxMDguMjM2OEw4MTIuMDMyIDQyOC4wMzJhMTAyLjQgMTAyLjQgMCAwIDEgMCAxNjYuNTAyNEwzNjYuMTgyNCA5MTQuMzI5NmExMDIuNCAxMDIuNCAwIDAgMS0xNjIuMDk5Mi04My4yNTEyVjE5MS40ODhhMTAyLjQgMTAyLjQgMCAwIDEgMTYyLjA5OTItODMuMjUxMnoiIHAtaWQ9IjI0OTk4IiBmaWxsPSIjOTk5OTk5Ij48L3BhdGg+PC9zdmc+") no-repeat center center;
background-size: contain;
transition: transform 0.2s;
}
}
.title {
flex: 1;
color: #333333;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
height: 38px;
line-height: 38px;
}
.num {
font-size: 12px;
padding-left: 16px;
}
}
.project-h2 {
display: none;
margin: 16px 4px;
padding: 0 8px 0 26px;
cursor: default;
> p {
display: flex;
align-items: center;
padding: 4px 0;
height: 36px;
em,
span {
font-style: normal;
font-size: 12px;
flex-shrink: 0;
padding-right: 6px;
}
.ivu-progress {
margin-right: -18px;
.ivu-progress-inner {
background-color: #e4e4e4;
}
}
}
}
&.active {
.project-h1 {
background-color: #ffffff;
}
}
&.open-menu {
.project-h1 {
> em {
&:before {
transform: rotate(90deg);
}
}
}
.project-h2 {
display: block;
}
}
}
}
.common-loading {
margin: 6px;
width: 22px;
height: 22px;
}
}
&.active {
background-color: #ffffff;
}
}
}
.manage-project-search {
width: 80%;
padding: 0 3px;
margin: 12px 0 -2px;
border-radius: 12px;
background-color: #ffffff;
overflow: hidden;
.ivu-input {
padding-left: 30px;
border-color: transparent;
background-color: transparent;
&:hover,
&:focus {
box-shadow: none;
}
}
&.loading {
.ivu-icon-ios-search {
animation: icon-loading-load 0.6s infinite linear;
&:before {
content: "\F45B";
}
}
}
}
.manage-box-new-group {
width: 80%;
margin-top: 16px;
margin-bottom: 20px;
display: flex;
align-items: center;
.manage-box-new {
flex: 1;
}
.ivu-btn {
height: 38px;
}
.ivu-dropdown {
.ivu-btn {
min-width: auto !important;
padding: 0 4px;
border-radius: 0 4px 4px 0;
}
}
}
}
.manage-box-main {
flex: 1;
position: relative;
.manage-box-view {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: auto;
}
}
.manage-mini-menu {
display: none;
}
}
.page-manage-task-modal {
display: flex;
flex-direction: column;
}
.page-manage-add-task-button-group {
margin-left: 8px !important;
.ivu-dropdown {
.ivu-btn {
min-width: auto !important;
padding: 0 4px;
border-radius: 0 4px 4px 0;
}
}
}
@media (max-width: 768px) {
.page-manage {
.manage-box-menu {
position: fixed;
z-index: 49;
left: 0;
top: 0;
bottom: 0;
width: 100%;
transform: translateX(-120%);
&.show768-menu {
transform: translateX(0);
}
}
.manage-mini-menu {
display: flex;
align-items: center;
justify-content: center;
width: 46px;
height: 42px;
font-size: 22px;
background-color: #ffffff;
white-space: nowrap;
border-radius: 4px;
box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
cursor: pointer;
}
}
}