feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面
This commit is contained in:
@@ -32,7 +32,7 @@ html.dark .ui-center-sidebar {
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
padding: 28px 18px 28px;
|
||||
padding: 28px 16px 26px;
|
||||
}
|
||||
|
||||
.ui-org-identity > svg {
|
||||
@@ -59,6 +59,7 @@ html.dark .ui-center-sidebar {
|
||||
}
|
||||
|
||||
.ui-org-role {
|
||||
margin-top: 2px;
|
||||
color: var(--text-secondary);
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
@@ -119,6 +120,7 @@ html.dark .ui-center-sidebar {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: 22px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.ui-center-menu-item > svg {
|
||||
@@ -131,8 +133,7 @@ html.dark .ui-center-sidebar {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ui-center-sidebar .ui-center-menu-item[data-active='true'],
|
||||
.ui-user-sidebar .ant-menu-item-selected {
|
||||
.ui-center-sidebar .ui-center-menu-item[data-active='true'] {
|
||||
background: var(--center-nav-active-bg);
|
||||
color: var(--center-nav-active-text);
|
||||
font-weight: 500;
|
||||
@@ -153,8 +154,7 @@ html.dark .ui-center-sidebar {
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.ui-center-sidebar-collapse,
|
||||
.ui-user-sidebar .ui-sidebar-collapse {
|
||||
.ui-center-sidebar-collapse {
|
||||
display: flex;
|
||||
flex: none;
|
||||
align-items: center;
|
||||
@@ -192,32 +192,17 @@ html.dark .ui-center-sidebar {
|
||||
}
|
||||
|
||||
.ui-user-sidebar.ui-center-sidebar {
|
||||
padding: 24px 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.ui-user-sidebar .ant-menu {
|
||||
min-height: 0;
|
||||
padding-inline: 12px;
|
||||
overflow: hidden auto;
|
||||
:is(.ui-console-sidebar, .ui-user-sidebar) .ui-center-sidebar-nav {
|
||||
padding-top: 24px;
|
||||
}
|
||||
|
||||
.ui-user-sidebar .ant-menu.ant-menu-root {
|
||||
.ui-console-submenu-toggle {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ui-user-sidebar .ant-menu .ant-menu-item {
|
||||
width: 100%;
|
||||
height: 42px;
|
||||
margin: 0 0 6px;
|
||||
padding-inline: 24px;
|
||||
border-radius: 8px;
|
||||
line-height: 42px;
|
||||
}
|
||||
|
||||
.ui-user-sidebar .ant-menu-item .ant-menu-title-content {
|
||||
margin-inline-start: 12px;
|
||||
}
|
||||
|
||||
.ui-user-sidebar[data-collapsed='true'] .ant-menu .ant-menu-item {
|
||||
padding-inline: 12px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
text-align: start;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
+239
-7
@@ -273,6 +273,7 @@ html.dark .oc-dialog {
|
||||
/* 遮罩:原型(antd 6 默认)弹窗与抽屉均为 rgba(0,0,0,.3) + blur(4px),浅 / 深一致。
|
||||
只作用于目标页(页面根含 .oc-page)打开的 OrgModal / OrgSideSheet;宿主公告、客服与跳过页不受影响。 */
|
||||
body:has(.org-center .oc-page) .ant-modal-root:has(.org-modal),
|
||||
body:has(.org-center .oc-page) .ant-modal-root:has(.task-content-modal),
|
||||
body:has(.org-center .oc-page) .ant-drawer:has(.org-sidesheet) {
|
||||
--oc-mask-bg: rgba(0, 0, 0, 0.3);
|
||||
--oc-mask-blur: 4px;
|
||||
@@ -281,6 +282,9 @@ body:has(.org-center .oc-page) .ant-drawer:has(.org-sidesheet) {
|
||||
body:has(.org-center .oc-page)
|
||||
.ant-modal-root:has(.org-modal)
|
||||
> .ant-modal-mask,
|
||||
body:has(.org-center .oc-page)
|
||||
.ant-modal-root:has(.task-content-modal)
|
||||
> .ant-modal-mask,
|
||||
body:has(.org-center .oc-page)
|
||||
.ant-drawer:has(.org-sidesheet)
|
||||
> .ant-drawer-mask {
|
||||
@@ -454,13 +458,6 @@ html.dark .org-center .oc-page {
|
||||
color: var(--oc-brand);
|
||||
}
|
||||
|
||||
.oc-token-column-options {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
min-width: 132px;
|
||||
}
|
||||
|
||||
/* ---------- 审计日志(原型 EnterpriseAudit .eau-*) ---------- */
|
||||
.org-center .oc-page .oc-audit-filter .oc-filter-grid {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
@@ -2664,3 +2661,238 @@ html.dark .org-center .oc-dashboard {
|
||||
padding: 20px 16px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------- 消耗明细:绘图与视频(原型 EnterpriseExpenseTasks .eex-task-records) ----------
|
||||
* 作用域 .oc-expenses(页面根,style 由 useOrgLogsThemeStyle 注入 token 变量)。
|
||||
* 新规则以 :where() 包裹作用域祖先、只保留目标类的优先级;复用的使用记录类名(.usage-record-*)
|
||||
* 以多一层企业页类名确保高于 UsageRecord.css(该文件仅在访问个人端后加载),结果与加载顺序无关。
|
||||
*/
|
||||
:where(.org-center .oc-expenses) .oc-task-records {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* 筛选卡:原型 .ee-filter-grid 三列 16px、表单项下距 16px、标签 13px 次文字色;操作右对齐 8px */
|
||||
:where(.org-center .oc-expenses) .oc-task-filter .usage-record-filter-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
/* 时间范围与其他字段同占一列(原型三列网格,个人端使用记录为跨两列) */
|
||||
:where(.org-center .oc-expenses)
|
||||
.oc-task-filter
|
||||
.usage-record-filter-grid
|
||||
.usage-record-filter-wide {
|
||||
grid-column: auto;
|
||||
}
|
||||
|
||||
:where(.org-center .oc-expenses)
|
||||
.oc-task-filter
|
||||
.usage-record-filter-form
|
||||
.ant-form-item {
|
||||
min-width: 0;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
:where(.org-center .oc-expenses)
|
||||
.oc-task-filter
|
||||
.usage-record-filter-form
|
||||
.ant-form-item-label
|
||||
> label {
|
||||
height: auto;
|
||||
color: var(--oc-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
:where(.org-center .oc-expenses)
|
||||
.oc-task-filter
|
||||
.usage-record-filter-form
|
||||
.ant-picker,
|
||||
:where(.org-center .oc-expenses)
|
||||
.oc-task-filter
|
||||
.usage-record-filter-form
|
||||
.ant-select {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
:where(.org-center .oc-expenses) .oc-task-filter .usage-record-filter-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 8px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/* 列表卡工具区:处理中标签与按钮同行 */
|
||||
:where(.org-center .oc-expenses) .oc-list-tools .ant-tag {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* 模型:原型 .eex-model 等宽胶囊(行内元素,内边距不撑高行;复制回调沿用原节点) */
|
||||
:where(.org-center .oc-expenses) .oc-task-model .usage-record-model {
|
||||
display: inline;
|
||||
padding: 3px 6px;
|
||||
border: 1px solid var(--oc-border);
|
||||
border-radius: 4px;
|
||||
background: var(--oc-soft);
|
||||
color: var(--oc-text);
|
||||
font:
|
||||
12px/1.5 Consolas,
|
||||
monospace;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
:where(.org-center .oc-expenses) .oc-task-model .usage-record-model:hover {
|
||||
color: var(--oc-brand);
|
||||
}
|
||||
|
||||
/* 任务 ID:原型 .task-id 等宽 11px */
|
||||
:where(.org-center .oc-expenses) .oc-task-id .ant-typography {
|
||||
color: var(--oc-text);
|
||||
font-family: Consolas, monospace;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
/* 操作列(原型 record-operation:Button link small、无图标):预览视频为 link 文本;失败原因点击查看;无内容显示“-” */
|
||||
:where(.org-center .oc-expenses) .oc-task-detail a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: var(--ui-color-link);
|
||||
font-size: 14px;
|
||||
line-height: 22px;
|
||||
white-space: nowrap;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
:where(.org-center .oc-expenses) .oc-task-detail a:hover {
|
||||
color: var(--ui-color-link-hover);
|
||||
}
|
||||
|
||||
:where(.org-center .oc-expenses) .oc-task-detail a:focus-visible {
|
||||
border-radius: 3px;
|
||||
outline: 2px solid var(--oc-brand);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
:where(.org-center .oc-expenses) .oc-task-detail a svg {
|
||||
display: none;
|
||||
}
|
||||
|
||||
:where(.org-center .oc-expenses) .oc-task-detail .ant-typography {
|
||||
color: var(--oc-text);
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
:where(.org-center .oc-expenses) .oc-task-detail .ant-typography:hover {
|
||||
color: var(--ui-color-link-hover);
|
||||
}
|
||||
|
||||
:where(.org-center .oc-expenses) .oc-task-empty-hint {
|
||||
margin-top: 4px;
|
||||
color: var(--ui-color-text-2);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
:where(.org-center .oc-expenses) .oc-task-filter .usage-record-filter-grid {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------- 消耗明细:导出弹窗(原型无此弹窗:Ant 默认 + 语义变量,无装饰) ---------- */
|
||||
:where(.oc-export-dialog) .oc-export-scope {
|
||||
margin-bottom: 16px;
|
||||
padding: 12px;
|
||||
border-radius: 8px;
|
||||
background: var(--oc-soft);
|
||||
}
|
||||
|
||||
:where(.oc-export-dialog) .oc-export-scope-title {
|
||||
margin-bottom: 6px;
|
||||
color: var(--oc-muted);
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
:where(.oc-export-dialog) .oc-export-scope-row {
|
||||
color: var(--oc-text);
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
:where(.oc-export-dialog) .oc-export-scope-row > span {
|
||||
color: var(--oc-muted);
|
||||
}
|
||||
|
||||
:where(.oc-export-dialog) .oc-export-scope-count {
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
:where(.oc-export-dialog) .oc-export-scope-count strong {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
:where(.oc-export-dialog) .oc-export-scope-warning {
|
||||
margin-top: 6px;
|
||||
color: var(--ui-color-warning);
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
:where(.oc-export-dialog) .oc-export-section {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
:where(.oc-export-dialog) .oc-export-label {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
color: var(--oc-text);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
:where(.oc-export-dialog) .oc-export-fields-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
:where(.oc-export-dialog) .oc-export-fields-head .oc-export-label {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
:where(.oc-export-dialog) .oc-export-fields-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
:where(.oc-export-dialog) .oc-export-fields {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px 16px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--oc-border);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
:where(.oc-export-dialog) .oc-export-fields .ant-checkbox-wrapper {
|
||||
margin-inline-start: 0;
|
||||
}
|
||||
|
||||
:where(.oc-export-dialog) .oc-export-note {
|
||||
margin: 8px 0 0;
|
||||
color: var(--oc-muted);
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
:where(.oc-export-dialog) .oc-export-footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
+17
-24
@@ -229,7 +229,8 @@ html.dark body[data-ui-scope='admin'] {
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.ui-topbar {
|
||||
padding-inline: 26px;
|
||||
--header-inline-padding: 26px;
|
||||
padding-inline: var(--header-inline-padding);
|
||||
}
|
||||
.ui-topbar .ui-header-brand {
|
||||
min-width: 166px;
|
||||
@@ -245,7 +246,7 @@ html.dark body[data-ui-scope='admin'] {
|
||||
}
|
||||
@media (min-width: 768px) and (max-width: 1250px) {
|
||||
.ui-topbar {
|
||||
padding-inline: 20px;
|
||||
--header-inline-padding: 20px;
|
||||
}
|
||||
.ui-topbar .ui-header-navigation {
|
||||
margin-inline: 18px;
|
||||
@@ -301,6 +302,20 @@ html.dark body[data-ui-scope='admin'] {
|
||||
color: var(--text-primary);
|
||||
background: transparent;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.ui-topbar .ui-header-brand {
|
||||
/* Align the first underline with the sidebar content's breadcrumb. */
|
||||
flex: 0 0
|
||||
calc(
|
||||
var(--sidebar-width, 216px) + var(--uc-page-pad-x, 36px) -
|
||||
var(--header-inline-padding) - 16px
|
||||
);
|
||||
min-width: 0;
|
||||
}
|
||||
.ui-topbar .ui-header-navigation {
|
||||
margin-inline-start: 0;
|
||||
}
|
||||
}
|
||||
.ui-header-navigation .ui-header-nav-item::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
@@ -533,28 +548,6 @@ body[data-ui-scope='admin'] .ant-layout {
|
||||
overflow-x: visible;
|
||||
overflow-y: visible;
|
||||
}
|
||||
.ui-user-sidebar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
background: var(--surface-sidebar);
|
||||
border-right: 1px solid var(--border-subtle);
|
||||
padding: 24px 8px 12px;
|
||||
}
|
||||
.ui-user-sidebar .ant-menu {
|
||||
flex: 1;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.ui-user-sidebar .ant-menu.ant-menu-root {
|
||||
border-inline-end: 0;
|
||||
}
|
||||
.ui-user-sidebar .ant-menu-item {
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.ui-sidebar-collapse {
|
||||
flex: none;
|
||||
}
|
||||
.uc-dashboard {
|
||||
/* 在线原型 .dashboard-hero 实测(1920×1000 / 393×851):渐变、网格线、底部渐隐与插画 */
|
||||
--uc-hero-h: 315px;
|
||||
|
||||
Reference in New Issue
Block a user