@import 'global.scss'; .banner { position: relative; a { display: block; position: absolute; left: 0; right: 0; margin: 0 auto; bottom: 15%; width: 150px; height: 38px; line-height: 38px; font-size: 14px; text-align: center; color: #fff; border: 1px solid #fff; z-index: 1; overflow: hidden; @media(min-width:768px){ width: 180px; height: 48px; line-height: 48px; font-size: 18px; } &:after { content: ''; position: absolute; z-index: -1; transition: width 0.3s, opacity 0.3s; width: 0; height: 530px; top: 50%; left: 50%; opacity: 0; background: rgba(0, 0, 0, 0.2); transform: translate3d(-50%, -50%, 0) rotate(45deg); backface-visibility: hidden; } &:hover, &:active { &:after { width: 100%; opacity: 1; } } } img { width: 100%; } } .entrance { margin: 40px auto; @media(min-width: 768px) { margin: 60px auto; } @media(min-width:1200px) { margin: 100px auto; } .item{ margin-bottom: 20px; .img{ img{ height: px2vw(200); @media(min-width:768px){ height: auto; } width:100%; } } .txt{ position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .2); padding: 20px; @media(min-width:768px){ padding: 20px; } @media(min-width:1200px){ padding: 40px; } span{ color: $color; font-weight: bold; font-size: 16px; display: inline-block; margin-top: 10px; @media(min-width:768px){ font-size: 20px; margin-top: 30px; } } h2{ color: #fff; margin: 12px 0; font-size: 22px; em { color: $color; } @media(min-width:768px){ margin: 25px 0; font-size: 28px; } @media(min-width:1200px){ font-size: 44px; } } p{ color: #fff; font-size: 14px; @media(min-width:768px){ font-size: 20px; } @media(min-width:1200px){ font-size: 24px; } } i{ font-weight: bold; padding-right: 30px; color: $color; position: absolute; bottom: 25px; font-size: 16px; @media(min-width:768px){ font-size: 20px; } &:after{ content: ""; display: inline-block; width: 30px; height: 10px; transition: all .5s ease; background: url("/assets/image/arrow-color.png") no-repeat center; } } } a{ display: block; position: relative; transition: all .5s ease; &:hover,&:active{ transform: translateY(-10px); box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.2); } } } } .product { .headline { text-align: center; margin-bottom: 10px; @media(min-width:768px){ margin-bottom: 30px; } @media(min-width:1200px){ margin-bottom: 50px; } h2 { color: #111; margin-bottom: 10px; font-size: 24px; @media(min-width:768px){ margin-bottom: 22px; font-size: 32px; } @media(min-width:1200px){ font-size: 46px; } } span { color: $color; font-size: 16px; @media(min-width:768px){ font-size: 20px; } @media(min-width:1200px){ font-size: 24px; } } } ul { li { clear: fix; position: relative; margin-top: 20px; @media(min-width:768px){ margin-top: 30px; } .type { background: #f86363; color: #fff; width: 44%; height: 200px; padding: 25px; padding-bottom: 0; text-align: center; float: left; @media(min-width:768px){ float: none; position: absolute; top: 0; left: 0; width: 200px; height: 250px; padding: 25px; } @media(min-width:1200px){ width: 268px; height: 300px; padding: 40px; } a{ display: block; color: #fff; &:hover{ img{ transform: scale(.9); } .p-icon{ margin-top: 10px; } } } .p-icon { position: relative; margin: 20px auto 20px; width: 40px; height: 40px; line-height: 40px; transition: all .5s ease; @media(min-width:768px){ width: 60px; height: 60px; line-height: 60px; } @media(min-width:1200px){ width: 80px; height: 80px; line-height: 80px; } img{ width: 30px; height: 30px; z-index: 3; position: relative; transition: all .5s ease; @media(min-width:768px){ width:40px; height: 40px; } @media(min-width:1200px){ width: 60px; height: 60px; } } &:before { content: ""; opacity: 1; transform: scale(1); display: block; position: absolute; z-index: 2; zoom: 1; transform: translateZ(1px); width: 38px; height: 38px; top: 1px; left: 1px; border-radius: 50%; box-shadow: 0 0 10px 10px #f86363; @media(min-width:768px){ width: 58px; height: 58px; } @media(min-width:1200px){ width: 78px; height: 78px; } } &:after { content: ''; opacity: 1; transform: scale(1); display: block; position: absolute; z-index: 1; zoom: 1; width: 100%; height: 100%; top: 0; left: 0; border-radius: 50%; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.5); transition: all .3s ease-in-out; } } h2{ padding: 14px 0; border-bottom: 1px solid #fff; font-size: 18px; @media(min-width:768px){ padding: 20px 0; font-size: 26px; } @media(min-width:1200px){ font-size: 36px; } @include ellipsis(auto); } span{ display: inline-block; margin-top: 10px; font-size: 13px; @media(min-width:768px){ margin-top: 10px; font-size: 15px; } @media(min-width:1200px){ margin-top: 20px; font-size: 18px; } } } .items { clear: fix; width: 56%; float: left; @media(min-width:768px){ float: none; width: auto; margin-left: 200px; } @media(min-width:1200px){ margin-left:268px; } .item{ width: 100%; @media(min-width:768px){ width: 48.5%; } } .item.fr{ display: none; @media(min-width:768px){ display: block; } } a{ position: relative; display: block; padding: 15px; height:200px; box-shadow: 0 0 10px 0px rgba(0, 0, 0, .1); border-top: 6px solid #fff; transition: all .5s ease; @media(min-width:768px){ padding: 20px; height:250px; } @media(min-width:1200px){ padding: 30px; height:300px; } &:hover{ border-top: 6px solid $color; transform: translateY(-10px); } } h2{ color: #111; line-height: 1.4; margin-bottom: 20px; font-size: 16px; @media(min-width:768px){ font-size: 24px; } @media(min-width:1200px){ font-size: 30px; } @include ellipsisLn(2); } p{ color: #333; line-height: 1.4; font-size: 12px; @media(min-width:768px){ font-size: 16px; } @include ellipsisLn(2); } span{ position: absolute; bottom: 20px; right: 20px; color: $color; i{ display: inline-block; vertical-align: middle; width: 13px; height: 13px; background: url("/assets/image/arrow-color.png") no-repeat center; } } } } } .more{ margin: 30px auto 0; width: 180px; height: 40px; line-height: 40px; cursor: pointer; border: 1px solid #e0e0e0; color: #333; text-align: center; font-size: 14px; overflow: hidden; position: relative; z-index: 2; @media(min-width:768px){ margin: 50px auto 0; width: 180px; height: 50px; line-height: 50px; font-size: 18px; } &:after { content: ''; position: absolute; z-index: 1; transition: width 0.3s, opacity 0.3s; width: 0; height: 530px; top: 50%; left: 50%; opacity: 0; background: rgba(0, 0, 0, .1); transform: translate3d(-50%, -50%, 0) rotate(45deg); backface-visibility: hidden; } &:hover,&:active { &:after { width: 100%; opacity: 1; } } } } .ad{ margin: 40px auto; @media(min-width:768px){ margin: 60px auto; } @media(min-width:1200px){ margin: 100px auto; } a{ width: 100%; } img{ width:100%; } } .product.other{ padding-bottom: 20px; margin-bottom: 40px; @media(min-width:768px){ padding-bottom: 50px; margin-bottom: 50px; } @media(min-width:1200px){ margin-bottom: 100px; } ul{ li{ .type{ background: #47a5ed; .p-icon{ &:before{ box-shadow: 0 0 10px 10px #47a5ed; } } } .items{ a{ &:hover{ border-color: #47a5ed; } } } } } } .repository { @media(min-width:768px){ background: linear-gradient(to right, #ffffff 50%, #eeeeee 50%, #eeeeee); } .list{ background: #fff; padding-top: 20px; @media(min-width:768px){ padding-top: 50px; } } .list-title{ font-size: 24px; color: #111; border-bottom: 1px solid #eee; padding: 40px 0 20px; margin-bottom: 20px; @media(min-width:768px){ margin-bottom: 20px; font-size: 36px; padding: 50px 0; margin-right: -15px; } @media(min-width:1200px){ font-size: 44px; margin-bottom: 30px; } } .back-nav{ color: $color; font-size: 14px; cursor: pointer; display: inline-block; @media(max-width:767px){ margin-bottom: 30px; } i { display: inline-block; width: 30px; height: 10px; transition: all .5s ease; background: url("/assets/image/arrow-color-left.png") no-repeat center; } &:hover, &:active { i { background-position: center left; } } } .category{ position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #f8f8f8; z-index: 1010; padding: 30px; overflow: auto; background: #eee; transform: translateX(100%); transition: all .5s ease; -webkit-overflow-scrolling: touch; &.showIn{ transform: translateX(0); } @media(min-width:768px){ position: relative; top: auto; left: auto; right: auto; bottom: auto; transform: translateX(0); z-index: 1; } .total{ padding: 50px 0 0 0; @media(min-width:768px){ padding: 130px 0 0 0; } p{ color: #111; font-family: "Publico-Headline-Medium"; font-weight: lighter; margin-top: 5px; font-size: 24px; } } ul{ margin:0 -15px; margin-top: 30px; @media(min-width:768px){ margin-top: 65px; } li{ margin: 15px 0; a{ display: inline-block; color: #666; padding: 10px 30px; font-size: 16px; border-left: 2px solid #eee; transition: all .5s ease; @media(min-width:768px){ font-size: 14px; } &:hover,&.active,&.cur{ color: $color; border-color: $color; } } } } } } .product-list{ margin: 0 auto 60px; @media(min-width:768px){ margin: 0 auto 100px; } @media(min-width:1200px){ margin: 0 auto 120px; } ul{ margin-right: 0; @media(min-width:768px){ margin-right: 30px; } li{ margin-top:20px; @media(min-width:768px){ margin-top:30px; } a{ clear: fix; display: block; padding: 10px 10px 15px; box-shadow: 0 4px 30px -4px rgba(0, 0, 0, 0.2); transition: all .5s ease; border-top: 4px solid #fff; border-bottom: 4px solid #fff; @media(min-width:768px){ padding: 10px; } &:hover,&:active{ border-top: 4px solid $color; .img{ img{ transform: scale(1.05); } } } } .img{ width:100%; height: px2vw(200); margin-right: 20px; border: 1px solid #ebecee; overflow: hidden; @media(min-width:768px){ float:left; width:200px; height:150px; } @media(min-width:1200px){ width:280px; height:200px; } img{ width:100%; height:100%; transition: all .5s ease; } } .txt{ padding-right: 20px; h2{ color: #111; font-size: 18px; margin: 20px 0 10px; @media(min-width:768px){ margin: 25px 0 20px; font-size: 24px; } @media(min-width:1200px){ font-size: 28px; } @include ellipsis(auto); } p{ color: #333; line-height: 1.8; font-size: 14px; @media(min-width:768px){ font-size: 16px; } @include ellipsisLn(2); } } } } }