mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-19 11:10:49 +08:00
feat: initialize new React application structure with TypeScript, ESLint, and Prettier configurations, while removing legacy files and adding new components and pages for enhanced functionality
This commit is contained in:
70
src/styles/global.scss
Normal file
70
src/styles/global.scss
Normal file
@@ -0,0 +1,70 @@
|
||||
/**
|
||||
* 全局样式
|
||||
*/
|
||||
|
||||
@import './variables.scss';
|
||||
@import './mixins.scss';
|
||||
@import './reset.scss';
|
||||
@import './themes.scss';
|
||||
@import './components.scss';
|
||||
@import './layout.scss';
|
||||
|
||||
body {
|
||||
background-color: var(--bg-secondary);
|
||||
color: var(--text-primary);
|
||||
transition: background-color $transition-normal, color $transition-normal;
|
||||
}
|
||||
|
||||
// 滚动条样式
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--border-color);
|
||||
border-radius: $radius-full;
|
||||
|
||||
&:hover {
|
||||
background: var(--border-hover);
|
||||
}
|
||||
}
|
||||
|
||||
// 通用工具类
|
||||
.container {
|
||||
width: 100%;
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 0 $spacing-md;
|
||||
}
|
||||
|
||||
.flex-center {
|
||||
@include flex-center;
|
||||
}
|
||||
|
||||
.text-ellipsis {
|
||||
@include text-ellipsis;
|
||||
}
|
||||
|
||||
// 通用过渡
|
||||
.fade-enter {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.fade-enter-active {
|
||||
opacity: 1;
|
||||
transition: opacity $transition-normal;
|
||||
}
|
||||
|
||||
.fade-exit {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.fade-exit-active {
|
||||
opacity: 0;
|
||||
transition: opacity $transition-normal;
|
||||
}
|
||||
Reference in New Issue
Block a user