_magazine.scss 4.5 KB
@charset "utf-8";
/**
 * Created by chenglong.wang@yoho.cn on 2014/12/30.
 */


//banner
.magazine-banner{
  width: 220px;
  height: auto;
  margin: 11px auto 0 auto;
  position: relative;
  .swiper-container,.swiper-slide,img{
    width: 220px;
    height: 275px;
    display: block;
    overflow: hidden;
  }
  .swiper-slide{
    float: left;
    background: image_url('loading.gif') center center no-repeat;
  }
  .paginationWrap{
    position: relative;
    margin-top: 8px;
    text-align: center;
  }
  .pagination{
    height: auto;
    overflow: hidden;
    display: inline-block;
    margin: 0 auto;
  }
  .swiper-pagination-switch{
    @include retina-sprite($icons,normal-new);
    margin-right: 8px;
    float: left;
    &:nth-last-of-type(1){
      margin-right: 0;
    }
    &.swiper-active-switch{
      @include retina-sprite($icons,active-new);
    }
  }
  .magazine-only-one{
    width: 220px;
    height: 275px;
    img{
      width: 220px;
    }
  }
}
.magazine-more{
  width: 100%;
  height: 80px;
  position: relative;
  overflow: hidden;
  time,>span,a.buy{
    text-align: center;
    display: block;
  }
  time{
    margin-top: 8px;
    color: #333;
    font-size: 1.2rem;
  }
  >span{
    margin-top: 5px;
    color: #666;
    font-size: 1.2rem;
  }
  a.buy{
    @include retina-sprite($icons,buy,true,false);
    bottom: 0;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 34px;
    color: #fff;
    @include hover-link();
  }
}


.magazine-slide-style{
  height: 180px;
  width: 100%;
  //margin: 38px 15px 0 15px;
  overflow: hidden;
  li.swiper-slide{
    width: 131px;
    height: 180px;
    float: left;
    &:nth-last-of-type(1){
      width: 121px;
    }
    a{
      display: block;
      height: auto;
      overflow: hidden;
      position: relative;
      &.magazine-special{
        &:after{
          content: '';
          @include retina-sprite($icons,special-new,0,0);
        }
      }
    }
    img{
      width: 121px;
      height: 160px;
      display: block;
      overflow: hidden;
    }
    time{
      display: block;
      margin-top: 8px;
      text-align: center;
      font-weight: bold;
      width: 121px;
      font-size: 1.2rem;
    }
  }

}

//buy按钮下方的滚动图片
#buy-slide{
  margin: 38px 15px 0 15px;
  width: auto;
}


//e-zine中的滚动图片
.e-zine{
  margin: 55px 15px 0 15px;
  overflow: hidden;
  position: relative;
  >h2{
    @include retina-sprite($icons,e-zine,true,0);
    @include hide-text();
  }
  .zine-boy{
    margin-top: 34px;
  }
  /*.zine-special{
    margin-top: 22px;
  }*/
  .zine-boy/*,.zine-special*/{
    h3{
      font-size: 1.4rem;
      color: #1c1c1b;
      font-weight: bold;
    }
    .magazine-slide-style{
      margin-top: 10px;
    }
  }
}

//rules中的滚动图片
.magazine-rules{
  margin: 40px 15px 0 15px;
  position: relative;
  overflow: hidden;
  h2{
    @include retina-sprite($line,rules,true,0);
    @include hide-text();
  }
  .magazine-slide-style{
    margin-top: 36px;
    height: 200px;
    li.swiper-slide{
      height: 200px;
    }
  }
}

//boy-app
.boy-app{
  margin: 30px 15px 0 15px;
  height: auto;
  overflow: hidden;
  position: relative;
  .app-background{
    float: left;
    width: 133px;
    height: 96px;
    display: block;
    @include retain-background("boy-app.jpg");
  }
  &:after{
    content: '';
    display: block;
    width: 5px;
    height: 80px;
    background: inline_image("base64/line.png") center center no-repeat;
    @include background-size(100%);
    position: absolute;
    left: 135px;
    top: 50%;
    margin-top: -40px;
  }
  .app-info{
    width: 150px;
    float: right;
    h2{
      font-size: 1.8rem;
      margin: 5px 0 0 23px;
    }
    p{
      color: #666;
      line-height: 15px;
      margin: 2px 0 0 23px;
      font-size: 1.2rem;
    }
    .app-download{
      @include retina-sprite($icons,download);
      font-size: 1.4rem;
      font-weight: bold;
      line-height: 30px;
      color: #fff;
      @include hover-link();
      text-align: center;
      margin: 9px 0 0 23px;
    }
  }
}

#rulesMark{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3000;
  background: rgba(#000,0.5);
  display: none;
  overflow: hidden;
  .popImg{
    width: 80%;
    left: 10%;
    position: absolute;
    top: 50%;
    margin-top: -169px;
  }
}