git_pull 重构,样式优化

This commit is contained in:
whyour
2021-04-01 23:50:24 +08:00
parent 4ca49edf01
commit d5b9bca68b
12 changed files with 278 additions and 290 deletions
+10 -1
View File
@@ -8,7 +8,7 @@ body {
.code-mirror-wrapper .CodeMirror {
position: absolute;
height: calc(100% - 24px);
height: calc(100% - 48px);
width: 100%;
}
@@ -19,5 +19,14 @@ body {
overflow: auto;
height: calc(100vh - 96px);
background-color: #fff;
padding: 24px;
}
}
@media (max-width: 768px) {
.ant-pro-grid-content.wide {
.ant-pro-page-container-children-content {
height: calc(100vh - 144px);
}
}
}
+10 -2
View File
@@ -39,11 +39,19 @@ export default function (props: any) {
const theme = localStorage.getItem('qinglong_dark_theme') || 'auto';
setFetchMethod(window.fetch);
if (theme === 'dark') {
enableDarkMode({ darkSchemeTextColor: '#fff' });
enableDarkMode({
brightness: 100,
contrast: 90,
sepia: 10,
});
} else if (theme === 'light') {
disableDarkMode();
} else {
followSystemColorScheme({ darkSchemeTextColor: '#fff' });
followSystemColorScheme({
brightness: 100,
contrast: 90,
sepia: 10,
});
}
}, []);