amis2/scss/components/_popoverable.scss

34 lines
555 B
SCSS
Raw Normal View History

2019-04-30 11:11:25 +08:00
.#{$ns}Field-popOverBtn {
2019-12-06 09:58:08 +08:00
color: $PopOverAble-iconColor;
margin-left: $gap-xs;
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: $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;
}
}