ant-design/components/transfer/style/index.less
afc163 0ca6a1c24a css modularize (#1448)
* css modularize

* Add alert style

* Move more component style

* Move iconfont to common style

* Move layout style

* Move more component style

* Move all components

* Fix lots of mixin deps

* remove css-prefix from less

* fix a button icon style bug

* restructure

* fix index

* add dist

* fix jest

* fix some components style

* clean webpack config

* check more components style

* update tabs

* update scripts

* update scripts

* fix form style

* fix more style

* Fix select width

* Fix form and tabs style
2016-04-27 20:44:36 +08:00

144 lines
2.7 KiB
Plaintext

@import "../../style/themes/default";
@import "../../style/mixins/index";
@import "../../checkbox/style/mixin";
@transfer-prefix-cls: ant-transfer;
.antCheckboxFn(@checkbox-prefix-cls: ant-transfer-checkbox);
.@{transfer-prefix-cls} {
position: relative;
&-list {
font-size: 12px;
border: 1px solid @border-color-base;
display: inline-block;
border-radius: @border-radius-base;
vertical-align: middle;
position: relative;
width: 160px;
height: 200px;
padding-top: 33px;
&-with-footer {
padding-bottom: 33px;
}
&-search {
&-action {
color: #ccc;
position: absolute;
top: 2px;
right: 2px;
width: 32px;
height: 32px;
line-height: 32px;
text-align: center;
font-size: 14px;
}
}
&-header {
padding: 7px 16px;
border-radius: @border-radius-base @border-radius-base 0 0;
background: #fff;
color: #666;
border-bottom: 1px solid @border-color-split;
overflow: hidden;
position: absolute;
top: 0;
left: 0;
width: 100%;
&-title {
float: right;
}
}
&-body {
font-size: 12px;
line-height: 1.5;
position: relative;
height: 100%;
&-search-wrapper {
position: absolute;
top: 0;
left: 0;
height: 28px;
padding: 4px;
width: 100%;
}
&-not-found {
padding-top: 24px;
color: #ccc;
text-align: center;
height: 100%;
}
ul {
height: 100%;
overflow: auto;
li {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
padding: 7px 16px;
transition: all 0.3s ease;
&:hover {
cursor: pointer;
background-color: tint(@primary-color, 90%);
}
}
}
}
ul li&-highlight-enter {
animation: transferHighlightIn 1s ease;
transition: none;
}
&-body-with-search {
padding-top: 34px;
}
&-footer {
border-top: 1px solid @border-color-split;
border-radius: 0 0 @border-radius-base @border-radius-base;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
}
}
&-operation {
display: inline-block;
overflow: hidden;
margin: 0 8px;
vertical-align: middle;
.ant-btn {
float: left;
clear: both;
&:first-child {
margin-bottom: 4px;
}
.anticon {
.iconfont-size-under-12px(8px);
}
}
}
}
@keyframes transferHighlightIn {
0% {
background: tint(@primary-color, 80%);
}
100% {
background: transparent;
}
}