-
Notifications
You must be signed in to change notification settings - Fork 195
Expand file tree
/
Copy pathant.less
More file actions
226 lines (181 loc) · 4.54 KB
/
Copy pathant.less
File metadata and controls
226 lines (181 loc) · 4.54 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
// -------- import official less file -----------
@import "ng-zorro-antd/ng-zorro-antd.less";
// -------- override less var -----------
@primary-color: #1ab394;
@link-color: #1c84c6;
@border-radius-base: "1px";
.ant-menu-submenu.ant-menu-submenu-placement-bottom,
.ant-menu-submenu.ant-menu-submenu-popup.ant-menu-submenu-placement-bottomLeft {
// Slightly overlap the trigger so slow pointer movement cannot cross a hover gap.
top: -1px !important;
}
.ant-select {
font-size: 13px;
}
// NG-ZORRO's global select patch positions dropdowns at `top: 100%`. In a CDK
// overlay Safari resolves that percentage against the pane's content height,
// which leaves an equally tall blank area above the options.
.cdk-overlay-pane > .ant-select-dropdown {
position: static;
top: auto;
left: auto;
margin: 0;
}
.dark-dropdown {
background-color: var(--el-dropdown-bg-color);
.ant-dropdown-menu {
border-radius: 4px;
background-color: var(--el-dropdown-bg-color);
.ant-dropdown-menu-item {
color: var(--el-text-color-light);
font-size: 13px;
&:hover {
background-color: var(--el-dropdown-hover-bg-color);
}
& > a {
color: var(--el-text-color-light);
}
}
}
// Submenu title
.ant-menu-submenu.ant-menu-submenu-horizontal {
.ant-menu-submenu-title {
color: var(--el-text-color-light);
font-weight: 300;
border-bottom: none;
}
}
.ant-select-dropdown {
margin-top: 1px;
margin-bottom: 1px;
}
// Dropdown
&.ant-menu-vertical {
&.ant-menu {
background-color: var(--el-dropdown-bg-color);
border-radius: 0;
}
.ant-menu-item {
height: 30px;
padding: 0 15px;
font-weight: 300;
font-size: 13px;
line-height: 30px;
margin-bottom: 0;
margin-top: 0;
color: var(--el-text-color-light);
&.ant-menu-item-selected {
background-color: inherit;
}
& > span.ant-menu-title-content > a {
color: var(--el-text-color-light);
}
&:hover {
background-color: var(--el-dropdown-hover-bg-color);
}
&:first-child {
margin-top: 5px;
}
&:last-child {
margin-bottom: 5px;
}
&:not(:last-child) {
margin-bottom: 0;
}
a {
color: var(--el-text-color-light);
}
}
}
.ant-select-dropdown {
background-color: var(--el-dropdown-bg-color);
.ant-select-item {
font-size: 13px;
background-color: var(--el-dropdown-bg-color);
color: var(--el-text-color-light);
&:hover {
background-color: var(--el-dropdown-hover-bg-color);
}
&.ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
background-color: var(--el-dropdown-hover-bg-color);
}
}
}
.ant-select-dropdown-menu {
.ant-select-dropdown-menu-item {
background-color: var(--el-dropdown-bg-color);
color: var(--el-text-color-light);
line-height: 30px;
height: 30px;
margin: 0;
padding: 0 10px;
font-size: 13px;
a {
color: var(--el-text-color-light);
}
&:first-child {
border-top-left-radius: 0;
border-top-right-radius: 0;
&:hover {
border-radius: 0;
}
}
&:last-child {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
&:hover {
border-radius: 0;
}
}
&:hover {
background-color: var(--el-dropdown-hover-bg-color);
}
&.ant-select-dropdown-menu-item-selected {
&:hover {
opacity: 0.7;
}
font-weight: bold;
opacity: 0.8;
}
}
}
}
.ant-switch {
background-color: rgba(255, 255, 255, 0.25) !important;
&.ant-switch-checked {
background-color: #75d1be !important;
}
}
.ant-tabs-bar {
margin-bottom: 5px;
}
.ant-modal-header,
.ant-modal-content {
border-radius: 4px;
}
.ant-modal-footer {
padding: 16px;
border-top: unset;
.ant-btn {
border-radius: 4px;
}
}
.ant-splitter-horizontal > .ant-splitter-bar .ant-splitter-bar-dragger {
width: 1px;
}
.ant-splitter-bar-dragger:hover:not(.ant-splitter-bar-dragger-active)::before,
.ant-splitter-bar-dragger-active::before {
background: #5f5f5f;
}
.ant-notification-notice {
border-radius: 0.5rem;
&.custom-success-notification {
background-color: #50a352;
}
&.custom-error-notification {
background-color: #f56c6c;
}
.ant-notification-notice-content .ant-notification-notice-message {
color: #fff;
}
}