reset.less
1.81 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
@import '~@qx/ui/src/style/variable.less';
* {
scrollbar-width: thin;
font-variant-numeric: tabular-nums; // tabular-nums 可以达到数字等宽的效果
box-sizing: border-box;
outline: none;
// 覆盖 antd+CSS3 样式
// 当用户使用鼠标点击焦点元素或使用键盘的 Tab 键(或快捷键)触发焦点元素焦点环的样式
&.focus-visible {
outline: none;
}
}
// 全局滚动条样式重设
::-webkit-scrollbar {
width: 9px;
height: 12px;
padding: 2px 0;
background-color: #fafafa;
}
::-webkit-scrollbar-button,
::-webkit-scrollbar-corner {
display: none;
width: 0;
height: 0;
}
::-webkit-scrollbar-thumb {
width: 6px;
height: 8px;
background: rgba(0, 0, 0, 0.1);
background-clip: padding-box;
border: 2px solid transparent;
border-radius: 6px;
}
.qx-common__modal {
.ant-modal-content {
padding: 0;
}
.ant-modal-header .ant-modal-title {
padding: 24px 24px 0 24px;
color: @N9;
font-weight: 600;
font-size: 16px;
line-height: 24px;
}
.ant-modal-close {
top: 24px;
right: 24px;
width: 20px;
height: 24px;
&:hover {
background-color: #fff;
}
> .ant-modal-close-x {
display: flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
padding: 0;
.qx-common__modal--close {
display: flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
color: @N7;
font-size: 16px;
&:hover {
color: @N9;
}
}
}
}
.ant-modal-footer {
padding: 8px 24px;
}
.ant-modal-body {
max-height: 464px;
padding: 16px 18px 24px 24px;
overflow-y: hidden;
scrollbar-gutter: stable;
&:hover {
overflow-y: auto;
}
}
}