update 重构 将scss文件拆解 按具体功能细分文件 便于后续维护

This commit is contained in:
疯狂的狮子Li
2026-03-25 12:06:46 +08:00
parent 1fb116f059
commit 9f577be6ff
52 changed files with 2830 additions and 2987 deletions
+24 -269
View File
@@ -1,275 +1,30 @@
@use './variables.module.scss' as *;
@use './mixin.scss';
@use './transition.scss';
@use './element-ui.scss';
@use './sidebar.scss';
@use './base/document';
@use './layout/surface';
@use './layout/sidebar/shell' as sidebar-shell;
@use './layout/sidebar/menu';
@use './layout/sidebar/collapsed';
@use './layout/sidebar/responsive';
@use './layout/sidebar/popper' as sidebar-popper;
@use './components/legacy-layout';
@use './components/legacy-utilities';
@use './components/page-shell';
@use './components/card-shell';
@use './components/theme-helpers';
@use './components/table-toolbar';
@use './components/query-form';
@use './components/search-panel';
@use './vendors/element-plus/primitives';
@use './vendors/element-plus/base';
@use './vendors/element-plus/dialog';
@use './vendors/element-plus/dropdown';
@use './vendors/element-plus/form';
@use './vendors/element-plus/feedback';
@use './vendors/element-plus/popper' as element-popper;
@use './vendors/element-plus/shell' as element-shell;
@use './vendors/element-plus/navigation';
@use './btn.scss';
@use './ruoyi.scss';
@use 'animate.css';
@use 'element-plus/dist/index.css';
body {
height: 100%;
margin: 0;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
background: var(--app-shell-bg);
font-family:
'MiSans',
'HarmonyOS Sans SC',
'PingFang SC',
'Source Han Sans SC',
'Noto Sans SC',
'Hiragino Sans GB',
'Microsoft YaHei',
sans-serif;
}
label {
font-weight: 600;
}
html {
height: 100%;
box-sizing: border-box;
}
html.dark .svg-icon,
html.dark svg {
fill: var(--el-text-color-regular);
}
#app {
height: 100%;
}
html,
body,
#app {
min-height: 100%;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
.no-padding {
padding: 0px !important;
}
.padding-content {
padding: 4px 0;
}
a:focus,
a:active {
outline: none;
}
a,
a:focus,
a:hover {
cursor: pointer;
color: inherit;
text-decoration: none;
}
div:focus {
outline: none;
}
.fr {
float: right;
}
.fl {
float: left;
}
.pr-5 {
padding-right: 5px;
}
.pl-5 {
padding-left: 5px;
}
.block {
display: block;
}
.pointer {
cursor: pointer;
}
.inlineBlock {
display: block;
}
.clearfix {
&:after {
visibility: hidden;
display: block;
font-size: 0;
content: ' ';
clear: both;
height: 0;
}
}
aside {
background: #eef1f6;
padding: 8px 24px;
margin-bottom: 20px;
border-radius: var(--app-radius-md);
display: block;
line-height: 32px;
font-size: 16px;
font-family:
'MiSans',
'HarmonyOS Sans SC',
'PingFang SC',
'Source Han Sans SC',
'Noto Sans SC',
'Hiragino Sans GB',
'Microsoft YaHei',
sans-serif;
color: #2c3e50;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
a {
color: #337ab7;
cursor: pointer;
&:hover {
color: rgb(32, 160, 255);
}
}
}
//main-container全局样式
.app-container {
padding: 16px;
background: var(--app-surface-bg);
border: 1px solid var(--app-surface-border);
border-radius: var(--app-radius-lg);
box-shadow: var(--app-shadow-sm);
}
// search面板样式
.panel,
.search {
margin-bottom: 0.75rem;
border-radius: var(--app-radius-lg);
border: 1px solid var(--app-surface-border);
background-color: var(--app-surface-bg);
padding: 0.75rem;
box-shadow: 0 0 0 rgba(0, 0, 0, 0);
transition: box-shadow 0.2s ease, border-color 0.2s ease;
&:hover {
box-shadow: var(--app-shadow-sm);
border-color: rgba(64, 158, 255, 0.2);
}
}
.el-card,
.el-dialog,
.el-drawer,
.el-popover.el-popper,
.el-dropdown__popper .el-dropdown-menu,
.el-picker__popper,
.el-select__popper.el-popper {
border-radius: var(--app-radius-lg);
border-color: var(--app-surface-border);
box-shadow: var(--app-shadow-md);
}
.el-card,
.el-dialog,
.el-drawer {
background: var(--app-surface-bg);
}
.el-button {
font-weight: 500;
}
.el-button--primary {
--el-button-bg-color: var(--app-accent-strong);
--el-button-border-color: var(--app-accent-strong);
--el-button-hover-bg-color: #4a7cff;
--el-button-hover-border-color: #4a7cff;
--el-button-active-bg-color: #2e5ce0;
--el-button-active-border-color: #2e5ce0;
}
.el-table {
--el-table-border-color: var(--app-surface-border);
--el-table-header-bg-color: var(--tableHeaderBg);
--el-table-tr-bg-color: transparent;
background: transparent;
}
.el-input__wrapper,
.el-textarea__inner,
.el-select__wrapper {
box-shadow: 0 0 0 1px var(--el-border-color) inset;
}
.components-container {
margin: 30px 50px;
position: relative;
}
.text-center {
text-align: center;
}
.sub-navbar {
height: 50px;
line-height: 50px;
position: relative;
width: 100%;
text-align: right;
padding-right: 20px;
transition: 600ms ease position;
background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
.subtitle {
font-size: 20px;
color: #fff;
}
&.draft {
background: #d0d0d0;
}
&.deleted {
background: #d0d0d0;
}
}
.link-type,
.link-type:focus {
color: #337ab7;
cursor: pointer;
&:hover {
color: rgb(32, 160, 255);
}
}
.filter-container {
padding-bottom: 10px;
.filter-item {
display: inline-block;
vertical-align: middle;
margin-bottom: 10px;
}
}