UNPKG

12.3 kBCSSView Raw
1/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
2/* stylelint-disable no-duplicate-selectors */
3/* stylelint-disable */
4/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
5.ant-dropdown-menu-item.ant-dropdown-menu-item-danger {
6 color: #ff4d4f;
7}
8.ant-dropdown-menu-item.ant-dropdown-menu-item-danger:hover {
9 color: #fff;
10 background-color: #ff4d4f;
11}
12.ant-dropdown {
13 box-sizing: border-box;
14 margin: 0;
15 padding: 0;
16 color: rgba(0, 0, 0, 0.85);
17 font-size: 14px;
18 font-variant: tabular-nums;
19 line-height: 1.5715;
20 list-style: none;
21 font-feature-settings: 'tnum';
22 position: absolute;
23 top: -9999px;
24 left: -9999px;
25 z-index: 1050;
26 display: block;
27}
28.ant-dropdown::before {
29 position: absolute;
30 top: -4px;
31 right: 0;
32 bottom: -4px;
33 left: -7px;
34 z-index: -9999;
35 opacity: 0.0001;
36 content: ' ';
37}
38.ant-dropdown-wrap {
39 position: relative;
40}
41.ant-dropdown-wrap .ant-btn > .anticon-down {
42 font-size: 10px;
43}
44.ant-dropdown-wrap .anticon-down::before {
45 transition: transform 0.2s;
46}
47.ant-dropdown-wrap-open .anticon-down::before {
48 transform: rotate(180deg);
49}
50.ant-dropdown-hidden,
51.ant-dropdown-menu-hidden,
52.ant-dropdown-menu-submenu-hidden {
53 display: none;
54}
55.ant-dropdown-show-arrow.ant-dropdown-placement-topCenter,
56.ant-dropdown-show-arrow.ant-dropdown-placement-topLeft,
57.ant-dropdown-show-arrow.ant-dropdown-placement-topRight {
58 padding-bottom: 10px;
59}
60.ant-dropdown-show-arrow.ant-dropdown-placement-bottomCenter,
61.ant-dropdown-show-arrow.ant-dropdown-placement-bottomLeft,
62.ant-dropdown-show-arrow.ant-dropdown-placement-bottomRight {
63 padding-top: 10px;
64}
65.ant-dropdown-arrow {
66 position: absolute;
67 z-index: 1;
68 display: block;
69 width: 8.48528137px;
70 height: 8.48528137px;
71 background: transparent;
72 border-style: solid;
73 border-width: 4.24264069px;
74 transform: rotate(45deg);
75}
76.ant-dropdown-placement-topCenter > .ant-dropdown-arrow,
77.ant-dropdown-placement-topLeft > .ant-dropdown-arrow,
78.ant-dropdown-placement-topRight > .ant-dropdown-arrow {
79 bottom: 6.2px;
80 border-top-color: transparent;
81 border-right-color: #fff;
82 border-bottom-color: #fff;
83 border-left-color: transparent;
84 box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
85}
86.ant-dropdown-placement-topCenter > .ant-dropdown-arrow {
87 left: 50%;
88 transform: translateX(-50%) rotate(45deg);
89}
90.ant-dropdown-placement-topLeft > .ant-dropdown-arrow {
91 left: 16px;
92}
93.ant-dropdown-placement-topRight > .ant-dropdown-arrow {
94 right: 16px;
95}
96.ant-dropdown-placement-bottomCenter > .ant-dropdown-arrow,
97.ant-dropdown-placement-bottomLeft > .ant-dropdown-arrow,
98.ant-dropdown-placement-bottomRight > .ant-dropdown-arrow {
99 top: 6px;
100 border-top-color: #fff;
101 border-right-color: transparent;
102 border-bottom-color: transparent;
103 border-left-color: #fff;
104 box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);
105}
106.ant-dropdown-placement-bottomCenter > .ant-dropdown-arrow {
107 left: 50%;
108 transform: translateX(-50%) rotate(45deg);
109}
110.ant-dropdown-placement-bottomLeft > .ant-dropdown-arrow {
111 left: 16px;
112}
113.ant-dropdown-placement-bottomRight > .ant-dropdown-arrow {
114 right: 16px;
115}
116.ant-dropdown-menu {
117 position: relative;
118 margin: 0;
119 padding: 4px 0;
120 text-align: left;
121 list-style-type: none;
122 background-color: #fff;
123 background-clip: padding-box;
124 border-radius: 2px;
125 outline: none;
126 box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
127}
128.ant-dropdown-menu-item-group-title {
129 padding: 5px 12px;
130 color: rgba(0, 0, 0, 0.45);
131 transition: all 0.3s;
132}
133.ant-dropdown-menu-submenu-popup {
134 position: absolute;
135 z-index: 1050;
136 background: transparent;
137 box-shadow: none;
138 transform-origin: 0 0;
139}
140.ant-dropdown-menu-submenu-popup ul,
141.ant-dropdown-menu-submenu-popup li {
142 list-style: none;
143}
144.ant-dropdown-menu-submenu-popup ul {
145 margin-right: 0.3em;
146 margin-left: 0.3em;
147}
148.ant-dropdown-menu-item {
149 position: relative;
150 display: flex;
151 align-items: center;
152}
153.ant-dropdown-menu-item-icon {
154 min-width: 12px;
155 margin-right: 8px;
156 font-size: 12px;
157}
158.ant-dropdown-menu-title-content {
159 flex: auto;
160}
161.ant-dropdown-menu-title-content > a {
162 color: inherit;
163 transition: all 0.3s;
164}
165.ant-dropdown-menu-title-content > a:hover {
166 color: inherit;
167}
168.ant-dropdown-menu-title-content > a::after {
169 position: absolute;
170 top: 0;
171 right: 0;
172 bottom: 0;
173 left: 0;
174 content: '';
175}
176.ant-dropdown-menu-item,
177.ant-dropdown-menu-submenu-title {
178 clear: both;
179 margin: 0;
180 padding: 5px 12px;
181 color: rgba(0, 0, 0, 0.85);
182 font-weight: normal;
183 font-size: 14px;
184 line-height: 22px;
185 white-space: nowrap;
186 cursor: pointer;
187 transition: all 0.3s;
188}
189.ant-dropdown-menu-item-selected,
190.ant-dropdown-menu-submenu-title-selected {
191 color: #1890ff;
192 background-color: #e6f7ff;
193}
194.ant-dropdown-menu-item:hover,
195.ant-dropdown-menu-submenu-title:hover {
196 background-color: #f5f5f5;
197}
198.ant-dropdown-menu-item-disabled,
199.ant-dropdown-menu-submenu-title-disabled {
200 color: rgba(0, 0, 0, 0.25);
201 cursor: not-allowed;
202}
203.ant-dropdown-menu-item-disabled:hover,
204.ant-dropdown-menu-submenu-title-disabled:hover {
205 color: rgba(0, 0, 0, 0.25);
206 background-color: #fff;
207 cursor: not-allowed;
208}
209.ant-dropdown-menu-item-disabled a,
210.ant-dropdown-menu-submenu-title-disabled a {
211 pointer-events: none;
212}
213.ant-dropdown-menu-item-divider,
214.ant-dropdown-menu-submenu-title-divider {
215 height: 1px;
216 margin: 4px 0;
217 overflow: hidden;
218 line-height: 0;
219 background-color: #f0f0f0;
220}
221.ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon,
222.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon {
223 position: absolute;
224 right: 8px;
225}
226.ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon,
227.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon {
228 margin-right: 0 !important;
229 color: rgba(0, 0, 0, 0.45);
230 font-size: 10px;
231 font-style: normal;
232}
233.ant-dropdown-menu-item-group-list {
234 margin: 0 8px;
235 padding: 0;
236 list-style: none;
237}
238.ant-dropdown-menu-submenu-title {
239 padding-right: 24px;
240}
241.ant-dropdown-menu-submenu-vertical {
242 position: relative;
243}
244.ant-dropdown-menu-submenu-vertical > .ant-dropdown-menu {
245 position: absolute;
246 top: 0;
247 left: 100%;
248 min-width: 100%;
249 margin-left: 4px;
250 transform-origin: 0 0;
251}
252.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title,
253.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon {
254 color: rgba(0, 0, 0, 0.25);
255 background-color: #fff;
256 cursor: not-allowed;
257}
258.ant-dropdown-menu-submenu-selected .ant-dropdown-menu-submenu-title {
259 color: #1890ff;
260}
261.ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomLeft,
262.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomLeft,
263.ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomCenter,
264.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomCenter,
265.ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomRight,
266.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomRight {
267 -webkit-animation-name: antSlideUpIn;
268 animation-name: antSlideUpIn;
269}
270.ant-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-dropdown-placement-topLeft,
271.ant-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-dropdown-placement-topLeft,
272.ant-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-dropdown-placement-topCenter,
273.ant-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-dropdown-placement-topCenter,
274.ant-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-dropdown-placement-topRight,
275.ant-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-dropdown-placement-topRight {
276 -webkit-animation-name: antSlideDownIn;
277 animation-name: antSlideDownIn;
278}
279.ant-dropdown.ant-slide-down-leave.ant-slide-down-leave-active.ant-dropdown-placement-bottomLeft,
280.ant-dropdown.ant-slide-down-leave.ant-slide-down-leave-active.ant-dropdown-placement-bottomCenter,
281.ant-dropdown.ant-slide-down-leave.ant-slide-down-leave-active.ant-dropdown-placement-bottomRight {
282 -webkit-animation-name: antSlideUpOut;
283 animation-name: antSlideUpOut;
284}
285.ant-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-dropdown-placement-topLeft,
286.ant-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-dropdown-placement-topCenter,
287.ant-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-dropdown-placement-topRight {
288 -webkit-animation-name: antSlideDownOut;
289 animation-name: antSlideDownOut;
290}
291.ant-dropdown-trigger > .anticon.anticon-down,
292.ant-dropdown-link > .anticon.anticon-down,
293.ant-dropdown-button > .anticon.anticon-down {
294 font-size: 10px;
295 vertical-align: baseline;
296}
297.ant-dropdown-button {
298 white-space: nowrap;
299}
300.ant-dropdown-button.ant-btn-group > .ant-btn:last-child:not(:first-child):not(.ant-btn-icon-only) {
301 padding-right: 8px;
302 padding-left: 8px;
303}
304.ant-dropdown-menu-dark,
305.ant-dropdown-menu-dark .ant-dropdown-menu {
306 background: #001529;
307}
308.ant-dropdown-menu-dark .ant-dropdown-menu-item,
309.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title,
310.ant-dropdown-menu-dark .ant-dropdown-menu-item > a,
311.ant-dropdown-menu-dark .ant-dropdown-menu-item > .anticon + span > a {
312 color: rgba(255, 255, 255, 0.65);
313}
314.ant-dropdown-menu-dark .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow::after,
315.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow::after,
316.ant-dropdown-menu-dark .ant-dropdown-menu-item > a .ant-dropdown-menu-submenu-arrow::after,
317.ant-dropdown-menu-dark .ant-dropdown-menu-item > .anticon + span > a .ant-dropdown-menu-submenu-arrow::after {
318 color: rgba(255, 255, 255, 0.65);
319}
320.ant-dropdown-menu-dark .ant-dropdown-menu-item:hover,
321.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title:hover,
322.ant-dropdown-menu-dark .ant-dropdown-menu-item > a:hover,
323.ant-dropdown-menu-dark .ant-dropdown-menu-item > .anticon + span > a:hover {
324 color: #fff;
325 background: transparent;
326}
327.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected,
328.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected:hover,
329.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected > a {
330 color: #fff;
331 background: #1890ff;
332}
333.ant-dropdown-rtl {
334 direction: rtl;
335}
336.ant-dropdown-rtl.ant-dropdown::before {
337 right: -7px;
338 left: 0;
339}
340.ant-dropdown-menu.ant-dropdown-menu-rtl {
341 direction: rtl;
342 text-align: right;
343}
344.ant-dropdown-rtl .ant-dropdown-menu-item-group-title {
345 direction: rtl;
346 text-align: right;
347}
348.ant-dropdown-menu-submenu-popup.ant-dropdown-menu-submenu-rtl {
349 transform-origin: 100% 0;
350}
351.ant-dropdown-rtl .ant-dropdown-menu-submenu-popup ul,
352.ant-dropdown-rtl .ant-dropdown-menu-submenu-popup li {
353 text-align: right;
354}
355.ant-dropdown-rtl .ant-dropdown-menu-item,
356.ant-dropdown-rtl .ant-dropdown-menu-submenu-title {
357 text-align: right;
358}
359.ant-dropdown-rtl .ant-dropdown-menu-item > .anticon:first-child,
360.ant-dropdown-rtl .ant-dropdown-menu-submenu-title > .anticon:first-child,
361.ant-dropdown-rtl .ant-dropdown-menu-item > span > .anticon:first-child,
362.ant-dropdown-rtl .ant-dropdown-menu-submenu-title > span > .anticon:first-child {
363 margin-right: 0;
364 margin-left: 8px;
365}
366.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow,
367.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow {
368 right: auto;
369 left: 8px;
370}
371.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow-icon,
372.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon {
373 margin-left: 0 !important;
374 transform: scaleX(-1);
375}
376.ant-dropdown-rtl .ant-dropdown-menu-submenu-title {
377 padding-right: 12px;
378 padding-left: 24px;
379}
380.ant-dropdown-rtl .ant-dropdown-menu-submenu-vertical > .ant-dropdown-menu {
381 right: 100%;
382 left: 0;
383 margin-right: 4px;
384 margin-left: 0;
385}