// http://meyerweb.com/eric/tools/css/reset/ // v2.0 | 20110126 // License: none (public domain) html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, a, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } // HTML5 display-role reset for older browsers article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1;font-family: $font;font-size: 0; overflow-x: hidden; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } table { border-collapse: collapse; border-spacing: 0; } button{ padding: 0;border: none; cursor: pointer; outline: none; background-color: transparent; } a {text-decoration: none;color: $color2;} *{ box-sizing: border-box; } sup{ vertical-align: super; font-size: .7em; } // Iconfont [class*=' icon-'], [class^=icon-] { font-family: "iconfont"; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; font-style: normal; font-variant: normal; line-height: 1; speak: none; text-transform: none; } // .v-rl { writing-mode: vertical-rl; -ms-writing-mode: tb-rl; } .v-lr { writing-mode: vertical-lr; -ms-writing-mode: tb-lr; } // Wow.js .wow {visibility: hidden;} .no-cssanimations .wow {visibility: visible;} // Margin Top .list-mb150{ >li{ margin-bottom: 150px; } } .list-mb110{ >li{ margin-bottom: 110px; } } .list-mb80{ >li{ margin-bottom: 80px; } } .list-mb50{ >li{ margin-bottom: 50px; } } .list-mb30{ >li{ margin-bottom: 30px; } .swiper-slide, .slick-slide{ margin-bottom: 30px; } } .list-mb20{ >li{ margin-bottom: 20px; } } .mlr-20{ margin-left: -10px;margin-right: -10px; } .item-20{ margin-left: 10px;margin-right: 10px; } .mlr-30{ margin-left: -15px;margin-right: -15px; &.swiper{ margin-left: -15px;margin-right: -15px; } } .item-30{ margin-left: 15px;margin-right: 15px; } .mlr-40{ margin-left: -20px;margin-right: -20px; } .item-40{ margin-left: 20px;margin-right: 20px; } .mlr-70{ margin-left: -35px;margin-right: -35px; &.swiper{ margin-left: -35px;margin-right: -35px; } } .item-70{ margin-left: 35px;margin-right: 35px; } .mlr-90{ margin-left: -45px;margin-right: -45px; } .item-90{ margin-left: 45px;margin-right: 45px; } @for $i from 1 to 50 { // .mt-#{$i}0 { // margin-top: $i * 10px; // } .mt-#{$i}0{ margin-top: $i * 10px; } .pt-#{$i}0{ padding-top: $i * 10px; } } @media (min-width: 1025px){ .list-hover{ .item-pic{ img{ transition: transform .6s ease; } } a{ &:hover{ .item-pic{ img{ transform: scale(1.1); } } } } } } @media (max-width: 1440px){ @for $i from 1 to 50 { // .mt-#{$i}0 { // margin-top: $i * 10px; // } .mt-#{$i}0{ margin-top: $i * 8px; } .pt-#{$i}0{ padding-top: $i * 8px; } } .mlr-90{ margin-left: -35px;margin-right: -35px; } .item-90{ margin-left: 35px;margin-right: 35px; } .mlr-70{ margin-left: -25px;margin-right: -25px; &.swiper{ margin-left: -25px;margin-right: -25px; } } .item-70{ margin-left: 25px;margin-right: 25px; } .mlr-40{ margin-left: -16px;margin-right: -16px; } .item-40{ margin-left: 16px;margin-right: 16px; } .mlr-30{ margin-left: -12px;margin-right: -12px; &.swiper{ margin-left: -12px;margin-right: -12px; } } .item-30{ margin-left: 12px;margin-right: 12px; } .mlr-20{ margin-left: -8px;margin-right: -8px; } .item-20{ margin-left: 8px;margin-right: 8px; } .list-mb110{ >li{ margin-bottom: 90px; } } .list-mb80{ >li{ margin-bottom: 70px; } } .list-mb50{ >li{ margin-bottom: 42px; } } .list-mb30{ >li{ margin-bottom: 24px; } .swiper-slide, .slick-slide{ margin-bottom: 24px; } } } @media (max-width: 1366px){ .mlr-90{ margin-left: -28px;margin-right: -28px; } .item-90{ margin-left: 28px;margin-right: 28px; } .mlr-70{ margin-left: -18px;margin-right: -18px; &.swiper{ margin-left: -18px;margin-right: -18px; } } .item-70{ margin-left: 18px;margin-right: 18px; } .mlr-40{ margin-left: -14px;margin-right: -14px; } .item-40{ margin-left: 14px;margin-right: 14px; } .mlr-30{ margin-left: -10px;margin-right: -10px; &.swiper{ margin-left: -10px;margin-right: -10px; } } .item-30{ margin-left: 10px;margin-right: 10px; } .mlr-20{ margin-left: -6px;margin-right: -6px; } .item-20{ margin-left: 6px;margin-right: 6px; } .list-mb110{ >li{ margin-bottom: 78px; } } .list-mb80{ >li{ margin-bottom: 64px; } } .list-mb50{ >li{ margin-bottom: 36px; } } .list-mb30{ >li{ margin-bottom: 20px; } .swiper-slide, .slick-slide{ margin-bottom: 20px; } } @for $i from 1 to 50 { // .mt-#{$i}0 { // margin-top: $i * 10px; // } .mt-#{$i}0{ margin-top: $i * 7px; } .pt-#{$i}0{ padding-top: $i * 7px; } } } @media (max-width: 1024px) { .mlr-90{ margin-left: -25px;margin-right: -25px; } .item-90{ margin-left: 25px;margin-right: 25px; } .mlr-70{ margin-left: -15px;margin-right: -15px; &.swiper{ margin-left: -15px;margin-right: -15px; } } .item-70{ margin-left: 15px;margin-right: 15px; } } // @media (max-width: 768px) { // @for $i from 4 to 30 { // .mt-#{$i}0 { // margin-top: $i * 4px; // } // } // } @media (max-width: 650px){ @for $i from 4 to 50 { .mt-#{$i}0 { margin-top: $i * 5px; } .pt-#{$i}0{ padding-top: $i * 5px; } } .mlr-90{ margin-left: -20px;margin-right: -20px; } .item-90{ margin-left: 20px;margin-right: 20px; } .item-70{ margin-left: 15px;margin-right: 15px; } .mlr-40{ margin-left: -10px;margin-right: -10px; } .item-40{ margin-left: 10px;margin-right: 10px; } .mlr-30{ margin-left: -6px;margin-right: -6px; &.swiper{ margin-left: -6px;margin-right: -6px; } } .item-30{ margin-left: 6px;margin-right: 6px; } .mlr-20{ margin-left: -4px;margin-right: -4px; } .item-20{ margin-left: 4px;margin-right: 4px; } .list-mb110{ >li{ margin-bottom: 65px; } } .list-mb80{ >li{ margin-bottom: 54px; } } .list-mb50{ >li{ margin-bottom: 32px; } } .list-mb30{ >li{ margin-bottom: 12px; } .swiper-slide, .slick-slide{ margin-bottom: 12px; } } } // List .list-flex { display: flex; flex-wrap: wrap; } @for $i from 1 to 7 { .list-#{$i} { > li { width: 100% / $i; } } } .list-default { margin-right: -15px;margin-left: -15px; } .list-item { margin-right: 15px;margin-left: 15px; } // Line overflow ellipsis .line1 { overflow: hidden;text-overflow: ellipsis;white-space: nowrap; } .line-multiy { display: -webkit-box;-webkit-box-orient: vertical;overflow: hidden;text-overflow: ellipsis; } @for $i from 2 to 6 { .line#{$i} { @extend .line-multiy; -webkit-line-clamp: $i; } } // Social share wechat .wx-share { margin-top: -85px;margin-left: -70px;border-radius: 3px; position: fixed;z-index: 1000;top: 50%;left: 50%;width:140px;padding-top: 20px;background-color: #fff;cursor: pointer;box-shadow: 0 0 5px 0 rgba(0,0,0,.1); img { display: block;width: 120px;margin: 0 auto; } p { font-size: 12px;line-height: 30px;text-align: center;font-weight: 500;color: #000; } i { position: absolute;top: 0;right: 0;font-size: 12px;width: 20px;height: 20px;line-height: 20px;text-align: center;color: #000; } } // Img box .img-box { position: relative; overflow: hidden; &::before { content: ""; display: block; } > img { left: 0; position: absolute; top: 0; width: 100%; } }