amis2/scss/components/_popoverable.scss

33 lines
529 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;
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;
}
}