amis2/scss/components/form/_result-list.scss

85 lines
1.6 KiB
SCSS
Raw Normal View History

2020-05-12 11:41:59 +08:00
.#{$ns}Selections {
height: 100%;
min-width: px2rem(200px);
position: relative;
display: flex;
flex-direction: column;
&-title {
height: var(--Form-input-height);
background: var(--Table-thead-bg);
font-size: var(--Form-input-fontSize);
padding: calc(
(
var(--Form-input-height) - var(--Form-input-lineHeight) *
var(--Form-input-fontSize)
) / 2
)
var(--gap-sm);
2020-05-12 11:41:59 +08:00
}
&-placeholder {
color: var(--Form-input-placeholderColor);
2020-05-12 11:41:59 +08:00
text-align: center;
width: 100%;
flex-basis: var(--Form-input-height);
2020-05-12 11:41:59 +08:00
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: center;
font-size: var(--Form-input-fontSize);
2020-05-12 11:41:59 +08:00
}
&-items {
flex-grow: 1;
}
&-item {
display: flex;
flex-direction: row;
height: var(--Form-input-height);
line-height: var(--Form-input-lineHeight);
font-size: var(--Form-input-fontSize);
padding: calc(
(
var(--Form-input-height) - var(--Form-input-lineHeight) *
var(--Form-input-fontSize)
) / 2
)
var(--gap-sm);
2020-05-12 11:41:59 +08:00
> label {
flex-basis: px2rem(50px);
flex-grow: 1;
}
> .#{$ns}Selections-dragbar {
width: px2rem(20px);
position: relative;
left: px2rem(-5px);
color: var(--icon-color);
2020-05-12 11:41:59 +08:00
cursor: move;
}
&--dragging {
> * {
opacity: 0.2;
}
}
}
&-delBtn {
color: var(--icon-color);
2020-05-12 11:41:59 +08:00
cursor: pointer;
&:hover {
color: var(--icon-onHover-color);
2020-05-12 11:41:59 +08:00
}
2020-05-27 13:52:25 +08:00
> svg {
width: 12px;
height: 12px;
}
2020-05-12 11:41:59 +08:00
}
}