amis2/scss/components/_popoverable.scss

68 lines
1017 B
SCSS
Raw Normal View History

2019-04-30 11:11:25 +08:00
.#{$ns}Field-popOverBtn {
color: var(--PopOverAble-iconColor);
margin-left: var(--gap-xs);
2019-12-06 09:58:08 +08:00
visibility: hidden;
display: inline-block;
cursor: pointer;
2019-12-12 19:30:46 +08:00
opacity: 0.6;
2020-06-08 16:04:14 +08:00
vertical-align: middle;
2019-04-30 11:11:25 +08:00
2019-12-06 09:58:08 +08:00
&:hover {
color: var(--PopOverAble-onHover-iconColor);
2019-12-12 19:30:46 +08:00
opacity: 1;
2019-12-06 09:58:08 +08:00
}
2019-04-30 11:11:25 +08:00
}
.#{$ns}Field--popOverAble {
2019-12-06 09:58:08 +08:00
outline: none;
position: relative;
2019-04-30 11:11:25 +08:00
2019-12-06 09:58:08 +08:00
&:hover .#{$ns}Field-popOverBtn {
visibility: visible;
}
2019-04-30 11:11:25 +08:00
}
.#{$ns}PopOverAble-popover {
2019-12-06 09:58:08 +08:00
min-width: px2rem(320px);
max-width: px2rem(640px);
2019-04-30 11:11:25 +08:00
2019-12-06 09:58:08 +08:00
.#{$ns}Panel {
margin-bottom: 0;
border: none;
}
}
.#{$ns}PopOverAble--fixed {
position: fixed;
> * {
margin-bottom: 0;
}
}
.#{$ns}PopOverAble--fixed-center {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.#{$ns}PopOverAble--fixed-left-top {
top: 0;
left: 0;
}
.#{$ns}PopOverAble--fixed-right-top {
top: 0;
right: 0;
}
.#{$ns}PopOverAble--fixed-left-bottom {
bottom: 0;
left: 0;
}
.#{$ns}PopOverAble--fixed-right-bottom {
bottom: 0;
right: 0;
}