_common.css 5.83 KB
@use postcss-clearfix ;

/* Reset End */
.clearfix {
    clear: fix;
}

body {
    font-family: arial, "SimHei";
}

@font-face {
    font-family: "iconfont";
    src: resolve("iconfont.eot");
    src: resolve("iconfont.eot?#iefix") format("embedded-opentype"), resolve("iconfont.woff") format("woff"), resolve("iconfont.ttf") format("truetype"), resolve("iconfont.svg#iconfont") format("svg");
}

.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: 0.2px;
    -moz-osx-font-smoothing: grayscale;
}

.center-content {
    width: 1150px;
    margin-left: auto;
    margin-right: auto;
}

.min-screen .center-content {
    width: 990px;
}

.left,
.pull-left {
    float: left;
}

.right,
.pull-right {
    float: right;
}

.center {
    text-align: center;
}

.hide {
    display: none !important;
}

a:focus,
input,
textarea {
    outline: none;
}

a {
    text-decoration: none;
    color: #000;
}

.body-mask {
    position: absolute;
    z-index: 100;
    background: #000;
    opacity: 0.2;
    top: 0;
    left: 0;
}

@define-mixin ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
公共样式
*/
.g-list {
    li {
        float: left;
        a {
            position: relative;
            display: block;
            overflow: hidden;
            img {
                width: 100%;
                height: 100%;
            }
        }
    }
}

.yoho-page {
    .floor-header {
        position: relative;
        margin: 80px 0 40px;

        .floor-title {
            margin: 0 auto;
            width: 298px;
            height: 31px;
            line-height: 31px;
            border: 1px solid #000;
            font-size: 16px;
            text-align: center;
        }

        .header-navs {
            position: absolute;
            padding: 10px 0;
            top: 0;
            right: 0;
            font-size: 14px;

            li {
                float: left;
                padding: 1px 15px;
                border-left: 1px solid #ccc;

                &:first-child {
                    border-left: none;
                }

                &:hover {
                    text-decoration: underline;
                }

                a {
                    color: #333;
                }
            }
        }
    }
}

/*
热门推荐模板样式
*/
.home-page {
    .tpl-recommend {
        width: 100%;
        position: relative;
        a {
            display: block;
            img {
                display: block;
                width: 100%;
                height: 100%;
            }
        }
        .tpl-body {
            margin-bottom: 8px;
        }
        .tpl-nav {
            float: left;
            overflow: hidden;
            .tpl-keywords {
                margin-bottom: 8px;
            }

            .tpl-category {
                padding: 10px 0;
                background-color: #f8f8f8;
                overflow: hidden;

                a {
                    float: left;
                    width: 50%;
                    text-align: center;
                    color: #000;
                    overflow: hidden;
                }
            }
        }
        .tpl-brands {
            float: left;
            overflow: hidden;
            margin-left: 8px;
            li {
                margin-top: 8px;
            }
        }
        .tpl-types {
            float: left;
            overflow: hidden;
            margin-top: -8px;
            width: 579px;

            li {
                float: left;
                margin-left: 8px;
                margin-top: 8px;

                a {
                    width: 185px;
                    height: 248px;
                }
            }
        }
        .tpl-products {
            overflow: hidden;
            margin-left: -10px;
            li {
                float: left;
                margin-left: 10px;

                a {
                    width: 222px;
                    height: 298px;
                }
            }
        }

        .tpl-nav {
            width: 185px;

            .keywords0,
            .keywords1,
            .keywords2 {
                margin-bottom: 10px;
                height: 76px;
            }
            .keywords2 {
                margin-bottom: 0;
            }
            .tpl-category {
                height: 228px;

                a {
                    height: 38px;
                    line-height: 38px;
                    font-size: 14px;
                }
            }
        }

        .tpl-brands {
            width: 378px;
            height: 512px;

            li a {
                height: 248px;
            }
        }
    }
}

/*
人气单品
*/
.home-page .flash-sale {
    .flash-sale-list {
        margin-left: -10px;
        a {
            height: 340px;
            width: 560px;
        }
        li {
            margin: 10px;
        }

        .flash-sale-banner {
            position: relative;
            height: 260px;
        }

        .flash-sale-bottom {
            height: 78px;
            position: relative;
            border: 1px solid #000;
            border-top-style: none;
        }
        p.flash-sale-count {
            position: absolute;
            left: 50px;
            top: 20px;
        }

        p.flash-sale-name {
            position: absolute;
            left: 120px;
            top: 20px;
        }
        p.flash-sale-timer {
            position: absolute;
            left: 50px;
            top: 50px;
        }

        .flash-sale-logo {
            position: absolute;
            right: 50px;
            width: 100px;
            height: 80px;
            img {
                width: 100px;
                height: 50px;
                margin-top: 15px;
            }
        }
    }
}