antd-mobile
Version:
基于 React 的移动设计规范实现
84 lines (72 loc) • 1.61 kB
text/less
@import '../../style/mixins';
@import '../../style/themes/default';
@pickerPopupPrefixCls: am-picker-popup;
.@{pickerPopupPrefixCls} {
left: 0;
bottom: 0;
position: fixed;
width: 100%;
background-color: @fill-base;
&-wrap {
position: fixed;
overflow: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: @picker-zindex;
-webkit-overflow-scrolling: touch;
outline: 0;
}
&-mask {
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0;
background-color: @fill-mask;
height: 100%;
z-index: @picker-zindex;
&-hidden {
display: none;
}
}
&-header {
background-image: -webkit-linear-gradient(top, #e7e7e7, #e7e7e7, transparent, transparent);
background-image: linear-gradient(to bottom, #e7e7e7, #e7e7e7, transparent, transparent);
background-position: bottom;
background-size: 100% 1px;
background-repeat: no-repeat;
display: flex;
align-items: center;
// border-bottom: @border-width-sm solid @border-color-base;
position: relative;
.hairline-bottom(@border-color-base);
& & {
&-right {
text-align: right;
}
}
}
&-item {
color: @brand-primary;
font-size: @font-size-heading;
padding: @v-spacing-md @h-spacing-lg;
height: @option-height;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
&-active {
background-color: @fill-tap;
}
}
&-title {
flex: 1;
text-align: center;
color: @color-text-base;
}
& &-close {
display: none;
}
}