76 lines
1.7 KiB
CSS
76 lines
1.7 KiB
CSS
:root {
|
||
--app-bg: #f6f7fb;
|
||
--app-text: #111827;
|
||
--app-muted: #6b7280;
|
||
--app-border: rgba(17, 24, 39, 0.08);
|
||
--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;
|
||
text-rendering: optimizeLegibility;
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
}
|
||
|
||
html,
|
||
body,
|
||
#app {
|
||
height: 100%;
|
||
}
|
||
|
||
body {
|
||
margin: 0;
|
||
background: var(--app-bg);
|
||
color: var(--app-text);
|
||
}
|
||
|
||
a {
|
||
color: inherit;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.app-muted {
|
||
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;
|
||
}
|
||
|
||
.el-form-item {
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
}
|
||
|
||
.el-form-item__label {
|
||
width: auto !important;
|
||
justify-content: flex-start !important;
|
||
padding: 0 0 6px !important;
|
||
line-height: 1.4;
|
||
text-align: left !important;
|
||
}
|
||
|
||
.el-form-item__content {
|
||
margin-left: 0 !important;
|
||
width: 100%;
|
||
}
|
||
}
|