mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-03 04:27:41 +08:00
2ee3d43534
* style: affix & util * feat(alert): add customIcon slot * feat(anchor): ts type * style: auto-complete * feat: avatar add crossOrigin & maxPopoverTrigger * style(backTop): v-show instead v-if * style: badge * style: breadcrumb * feat: button add global size * feat: update i18n * feat: picker add disabledTime * test: update snap * doc: update img url * style: fix Card tabs of left position * doc: update cascader doc * feat: collapse * style: comment * style: configprovider * feat: date-picker add soem icon slot * style: update descriptions style * feat: add divider orientationMargin * doc: update drawer * feat: dropdown add destroyPopupOnHide & loading * style: update empty * feat: form add labelWrap * style: update grid * test: update grid snap * fix: image ts error * fix: mentions cannot select, close #5233 * doc: update pagination change info, close #5293 * fix: table dynamic expand error, close #5295 * style: remove not use * release 3.0.0-beta.11 * doc: update typo * feat: input add showCount * feat: inputNumber add prefix slot * style: update layout * style: update list * feat: add locale i18 * style: update locale ts * style: update mentions * feat: menu divider add dashed * perf: menu * perf: menu animate * feat: modal method add wrapClassName * style: update pageheader * feat: update pagination ts * feat: confirm add showCancel & promise * doc: update popover * style: update progress * style: radio * style: update rate、result、row * feat: select add fieldNames * feat: add skeleton button & input * feat: spin tip support slot * style: slider & space * stype: update steps ts type * style: update switch * feat: table add tree filter * test: update input sanp * feat: table add filterMode... * fix: tree autoExpandParent bug * test: update input snap * doc: tabs add destroyInactiveTabPane * style: update tag * style: update timeline & time-picker * fix: Tooltip arrowPointAtCenter 1px shift bug * feat: typography add enterEnterIcon triggerType * doc: update tree-select * fix: deps and TypeScript types * style: udpate transfer * style: update style * doc: add colorScheme * chore: add css var builg * doc: sort api * style: lint code * doc: add css var * test: update snap * chore: add pre script * chore: update lint * perf: collapse animate * perf: collapse tree * perf: typography shaking when edit * doc: update auto-complete demo * fix: table tree not have animate * feat: deprecated dropdown center placement * feat: deprecated dropdown center placement * test: update snap
221 lines
4.7 KiB
Plaintext
221 lines
4.7 KiB
Plaintext
@import '../../style/themes/index';
|
|
@import '../../style/mixins/index';
|
|
@import '../../checkbox/style/mixin';
|
|
@import './customize';
|
|
|
|
@transfer-prefix-cls: ~'@{ant-prefix}-transfer';
|
|
|
|
@transfer-header-vertical-padding: ceil(
|
|
((@transfer-header-height - 1px - @font-size-base * @line-height-base) / 2)
|
|
);
|
|
|
|
.@{transfer-prefix-cls} {
|
|
.reset-component();
|
|
|
|
position: relative;
|
|
display: flex;
|
|
align-items: stretch;
|
|
|
|
&-disabled {
|
|
.@{transfer-prefix-cls}-list {
|
|
background: @transfer-disabled-bg;
|
|
}
|
|
}
|
|
|
|
&-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 180px;
|
|
height: @transfer-list-height;
|
|
border: @border-width-base @border-style-base @border-color-base;
|
|
border-radius: @border-radius-base;
|
|
|
|
&-with-pagination {
|
|
width: 250px;
|
|
height: auto;
|
|
}
|
|
|
|
&-search {
|
|
.anticon-search {
|
|
color: @disabled-color;
|
|
}
|
|
}
|
|
|
|
&-header {
|
|
display: flex;
|
|
flex: none;
|
|
align-items: center;
|
|
height: @transfer-header-height;
|
|
// border-top is on the transfer dom. We should minus 1px for this
|
|
padding: (@transfer-header-vertical-padding - 1px) @control-padding-horizontal
|
|
@transfer-header-vertical-padding;
|
|
color: @text-color;
|
|
background: @component-background;
|
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
border-radius: @border-radius-base @border-radius-base 0 0;
|
|
|
|
> *:not(:last-child) {
|
|
margin-right: 4px;
|
|
}
|
|
|
|
> * {
|
|
flex: none;
|
|
}
|
|
|
|
&-title {
|
|
flex: auto;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-align: right;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
&-dropdown {
|
|
font-size: 10px;
|
|
transform: translateY(10%);
|
|
cursor: pointer;
|
|
|
|
&[disabled] {
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-body {
|
|
display: flex;
|
|
flex: auto;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
font-size: @font-size-base;
|
|
|
|
&-search-wrapper {
|
|
position: relative;
|
|
flex: none;
|
|
padding: @padding-sm;
|
|
}
|
|
}
|
|
|
|
&-content {
|
|
flex: auto;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: auto;
|
|
list-style: none;
|
|
|
|
&-item {
|
|
display: flex;
|
|
align-items: center;
|
|
min-height: @transfer-item-height;
|
|
padding: @transfer-item-padding-vertical @control-padding-horizontal;
|
|
line-height: @transfer-item-height - 2 * @transfer-item-padding-vertical;
|
|
transition: all 0.3s;
|
|
|
|
> *:not(:last-child) {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
> * {
|
|
flex: none;
|
|
}
|
|
|
|
&-text {
|
|
flex: auto;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
&-remove {
|
|
.operation-unit();
|
|
position: relative;
|
|
color: @border-color-base;
|
|
|
|
&::after {
|
|
position: absolute;
|
|
top: -@transfer-item-padding-vertical;
|
|
right: -50%;
|
|
bottom: -@transfer-item-padding-vertical;
|
|
left: -50%;
|
|
content: '';
|
|
}
|
|
|
|
&:hover {
|
|
color: @link-hover-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-item:not(&-item-disabled) {
|
|
&:hover {
|
|
background-color: @transfer-item-hover-bg;
|
|
cursor: pointer;
|
|
}
|
|
|
|
&.@{transfer-prefix-cls}-list-content-item-checked:hover {
|
|
background-color: @transfer-item-selected-hover-bg;
|
|
}
|
|
}
|
|
|
|
// Do not change hover style when `oneWay` mode
|
|
&-show-remove &-item:not(&-item-disabled):hover {
|
|
background: transparent;
|
|
cursor: default;
|
|
}
|
|
|
|
&-item-checked {
|
|
background-color: @item-active-bg;
|
|
}
|
|
|
|
&-item-disabled {
|
|
color: @btn-disable-color;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
|
|
&-pagination {
|
|
padding: @padding-xs 0;
|
|
text-align: right;
|
|
border-top: @border-width-base @border-style-base @border-color-split;
|
|
}
|
|
|
|
&-body-not-found {
|
|
flex: none;
|
|
width: 100%;
|
|
margin: auto 0;
|
|
color: @disabled-color;
|
|
text-align: center;
|
|
}
|
|
|
|
&-footer {
|
|
border-top: @border-width-base @border-style-base @border-color-split;
|
|
}
|
|
}
|
|
|
|
&-operation {
|
|
display: flex;
|
|
flex: none;
|
|
flex-direction: column;
|
|
align-self: center;
|
|
margin: 0 8px;
|
|
vertical-align: middle;
|
|
|
|
.@{ant-prefix}-btn {
|
|
display: block;
|
|
|
|
&:first-child {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.@{iconfont-css-prefix} {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.@{ant-prefix}-empty-image {
|
|
max-height: (@transfer-header-height / 2) - 22;
|
|
}
|
|
}
|
|
|
|
@import './rtl';
|