feat: 管理后台改为浅色蓝主色并平铺导航
This commit is contained in:
+21
-6
@@ -3,11 +3,11 @@ import { NConfigProvider, NDialogProvider, NMessageProvider, dateZhCN, zhCN } fr
|
||||
import { RouterView } from "vue-router";
|
||||
import { useAppTheme } from "./theme";
|
||||
|
||||
const { theme } = useAppTheme();
|
||||
const { theme, themeOverrides } = useAppTheme();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<n-config-provider :locale="zhCN" :date-locale="dateZhCN" :theme="theme" size="small">
|
||||
<n-config-provider :locale="zhCN" :date-locale="dateZhCN" :theme="theme" :theme-overrides="themeOverrides" size="small">
|
||||
<n-message-provider>
|
||||
<n-dialog-provider>
|
||||
<RouterView />
|
||||
@@ -23,12 +23,27 @@ body,
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
html {
|
||||
color-scheme: light;
|
||||
}
|
||||
body {
|
||||
background: #f7f8fa;
|
||||
color: rgba(0, 0, 0, 0.9);
|
||||
background: #f6f8fa;
|
||||
color: #1f2328;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
::selection {
|
||||
background: #0969da;
|
||||
color: #fff;
|
||||
}
|
||||
html.dark {
|
||||
color-scheme: dark;
|
||||
}
|
||||
html.dark body {
|
||||
background: #101014;
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
background: #0d1117;
|
||||
color: #e6edf3;
|
||||
}
|
||||
html.dark ::selection {
|
||||
background: #4493f8;
|
||||
color: #0d1117;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user