index.scss
4.45 KB
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
@import './common.css';
@import './var.css';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
::-webkit-scrollbar {
/*滚动条整体样式*/
/*高宽分别对应横竖滚动条的尺寸*/
width: 5px;
height: 5px;
}
::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 5px;
/*深色模式*/
-webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
background: #eee;
/*浅色模式*/
/*-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
background: rgb(245, 245, 245);
border: 1px solid #333;
border-bottom-width: 2px;*/
}
// ::-webkit-scrollbar-track {
// /*滚动条里面轨道*/
// -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
// border-radius: 10px;
// background: #eee;
// }
#app {
height: 100%;
}
a:focus,
a:active {
outline: none;
}
a,
a:focus,
a:hover {
cursor: pointer;
color: inherit;
text-decoration: none;
}
a:hover {
// 提高hover权重,其他地方的ahover如需改变,也使用important
color: var(--color) !important;
}
div:focus {
outline: none;
}
.block {
display: block;
}
.pointer {
cursor: pointer;
}
.clearfix {
&:after {
visibility: hidden;
display: block;
font-size: 0;
content: ' ';
clear: both;
height: 0;
}
}
/* 拖拽列样式 */
.sortable-ghost {
opacity: 0.8;
color: #fff !important;
background: #42b983 !important;
}
// 标签选择框
.tag-input {
width: 240px;
display: flex;
border-radius: 4px;
border: 1px solid #dcdfe6;
align-items: center;
padding: 0 15px;
overflow: hidden;
height: 32px;
background-color: #fff;
.tag-place {
color: #bbb;
font-size: 14px;
}
}
// 页面搜索栏与列表中间的 通用操作按钮框样式
.mid-action {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
align-items: center;
.desc {
font-weight: 400;
margin: 0 5px;
font-size: 12px;
color: #86909c;
}
// .total {
// background-color: rgba(65, 133, 244, 0.1);
// border: 1px solid rgba(65, 133, 244, 0.2);
// border-radius: 3px;
// font-size: 14px;
// min-height: 32px;
// line-height: 32px;
// padding: 0 12px;
// color: #606266;
// }
// .num {
// color: #00f;
// }
}
// 全局样式公用业务样式
.g- {
// 一级 页面标题
&title {
display: flex;
align-items: center;
height: 60px;
font-size: 18px;
font-weight: 500;
color: var(--font-black);
padding: 0 20px;
background: #fff;
border-radius: var(--border-radius-big) var(--border-radius-big) 0 0;
line-height: 1;
.desc {
font-weight: 400;
margin: 0 5px;
font-size: 12px;
color: #999;
}
// & + .g-card {
// border-radius: 0 0 var(--border-radius-big) var(--border-radius-big);
// margin-top: 0;
// }
}
// 二级标题
&title-sub {
@extend .g-title;
font-size: 16px;
&:not(:first-child) {
margin-top: var(--card-margin);
}
// & + .g-card {
// border-radius: 0 0 var(--border-radius-big) var(--border-radius-big);
// margin-top: 0;
// padding-top: 0;
// }
}
// 卡片样式
&card {
border-radius: var(--border-radius-big);
background: #fff;
overflow: auto;
padding: 20px;
&:not(:first-child) {
margin-top: var(--card-margin);
}
// 卡片标题
.g-card-title {
display: flex;
align-items: center;
margin-bottom: 20px;
font-size: 16px;
font-weight: 500;
color: var(--font-black);
line-height: 1;
.desc {
font-weight: 400;
margin: 0 5px;
font-size: 12px;
color: #86909c;
}
}
}
// 蓝色卡片组样式
&card-blue-wrap {
display: flex;
.card-blue {
color: #fff;
width: 200px;
height: 90px;
background: linear-gradient(90deg, #3c89f0 0%, #1364f4 100%);
border-radius: var(--border-radius-small);
padding: 20px;
margin-right: 10px;
font-weight: 400;
.value {
font-size: 18px;
margin-top: 10px;
}
}
}
&tip-color {
color: #999;
}
// 粘性底部
&footer-sticky {
position: sticky;
display: flex;
align-items: center;
justify-content: center;
height: 60px;
bottom: 0;
background: #fff;
box-shadow: 0px -4px 20px 0px rgba(28, 49, 111, 0.1);
border-radius: var(--border-radius-big);
margin-top: var(--card-margin);
}
}
.card-group-index + .g-card {
margin-top: 0;
}