shop_common.less 6.86 KB
@import "sp-icon";
//文本
body {
    min-width: 1200px;
}
.text-left {
    text-align: left !important;
}
.text-center {
    text-align: center !important;
}
.text-right {
    text-align: right !important;
}
.text-nowrap {
    white-space: nowrap !important;
}
.text-overflow {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
//浮动
.float-left {
    float: left !important;
}
.float-right {
    float: right !important;
}
.float-none {
    float: none !important;
}
//浮动清除
.clearfix:after {
    content: '';
    display: block;
    height: 0;
    overflow: hidden;
    font-size: 0;
    clear: both;
}
.font-blue {
    color: #005ea7;
}
.wrap1200 {
    width: 1200px;
    margin: 0 auto;
}
.ui-col-1 {
    width: 100%;
}
.ui-col-2 {
    width: 50%;
}
.ui-col-3 {
    width: 33.33%;
}
.ui-col-4 {
    width: 25%;
}
.width-auto {
    width: auto !important;
}
em {
    font-style: normal;
    font-weight: normal;
}
.sp-banner {
  min-width: 1200px;
  position: relative;
  >h2 {
    width: 1200px;
    position: absolute;
    bottom: 47px;
    left: 50%;
    margin-left: -600px;
    font: normal 36px/1 'Microsoft YaHei';
    color: #fff;
  }
  img {
    display: block;
    width: 100%;
    height: 130px;
    margin: 0 auto;
  }
}
.sp-nav {
    background-color: #f5f5f5;
    margin-bottom: 20px;
    ul {
        font-size: 14px;
        color: #333;
        li {
            float: left;
            line-height: 40px;
            padding: 0 15px;
        }
    }
}
.sp-sidebar {
    width: 240px;
    float: left;
    // .sp-section-item{
    // 	width: 100%;
    // 	float: left;
    // }
}
.sp-section {
    margin-left: 260px;
    overflow: hidden;
    .sp-goods {
        padding: 10px;
    }
    .sp-goods-item {
        padding: 10px;
        a {
            padding: 0;
            border: none;
        }
        img {
            width: 100%;
            max-width: 100%;
        }
    }
}
.sp-section-item {
    border: 1px solid #eee;
    margin-bottom: 20px;
    h2 {
        font-size: 16px;
        color: #666;
        line-height: 48px;
        padding: 0 20px;
        background-color: #f9f9f9;
        border-bottom: 1px solid #eee;
    }
}
.sp-profile {
    font-size: 12px;
    color: #333;
    border-bottom: none;
    h2 {
        color: #000;
        font-size: 18px;
        .sp-icon {
            margin-right: 8px;
        }
    }
    ul {
        padding-top: 20px;
        text-align: left;
        border-bottom: 1px solid #eee;
    }
    li {
        padding: 0 20px;
        margin-bottom: 20px;
        line-height: 1.5;
        list-style: none;
    }
    .cert-info {
        // .sp-icon {
        //     float: left;
        //     margin: 0 4px 4px 0;
        // }
        .icon{
          width: 20px;
          height: 20px;
          float: left;
          margin: 0 4px 4px 0;
        }
    }
    .title {
        width: 80px;
        float: left;
    }
    .text {
        display: block;
        margin-left: 85px;
        word-break: break-all;
    }
}
.sp-goods-item {
    padding: 0 0 20px 20px;
    float: left;
    box-sizing: border-box;
    a {
        display: block;
        padding: 20px;
        border: 1px solid #eee;
        font-size: 13px;
        color: #666;
        position: relative;
        &:hover {
            color: #23ac38;
        }
    }
    .title {
        display: block;
        font-size: 13px;
        margin-bottom: 5px;
        height: 36px;
        overflow: hidden;
    }
    .price {
        color: #de0000;
        font-size: 12px;
    }
    em {
        font-size: 16px;
    }
}
/*带标题栏目*/
.column {
    border: 1px solid #eee;
    margin-bottom: 20px;
    .header {
        border-bottom: 1px solid #eee;
        height: 45px;
        line-height: 45px;
        font-size: 16px;
        color: #666;
        text-indent: 20px;
        font-family: "Microsoft YaHei","WenQuanYi Micro Hei",SimHei,tahoma,sans-serif;
    }
    .body {
        padding: 20px;
    }
}
.sp-highlight-wrap{
  padding-right: 10px !important;
}
.sp-highlight {
    position: relative;
    // padding: 15px;
    height: 18px;
    overflow: hidden;
    .items {
        display: block;
        position: relative;
        font-size: 0;
        // width: 130px;
        margin-left: -5px;
        text-align:left;
        span {
            display: none;
            font-size: 12px;
            display: inline-block;
            z-index: 2;
            position: relative;
            padding-left: 5px;
            box-sizing: border-box;
            margin-bottom: 5px;
        }
        &:before {
            content: '';
            position: absolute;
            // visibility: hidden;
            top: -15px;
            left: -15px;
            width: 100%;
            height: 100%;
            padding: 15px 15px 10px;
            background-color: #FFF;
            box-shadow: 0 0 5px #ccc;
            z-index: 1;
            -webkit-transition: all 0.15s ease-out;
            -o-transition: all 0.15s ease-out;
            transition: all 0.15s ease-out;
        }
    }
    &:hover {
        overflow: visible;
        .items {
            // width: 126px;
            &:before {
                visibility: visible;
            }
        }
    }
}

.sp-slider {
    height: 260px;
    width: 1200px;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    ul{
        height: 100%;
    }
    li {
        float: left;
        width: 1200px;
        height: 100%;
        img {
            float: left;
            height: 100%;
            width: 100%;
        }
    }
}
.pdo-droll_layout {
    // position: relative
}

.pdo-droll {
    overflow: hidden;
    position: absolute
}

.pdo-droll_dirbutton {
    width: 100%;
    height: 0;
    z-index: 1;
    top: 40%;
    // display: none !important;
    // visibility: hidden;
}

.pdo-droll_dirbutton,.pdo-droll_next,.pdo-droll_prev {
    position: absolute;
    // display: block !important;
}

.pdo-droll_next,.pdo-droll_prev {
    width: 30px;
    height: 40px;
    display: inline-block;
    background-image: url(../images/2.3.0/dist/slider-icon.png);
    background-repeat: no-repeat;
}

.pdo-droll_prev {
    left: 0;
    background-position: 0 0;
}

.pdo-droll_prev:hover {
    opacity: .6
}

.pdo-droll_next {
  right: 0;
  background-position: -33px 0;
  right: 0;
  // display: block !important;
}

.pdo-droll_next:hover {
    opacity: .6
}

.pdo-droll_btn_locked {
    cursor: text
}

.pdo-droll_btn_locked:hover {
    opacity: 1
}

.pdo-droll_numbutton {
    position: absolute;
    bottom: 10px;
    width: 100%;
    z-index: 1;
    line-height: 1;
    text-align: center;
    a{
        display: inline-block;
        width: 20px;
        height: 4px;
        background-color: #FFF;
        opacity: 0.7;
        text-indent: -9999em;
        text-align: left;
        margin-right: 10px;
        font-size: 0;
    }
    .pdo-droll_btn_current, a:hover {
        background: #000;
        color: #fff;
    }
}