UNPKG

1.28 kBtext/lessView Raw
1@import '../../style/themes/index';
2@import '../../style/mixins/index';
3@import './index';
4
5.@{tab-prefix-cls}-dropdown {
6 .reset-component();
7
8 position: absolute;
9 top: -9999px;
10 left: -9999px;
11 z-index: @zindex-dropdown;
12 display: block;
13
14 &-hidden {
15 display: none;
16 }
17
18 &-menu {
19 max-height: 200px;
20 margin: 0;
21 padding: @dropdown-edge-child-vertical-padding 0;
22 overflow-x: hidden;
23 overflow-y: auto;
24 text-align: left;
25 list-style-type: none;
26 background-color: @dropdown-menu-bg;
27 background-clip: padding-box;
28 border-radius: @border-radius-base;
29 outline: none;
30 box-shadow: @box-shadow-base;
31
32 &-item {
33 min-width: 120px;
34 margin: 0;
35 padding: @dropdown-vertical-padding @control-padding-horizontal;
36 overflow: hidden;
37 color: @text-color;
38 font-weight: normal;
39 font-size: @dropdown-font-size;
40 line-height: @dropdown-line-height;
41 white-space: nowrap;
42 text-overflow: ellipsis;
43 cursor: pointer;
44 transition: all 0.3s;
45
46 &:hover {
47 background: @item-hover-bg;
48 }
49
50 &-disabled {
51 &,
52 &:hover {
53 color: @disabled-color;
54 background: transparent;
55 cursor: not-allowed;
56 }
57 }
58 }
59 }
60}