mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 11:58:10 +08:00
a03a4bbbde
* 新增移动端PopUp组件 * Update DatePicker.tsx Co-authored-by: zhangxulong <zhangxulong@baidu.com> Co-authored-by: 吴多益 <wuduoyi@baidu.com>
124 lines
2.1 KiB
SCSS
124 lines
2.1 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%;
|
|
position: fixed;
|
|
background: var(--PopOver-bg);
|
|
left: 0;
|
|
bottom: 0;
|
|
z-index: $zindex-popover;
|
|
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;
|
|
padding-top: px2rem(36px);
|
|
}
|
|
|
|
&-closeWrap{
|
|
width: 100%;
|
|
position: absolute !important;
|
|
left: 0;
|
|
top: 0;
|
|
}
|
|
|
|
&-close{
|
|
width: px2rem(34px) !important;
|
|
height: px2rem(34px) !important;
|
|
padding: px2rem(12px);
|
|
cursor: pointer;
|
|
}
|
|
|
|
&-content{
|
|
overflow-y: auto;
|
|
height: 100%;
|
|
display: flex;
|
|
}
|
|
|
|
& > * {
|
|
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);
|
|
}
|
|
}
|