gaoluyang
5 天以前 c7566bba45e6f90594d36ec4b80ac4ff89f577ee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
// 设计 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;
  }
}