naive-ui/styles/Transfer.scss

141 lines
4.4 KiB
SCSS
Raw Normal View History

@import './mixins/mixins.scss';
@import './themes/vars.scss';
2019-11-08 16:07:20 +08:00
@include themes-mixin {
@include b(transfer) {
display: flex;
@include b(transfer-list) {
width: 182px;
height: 312px;
transition: background-color .3s $default-cubic-bezier, border-color .3s $default-cubic-bezier;
background-color: map-get($--transfer-panel-background-color, 'default');
border-radius: 6px;
border: 1px solid $--transfer-panel-border-color;
@include b(transfer-list-header) {
background-color: map-get($--transfer-panel-header-background-color, 'default');
transition: background-color .3s $default-cubic-bezier;
display: flex;
border-radius: 6px 6px 0 0;
align-items: center;
height: 40px;
@include e(checkbox) {
position: relative;
padding: 0 8px 0 14px;
@include b(checkbox) {
display: block;
}
}
2019-11-08 16:07:20 +08:00
@include e(header) {
flex: 1;
line-height: 1;
font-size: 16px;
font-weight: 700;
color: map-get($--transfer-panel-header-text-color, 'default');
transition: color .3s $default-cubic-bezier;
@include m(disabled) {
color: map-get($--transfer-panel-header-text-color, 'disabled');
}
}
@include e(label) {
transition: color .3s $default-cubic-bezier;
color: map-get($--transfer-panel-header-label-text-color, 'default');
font-size: 12px;
justify-self: flex-end;
margin-right: 14px;
}
}
2019-11-08 16:07:20 +08:00
@include b(transfer-list-body) {
overflow: hidden;
2019-09-04 11:26:24 +08:00
position: relative;
2019-11-08 16:07:20 +08:00
height: 272px;
@include b(scrollbar-content) {
2019-09-04 11:26:24 +08:00
width: 100%;
}
2019-11-08 16:07:20 +08:00
@include b(transfer-list-body-content) {
padding: 0;
margin: 0;
2019-09-04 11:26:24 +08:00
position: relative;
2019-11-08 16:07:20 +08:00
@include b(transfer-list-light-bar) {
@include fade-in-transition(transfer-list-light-bar);
height: 34px;
transition: top .15s $default-cubic-bezier;
background-color: map-get($--tranfer-item-lightbar-background-color, 'default');
width: 100%;
position: absolute;
2019-09-04 11:26:24 +08:00
}
2019-11-08 16:07:20 +08:00
@include b(transfer-list-item) {
@include slide-right-transition(transfer-list-item-source);
@include slide-left-transition(transfer-list-item-target);
transition: color .3s $default-cubic-bezier;
position: relative;
2019-11-08 16:07:20 +08:00
cursor: pointer;
max-height: 34px;
display: flex;
align-items: center;
font-size: 14px;
height: 34px;
color: map-get($--transfer-item-text-color, 'default');
@include e(label) {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
padding-right: 4px;
}
@include e(checkbox) {
position: relative;
padding: 0 8px 0 14px;
@include b(checkbox) {
display: block;
}
}
@include m(disabled) {
color: map-get($--transfer-item-text-color, 'disabled');
cursor: not-allowed;
}
}
}
}
}
2019-11-08 16:07:20 +08:00
@include b(transfer-gap) {
width: 96px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
@include b(transfer-button) {
width: 36px;
height: 36px;
border-radius: 18px;
cursor: pointer;
&:first-child {
margin-bottom: 12px;
2019-09-04 11:26:24 +08:00
}
@include e(icon) {
2019-11-08 16:07:20 +08:00
pointer-events: none;
fill: map-get($--transfer-gap-button-background-color, 'default');
transition: fill .3s $default-cubic-bezier;
2019-09-04 11:26:24 +08:00
}
2019-11-08 16:07:20 +08:00
&:hover {
@include e(icon) {
fill: map-get($--transfer-gap-button-background-color, 'hover');
}
}
&:active {
@include e(icon) {
fill: map-get($--transfer-gap-button-background-color, 'active');
}
}
@include m(to) {
transform: rotate(180deg);
}
@include m(disabled) {
cursor: not-allowed;
@include e(icon) {
fill: map-get($--transfer-gap-button-background-color, 'disabled') !important;
}
2019-09-04 11:26:24 +08:00
}
}
}
}
}