vant/packages/picker/index.less
2019-05-16 17:42:00 +08:00

85 lines
1.6 KiB
Plaintext

@import '../style/var';
.van-picker {
position: relative;
overflow: hidden;
background-color: @picker-background-color;
user-select: none;
-webkit-text-size-adjust: 100%; /* avoid iOS text size adjust */
&__toolbar {
display: flex;
justify-content: space-between;
height: @picker-toolbar-height;
line-height: @picker-toolbar-height;
}
&__cancel,
&__confirm {
padding: @picker-action-padding;
color: @picker-action-text-color;
font-size: @picker-action-font-size;
&:active {
background-color: @picker-action-active-color;
}
}
&__title {
max-width: 50%;
font-weight: 500;
font-size: @picker-title-font-size;
text-align: center;
}
&__columns {
position: relative;
display: flex;
}
&__loading {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(255, 255, 255, .9);
}
&__loading .van-loading,
&__frame {
position: absolute;
top: 50%;
left: 0;
z-index: 1;
width: 100%;
transform: translateY(-50%);
pointer-events: none;
}
&-column {
flex: 1;
overflow: hidden;
font-size: @picker-option-font-size;
text-align: center;
&__item {
padding: 0 5px;
color: @picker-option-text-color;
&--selected {
color: @picker-option-selected-text-color;
font-weight: 500;
}
&--disabled {
opacity: @picker-option-disabled-opacity;
}
}
}
}