UNPKG

@antmjs/vantui

Version:

一套适用于Taro3及React的vantui组件库

123 lines (102 loc) 2.31 kB
@import '../style/var.less'; .van-picker { position: relative; overflow: hidden; /* stylelint-disable-next-line property-no-vendor-prefix */ -webkit-text-size-adjust: 100%; /* avoid iOS text size adjust */ user-select: none; .theme(background-color, '@picker-background-color'); &__toolbar { display: flex; justify-content: space-between; .theme(height, '@picker-toolbar-height'); .theme(line-height, '@picker-toolbar-height'); } &__cancel, &__confirm { .theme(padding, '@picker-action-padding'); .theme(font-size, '@picker-action-font-size'); &--hover { .theme(opacity, '@active-opacity'); } } &__confirm { .theme(color, '@picker-confirm-action-color'); } &__cancel { .theme(color, '@picker-cancel-action-color'); } &__title { max-width: 50%; text-align: center; .theme(font-weight, '@font-weight-bold'); .theme(font-size, '@picker-option-font-size'); } &__columns { position: relative; display: flex; } &__column { flex: 1 1; width: 0; } &__loading { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 4; display: flex; align-items: center; justify-content: center; .theme(background-color, '@picker-loading-mask-color'); } &__mask { position: absolute; top: 0; left: 0; z-index: 2; width: 100%; height: 100%; background-image: linear-gradient( 180deg, hsla(0deg, 0%, 100%, 0.9), hsla(0deg, 0%, 100%, 0.4) ), linear-gradient( 0deg, hsla(0deg, 0%, 100%, 0.9), hsla(0deg, 0%, 100%, 0.4) ); background-repeat: no-repeat; background-position: top, bottom; backface-visibility: hidden; pointer-events: none; } } .van-picker .van-picker__frame { position: absolute; top: 50%; .theme(right, '@padding-md'); .theme(left, '@padding-md'); z-index: 1; transform: translateY(-50%); pointer-events: none; } .van-picker-content-Wrapper { display: flex; align-items: center; .van-icon-clear { color: #c8c9cc; margin-left: 10px; } .check-list-arrow { height: fit-content; margin-left: 10px; } .van-picker-nocontent { .theme(color, @placeholder-color); } }