| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- // main banner
- @import "elements.less";
-
- .main-banner {
- margin: 0 auto 40px auto;
- width: 1180px;
- height: 400px;
- position: relative;
- }
- .main-banner > ul {
- list-style: none;
- }
- .main-banner > ul li {
- display: block;
- }
- .main-banner > ul li > a,
- .main-banner > ul li > a > img {
- display: block;
- overflow: hidden;
- }
- .main-banner > a {
- display: block;
- position: absolute;
- width: 45px;
- height: 45px;
- text-align: center;
- color: #293437;
- }
- .main-banner > .left-arrow {
- left: -45px;
- top: 178px;
- }
- .main-banner > .right-arrow {
- right: -45px;
- top: 178px;
- }
- .main-banner > a > i {
- font-size: 24px;
- .opacity(.5);
- position: relative;
- top: 10px;
- }
- .main-banner:hover > a > i {
- .opacity(1);
- }
- .main-banner > a:hover {
- background: #293437;
- color: #ffffff;
- }
- .banner-steps {
- position: absolute;
- bottom: -25px;
- left: 0;
- right: 0;
- margin: 0 auto;
- text-align: center;
- }
- .banner-steps > a {
- display: inline-block;
- width: 10px;
- height: 10px;
- .rounded(5px);
- background: #b7c0c7;
- margin: 0 3px;
- .opacity(.6);
- }
- .banner-steps > a:hover {
- .opacity(1);
- }
- .banner-steps > a.active {
- background: #293437;
- .opacity(1);
- }
- // 1180w
- @media screen and (max-width: 1200px) {
- .main-banner {
- width: 960px;
- }
- .main-banner > ul li > a > img {
- width: auto;
- height: 100%;
- }
- }
- //960w
- @media screen and (max-width: 980px) {
- .main-banner {
- display: none;
- }
- }
|