2015-06-12 12:01:02 +08:00
|
|
|
@dropdownPrefixCls: ant-dropdown;
|
2015-06-09 15:21:44 +08:00
|
|
|
|
|
|
|
.@{dropdownPrefixCls} {
|
|
|
|
position: absolute;
|
|
|
|
left: -9999px;
|
|
|
|
top: -9999px;
|
|
|
|
z-index: 1070;
|
|
|
|
display: block;
|
|
|
|
font-size: 12px;
|
|
|
|
font-weight: normal;
|
|
|
|
line-height: 1.5;
|
2015-06-17 20:09:47 +08:00
|
|
|
padding-top: 4px;
|
2015-06-15 20:36:49 +08:00
|
|
|
min-width: 100%;
|
|
|
|
|
|
|
|
&-wrap {
|
|
|
|
position: relative;
|
2015-07-15 15:19:04 +08:00
|
|
|
.anticon-down:before {
|
2015-06-17 17:30:25 +08:00
|
|
|
transition: transform 0.2s ease;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-wrap-open {
|
2015-07-15 15:19:04 +08:00
|
|
|
.anticon-down:before {
|
|
|
|
.rotate(180deg);
|
2015-06-17 17:30:25 +08:00
|
|
|
}
|
2015-06-15 20:36:49 +08:00
|
|
|
}
|
2015-06-09 15:21:44 +08:00
|
|
|
|
2015-06-15 21:18:08 +08:00
|
|
|
&-hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-06-09 15:21:44 +08:00
|
|
|
&-menu {
|
|
|
|
outline: none;
|
|
|
|
position: relative;
|
|
|
|
list-style-type: none;
|
|
|
|
padding: 0;
|
2015-06-17 20:09:47 +08:00
|
|
|
margin: 0;
|
2015-06-09 15:21:44 +08:00
|
|
|
text-align: left;
|
|
|
|
background-color: #fff;
|
|
|
|
border-radius: 3px;
|
|
|
|
box-shadow: 0 1px 5px #ccc;
|
|
|
|
background-clip: padding-box;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
|
|
|
|
> li {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: -4px;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 4px;
|
|
|
|
background: rgb(255, 255, 255);
|
|
|
|
background: rgba(255, 255, 255, 0.01);
|
|
|
|
}
|
|
|
|
|
|
|
|
& > &-item {
|
2015-07-13 19:41:33 +08:00
|
|
|
padding: 7px 16px;
|
2015-06-09 15:21:44 +08:00
|
|
|
clear: both;
|
|
|
|
font-size: 12px;
|
|
|
|
font-weight: normal;
|
2015-06-17 17:36:29 +08:00
|
|
|
color: #666;
|
2015-06-09 15:21:44 +08:00
|
|
|
white-space: nowrap;
|
2015-07-13 18:42:08 +08:00
|
|
|
cursor: pointer;
|
2015-06-09 15:21:44 +08:00
|
|
|
|
2015-06-17 17:36:29 +08:00
|
|
|
a {
|
|
|
|
color: #666;
|
|
|
|
}
|
|
|
|
|
2015-06-09 15:21:44 +08:00
|
|
|
&:hover {
|
2015-07-08 15:18:28 +08:00
|
|
|
background-color: tint(@primary-color, 90%);
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-disabled {
|
|
|
|
color: #ccc;
|
|
|
|
cursor: not-allowed;
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: #ccc;
|
|
|
|
background-color: #fff;
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-bottom-left-radius: 3px;
|
|
|
|
border-bottom-right-radius: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
border-top-left-radius: 3px;
|
|
|
|
border-top-right-radius: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-divider {
|
|
|
|
height: 1px;
|
|
|
|
overflow: hidden;
|
|
|
|
background-color: #e5e5e5;
|
|
|
|
line-height: 0;
|
|
|
|
}
|
2015-07-13 18:42:08 +08:00
|
|
|
|
|
|
|
&-selected {
|
|
|
|
background-color: tint(@primary-color, 90%);
|
|
|
|
position: relative;
|
|
|
|
&:after {
|
|
|
|
content: '\e613';
|
|
|
|
font-family: 'anticon';
|
|
|
|
font-weight: bold;
|
|
|
|
position: absolute;
|
|
|
|
top: 6px;
|
|
|
|
right: 16px;
|
|
|
|
color: @primary-color;
|
2015-07-13 19:41:33 +08:00
|
|
|
background-color: tint(@primary-color, 90%);
|
2015-07-13 18:42:08 +08:00
|
|
|
}
|
|
|
|
}
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
}
|
2015-06-17 17:30:25 +08:00
|
|
|
}
|
2015-07-12 13:15:05 +08:00
|
|
|
|
|
|
|
.@{dropdownPrefixCls}-link {
|
|
|
|
.anticon-down {
|
|
|
|
font-size: ~"60% \9"; // ie8-9
|
|
|
|
.scale(0.6);
|
|
|
|
font-weight: bold;
|
2015-07-17 12:32:43 +08:00
|
|
|
vertical-align: top;
|
2015-07-12 13:15:05 +08:00
|
|
|
}
|
|
|
|
}
|