mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 15:19:06 +00:00
change system admin department UI (#7010)
This commit is contained in:
152
frontend/src/css/add-user-to-departments.css
Normal file
152
frontend/src/css/add-user-to-departments.css
Normal file
@@ -0,0 +1,152 @@
|
||||
.department-dialog .department-dialog-content {
|
||||
padding: 0;
|
||||
min-height: 30rem;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
flex-wrap: nowrap;
|
||||
align-content: space-between;
|
||||
justify-content: space-between;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.department-dialog .department-dialog-content > div {
|
||||
max-height: calc(100vh - 120px);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.department-dialog-content .department-dialog-group {
|
||||
flex: 0 0 35%;
|
||||
padding: 1rem;
|
||||
border-right: 1px solid #eee;
|
||||
}
|
||||
|
||||
.department-dialog-content .department-dialog-group .tr-highlight .dtable-icon-groups {
|
||||
padding-right: 10px;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.department-dialog-content .department-dialog-group .dtable-icon-groups {
|
||||
padding-right: 10px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.department-dialog-content .department-dialog-member {
|
||||
display: flex;
|
||||
flex: 0 0 35%;
|
||||
border-right: 1px solid #eee;
|
||||
}
|
||||
|
||||
.department-dialog-content .department-dialog-member-selected {
|
||||
display: flex;
|
||||
flex: 0 0 65%;
|
||||
border-right: 1px solid #eee;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.department-dialog-content .department-dialog-member-selected .modal-footer {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.department-dialog-content .department-dialog-member-selected .dtable-icon-cancel {
|
||||
cursor: pointer;
|
||||
color: #959595;
|
||||
}
|
||||
|
||||
.department-dialog-content .department-dialog-group .group-item {
|
||||
cursor: pointer;
|
||||
padding: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.department-dialog-content .department-dialog-group .group-item:hover {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.department-dialog-content .department-dialog-group .group-item.tr-highlight:hover,
|
||||
.department-dialog-content .department-dialog-group .tr-highlight {
|
||||
background-color: #ED7109;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.department-dialog-member-head {
|
||||
display: flex;
|
||||
padding: 0 0 12px 0;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.department-dialog-member-head .department-name {
|
||||
font-size: 0.8125rem;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.department-dialog-member-head .select-all {
|
||||
cursor: pointer;
|
||||
font-size: 0.8125rem;
|
||||
color: #ED7109;
|
||||
}
|
||||
|
||||
.department-dialog-member-head .select-all-disable {
|
||||
font-size: 0.8125rem;
|
||||
color: rgb(248, 205, 160);
|
||||
}
|
||||
|
||||
.department-dialog-member-table td,
|
||||
.department-dialog-member-head td {
|
||||
border: none;
|
||||
text-align: left;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.department-dialog-member-table {
|
||||
display: block;
|
||||
text-align: center;
|
||||
max-height: calc(100% - 32px);
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.department-dialog-member-table tr {
|
||||
display: table;
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.department-dialog-content .avatar {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
.department-dialog-content tr td:first-child {
|
||||
padding-left: 16px;
|
||||
}
|
||||
|
||||
.department-dialog-member-table tr td:first-child {
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
.department-dialog-member-table tr td .dtable-icon-use-help {
|
||||
color: #bdbdbd;
|
||||
}
|
||||
|
||||
.department-dialog-member-table tr td .dtable-icon-use-help:hover {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.tooltip-inner {
|
||||
font-size: 13px;
|
||||
font-weight: lighter;
|
||||
text-align: justify;
|
||||
color: #fff;
|
||||
background-color: #303133;
|
||||
}
|
||||
|
||||
.department-dialog-member-selected tr td:last-child {
|
||||
padding-right: 16px;
|
||||
}
|
||||
|
||||
.department-dialog-member-selected .modal-footer .btn {
|
||||
min-width: 80px;
|
||||
}
|
244
frontend/src/css/admin-common.css
Normal file
244
frontend/src/css/admin-common.css
Normal file
@@ -0,0 +1,244 @@
|
||||
.org-admin .info-item-heading,
|
||||
.sys-admin .info-item-heading {
|
||||
font-size: 15px;
|
||||
font-weight: normal;
|
||||
padding-bottom: 0.2em;
|
||||
border-bottom: 1px solid #eee;
|
||||
margin: 24px 0 0.7em;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.org-admin .side-nav-con svg.multicolor-icon,
|
||||
.sys-admin .side-nav-con svg.multicolor-icon {
|
||||
font-size: 20px;
|
||||
width: 2rem;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.org-admin .side-nav-con .active [class^='multicolor-icon'],
|
||||
.sys-admin .side-nav-con .active [class^='multicolor-icon'] {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.org-admin .side-nav-title,
|
||||
.sys-admin .side-nav-title {
|
||||
color: #666666;
|
||||
padding: 0 4px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.org-admin .main-panel .heading,
|
||||
.sys-admin .main-panel .heading {
|
||||
height: 40px;
|
||||
padding: 0 16px;
|
||||
background: #f9f9f9;
|
||||
font-size: 1rem;
|
||||
font-weight: normal;
|
||||
line-height: 40px;
|
||||
margin: 0;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
.org-admin .main-panel .nav .nav-item .nav-link,
|
||||
.sys-admin .main-panel .nav .nav-item .nav-link {
|
||||
font-size: 16px;
|
||||
border-bottom: 2px solid transparent;
|
||||
}
|
||||
|
||||
.org-admin .main-panel .nav .nav-item .nav-link.active,
|
||||
.sys-admin .main-panel .nav .nav-item .nav-link.active {
|
||||
color: #ED7109;
|
||||
text-decoration: none;
|
||||
border-bottom: 2px solid #ED7109;
|
||||
}
|
||||
|
||||
.org-admin .main-panel .cur-view-path:after,
|
||||
.sys-admin .main-panel .cur-view-path:after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.org-admin .text-secondary,
|
||||
.sys-admin .text-secondary {
|
||||
color: #999 !important;
|
||||
}
|
||||
|
||||
.org-admin .side-nav-con .nav .nav-item,
|
||||
.sys-admin .side-nav-con .nav .nav-item {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.org-admin .side-nav-con .nav .nav-item .nav-link,
|
||||
.sys-admin .side-nav-con .nav .nav-item .nav-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.org-table-icon {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.org-info-content {
|
||||
padding: 0rem 1rem;
|
||||
background-color: #f5f5f5;
|
||||
flex: 1 1;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.org-info-content .info-header-content {
|
||||
height: 106px;
|
||||
}
|
||||
|
||||
.info-header-content .info-header-id,
|
||||
.info-header-content .info-header-name {
|
||||
width: calc(50% - 5px);
|
||||
background-color: #fff;
|
||||
border-radius: 5px;
|
||||
border: 1px solid #e4e4e4;
|
||||
}
|
||||
|
||||
.info-header-content .info-header-id img,
|
||||
.info-header-content .info-header-name img {
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
margin: 30px 0 0 30px;
|
||||
}
|
||||
|
||||
.info-header-content .id-content,
|
||||
.info-header-content .name-content {
|
||||
width: 70%;
|
||||
height: 50%;
|
||||
margin: 28px 0 0 15px;
|
||||
}
|
||||
|
||||
.info-header-content .id-content p,
|
||||
.info-header-content .name-content p {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.info-header-content .id-content span,
|
||||
.info-header-content .name-content span {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.org-info-content .info-user-content {
|
||||
height: 180px;
|
||||
background: #fff;
|
||||
border-radius: 5px;
|
||||
border: 1px solid #e4e4e4;
|
||||
}
|
||||
|
||||
.info-user-content .user-content-detail {
|
||||
flex-direction: column;
|
||||
width: calc(100% / 3);
|
||||
}
|
||||
|
||||
.info-user-content .user-content-detail p:first-child {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
margin-top: 45px;
|
||||
}
|
||||
|
||||
.info-user-content .user-content-detail p:last-child {
|
||||
font-size: 36px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.org-info-content .used-storage-content {
|
||||
height: 180px;
|
||||
}
|
||||
|
||||
.used-storage-content .used-space {
|
||||
width: calc(50% - 5px);
|
||||
flex-direction: column;
|
||||
background-color: #fff;
|
||||
border-radius: 5px;
|
||||
border: 1px solid #e4e4e4;
|
||||
}
|
||||
|
||||
.used-storage-content .used-space p:first-child {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
margin: 30px 0 0 30px;
|
||||
}
|
||||
|
||||
.used-storage-content .used-space p:nth-child(2) {
|
||||
font-size: 30px;
|
||||
font-weight: 500;
|
||||
margin: 5px 0 0 30px;
|
||||
}
|
||||
|
||||
.used-storage-content .used-space span {
|
||||
font-size: 13px;
|
||||
font-weight: 400;
|
||||
color: #aaa;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
/* mobile */
|
||||
@media (max-width: 767px) {
|
||||
.org-info-content .info-header-content {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.info-header-content .info-header-name,
|
||||
.info-header-content .info-header-id {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: inline-flex;
|
||||
background-color: #fff;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.info-header-content .info-header-id {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.info-header-content .info-header-id img,
|
||||
.info-header-content .info-header-name img {
|
||||
margin: 30px 0 30px 30px;
|
||||
}
|
||||
|
||||
.org-info-content .used-storage-content {
|
||||
height: auto;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.used-storage-content .used-space {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.used-storage-content .used-space span {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Process bar style */
|
||||
.org-info-content .am-progress-outer {
|
||||
height: 6px !important;
|
||||
background: #eee;
|
||||
margin-left: 30px;
|
||||
width: 86%;
|
||||
border-radius: 10px;
|
||||
margin-top: 1.25rem;
|
||||
}
|
||||
|
||||
.org-info-content .am-progress-bar {
|
||||
height: 6px !important;
|
||||
border-radius: 5px;
|
||||
background-color: #ED7109;
|
||||
}
|
||||
|
||||
.dtable-icon-use-help {
|
||||
color: #bdbdbd;
|
||||
}
|
||||
|
||||
.dtable-icon-use-help:hover {
|
||||
color: #888;
|
||||
}
|
131
frontend/src/css/system-departments-v2.css
Normal file
131
frontend/src/css/system-departments-v2.css
Normal file
@@ -0,0 +1,131 @@
|
||||
.cur-view-content {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.departments-tree-panel {
|
||||
width: 25%;
|
||||
padding: 8px;
|
||||
border-right: 1px solid #eee;
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.departments-tree-panel .departments-v2-hight-light {
|
||||
color: #fff;
|
||||
border-radius: 4px;
|
||||
background-color: #ED7109 !important;
|
||||
}
|
||||
|
||||
.departments-tree-panel .departments-v2-hight-light i {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.top-department-button-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.departments-v2-tree-item {
|
||||
position: relative;
|
||||
display: flex;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.departments-v2-tree-item:hover {
|
||||
background-color: #ffefb2;
|
||||
border-radius: 0.25rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.departments-v2-tree-item .departments-v2-tree-icon {
|
||||
width: 24px;
|
||||
text-align: center;
|
||||
color: #b0b0b0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.departments-v2-tree-item .departments-v2-tree-node-text {
|
||||
flex: 1;
|
||||
padding-right: 4px;
|
||||
line-height: 24px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.departments-v2-tree-item .department-dropdown-menu {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #b0b0b0;
|
||||
}
|
||||
|
||||
.departments-v2-tree-item .department-action-icon {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.departments-v2-tree-item .department-action-icon:hover {
|
||||
color: #212529;
|
||||
}
|
||||
|
||||
.departments-tree-panel .department-children {
|
||||
padding-left: 1rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.department-content-main {
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.department-content-main:hover {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.department-content-main table td {
|
||||
line-height: 2rem;
|
||||
}
|
||||
|
||||
.department-content-main .department-content-main-name {
|
||||
height: 40px;
|
||||
padding: 0 16px;
|
||||
background: #f9f9f9;
|
||||
font-size: 1rem;
|
||||
line-height: 40px;
|
||||
margin: 0;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
.department-content-main .create-group-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.department-content-main .cur-view-content .table {
|
||||
margin-bottom: 6rem;
|
||||
}
|
||||
|
||||
.department-content-main .cur-view-content .sort-dirent {
|
||||
transform: scale(0.8);
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.department-content-main table .dtable-icon-check-mark {
|
||||
color: #21bc2e;
|
||||
}
|
||||
|
||||
/* 顶部的样式:背景色和边界去掉,和 seatable 保持一致 */
|
Reference in New Issue
Block a user