提交
This commit is contained in:
1 parent
c00f19f8bd
commit
272c68af4b
134 files changed
+930389
-38617
No files matched your search
@@ -7,13 +7,16 @@
|
||||
'white': #ffffff,
|
||||
'black': #000000,
|
||||
'success': (
|
||||
'base': #168f45
|
||||
'base': #059669
|
||||
),
|
||||
'warning': (
|
||||
'base': #ffae1f
|
||||
'base': #d97706
|
||||
),
|
||||
'danger': (
|
||||
'base': #ff4d4f
|
||||
'base': #dc2626
|
||||
),
|
||||
'info': (
|
||||
'base': #1e293b
|
||||
),
|
||||
'error': (
|
||||
'base': #fa896b
|
||||
|
||||
@@ -10,6 +10,11 @@
|
||||
--el-color-primary-light-8: #c8ecd4 !important;
|
||||
--el-color-primary-light-9: var(--mint-primary-bg) !important;
|
||||
--el-color-primary-dark-2: var(--mint-primary-dark) !important;
|
||||
// 语义色:供 el-tag effect=dark 使用实心底(避免 Element 默认 info #909399)
|
||||
--el-color-success: #059669 !important;
|
||||
--el-color-warning: #d97706 !important;
|
||||
--el-color-danger: #dc2626 !important;
|
||||
--el-color-info: #1e293b !important;
|
||||
--el-border-color: var(--mint-border) !important;
|
||||
--el-border-color-light: #dfece6 !important;
|
||||
--el-fill-color-light: var(--mint-table-head) !important;
|
||||
@@ -302,20 +307,67 @@ html.dark .el-card {
|
||||
}
|
||||
}
|
||||
|
||||
// 修改el-tag样式
|
||||
.el-tag {
|
||||
font-weight: 500;
|
||||
// 语义 Tag:深色底 + 白字(配合全局 ElTag 默认 effect=dark;覆盖 light 残留)
|
||||
html body .el-tag {
|
||||
border: none !important;
|
||||
border-radius: 6px;
|
||||
padding: 2px 8px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
transition: all 0s !important;
|
||||
--el-tag-text-color: #ffffff;
|
||||
color: #ffffff !important;
|
||||
|
||||
&.el-tag--default {
|
||||
height: 26px !important;
|
||||
}
|
||||
|
||||
.el-tag__close {
|
||||
color: rgba(255, 255, 255, 0.85) !important;
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(255, 255, 255, 0.2) !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
}
|
||||
|
||||
&,
|
||||
&.el-tag--primary,
|
||||
&.el-tag--success {
|
||||
--el-tag-bg-color: #059669;
|
||||
--el-tag-border-color: #059669;
|
||||
--el-tag-hover-color: #047857;
|
||||
background: #059669 !important;
|
||||
background-color: #059669 !important;
|
||||
border-color: #059669 !important;
|
||||
}
|
||||
|
||||
&.el-tag--warning {
|
||||
--el-tag-bg-color: #d97706;
|
||||
--el-tag-border-color: #d97706;
|
||||
--el-tag-hover-color: #b45309;
|
||||
background: #d97706 !important;
|
||||
background-color: #d97706 !important;
|
||||
border-color: #d97706 !important;
|
||||
}
|
||||
|
||||
&.el-tag--danger {
|
||||
--el-tag-bg-color: #dc2626;
|
||||
--el-tag-border-color: #dc2626;
|
||||
--el-tag-hover-color: #b91c1c;
|
||||
background: #dc2626 !important;
|
||||
background-color: #dc2626 !important;
|
||||
border-color: #dc2626 !important;
|
||||
}
|
||||
|
||||
// 中性 info:无背景,正文标准色(与彩色语义 Tag 区分)
|
||||
&.el-tag--info {
|
||||
--el-tag-bg-color: transparent;
|
||||
--el-tag-border-color: transparent;
|
||||
--el-tag-text-color: var(--mint-text);
|
||||
--el-tag-hover-color: var(--mint-text);
|
||||
background: transparent !important;
|
||||
background-color: transparent !important;
|
||||
border-color: transparent !important;
|
||||
color: var(--mint-text) !important;
|
||||
}
|
||||
@@ -858,47 +910,6 @@ body .el-table thead {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
// Fresh Mint:状态标签(映射 design spec 的浅底 + 语义色字)
|
||||
.page-container .el-tag,
|
||||
.console-container .el-tag {
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
padding: 2px 8px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.page-container .el-tag--success,
|
||||
.console-container .el-tag--success {
|
||||
background: #d4f0de !important;
|
||||
color: #147a3c !important;
|
||||
}
|
||||
|
||||
.page-container .el-tag--warning,
|
||||
.console-container .el-tag--warning {
|
||||
background: #fffbeb !important;
|
||||
color: #d97706 !important;
|
||||
}
|
||||
|
||||
.page-container .el-tag--danger,
|
||||
.console-container .el-tag--danger {
|
||||
background: #fef2f2 !important;
|
||||
color: #dc2626 !important;
|
||||
}
|
||||
|
||||
.page-container .el-tag--info,
|
||||
.console-container .el-tag--info {
|
||||
background: transparent !important;
|
||||
border-color: transparent !important;
|
||||
color: var(--mint-text) !important;
|
||||
}
|
||||
|
||||
.page-container .el-tag--primary,
|
||||
.console-container .el-tag--primary {
|
||||
background: #e6f8ed !important;
|
||||
color: #168f45 !important;
|
||||
}
|
||||
|
||||
.page-container .el-button--primary,
|
||||
.console-container .el-button--primary {
|
||||
--el-button-bg-color: var(--mint-primary);
|
||||
|
||||
@@ -46,8 +46,8 @@
|
||||
--warning-bg: #fffbeb;
|
||||
--danger: #dc2626;
|
||||
--danger-bg: #fef2f2;
|
||||
--info: #64748b;
|
||||
--info-bg: #f8fafc;
|
||||
--info: #1e293b;
|
||||
--info-bg: #f1f5f9;
|
||||
|
||||
/* 弹窗相对视口上下留白(各 20px,总 40px) */
|
||||
--dialog-viewport-inset: 20px;
|
||||
|
||||
Reference in new issue
Block a user