_cascading-address.css 1.69 KB
.cascading-address {
    position: relative;

    .dist-item {
        position: relative;
        display: inline-block;
        padding: 8px;
        border: 1px solid #eee;
        margin-right: 8px;
        font-size: 12px;
        color: #1b1b1b;
        text-align: center;

        &:hover {
            cursor: pointer;
        }
    }

    .open {
        border: 1px solid #1b1b1b;
        border-bottom-width: 0;
        z-index: 1000;
        background: #fff;
    }

    .iconfont {
        font-size: 14px;
    }

    .items-indicator {
        li {
            float: left;
        }
    }

    .items-panel {
        background: #fff;
        padding: 7px 15px;
        border: 1px solid #1b1b1b;
        position: absolute;
        top: 36px;
        z-index: 1;
        display: none;
        width: 410px;

        li {
            float: left;
            margin: 0 0 14px;
            width: 69px;
            position: relative;

            .check-icon {
                display: none;
                float: left;
                width: 12px;
                margin-left: -18px;
                padding: 3px;
            }
        }

        li:first-child {
            margin-left: 0;
        }

        li:last-child {
            margin-right: 0;
        }

        .dist-name {
            font-size: 12px;
            display: inline-block;
            width: 66px;
            padding: 3px;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
            text-align: left;

            &:hover {
                cursor: pointer;
            }
        }

        .checked {
            background: #3a3a3a;
            color: #fff;
        }
    }
}