.area-page {
|
flex: 1;
|
padding: 10px 12px 18px;
|
background: #eef3f8;
|
}
|
|
.area-card {
|
min-height: calc(100vh - 118px);
|
padding: 0 22px 36px;
|
border-radius: 6px;
|
background: #fff;
|
box-shadow: 0 1px 8px rgba(28, 82, 142, 0.08);
|
}
|
|
.area-header {
|
height: 70px;
|
display: flex;
|
align-items: flex-start;
|
justify-content: space-between;
|
}
|
|
.area-header h1 {
|
margin: 0;
|
padding-top: 2px;
|
color: #111827;
|
font-size: 16px;
|
font-weight: 700;
|
}
|
|
.add-root-button {
|
min-width: 114px;
|
height: 32px;
|
margin-top: 18px;
|
margin-right: 28px;
|
border: 1px solid #3c93e8;
|
border-radius: 4px;
|
color: #fff;
|
background: #3c93e8;
|
font-size: 13px;
|
font-weight: 700;
|
cursor: pointer;
|
}
|
|
.area-search {
|
width: 206px;
|
height: 22px;
|
display: grid;
|
grid-template-columns: 1fr 26px;
|
margin-bottom: 32px;
|
border: 1px solid #c8d1dc;
|
background: #fff;
|
}
|
|
.area-search input {
|
min-width: 0;
|
height: 20px;
|
padding: 0 8px;
|
border: 0;
|
color: #1f2d3d;
|
outline: 0;
|
font-size: 12px;
|
}
|
|
.area-search button {
|
position: relative;
|
border: 0;
|
background: transparent;
|
cursor: pointer;
|
}
|
|
.area-search button::before {
|
content: "";
|
position: absolute;
|
left: 6px;
|
top: 4px;
|
width: 10px;
|
height: 10px;
|
border: 1.5px solid #52657a;
|
border-radius: 50%;
|
}
|
|
.area-search button::after {
|
content: "";
|
position: absolute;
|
left: 17px;
|
top: 15px;
|
width: 7px;
|
height: 1.5px;
|
background: #52657a;
|
transform: rotate(45deg);
|
transform-origin: left center;
|
}
|
|
.area-tree-panel {
|
min-height: 468px;
|
border: 1px solid #d8dce2;
|
background: #fff;
|
overflow: auto;
|
}
|
|
.area-tree {
|
min-width: 520px;
|
padding: 10px 14px;
|
}
|
|
.area-node {
|
position: relative;
|
min-height: 34px;
|
}
|
|
.area-node-content {
|
height: 34px;
|
display: grid;
|
grid-template-columns: 18px 20px 120px 78px 52px 52px;
|
align-items: center;
|
column-gap: 0;
|
color: #23364d;
|
font-size: 14px;
|
}
|
|
.area-node.level-1 > .area-node-content {
|
font-weight: 700;
|
}
|
|
.area-node.level-2 > .area-node-content {
|
margin-left: 38px;
|
}
|
|
.area-node.level-3 > .area-node-content {
|
margin-left: 76px;
|
}
|
|
.area-toggle {
|
width: 16px;
|
height: 16px;
|
border: 0;
|
background: transparent;
|
cursor: pointer;
|
position: relative;
|
}
|
|
.area-toggle::before {
|
content: "";
|
position: absolute;
|
left: 4px;
|
top: 5px;
|
width: 0;
|
height: 0;
|
border-left: 4px solid transparent;
|
border-right: 4px solid transparent;
|
border-top: 6px solid #435363;
|
}
|
|
.area-node.collapsed > .area-node-content .area-toggle::before {
|
border-top: 4px solid transparent;
|
border-bottom: 4px solid transparent;
|
border-left: 6px solid #435363;
|
border-right: 0;
|
}
|
|
.area-node.no-children > .area-node-content .area-toggle::before {
|
display: none;
|
}
|
|
.area-file-icon,
|
.area-folder-icon {
|
width: 14px;
|
height: 14px;
|
position: relative;
|
display: inline-block;
|
color: #52657a;
|
}
|
|
.area-folder-icon {
|
border: 1.4px solid currentColor;
|
border-radius: 1px;
|
}
|
|
.area-folder-icon::before {
|
content: "";
|
position: absolute;
|
left: 1px;
|
top: -5px;
|
width: 7px;
|
height: 5px;
|
border: 1.4px solid currentColor;
|
border-bottom: 0;
|
border-radius: 1px 1px 0 0;
|
}
|
|
.area-file-icon {
|
border: 1.4px solid currentColor;
|
border-radius: 2px;
|
}
|
|
.area-file-icon::before {
|
content: "";
|
position: absolute;
|
right: -1px;
|
top: -1px;
|
width: 5px;
|
height: 5px;
|
border-left: 1.4px solid currentColor;
|
border-bottom: 1.4px solid currentColor;
|
background: #fff;
|
}
|
|
.area-name {
|
overflow: hidden;
|
text-overflow: ellipsis;
|
white-space: nowrap;
|
}
|
|
.area-action {
|
border: 0;
|
color: #1685ff;
|
background: transparent;
|
font-size: 14px;
|
font-weight: 700;
|
cursor: pointer;
|
text-align: left;
|
}
|
|
.area-action:disabled {
|
color: #fff;
|
background: #dedede;
|
border-radius: 3px;
|
padding: 2px 9px;
|
cursor: not-allowed;
|
}
|
|
.area-children {
|
display: block;
|
}
|
|
.area-node.collapsed > .area-children {
|
display: none;
|
}
|
|
.area-empty {
|
padding: 40px;
|
color: #8a9ab0;
|
text-align: center;
|
font-size: 13px;
|
}
|
|
.area-modal-panel {
|
width: 646px;
|
min-height: 474px;
|
border-radius: 4px;
|
}
|
|
.area-modal-header {
|
height: 64px;
|
}
|
|
.area-modal-header h3 {
|
font-size: 16px;
|
}
|
|
.area-form {
|
display: grid;
|
gap: 18px;
|
padding: 18px 152px 84px;
|
}
|
|
.area-row {
|
display: grid;
|
grid-template-columns: 74px 1fr;
|
align-items: center;
|
gap: 12px;
|
color: #111827;
|
font-size: 14px;
|
font-weight: 700;
|
}
|
|
.area-row > span {
|
text-align: right;
|
}
|
|
.area-row.required > span::before {
|
content: "*";
|
margin-right: 8px;
|
color: #f15a5a;
|
font-weight: 400;
|
}
|
|
.area-row input,
|
.area-row select {
|
width: 100%;
|
height: 34px;
|
min-width: 0;
|
padding: 0 10px;
|
border: 1px solid #cbd2dc;
|
color: #1f2d3d;
|
background: #fff;
|
outline: 0;
|
font: inherit;
|
}
|
|
.area-row input:focus,
|
.area-row select:focus {
|
border-color: #2f80ed;
|
box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.08);
|
}
|
|
.area-modal-actions {
|
position: absolute;
|
right: 30px;
|
bottom: 22px;
|
display: flex;
|
gap: 32px;
|
}
|
|
.area-modal-actions .ghost-button,
|
.area-modal-actions .primary-button {
|
min-width: 58px;
|
height: 24px;
|
}
|
|
@media (max-width: 1280px) {
|
.area-node-content {
|
grid-template-columns: 18px 20px 112px 78px 52px 52px;
|
}
|
}
|
|
/* Area management UI refinement */
|
.area-page {
|
padding: 20px;
|
background: transparent;
|
}
|
|
.area-card {
|
min-height: calc(100vh - 122px);
|
padding: 24px 28px 34px;
|
border: 1px solid #dde8f7;
|
border-radius: 16px;
|
background: rgba(255, 255, 255, 0.94);
|
box-shadow: 0 16px 40px rgba(34, 69, 126, 0.08);
|
}
|
|
.area-header {
|
height: 48px;
|
align-items: center;
|
}
|
|
.area-header h1 {
|
padding-top: 0;
|
color: #15243d;
|
font-size: 18px;
|
font-weight: 800;
|
}
|
|
.add-root-button {
|
min-width: 126px;
|
height: 34px;
|
margin: 0;
|
border-color: #2f73ff;
|
border-radius: 18px;
|
background: #2f73ff;
|
box-shadow: 0 8px 18px rgba(47, 115, 255, 0.18);
|
}
|
|
.area-search {
|
width: 256px;
|
height: 36px;
|
grid-template-columns: 1fr 38px;
|
margin: 6px 0 24px;
|
border-color: #d8e5f5;
|
border-radius: 18px;
|
background: #fbfdff;
|
overflow: hidden;
|
}
|
|
.area-search input {
|
height: 34px;
|
padding: 0 14px;
|
background: transparent;
|
font-size: 13px;
|
}
|
|
.area-search input::placeholder {
|
color: #9bacbe;
|
}
|
|
.area-search button::before {
|
left: 10px;
|
top: 9px;
|
border-color: #8091a8;
|
}
|
|
.area-search button::after {
|
left: 21px;
|
top: 20px;
|
background: #8091a8;
|
}
|
|
.area-tree-panel {
|
min-height: 560px;
|
border: 1px solid #dce8f7;
|
border-radius: 14px;
|
background: #fff;
|
box-shadow: inset 0 0 0 1px rgba(245, 249, 254, 0.84);
|
overflow: auto;
|
}
|
|
.area-tree {
|
min-width: 920px;
|
padding: 24px 12px 34px;
|
}
|
|
.area-node {
|
min-height: 40px;
|
}
|
|
.area-node-content {
|
position: relative;
|
height: 40px;
|
display: grid;
|
grid-template-columns: 18px 20px 278px 88px 68px 68px minmax(220px, 1fr);
|
align-items: center;
|
gap: 8px;
|
padding: 0 12px;
|
border-radius: 0;
|
color: #243850;
|
font-size: 14px;
|
cursor: default;
|
}
|
|
.area-node.level-1 > .area-node-content {
|
font-weight: 800;
|
}
|
|
.area-node.level-2 > .area-node-content {
|
margin-left: 36px;
|
}
|
|
.area-node.level-3 > .area-node-content {
|
margin-left: 72px;
|
}
|
|
.area-node.level-4 > .area-node-content {
|
margin-left: 108px;
|
}
|
|
.area-node.level-5 > .area-node-content {
|
margin-left: 144px;
|
}
|
|
.area-node-content::before {
|
content: "";
|
position: absolute;
|
left: -18px;
|
top: 19px;
|
width: 18px;
|
height: 1px;
|
background: #d7e4f4;
|
}
|
|
.area-node.level-1 > .area-node-content::before {
|
display: none;
|
}
|
|
.area-node-content:hover {
|
background: #f6faff;
|
}
|
|
.area-node-content.active {
|
color: #1774ff;
|
background: #e9f3ff;
|
box-shadow: inset 4px 0 0 #2f73ff, 0 0 0 1px #dbeaff;
|
}
|
|
.area-node-content.disabled {
|
color: #9aaabd;
|
background: #f4f6f9;
|
}
|
|
.area-node-content.disabled .area-file-icon,
|
.area-node-content.disabled .area-folder-icon,
|
.area-node-content.disabled .area-toggle {
|
color: #a7b5c7;
|
}
|
|
.area-children {
|
position: relative;
|
display: block;
|
}
|
|
.area-children::before {
|
content: "";
|
position: absolute;
|
left: 45px;
|
top: 0;
|
bottom: 18px;
|
width: 1px;
|
background: #d7e4f4;
|
}
|
|
.area-node.level-2 > .area-children::before {
|
left: 81px;
|
}
|
|
.area-node.level-3 > .area-children::before {
|
left: 117px;
|
}
|
|
.area-node.level-4 > .area-children::before {
|
left: 153px;
|
}
|
|
.area-toggle {
|
color: #6f85a1;
|
}
|
|
.area-toggle::before {
|
left: 5px;
|
top: 5px;
|
border-left-width: 4px;
|
border-right-width: 4px;
|
border-top-color: currentColor;
|
}
|
|
.area-node.collapsed > .area-node-content .area-toggle::before {
|
border-left-color: currentColor;
|
}
|
|
.area-folder-icon,
|
.area-file-icon {
|
color: #7390b3;
|
}
|
|
.area-node-content.active .area-folder-icon,
|
.area-node-content.active .area-file-icon,
|
.area-node-content.active .area-toggle {
|
color: #1774ff;
|
}
|
|
.area-folder-icon {
|
border-radius: 3px;
|
}
|
|
.area-file-icon {
|
border-radius: 3px;
|
}
|
|
.area-file-icon::before {
|
background: #fff;
|
}
|
|
.area-name {
|
min-width: 0;
|
}
|
|
.area-action {
|
width: max-content;
|
min-width: 58px;
|
height: 26px;
|
display: inline-flex;
|
align-items: center;
|
justify-content: center;
|
gap: 4px;
|
padding: 0 12px;
|
border: 1px solid transparent;
|
border-radius: 999px;
|
font-size: 12px;
|
font-weight: 800;
|
line-height: 1;
|
text-align: center;
|
}
|
|
.area-action::before {
|
font-size: 13px;
|
font-weight: 800;
|
}
|
|
.area-action.add-child {
|
min-width: 82px;
|
color: #2f73ff;
|
border-color: #cfe0ff;
|
background: #eff6ff;
|
}
|
|
.area-action.add-child::before {
|
content: "+";
|
}
|
|
.area-action.edit {
|
color: #48617f;
|
border-color: #d8e3f1;
|
background: #f5f8fc;
|
}
|
|
.area-action.edit::before {
|
content: "✎";
|
}
|
|
.area-action.delete {
|
color: #e5484d;
|
border-color: #ffd7d9;
|
background: #fff3f3;
|
}
|
|
.area-action.delete::before {
|
content: "⌫";
|
}
|
|
.area-action:hover {
|
transform: translateY(-1px);
|
}
|
|
.area-action.add-child:hover {
|
background: #e6f1ff;
|
}
|
|
.area-action.edit:hover {
|
color: #2f73ff;
|
background: #edf5ff;
|
}
|
|
.area-action.delete:hover {
|
background: #ffecec;
|
}
|
|
.area-disabled-tip {
|
grid-column: 4 / 8;
|
display: inline-flex;
|
align-items: center;
|
gap: 34px;
|
color: #8fa0b4;
|
font-size: 13px;
|
font-weight: 700;
|
}
|
|
.area-disabled-tip:empty {
|
display: none;
|
}
|
|
.area-disabled-badge {
|
min-width: 32px;
|
height: 20px;
|
display: inline-flex;
|
align-items: center;
|
justify-content: center;
|
border-radius: 10px;
|
color: #8b9bad;
|
background: #e7edf5;
|
font-size: 12px;
|
}
|
|
.area-empty {
|
padding: 56px;
|
color: #8fa0b4;
|
}
|
|
@media (max-width: 1280px) {
|
.area-tree {
|
min-width: 820px;
|
}
|
|
.area-node-content {
|
grid-template-columns: 18px 20px 230px 84px 64px 64px minmax(180px, 1fr);
|
}
|
}
|