nav.scss 2.14 KB
.seckill-list {
    .nav-list {
        background-color: #fff;
        width: 750px;
        border-top: solid 1PX #e1e1e1;
        height: 119px;
        overflow: hidden;

        &.fix-top {
            position: fixed;
            top: 0;
            right: 0;
            left: 0;
            z-index: 100;
            box-shadow: 0 1px 0 0 #e1e1e1;
        }
    }
}

.seckill-list .nav-list ul {
    width: auto;
    overflow: hidden;
    height: 100%;
    padding-top: 20px;

    li {
        width: 226px;
        height: 79px;
        border-right: solid 1PX #e1e1e1;
        text-align: center;
        float: left;
        $status-list: over, now, wait;

        @each $status in $status-list {
            &.#{$status} {
                .tip-#{$status},
                .info-#{$status} {
                    display: initial;
                }
            }
        }

        &.last {
            .last-info {
                display: block;
            }

            .last-count-down {
                display: none;
            }
        }

        .status,
        .last-info {
            display: none;
        }

        p {
            font-size: 22px;
        }

        &:last-child {
            border: none;
        }

        &.focus {
            width: 300px;

            .selected {
                display: block;
            }

            .normal {
                display: none;
            }
        }

        .selected {
            display: none;
            color: #d0021b !important;
            height: 79px;
            line-height: 40px;

            .time {
                font-weight: bold;
            }
        }

        .normal {
            display: block;
            height: 79px;
            line-height: 40px;
        }

        .time {
            font-size: 30px;

            span {
                margin-right: 5px;
                font-size: 30px;
            }
        }

        .tick {
            font-size: 20px;
            background-color: #d60117;
            color: #fff;
            margin-left: 10px;
            border-radius: 3PX;
            padding-left: 5px;
            padding-right: 5px;
        }
    }
}