/*--============================---
 *  基础组件 -- Picker样式
 *  loke 2018-08-21 10:38:56
 *--==============================*/
.sui-picker-box {
    .sui-picker-item {
        display: inline-block;
        width: 100%;
        height: 32px;
        line-height: 32px;
        padding: 0;
        color: #333;
        .right {
            text-align: right;
        }
        &:active {
            background: #ececec;
        }
        .sui-col-12 {
            display: inline-block;
            width: 50%;
        }
        .placeholder {
            color: #ccc;
        }
        .disabled {
            color: #999 !important;
        }
    }
    .sui-picker-popup-mask {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 1000;
        background-color: rgba(0, 0, 0, .4);
        transition: all .3s;
        &.hide {
            z-index: -1;
            background-color: rgba(0, 0, 0, 0);
        }
    }
    .sui-picker-popup-wrap {
        position: fixed;
        left: 0;
        right: 0;
        bottom: -100%;
        z-index: 1000;
        background-color: #fff;
        transition: all .3s;
        &.popup {
            bottom: 0;
        }
        .sui-picker-popup-header {
            display: flex;
            border-bottom: 1px solid #ddd;
            font-size: 1rem;
            .sui-picker-popup-item {
                padding: 0;
                height: 40px;
                line-height: 40px;
                color: #000;
                text-align: center;
                &.sui-header-title {
                    flex: 1;
                    color: #999;
                }
                &.sui-header-left,
                &.sui-header-right {
                    padding: 0 15px;
                    &:active {
                        background: #ececec;
                    }
                    color: #3db4e8;
                }
            }
        }
    }
    .placeholder {
        color: #999;
    }
}

.sui-picker-view-box {
    display: flex;
    align-items: center;
    .sui-picker-view-item {
        flex: 1;
        .sui-picker-view-list {
            position: relative;
            height: 20rem;
            overflow: hidden;
            .sui-picker-view-window {
                &:before {
                    content: " ";
                    position: absolute;
                    left: 0;
                    right: 0;
                    top: 0;
                    height: 140px;
                    z-index: 3;
                    background-image: -webkit-linear-gradient(to top, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.95));
                    background-image: linear-gradient(to top, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.95));
                }
                &:after {
                    content: " ";
                    position: absolute;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    height: 140px;
                    z-index: 3;
                    background-image: -webkit-linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.95));
                    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.95));
                }
            }
            .sui-picker-view-indicator {
                box-sizing: border-box;
                position: absolute;
                top: 50%;
                left: 0;
                right: 0;
                height: 40px;
                border-top: 1px solid #e2e2e2;
                border-bottom: 1px solid #e2e2e2;
                transform: translate(0, -50%);
                z-index: 3;
            }
            .sui-picker-view-content {
                position: absolute;
                left: 0;
                top: 0;
                right: 0;
                padding: 200px 0;
                z-index: 1;
                transform: translateY(0);
                .sui-picker-view-col {
                    height: 40px;
                    padding: 0 10px;
                    color: #000;
                    text-align: center;
                    line-height: 40px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    &.selected {
                        font-size: 16px;
                    }
                }
            }
        }
    }
}
