mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 11:07:52 +08:00
dd3adba4f9
* fix: select下拉框、颜色下拉框、日期选择器 dialog中弹出到body * fix: PopUp 关闭按钮点击区域扩大 * fix: 移动端城市选择器对齐方式调整 Co-authored-by: zhangxulong <zhangxulong@baidu.com>
161 lines
2.7 KiB
SCSS
161 lines
2.7 KiB
SCSS
@keyframes PopUpIn {
|
|
from {
|
|
height: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes PopUpOut {
|
|
to {
|
|
height: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes PopUpOpacityIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes PopUpOpacityOut {
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
.#{$ns}PopUp {
|
|
width: 100%;
|
|
height: px2rem(400px);
|
|
position: fixed;
|
|
background: var(--PopOver-bg);
|
|
left: 0;
|
|
bottom: 0;
|
|
z-index: $zindex-top;
|
|
padding: 0;
|
|
margin: 0;
|
|
font-weight: var(--fontWeightNormal);
|
|
letter-spacing: normal;
|
|
line-height: var(--lineHeightBase);
|
|
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);
|
|
overflow: hidden;
|
|
&.in,
|
|
&.out {
|
|
animation-duration: var(--animation-duration);
|
|
animation-fill-mode: both;
|
|
}
|
|
|
|
&.in {
|
|
animation-name: PopUpIn;
|
|
.#{$ns}PopUp-overlay {
|
|
animation-name: PopUpOpacityIn;
|
|
}
|
|
}
|
|
|
|
&.out {
|
|
animation-name: PopUpOut;
|
|
.#{$ns}PopUp-overlay {
|
|
animation-name: PopUpOpacityOut;
|
|
}
|
|
}
|
|
|
|
&-inner {
|
|
position: relative;
|
|
overflow: hidden;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
background: $white;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
&-closeBox {
|
|
width: px2rem(48px);
|
|
height: px2rem(48px);
|
|
position: absolute;
|
|
z-index: 1;
|
|
cursor: pointer;
|
|
right: 0;
|
|
top: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
&-closeWrap {
|
|
position: relative;
|
|
text-align: center;
|
|
height: px2rem(48px);
|
|
line-height: px2rem(48px);
|
|
}
|
|
|
|
&-closeWrap &-close {
|
|
z-index: 1;
|
|
color: var(--icon-color);
|
|
cursor: pointer;
|
|
}
|
|
|
|
&-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: px2rem(60px);
|
|
}
|
|
&-title {
|
|
font-size: var(--fontSizeMd);
|
|
}
|
|
|
|
&-cancel {
|
|
color: var(--PopUp-cancelAction-color);
|
|
margin-left: var(--gap-sm);
|
|
}
|
|
|
|
&-confirm {
|
|
margin-right: var(--gap-sm);
|
|
}
|
|
|
|
&-content {
|
|
overflow-y: auto;
|
|
height: 100%;
|
|
display: flex;
|
|
flex: 1;
|
|
}
|
|
|
|
& > * {
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
&-overlay {
|
|
position: fixed !important;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 1;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
opacity: 1;
|
|
animation-duration: var(--animation-duration);
|
|
animation-fill-mode: both;
|
|
}
|
|
|
|
&--leftBottomLeftTop {
|
|
margin-top: px2rem(4px);
|
|
}
|
|
&--leftTopLeftBottom {
|
|
margin-top: px2rem(-4px);
|
|
}
|
|
&-safearea {
|
|
height: px2rem(16px);
|
|
}
|
|
}
|