amis/packages/amis-ui/scss/components/_popover.scss

55 lines
1.0 KiB
SCSS
Raw Normal View History

2019-04-30 11:11:25 +08:00
.#{$ns}PopOver {
2019-12-06 09:58:08 +08:00
position: absolute;
background: var(--PopOver-bg);
2019-12-06 09:58:08 +08:00
top: 0;
left: 0;
z-index: $zindex-popover;
display: none;
padding: 0;
margin: 0;
font-weight: var(--fontWeightNormal);
2019-12-06 09:58:08 +08:00
letter-spacing: normal;
line-height: var(--lineHeightBase);
2019-12-06 09:58:08 +08:00
text-align: left;
text-align: start;
text-decoration: none;
text-shadow: none;
text-transform: none;
white-space: normal;
word-break: normal;
word-spacing: normal;
word-wrap: normal;
font-size: var(--fontSizeBase);
box-shadow: var(--boxShadow);
border: var(--borderWidth) solid var(--borderColor);
border-radius: var(--borderRadius);
2019-04-30 11:11:25 +08:00
2019-12-06 09:58:08 +08:00
& > * {
position: relative;
z-index: 2;
}
2019-12-06 09:58:08 +08:00
&-overlay {
position: fixed !important;
top: 0;
left: 0;
right: 0;
z-index: 1;
bottom: 0;
background: transparent;
}
&-isMobile {
.#{$ns}PopOver-overlay {
background: rgba(0, 0, 0, 0.3);
}
}
2021-11-16 15:39:03 +08:00
&--leftBottomLeftTop {
margin-top: px2rem(4px);
2021-11-16 15:39:03 +08:00
}
&--leftTopLeftBottom {
margin-top: px2rem(-4px);
2021-11-16 15:39:03 +08:00
}
2019-12-06 09:58:08 +08:00
}