2018-06-20 15:17:54 +08:00
|
|
|
@cell-prefix-cls: ~"@{css-prefix}cell";
|
|
|
|
|
2018-06-20 16:56:54 +08:00
|
|
|
|
2018-06-20 15:17:54 +08:00
|
|
|
.@{cell-prefix-cls} {
|
2018-06-20 16:56:54 +08:00
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&-link, &-link:hover, &-link:active{
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-icon{
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 4px;
|
|
|
|
font-size: @font-size-base;
|
|
|
|
vertical-align: middle;
|
|
|
|
&:empty{
|
|
|
|
display: none
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-main{
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
&-title{
|
|
|
|
line-height: 24px;
|
|
|
|
font-size: @font-size-base;
|
|
|
|
}
|
|
|
|
&-label{
|
|
|
|
line-height: 1.2;
|
|
|
|
font-size: @font-size-small;
|
|
|
|
color: @subsidiary-color;
|
|
|
|
}
|
|
|
|
&-selected &-label{
|
|
|
|
color: inherit;
|
|
|
|
}
|
2018-07-03 09:47:05 +08:00
|
|
|
|
|
|
|
&-selected, &&-selected:hover{
|
|
|
|
background: ~`colorPalette("@{primary-color}", 1)`;
|
|
|
|
}
|
|
|
|
|
2018-06-20 16:56:54 +08:00
|
|
|
&-footer{
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
top: 50%;
|
|
|
|
right: 16px;
|
|
|
|
color: @text-color;
|
|
|
|
}
|
|
|
|
&-with-link &-footer{
|
|
|
|
right: 32px;
|
|
|
|
}
|
|
|
|
&-selected &-footer{
|
|
|
|
color: inherit;
|
|
|
|
}
|
2018-06-20 15:17:54 +08:00
|
|
|
|
2018-06-20 16:56:54 +08:00
|
|
|
&-arrow{
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
top: 50%;
|
|
|
|
right: 16px;
|
|
|
|
font-size: @font-size-base;
|
|
|
|
}
|
2018-06-20 17:04:08 +08:00
|
|
|
|
|
|
|
&:focus{
|
|
|
|
background: @background-color-select-hover;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
&-selected:focus{
|
|
|
|
background: shade(@selected-color, 10%);
|
|
|
|
}
|
2018-06-20 16:56:54 +08:00
|
|
|
}
|
|
|
|
.select-item(@cell-prefix-cls, @cell-prefix-cls);
|