20260820173056

This commit is contained in:
oneao committed 2026-08-20 17:30:56 +08:00
1 parent 8e75c7989a
commit 68ac5db038
24 files changed
+975 -6035

No files matched your search

+142 -4
View File
@@ -1,7 +1,145 @@
@import "tailwindcss";
html,
body {
margin: 0;
padding: 0;
:root {
font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
color: #26344a;
background: #f3f5f8;
font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 1120px; background: #f3f5f8; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app { min-height: 100vh; }
.topbar { height: 64px; display: flex; align-items: center; gap: 32px; padding: 0 24px; background: #fff; border-bottom: 1px solid #e1e6ed; }
.brand { width: 250px; display: flex; align-items: center; gap: 11px; }
.brand .logo { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: #2468d8; border-radius: 6px; }
.brand b { display: block; color: #24344e; font-size: 14px; }
.brand small { display: block; margin-top: 3px; color: #98a4b4; font-size: 10px; }
.top-module { display: flex; align-items: center; gap: 10px; padding-left: 24px; border-left: 1px solid #edf0f4; font-size: 11px; }
.top-module span { color: #98a4b4; }
.top-module b { color: #586a83; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; color: #7b899d; font-size: 10px; }
.save-state i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #32a879; }
.save-state.dirty i { background: #d99736; }
.save { padding: 7px 12px; border: 1px solid #d9e0e9; border-radius: 5px; background: #fff; color: #576a84; font-size: 10px; font-weight: 600; }
.save:disabled, .primary:disabled { cursor: default; opacity: .45; }
.avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e7effd; color: #2463c9; font-size: 11px; font-weight: 700; }
.layout { display: grid; grid-template-columns: 286px minmax(760px, 1fr); min-height: calc(100vh - 64px); }
.tree-panel { position: relative; padding: 20px 13px; background: #fff; border-right: 1px solid #e1e6ed; }
.tree-title { display: flex; justify-content: space-between; align-items: center; padding: 0 9px 15px; }
.tree-title b { display: block; color: #40526d; font-size: 13px; }
.tree-title small { display: block; margin-top: 4px; color: #9aa6b5; font-size: 9px; }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid #dce3ec; border-radius: 5px; background: #fff; color: #60728b; }
.icon-btn:hover { border-color: #9bb7e6; color: #2769d4; background: #f7faff; }
.add-wrap { position: relative; }
.add-menu { position: absolute; z-index: 5; top: 35px; right: 0; width: 138px; padding: 5px; border: 1px solid #dde4ed; border-radius: 6px; background: #fff; box-shadow: 0 10px 28px rgba(37, 52, 74, .14); }
.add-menu button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px; border: 0; border-radius: 4px; background: transparent; color: #586a83; text-align: left; font-size: 10px; }
.add-menu button:hover { color: #2468d8; background: #f1f6fe; }
.tree-search { height: 34px; display: flex; align-items: center; gap: 7px; margin-bottom: 11px; padding: 0 9px; border: 1px solid #dfe5ed; border-radius: 5px; color: #9aa6b5; }
.tree-search:focus-within { border-color: #83a6df; box-shadow: 0 0 0 2px rgba(36, 104, 216, .07); }
.tree-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: #50627c; font-size: 10px; }
.tree-search button { display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #99a5b5; }
.module-tree { min-height: 400px; }
.tree-row { width: 100%; min-height: 43px; display: flex; align-items: center; gap: 8px; padding-top: 6px; padding-right: 8px; padding-bottom: 6px; border: 0; border-radius: 5px; background: transparent; color: #5f7089; text-align: left; }
.tree-row:hover { background: #f5f8fc; }
.tree-row.selected { color: #2468d8; background: #edf4ff; }
.tree-icon { width: 17px; display: grid; place-items: center; flex: 0 0 auto; }
.tree-icon.directory { color: #c78628; }
.tree-icon.page { color: #6c64b6; }
.tree-icon.data { color: #39847b; }
.tree-name { min-width: 0; flex: 1; overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.tree-name small { display: block; margin-top: 2px; overflow: hidden; color: #a0abb9; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.tree-type { padding: 2px 4px; border-radius: 3px; background: #eef1f5; color: #9aa5b3; font-size: 8px; }
.row-more { display: none; color: #7e8ca0; }
.tree-row:hover .row-more, .tree-row.selected .row-more { display: block; }
.tree-row:hover .tree-type, .tree-row.selected .tree-type { display: none; }
.tree-legend { display: flex; gap: 13px; margin: 17px 9px 0; padding-top: 13px; border-top: 1px solid #edf0f4; color: #8c98a9; font-size: 9px; }
.tree-legend span { display: flex; align-items: center; gap: 5px; }
.dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; }
.dot.directory { background: #cf9137; }.dot.page { background: #7770c5; }.dot.data { background: #459489; }
.tree-help { display: flex; align-items: flex-start; gap: 7px; margin: 14px 5px 0; padding: 10px; border-radius: 5px; background: #f7f9fc; color: #7e8da2; font-size: 9px; line-height: 1.6; }
.tree-help svg { flex: 0 0 auto; margin-top: 1px; color: #557fbe; }
.detail { width: 100%; max-width: 1280px; margin: 0 auto; padding: 27px 34px 40px; }
.detail-head { min-height: 54px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.crumb { margin-bottom: 9px; color: #9ba6b5; font-size: 10px; white-space: pre-wrap; }
.title-line { display: flex; align-items: center; gap: 9px; }
.title-line h1 { margin: 0; color: #293a54; font-size: 21px; letter-spacing: 0; }
.title-line code { color: #98a4b4; font-size: 9px; }
.node-badge { padding: 3px 7px; border-radius: 4px; font-size: 9px; }
.node-badge.directory { background: #fff1d9; color: #a66e1e; }
.node-badge.page { background: #efedff; color: #6860b6; }
.node-badge.data { background: #e7f5f1; color: #287a70; }
.head-actions { display: flex; align-items: center; gap: 13px; }
.head-actions label { display: flex; align-items: center; gap: 6px; color: #738198; font-size: 10px; }
.more-button { width: 32px; height: 32px; }
.primary, .outline { min-height: 31px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 12px; border-radius: 5px; font-size: 10px; font-weight: 600; }
.primary { border: 1px solid #2468d8; background: #2468d8; color: #fff; }
.primary:not(:disabled):hover { background: #1e5fc8; }
.outline { border: 1px solid #d8e0e9; background: #fff; color: #596b84; }
.outline:hover { border-color: #a6bde0; color: #2468d8; }
.detail-body { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 18px; }
.section-nav { padding-top: 2px; }
.section-nav button { width: 100%; height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 0; border-left: 2px solid transparent; border-radius: 0 4px 4px 0; background: transparent; color: #7f8da1; text-align: left; font-size: 10px; }
.section-nav button:hover { color: #516b92; background: rgba(255,255,255,.55); }
.section-nav button.active { border-left-color: #2468d8; background: #fff; color: #2468d8; font-weight: 600; box-shadow: 0 1px 7px rgba(45, 68, 101, .05); }
.content { min-width: 0; }
.panel { overflow: hidden; border: 1px solid #e0e6ee; border-radius: 7px; background: #fff; box-shadow: 0 2px 10px rgba(40, 59, 86, .04); }
.panel-header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 19px; border-bottom: 1px solid #edf0f4; }
.panel-header h2 { margin: 0 0 4px; color: #34455f; font-size: 14px; }
.panel-header p { margin: 0; color: #96a2b2; font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; padding: 21px; }
.form-grid label { position: relative; display: block; color: #66768d; font-size: 10px; }
.form-grid input, .form-grid select, .table-row input, .table-row select, .rule-step input, .rule-step select { width: 100%; height: 32px; display: block; margin-top: 6px; padding: 0 9px; border: 1px solid #dbe2eb; border-radius: 4px; outline: 0; background: #fff; color: #51627b; font-size: 10px; }
.form-grid input:focus, .form-grid select:focus, .table-row input:focus, .table-row select:focus { border-color: #789bd5; box-shadow: 0 0 0 2px rgba(36, 104, 216, .06); }
.form-grid input[readonly], .form-grid select:disabled { background: #f7f8fa; color: #8d99a8; }
.related-field select { padding-right: 104px; }
.link-button { position: absolute; right: 7px; bottom: 7px; padding: 0; border: 0; background: #fff; color: #2468d8; font-size: 9px; }
.info-strip { display: flex; align-items: center; gap: 8px; margin: 0 20px 20px; padding: 10px 11px; border-left: 2px solid #83a7df; background: #f6f9fd; color: #77879d; font-size: 9px; line-height: 1.55; }
.info-strip svg { flex: 0 0 auto; color: #527fbe; }
.table-head, .table-row { display: grid; align-items: center; column-gap: 12px; }
.table-head { min-height: 37px; padding: 0 18px; background: #fafbfd; color: #8d99aa; font-size: 9px; font-weight: 600; }
.table-row { min-height: 54px; padding: 0 18px; border-top: 1px solid #edf1f5; color: #5b6c84; font-size: 10px; }
.table-row:hover { background: #fcfdff; }
.table-row input, .table-row select { margin-top: 0; }
.table-row code { color: #75869d; font-size: 9px; }
.table-row b { display: block; margin-bottom: 2px; color: #4f6078; font-size: 10px; }
.table-head.fields, .table-row.fields { grid-template-columns: 1.15fr 1fr 1fr 1.2fr 46px; }
.table-head.config, .table-row.config { grid-template-columns: 1.15fr 1fr 70px 110px 90px; }
.table-head.i18n, .table-row.i18n { grid-template-columns: 1.35fr 1fr 1fr 1fr; }
.i18n-table .table-row { min-height: 55px; }
.toggle { width: 28px; height: 17px; display: inline-block; padding: 2px; border: 0; border-radius: 20px; background: #d8e0e9; vertical-align: middle; }
.toggle i { width: 13px; height: 13px; display: block; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(38, 52, 74, .16); transition: transform .15s; }
.toggle.on { background: #36a57b; }
.toggle.on i { transform: translateX(11px); }
.power-list > div { min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 0 19px; border-top: 1px solid #edf1f5; color: #4c79b8; }
.power-list > div:first-child { border-top: 0; }
.power-list > div > span { flex: 1; }
.power-list b { display: block; color: #50617a; font-size: 11px; }
.power-list small { display: block; margin-top: 3px; color: #95a1b1; font-size: 9px; }
.more { display: grid; place-items: center; padding: 4px; border: 0; background: transparent; color: #8f9bac; }
.rule-summary { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 20px; padding: 18px 20px; border-bottom: 1px solid #edf1f5; background: #fafbfd; }
.rule-summary span { display: block; margin-bottom: 4px; color: #98a3b2; font-size: 9px; }
.rule-summary b { color: #53647c; font-size: 11px; }
.rule-summary code { color: #24705f; font-size: 12px; font-weight: 700; }
.rule-builder { padding: 20px; }
.rule-step { min-height: 50px; display: grid; grid-template-columns: 24px 140px 1fr 28px; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid #edf1f5; }
.rule-step > i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #edf3fc; color: #3c71bd; font-size: 9px; font-style: normal; }
.rule-step input, .rule-step select { margin: 0; }
.rule-step > button { display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #8f9bab; }
.inline-inputs { display: flex; align-items: center; gap: 8px; color: #7a899d; font-size: 10px; }
.inline-inputs input { width: 62px; }
.add-rule { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding: 7px 9px; border: 0; background: transparent; color: #2468d8; font-size: 10px; }
@media (max-width: 1220px) {
.detail { padding-left: 24px; padding-right: 24px; }
.top-module { display: none; }
}