layui.css
7.61 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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
/*-------------------------------------
layui 样式自定义
-------------------------------------*/
/* 定义全局变量 */
:root {
--bgColor: #F4F5FA;
--btnBlue:#2A58AD;
--borderBlue:#2A58AD;
--btnHeight:32px;
}
.layui-form-checkbox[lay-skin=primary] span:hover{
background: #fff;
}
.layui-btn+.layui-btn {
margin-left: 20px;
}
.layui-input:focus,
.layui-textarea:focus {
border-color: var(--borderBlue) !important;
}
.layui-input{
border-radius: 4px;
}
.layui-input, .layui-select, .layui-textarea{
height: 32px;
}
.layui-form-pane .layui-input{
border-radius: 0 4px 4px 0;
}
.layui-form-pane .layui-input-inline{
margin-left: -4px;
}
.layui-form-pane .layui-form-item[pane]{
border-style: none;
}
.layui-form-label.required::before {
content: '*';
display: inline-block;
color: red;
margin-right: 5px;
}
.layui-form-label{
padding: 6px 15px;
}
.layui-laypage-btn,.layui-btn {
background-color: var(--btnBlue) !important;
border-radius: 4px;
color: #ffffff;
}
.layui-btn{
font-size: 14px;
height: 32px;
line-height: 32px;
}
/* .layui-btn, .add-circle, .btn-no-border{
background-color: #1989FA!important;
height: 16px !important;
width: 16px !important;
border-radius: 50% !important;
} */
.layui-laypage-em {
background-color: var(--btnBlue) !important;
}
.layui-btn-xs {
color: var(--btnBlue);
font-size: 14px;
height: 14px;
font-weight: 400;
line-height: 14px;
cursor: pointer;
}
.layui-btn-xs:hover {
color: var(--btnBlue);
}
.layui-form-select dl dd.layui-this {
background-color: var(--btnBlue);
}
.layui-form-checked[lay-skin=primary] i {
border-color: var(--btnBlue) !important;
background-color: var(--btnBlue);
color: #fff;
}
.layui-form-checkbox[lay-skin=primary]:hover i {
border-color: var(--borderBlue) !important;
color: #fff;
}
.layui-form-checked span,
.layui-form-checked:hover span {
background-color: var(--btnBlue);
}
.layui-form-checked i,
.layui-form-checked:hover i {
color: var(--btnBlue);
}
.layui-laydate .layui-laydate-content .layui-this {
background-color: var(--btnBlue) !important;
color: #fff !important;
}
.layui-tab-brief>.layui-tab-title .layui-this {
color: #333333;
font-weight: 500;
}
.layui-tab-title li{
color: #999999;
}
.layui-tab-card>.layui-tab-title .layui-this{
color: var(--btnBlue);
}
.layui-tab-card>.layui-tab-title{
background-color: #F4F6FC;
}
.layui-tab-brief>.layui-tab-more li.layui-this:after,
.layui-tab-brief>.layui-tab-title .layui-this:after {
border-bottom: 2px solid var(--borderBlue);
}
.layui-disabled, .layui-disabled:hover{
color: #999!important;
/* font-family: PingFangSC-Regular, PingFang SC; */
}
.layui-tab-content xm-select {
border-color: #E6E6E6!important;
}
.xm-label-block {
background-color: var(--btnBlue)!important;
}
.selected i.xm-icon-duox{
color: var(--btnBlue)!important;
}
.xm-option-icon, .xm-iconfont, .xm-icon-duox{
border-color:var(--borderBlue)!important;
}
/* 分页器的修改 */
.layui-laypage button{
border-radius: 4px;
font-family: PingFang-Regular;
}
.layui-laypage .layui-laypage-skip input:focus{
border-color: var(--borderBlue)!important;
}
.layui-laypage a, .layui-laypage span,.layui-laypage .layui-laypage-skip{
font-size: 14px;
/* font-family: PingFangSC-Regular, PingFang SC; */
font-weight: 400;
color: #666666;
}
.layui-laypage a:hover{
color: #2A58AD;
}
/* 开关颜色 */
.layui-form-onswitch{
border-color: var(--borderBlue);
background-color: var(--btnBlue);
}
.layui-table-header table .layui-table-cell {
height: 54px;
line-height: 54px;
}
/* 表格行内容高度自适应 */
/* .layui-table-header table .layui-table-cell {
height: auto;
line-height: 20px;
} */
.layui-table-cell{
/* min-height: 54px; */
height: auto;
/* line-height: 20px; */
/* white-space: pre-wrap;
box-sizing: content-box;
line-height: 20px;
padding: 16px 0; */
white-space: normal;
overflow: hidden;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
display: -webkit-box;
word-break: break-all;
padding:0 6px;
}
.layui-table tr{
display: flex;
}
.layui-table-view .layui-table td,.layui-table-view .layui-table th {
/* padding: 13px 0; */
padding: 0px 0;
border-top: none;
border-left: none;
min-height: 54px;
display: flex;
align-items: center;
}
/* .layui-table-cell, .layui-table-tool-panel li{
white-space: pre-wrap;
} */
.layui-table-cell li{
list-style-type: none;
}
.layui-table-cell li::before{
/* list-style: disc;
list-style-position: inside; */
content: "\2022";
color: var(--btnBlue);
margin-right: 5px;
}
.layui-table-cell li::marker{
/*谷歌浏览器有::marker伪元素,ie浏览器没有,故使用伪元素替代蓝色原点*/
/* color:#1989FA ; */
}
/* 表格去所有边框 */
.layui-table td, .layui-table th, .layui-table-col-set, .layui-table-fixed-r,
.layui-table-grid-down, .layui-table-header, .layui-table-page,
.layui-table-tips-main, .layui-table-tool, .layui-table-total,
.layui-table-view, .layui-table[lay-skin=line], .layui-table[lay-skin=row]{
border-style: none;
}
.layui-table-body tbody tr:not(:last-child){
border-bottom: 1px solid #DCDFE6;
}
.layui-table-box{
border-bottom: 1px solid #DCDFE6;
}
/* 设置表头颜色 */
.layui-table thead tr{
background-color: #F4F6FC;
color: #333333;
font-size: 14px;
}
.layui-table thead tr span{
font-size: 14px;
font-weight: 700;
}
.layui-layer-btn{
text-align: center!important;
border-radius: 4px!important;
}
.layui-layer-btn .layui-layer-btn0{
border-color: var(--borderBlue)!important;
background-color: var(--btnBlue)!important;
}
.layui-tab-content{
padding: 0;
}
.layui-form-item .layui-input-inline{
margin-right: 0;
}
/*滚动条样式 layui-table-body layui-table-main */
.layui-table-body::-webkit-scrollbar {
width: 5px;
height: 5px;
/* display: none; */
}
/*正常情况下滑块的样式*/
.layui-table-body::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.05);
border-radius: 5px;
box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1);
}
/*鼠标悬浮在该类指向的控件上时滑块的样式*/
.layui-table-body::-webkit-scrollbar-thumb {
/* background-color: rgba(0, 0, 0, 0.2); */
background: #e9e8ff;
border-radius: 10px;
box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1);
}
/*鼠标悬浮在滑块上时滑块的样式*/
/* &::-webkit-scrollbar-thumb:hover {
background-color: rgba(0, 0, 0, 0.4);
box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1);
} */
/*正常时候的主干部分*/
.layui-table-body::-webkit-scrollbar-track {
border-radius: 10px;
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
background-color: white;
}
/*鼠标悬浮在滚动条上的主干部分*/
/* .el-table__body-wrapper::-webkit-scrollbar-track:hover {
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
background-color: rgba(0, 0, 0, 0.01);
} */
.layui-tab-card {
border-width: 1px;
border-style: solid;
border-radius: 2px;
box-shadow:none;
/* 0 2px 5px 0 rgb(0 0 0 / 10%) */
}
/* layui时间选择器 */
.laydate-footer-btns span:hover{
color: var(--btnBlue)!important;
}
.laydate-set-ym span:hover{
color: var(--btnBlue)!important;
}
.layui-laydate-header i:hover, .layui-laydate-header span:hover{
color:var(--btnBlue)!important;
}
.layui-form-radioed>i ,.layui-form-radioed,.layui-form-radio:hover *{
color:var(--btnBlue)!important;
}