gaoluyang
5 天以前 c7566bba45e6f90594d36ec4b80ac4ff89f577ee
src/assets/styles/index.scss
@@ -1,9 +1,16 @@
// 设计 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 './btn.scss';
@use './ruoyi.scss';
// 业务复用类的兜底 skin 放最后
@use './theme/lims.scss';
body {
  height: 100%;
@@ -15,7 +22,7 @@
}
label {
  font-weight: 700;
  font-weight: 600;
}
html {
@@ -42,8 +49,17 @@
}
a:focus,
a:active {
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,
@@ -52,10 +68,6 @@
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
div:focus {
  outline: none;
}
.fr {
@@ -98,30 +110,35 @@
}
aside {
  background: #eef1f6;
  background: var(--lims-surface-2);
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  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: #2c3e50;
  color: var(--lims-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  a {
    color: #337ab7;
    color: var(--el-color-primary);
    cursor: pointer;
    &:hover {
      color: rgb(32, 160, 255);
      color: var(--el-color-primary-light-3);
    }
  }
}
//main-container全局样式
.app-container {
  padding: 20px;
}
// 能力范围页面的容器内边距
.capacity-scope {
  padding: 20px;
}
@@ -141,8 +158,7 @@
  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%);
  background: linear-gradient(90deg, var(--el-color-primary) 0%, var(--el-color-primary-dark-2) 100%);
  .subtitle {
    font-size: 20px;
@@ -160,11 +176,11 @@
.link-type,
.link-type:focus {
  color: #337ab7;
  color: var(--el-color-primary);
  cursor: pointer;
  &:hover {
    color: rgb(32, 160, 255);
    color: var(--el-color-primary-light-3);
  }
}
@@ -177,3 +193,16 @@
    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;
  }
}