// 设计 token 必须最先加载,供后续各层引用
|
@use './theme/tokens.scss';
|
// element-plus 皮肤:全局组件观感的主杠杆
|
@use './theme/element.scss';
|
// 暗色收口(用 html.dark 提高优先级,故放在皮肤层之后)
|
@use './theme/dark.scss';
|
@use './mixin.scss';
|
@use './transition.scss';
|
@use './element-ui.scss';
|
@use './sidebar.scss';
|
@use './ruoyi.scss';
|
// 业务复用类的兜底 skin 放最后
|
@use './theme/lims.scss';
|
|
body {
|
height: 100%;
|
margin: 0;
|
-moz-osx-font-smoothing: grayscale;
|
-webkit-font-smoothing: antialiased;
|
text-rendering: optimizeLegibility;
|
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
|
}
|
|
label {
|
font-weight: 600;
|
}
|
|
html {
|
height: 100%;
|
box-sizing: border-box;
|
}
|
|
#app {
|
height: 100%;
|
}
|
|
*,
|
*:before,
|
*:after {
|
box-sizing: inherit;
|
}
|
|
.no-padding {
|
padding: 0px !important;
|
}
|
|
.padding-content {
|
padding: 4px 0;
|
}
|
|
a:focus,
|
a:active,
|
div:focus {
|
outline: none;
|
}
|
|
/* 鼠标触发不显示轮廓,键盘导航必须可见 */
|
a:focus-visible,
|
div:focus-visible {
|
outline: 2px solid var(--el-color-primary);
|
outline-offset: 2px;
|
border-radius: 3px;
|
}
|
|
a,
|
a:focus,
|
a:hover {
|
cursor: pointer;
|
color: inherit;
|
text-decoration: 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: var(--lims-surface-2);
|
padding: 8px 24px;
|
margin-bottom: 20px;
|
border-radius: var(--lims-radius-sm);
|
display: block;
|
line-height: 32px;
|
font-size: 16px;
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
color: var(--lims-text);
|
-webkit-font-smoothing: antialiased;
|
-moz-osx-font-smoothing: grayscale;
|
|
a {
|
color: var(--el-color-primary);
|
cursor: pointer;
|
|
&:hover {
|
color: var(--el-color-primary-light-3);
|
}
|
}
|
}
|
|
//main-container全局样式
|
.app-container {
|
padding: 20px;
|
}
|
|
// 能力范围页面的容器内边距
|
.capacity-scope {
|
padding: 20px;
|
}
|
|
.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;
|
background: linear-gradient(90deg, var(--el-color-primary) 0%, var(--el-color-primary-dark-2) 100%);
|
|
.subtitle {
|
font-size: 20px;
|
color: #fff;
|
}
|
|
&.draft {
|
background: #d0d0d0;
|
}
|
|
&.deleted {
|
background: #d0d0d0;
|
}
|
}
|
|
.link-type,
|
.link-type:focus {
|
color: var(--el-color-primary);
|
cursor: pointer;
|
|
&:hover {
|
color: var(--el-color-primary-light-3);
|
}
|
}
|
|
.filter-container {
|
padding-bottom: 10px;
|
|
.filter-item {
|
display: inline-block;
|
vertical-align: middle;
|
margin-bottom: 10px;
|
}
|
}
|
|
// 尊重系统的「减少动态效果」偏好。做成全局兜底,业务页无需各自处理。
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
*::before,
|
*::after {
|
animation-duration: 0.01ms !important;
|
animation-iteration-count: 1 !important;
|
transition-duration: 0.01ms !important;
|
scroll-behavior: auto !important;
|
}
|
}
|