fix(ui): 开关可见与布局对齐
This commit is contained in:
@@ -6,6 +6,10 @@
|
||||
--app-radius: 12px;
|
||||
--app-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
|
||||
|
||||
/* Element Plus: switch 在白底/禁用态下更易辨识 */
|
||||
--el-switch-off-color: var(--el-border-color-darker);
|
||||
--el-switch-border-color: var(--el-border-color-darker);
|
||||
|
||||
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
||||
'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
|
||||
font-synthesis: none;
|
||||
@@ -35,6 +39,17 @@ a {
|
||||
color: var(--app-muted);
|
||||
}
|
||||
|
||||
/* Element Plus: 关闭态(inline-prompt)文字不再是白色,避免与浅灰底色“融为一体” */
|
||||
.el-switch:not(.is-checked) .el-switch__core .el-switch__inner .is-icon,
|
||||
.el-switch:not(.is-checked) .el-switch__core .el-switch__inner .is-text {
|
||||
color: var(--el-text-color-regular);
|
||||
}
|
||||
|
||||
/* Element Plus: 禁用态开关默认 0.6 透明度太淡,白底下容易看不见 */
|
||||
.el-switch.is-disabled {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.el-dialog {
|
||||
max-width: 92vw;
|
||||
@@ -58,4 +73,3 @@ a {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user