index.scss 3.08 KB
.category {
    margin-left: 40px;
    .floor-header {
        margin-top: 20px;
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .title {
        font-family: PingFang-SC-Medium;
        font-size: 40px;
        color: #000;
        text-align: left;
        line-height: 56px;
    }

    .more {
        font-family: SFProText-Medium;
        font-weight: 500;
        font-size: 28px;
        color: #000;
        display: flex;
        align-items: center;
    }

    .more-text {
        font-family: SFProText-Medium;
        font-size: 28px;
        color: #000;
    }

    .category-line {
        position: relative;
        left: 0;
        right: 40px;
        bottom: 0px;
        margin-right: 40px;
        background-color: #eee;
        height: 2.5px;
    }

    .arrow-right-icon {
        width: 24px;
        height: 24px;
        margin-right: 40rpx;
    }

    .scrollview {
        white-space: nowrap;

        .item-group {
            vertical-align:top;
            display: inline-block;
            width: 600px;
            height: 440px;
            margin-right: 20px;
        
            &:last-child {
                margin-right: 0;
            }
        }

        .placehorder {
            width: 90px;
            height: 100%;
        }

        .item {
            width: 600px;
            height: 140px;
            display: flex;
            align-items: center;

            .item-navigator {
                width: 100%;
                display: flex;

                .item-img {
                    height: 140px;
                    margin-right: 20px;
                    display: flex;
                    .img {
                        width: 140px;
                        height: 140px;
                    }
                }

                .product-dec {
                    height: 100%;
                    width: 336px;
                    word-break: break-all;
                    display: flex;
                    flex-direction: column;
                    .item-name {
                        font-family: DINAlternate-Bold;
                        font-size: 28px;
                        color: #000;
                        margin-top: 20px;
                        width: 100%;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: pre-line;
                        display:-webkit-box; //将对象作为弹性伸缩盒子模型显示。
                        -webkit-box-orient:vertical; //从上到下垂直排列子元素(设置伸缩盒子的子元素排列方式)
                        -webkit-line-clamp:2; //这个属性不是css的规范属性,需要组合上面两个属性,表示显示的行数。
                    }

                    .item-code {
                        font-family: SFProText-Regular;
                        font-size: 24px;
                        color: #999;
                        margin-top: 18px;
                    }
                }
            }
        }
    }
}