@ohu-mobile/core
Version:
160 lines (158 loc) • 3.23 kB
CSS
.ohu-mask {
position: fixed;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.639);
touch-action: none;
-webkit-tap-highlight-color: transparent;
}
.ohu-mask.is-frosted {
-webkit-backdrop-filter: blur(20Px);
backdrop-filter: blur(20Px);
}
.ohu-popup {
-webkit-tap-highlight-color: transparent;
}
.ohu-popup.is-fullscreen {
width: 100%;
height: 100%;
}
.ohu-popup.is-round {
border-radius: 16px 16px 0 0;
overflow: hidden;
}
.ohu-popup-wrapper {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.ohu-popup-wrapper.is-tap-through {
pointer-events: none;
}
.ohu-popup-wrapper.is-scrollable {
overscroll-behavior-y: contain;
overflow: auto;
text-align: center;
align-items: flex-start;
}
.ohu-popup-wrapper.is-scrollable::after {
content: "";
width: 0;
height: 100%;
display: inline-block;
vertical-align: middle;
}
.ohu-popup-wrapper.is-scrollable .ohu-popup {
display: inline-block;
vertical-align: middle;
text-align: left;
}
.ohu-popup-wrapper.has-position {
display: flex;
flex-flow: row nowrap;
}
.ohu-popup-wrapper.is-x-center {
justify-content: center;
}
.ohu-popup-wrapper.is-y-center {
align-items: center;
}
.ohu-popup-wrapper.is-x-left {
justify-content: flex-start;
}
.ohu-popup-wrapper.is-x-right {
justify-content: flex-end;
}
.ohu-popup-wrapper.is-y-top {
align-items: flex-start;
}
.ohu-popup-wrapper.is-y-bottom {
align-items: flex-end;
}
.ohu-popup-header {
padding: 20px 120px 20px 30px;
display: flex;
flex-flow: row nowrap;
align-items: center;
background: #FFF;
position: relative;
}
.ohu-popup-header::after {
content: "";
box-sizing: border-box;
position: absolute;
z-index: 1;
pointer-events: none;
border-style: inherit;
border-width: 1Px 0 0;
right: 0;
bottom: 0;
left: 0;
border-color: #eee;
border-style: solid;
}
@media screen and (-webkit-min-device-pixel-ratio: 2) {
.ohu-popup-header::after {
transform: scaleY(0.5);
transform-origin: center top;
}
}
.ohu-popup-header.is-confirm, .ohu-popup-header.is-text-center {
padding: 20px 120px 20px 120px;
}
.ohu-popup-header .ohu-btn {
color: #848C95;
font-size: 32px;
}
.ohu-popup-header .ohu-btn > i {
font-size: 1.3em;
}
.ohu-popup-header__close.ohu-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.ohu-popup-header.is-close-icon-right .ohu-popup-header__close {
right: 8px;
}
.ohu-popup-header.is-close-icon-left {
padding-left: 120px;
}
.ohu-popup-header.is-close-icon-left .ohu-popup-header__close {
left: 8px;
}
.ohu-popup-header__cancel {
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 14px;
}
.ohu-popup-header__ok {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 14px;
}
.ohu-popup-header.is-text-center .ohu-popup-header__text {
text-align: center;
}
.ohu-popup-header__text {
flex-grow: 1;
flex-shrink: 0;
color: #333;
}
.ohu-popup-header__text__title {
font-size: 32px;
line-height: 1.5625em;
}
.ohu-popup-header__text__title.has-minor {
font-weight: bold;
}
.ohu-popup-header__text__minor-title {
color: #999;
font-size: 28px;
font-weight: normal;
line-height: 1.4285714286em;
}