Authored by microTT

修改详情页

... ... @@ -165,7 +165,7 @@
<div class="detail-slide">
<div class="detail-slide-body">
<ul class="detail-slide-piclist clearfix">
<li class="box"><img alt="" src="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/014aba20f78c3417e86b1b83b894a13f53.jpg"></li>
<li class="box"><img alt="" data-original="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/014aba20f78c3417e86b1b83b894a13f53.jpg" src="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/014aba20f78c3417e86b1b83b894a13f53.jpg"></li>
<li class="box"><img alt="" src="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/020bac31a0b3486691e0db157f4575f165.jpg"></li>
<li class="box"><img alt="" src="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/01defac08591925a8c53ca384da9bfc2c6.jpg"></li>
<li class="box"><img alt="" src="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/02a620fa3b46be018a1626ef52c9d13944.jpg"></li>
... ... @@ -200,87 +200,96 @@
</div>
<div class="text-body">
<p>不知大家还是否记得前不久YOHO!BOYS为各位推送的P.A.M春夏系列宣传画册,近日,此番包括长短袖图案 T-Shirt、连帽卫衣、Duplo 长裤与带有 3D 口袋的短裤等多款轻松塑造夏日型格的实穿单品已正式发布啦!延续了一贯擅于将街头元素与不按常理出牌迷幻美学结合的风格,P.A.M今季运用创新的面料结合巧思的细节与醒目夸张的印花诠释了「标签暨艺术」的设计理念,与此同时也多多少少展现了美少男们骨子里的“小骚气”。该系列已可经由someday-store购得。Hey,boys!准备好高调一夏了吗?</p>
<p>不知大家还是否记得前不久YOHO!BOYS为各位推送的P.A.M春夏系列宣传画册,近日,此番包括长短袖图案 T-Shirt、连帽卫衣、Duplo 长裤与带有 3D 口袋的短裤等多款轻松塑造夏日型格的实穿单品已正式发布啦!延续了一贯擅于将街头元素与不按常理出牌迷幻美学结合的风格,P.A.M今季运用创新的面料结合巧思的细节与醒目夸张的印花诠释了「标签暨艺术」的设计理念,与此同时也多多少少展现了美少男们骨子里的“小骚气”。该系列已可经由someday-store购得。Hey,boys!准备好高调一夏了吗?</p>
</div>
<div class="related-post detail-related-post">
<h3>相关推荐</h3>
<hr>
<!-- 相关推荐资讯 start -->
<div class="post-list main-layout clearfix">
<!-- 单个资讯碎片 start -->
<div class="layout-item clearfix">
<div class="image-box">
<a href="javascript:;">
<img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt="" style="height:230px;width:230px;">
<img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt="">
<i class="play-icon"></i>
</a>
</div>
<div class="content">
<h2 class="volupia">
<a href="/news/detail/id/169">test</a>
<a href="/news/detail/id/169">test test test test</a>
</h2>
<p class="time">NovemBer 11,2016</p>
</div>
</div>
<!-- 单个资讯碎片 end -->
<!-- 单个资讯碎片 start -->
<div class="layout-item clearfix">
<div class="image-box">
<a href="javascript:;">
<img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt="" style="height:230px;width:230px;">
<img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt="">
<i class="play-icon"></i>
</a>
</div>
<div class="content">
<h2 class="volupia">
<a href="/news/detail/id/169">test</a>
<a href="/news/detail/id/169">test test test test</a>
</h2>
<p class="time">NovemBer 11,2016</p>
</div>
</div>
<!-- 单个资讯碎片 end -->
<!-- 单个资讯碎片 start -->
<div class="layout-item clearfix">
<div class="image-box">
<a href="javascript:;">
<img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt="" style="height:230px;width:230px;">
<img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt="">
<i class="play-icon"></i>
</a>
</div>
<div class="content">
<h2 class="volupia">
<a href="/news/detail/id/169">test</a>
<a href="/news/detail/id/169">test test test test</a>
</h2>
<p class="time">NovemBer 11,2016</p>
</div>
</div>
<!-- 单个资讯碎片 end -->
</div>
<!-- 相关推荐资讯碎片 end -->
</div>
</div>
<!-- 资讯内容 end -->
<!-- 资讯侧边栏 start -->
<div class="detail-side">
<!-- 右侧固定广告位 start -->
<div class="detail-ad">
<ul>
<li>
<a href="javascript:;"><img src="http://img01.yohoboys.com/ezineimg/2015/05/05/09/015390c327b8c67dca48be4dc024f04bb1.jpg?imageMogr2/thumbnail/!0340x0426r/crop/0340x0426" style="width: 290px" alt=""></a>
<a href="javascript:;"><img src="http://img01.yohoboys.com/ezineimg/2015/05/05/09/015390c327b8c67dca48be4dc024f04bb1.jpg?imageMogr2/thumbnail/!0340x0426r/crop/0340x0426" alt=""></a>
</li>
<li>
<a href="javascript:;"><img src="http://img01.yohoboys.com/ezineimg/2015/05/05/09/015390c327b8c67dca48be4dc024f04bb1.jpg?imageMogr2/thumbnail/!0340x0426r/crop/0340x0426" alt="" style="width: 290px"></a>
<a href="javascript:;"><img src="http://img01.yohoboys.com/ezineimg/2015/05/05/09/015390c327b8c67dca48be4dc024f04bb1.jpg?imageMogr2/thumbnail/!0340x0426r/crop/0340x0426" alt=""></a>
</li>
</ul>
</div>
<div class="app-download clearfix">
<div class="qr">
<img src="../../res/images/yohood/yohobuyqr.png" alt="">
</div>
<div class="download-text">
<img src="../../res/images/yohood/app-icon01.png" alt="">
<p class="yoho-name">YOHO!有货</p>
<p>随手随心,潮流购物利器大公开</p>
</div>
</div>
<!-- 右侧固定广告位 end -->
<!-- 右侧最新资讯/视频 start -->
<div class="side-related-post">
<div class="side-related-tab clearfix">
<a class="current" href="javascript:;">最新视频</a>
<a href="javascript:;">最新宣传片</a>
<a class="current" href="javascript:;">最新资讯</a>
<span>/</span>
<a href="javascript:;">最新视频</a>
</div>
<!-- 最新信息碎片 start -->
<div class="side-related-wrap">
<!-- 最新资讯 start -->
<div class="side-related-list main-layout current">
<!-- 单个资讯碎片 start -->
<div class="layout-item clearfix">
<div class="image-box">
<a href="javascript:;">
<img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt="" style="height:230px;width:230px;">
<i class="play-icon"></i>
<img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt="">
</a>
</div>
<div class="content">
... ... @@ -288,12 +297,14 @@
<a href="/news/detail/id/169">test</a>
</h2>
</div>
<hr>
</div>
<!-- 单个资讯碎片 end -->
<!-- 单个资讯碎片 start -->
<div class="layout-item clearfix">
<div class="image-box">
<a href="javascript:;">
<img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt="" style="height:230px;width:230px;">
<i class="play-icon"></i>
<img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt="">
</a>
</div>
<div class="content">
... ... @@ -301,12 +312,14 @@
<a href="/news/detail/id/169">test</a>
</h2>
</div>
<hr>
</div>
<!-- 单个资讯碎片 end -->
<!-- 单个资讯碎片 start -->
<div class="layout-item clearfix">
<div class="image-box">
<a href="javascript:;">
<img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt="" style="height:230px;width:230px;">
<i class="play-icon"></i>
<img src="http://img02.res.yoho.cn/blogimg/2014/10/21/15/02c51ce4d3b1f8cc8c0be2f9ccdbfce6ca.jpg" alt="">
</a>
</div>
<div class="content">
... ... @@ -314,13 +327,18 @@
<a href="/news/detail/id/169">test</a>
</h2>
</div>
<hr>
</div>
<!-- 单个资讯碎片 end -->
</div>
<!-- 最新资讯 end -->
<!-- 最新视频 start -->
<div class="side-related-list main-layout">
<!-- 单个视频碎片 start -->
<div class="layout-item clearfix">
<div class="image-box">
<a href="javascript:;">
<img src="http://img02.res.yoho.cn/blogimg/2014/10/21/15/02c51ce4d3b1f8cc8c0be2f9ccdbfce6ca.jpg" alt="" style="height:230px;width:230px;">
<img src="http://img02.res.yoho.cn/blogimg/2014/10/21/15/02c51ce4d3b1f8cc8c0be2f9ccdbfce6ca.jpg" alt="">
<i class="play-icon"></i>
</a>
</div>
... ... @@ -329,11 +347,14 @@
<a href="/news/detail/id/169">test</a>
</h2>
</div>
<hr>
</div>
<!-- 单个视频碎片 end -->
<!-- 单个视频碎片 start -->
<div class="layout-item clearfix">
<div class="image-box">
<a href="javascript:;">
<img src="http://img02.res.yoho.cn/blogimg/2014/10/21/15/02c51ce4d3b1f8cc8c0be2f9ccdbfce6ca.jpg" alt="" style="height:230px;width:230px;">
<img src="http://img02.res.yoho.cn/blogimg/2014/10/21/15/02c51ce4d3b1f8cc8c0be2f9ccdbfce6ca.jpg" alt="">
<i class="play-icon"></i>
</a>
</div>
... ... @@ -342,35 +363,44 @@
<a href="/news/detail/id/169">test</a>
</h2>
</div>
<hr>
</div>
<!-- 单个视频碎片 end -->
<!-- 单个视频碎片 start -->
<div class="layout-item clearfix">
<div class="image-box">
<a href="javascript:;">
<img src="http://img02.res.yoho.cn/blogimg/2014/10/21/15/02c51ce4d3b1f8cc8c0be2f9ccdbfce6ca.jpg" alt="" style="height:230px;width:230px;">
<img src="http://img02.res.yoho.cn/blogimg/2014/10/21/15/02c51ce4d3b1f8cc8c0be2f9ccdbfce6ca.jpg" alt="">
<i class="play-icon"></i>
</a>
</div>
<div class="content">
<h2 class="volupia">
<a href="/news/detail/id/169">testtestt esttesttestt esttestte sttesttestte sttest</a>
<a href="/news/detail/id/169">test</a>
</h2>
</div>
<hr>
</div>
<!-- 单个视频碎片 end -->
</div>
<!-- 最新视频 end -->
</div>
<!-- 最新信息碎片 end -->
</div>
<!-- 右侧最新资讯/视频 end -->
</div>
<!-- 资讯侧边栏 end -->
</div>
</div>
<!-- 页面主体 start -->
<div class="ft">
<hr>
<p class="copyright">
CopyRight © 2007-2016 南京新与力文化传播有限公司苏ICP备09011225号-11
</p>
</div>
<!-- 分享按钮 start -->
<div style="display: none" class="share" data-link="http://newgirls.test.yoho.cn/channel/detail/index/id/2315" cover-url="http://cmsimg01.qiniudn.com/contentimg/2015/05/12/13/0147a071d80901d152ce04dc4341905d26.jpg">
<div class="share" data-link="http://newgirls.test.yoho.cn/channel/detail/index/id/2315" cover-url="http://cmsimg01.qiniudn.com/contentimg/2015/05/12/13/0147a071d80901d152ce04dc4341905d26.jpg">
<h4>share</h4>
<ul>
<li class="yohoo-share-button-sina">
... ...
... ... @@ -331,6 +331,16 @@ define('channel', function(require, exports) {
loopedSlides: 4
}),
clearOtherSlideStyle: function(swiper) {
var slides = swiper.slides,
i = 0,
len = 0;
for (i = 0, len = slides.length; i < len; i++) {
slides[i].style = null;
}
},
nextChagneSileSize: function(swiper) {
var activeIndex = swiper.activeIndex,
slides = swiper.slides,
... ... @@ -341,8 +351,6 @@ define('channel', function(require, exports) {
if (/big\-size/.test(nextNextSlide.className)) {
nextSlide.style.width = "1180px";
}
activeSlide.style = null;
},
prevChangeSlideSize: function(swiper) {
... ... @@ -351,7 +359,7 @@ define('channel', function(require, exports) {
activeSlide = slides[activeIndex],
prevSlide = slides[activeIndex - 1];
if (/big\-size/.test(activeSlide.className)) {
if (/big-size/.test(activeSlide.className)) {
prevSlide.style.width = "1180px";
}
},
... ... @@ -359,18 +367,32 @@ define('channel', function(require, exports) {
init: function() {
var swiper = this.cooperateSwiper,
prevChangeSlideSize = this.prevChangeSlideSize,
nextChagneSileSize = this.nextChagneSileSize;
nextChagneSileSize = this.nextChagneSileSize,
clearOtherSlideStyle = this.clearOtherSlideStyle,
firstSlide = swiper.slides[swiper.activeIndex],
secondSlide = swiper.slides[swiper.activeIndex + 1];
$('.cooperation-slide-prev').on('click', function(e) {
e.preventDefault();
clearOtherSlideStyle(swiper);
prevChangeSlideSize(swiper);
swiper.swipePrev();
});
$('.cooperation-slide-next').on('click', function(e) {
e.preventDefault();
clearOtherSlideStyle(swiper);
nextChagneSileSize(swiper);
swiper.swipeNext();
});
if (firstSlide == null || secondSlide == null) {
return;
}
if (/big-size/.test(secondSlide.className)) {
firstSlide.style.width = "1180px";
}
}
}).init();
... ... @@ -445,15 +467,6 @@ define('channel', function(require, exports) {
slideElement: 'li'
});
// $('.detail-slide-ctrl-prev').bind('click', function(e) {
// e.preventDefault();
// detailSwiper.swipePrev();
// });
// $('.detail-slide-ctrl-next').bind('click', function(e) {
// e.preventDefault();
// detailSwiper.swipeNext();
// });
$('.slide-big-ctrl-prev').bind('click', function(e) {
e.preventDefault();
detailSwiper.swipePrev();
... ... @@ -472,90 +485,79 @@ define('channel', function(require, exports) {
});
};
//侧栏推荐切换
clearInterval(timer);
function postSwitch() {
$('.side-related-tab').find('a').each(function(i) {
if ($(this).hasClass('current')) {
$(this).removeClass('current');
} else {
$(this).addClass('current');
$('.side-related-list').hide().eq(i).show();
}
});
}
timer = setInterval(function() {
postSwitch();
}, 5000);
$('.side-related-post').on('mouseenter', function() {
clearInterval(timer);
}).on('mouseleave', function() {
timer = setInterval(function() {
postSwitch();
}, 5000);
})
$('.side-related-tab').on('click', 'a', function() {
nowIndex = $(this).index();
if ($(this).hasClass('current')) return;
$(this).addClass('current').siblings().removeClass('current');
$('.side-related-list').hide().eq(nowIndex).show();
});
({
detialImgZoom: $('.detail-slide-body').find('.box').each(function() {
console.log($(this));
$(this).imgZoom({
imgTag: 'pic-tip',
});
}),
init: function() {
}
}).init();
/**
* 详情页面侧边栏 最新信息 切换
*/
({
/**
* setIimeout编号 以便清除
* @type {Number}
*/
setTimeoutNum: 0,
/**
* 自动切换时间
* @type {Number}
*/
autoSwitchTime: 5000,
/**
* 自动切换标签
* @return {Undefined}
*/
autoSwitch: function() {
$('.side-related-tab').find('a').each(function(i) {
if ($(this).hasClass('current')) {
$(this).removeClass('current');
} else {
$(this).addClass('current');
$('.side-related-list').hide().eq(i).show();
}
});
this.setTimeoutNum = setTimeout(this.autoSwitch, this.autoSwitchTime);
},
init: function() {
var that = this;
// 鼠标移入 停止自动切换 移出 开始自动切换
$('.side-related-post').on('mouseenter', function() {
clearTimeout(that.setTimeoutNum);
}).on('mouseleave', function() {
that.autoSwitch();
});
// 点击标签 切换信息
$('.side-related-tab').on('click', 'a', function() {
nowIndex = $(this).index(".side-related-tab a");
if ($(this).hasClass('current')) {
return;
}
$(this).addClass('current').siblings().removeClass('current');
$('.side-related-list').hide().eq(nowIndex).show();
});
// 开始自动切换
this.autoSwitch();
}
}).init();
//右侧相关文章定位
// relatedPost = $('.side-related-post');
// relatedTop = relatedPost.offset().top;
// relatedH = relatedPost.outerHeight();
// maxH = $('.limited-goods').offset().top;
// $(window).on('scroll', function() {
// if ($('.detail-body').outerHeight() > $('.detail-side').outerHeight() && navigator.userAgent.indexOf('iPad') === -1) {
// relatedH = relatedPost.outerHeight();
// maxH = $('.limited-goods').offset().top;
// if ($(this).scrollTop() >= relatedTop) {
// relatedPost.addClass('fix');
// if (relatedPost.offset().top + relatedH >= maxH && relatedPost.hasClass('fix')) {
// relatedPost.css({
// 'position': 'absolute',
// 'top': maxH - relatedH - 10
// })
// }
// if ($(this).scrollTop() <= maxH - relatedH) {
// relatedPost.css({
// 'position': 'fixed',
// 'top': 0
// });
// }
// } else {
// relatedPost.removeClass('fix').removeAttr('style');
// }
// }
// });
//分享按钮位置
// var shareOffsetTop = $(".share").offset().top;
// $(window).scroll(function() {
// scrollTop = $(window).scrollTop();
// maxH = $('.limited-goods').offset().top;
// if (shareOffsetTop - scrollTop <= 0) {
// $(".share").css({
// "position": "fixed",
// "top": 10
// });
// } else {
// $(".share").css({
// "position": "absolute",
// "top": shareOffsetTop
// });
// }
// console.log($(".share").offset().top + $('.share').outerHeight());
// console.log($('.limited-goods').offset().top);
// if ($(".share").offset().top + $('.share').outerHeight() > maxH) {;
// $(".share").css({
// 'position': 'absolute',
// 'top': maxH - $('.share').outerHeight() - 10
// });
// }
// });
};
exports.siteActivity = function() {
... ...
... ... @@ -120,42 +120,42 @@
}
}
.related-post {
h3 {
margin-top: 20px;
line-height: 22px;
font-size: 18px;
}
.post-list {
margin-top: 17px;
width: 666px;
.layout-item {
float: left;
width: 200px;
margin-right: 22px;
.image-box {
height: 128px;
overflow: hidden;
a{
display: table-cell;
width: 200px;
height: 128px;
vertical-align: middle;
img{
margin: 0 auto;
}
}
}
.content {
h2 {
margin: 8px 0 0 0;
line-height: 20px;
a {
font-size: 14px;
font-weight: normal;
}
}
}
}
}
}
\ No newline at end of file
// .related-post {
// h3 {
// margin-top: 20px;
// line-height: 22px;
// font-size: 18px;
// }
// .post-list {
// margin-top: 17px;
// width: 666px;
// .layout-item {
// float: left;
// width: 200px;
// margin-right: 22px;
// .image-box {
// height: 128px;
// overflow: hidden;
// a{
// display: table-cell;
// width: 200px;
// height: 128px;
// vertical-align: middle;
// img{
// margin: 0 auto;
// }
// }
// }
// .content {
// h2 {
// margin: 8px 0 0 0;
// line-height: 20px;
// a {
// font-size: 14px;
// font-weight: normal;
// }
// }
// }
// }
// }
// }
\ No newline at end of file
... ...
... ... @@ -695,13 +695,17 @@ $pageMainWidth: 1180px;
}
.ft {
margin: 30px 0;
width: 100%;
min-width: $pageMainWidth;
hr {
width: $pageMainWidth;
border: 0;
border-top: 1px solid #e0e0e0;
}
.copyright {
margin: 30px auto;
color: #444;
width: $pageMainWidth;
text-align: center;
margin: 0 auto;
}
}
... ...
$pageContentWidth: 1080px;
$detialContentWidth: 740px;
$sideWidth: 290px;
.detail-wrap {
width: $pageContentWidth;
margin: 0 auto;
... ... @@ -49,9 +51,8 @@ $pageContentWidth: 1080px;
}
.detail-body {
$detailBodyWidth: 740px;
float: left;
width: $detailBodyWidth;
width: $detialContentWidth;
img {
max-width: 100%;
}
... ... @@ -63,7 +64,6 @@ $pageContentWidth: 1080px;
.detail-slide-body {
$slideBodyHeight: 425px;
$detailBodyWidth: 740px;
position: relative;
width: 100%;
height: $slideBodyHeight;
... ... @@ -74,7 +74,7 @@ $pageContentWidth: 1080px;
position: relative;
.box {
float: left;
width: $detailBodyWidth;
width: $detialContentWidth;
height: $slideBodyHeight;
line-height: $slideBodyHeight;
position: relative;
... ... @@ -91,7 +91,7 @@ $pageContentWidth: 1080px;
.slide-shadow {
a {
position: absolute;
width: 322px;
width: 50px;
top: 0;
bottom: 0;
&:focus {
... ... @@ -198,60 +198,87 @@ $pageContentWidth: 1080px;
}
}
.related-post {
h3 {
font-weight: bold;
}
.post-list {
$itemWidth: 235px;
margin-top: 17px;
width: $detialContentWidth;
.layout-item {
float: left;
width: 235px;
height: 230px;
margin: 0 ($detialContentWidth - $itemWidth * 3) / 2 0 0;
.image-box {
width: $itemWidth;
height: 135px;
overflow: hidden;
a {
display: table-cell;
width: $itemWidth;
height: 135px;
vertical-align: middle;
img {
margin: 0 auto;
}
}
}
.content {
.volupia {
margin: 22px 0 0 0;
line-height: 20px;
a {
font-size: 16px;
font-weight: bold;
}
}
.time {
margin: 22px 0 0;
color: #b2b2b2;
font-size: 12px;
}
}
}
.layout-item:last-child {
margin: 0;
}
}
}
.detail-related-post {
margin: 100px 0 80px 0;
h3 {
// font-weight: bold;
font-size: 16px;
font-weight: bold;
width: 4em;
border: 1px solid #000;
padding: .8em 7.3em;
margin: 0 auto;
}
hr {
margin: 32px 0 40px 0;
border: 0;
border-top: 1px solid #e3e3e3;
}
}
.detail-side {
width: 290px;
width: $sideWidth;
float: left;
margin: 0 0 0 50px;
padding-bottom: 62px;
}
.detail-ad {
margin-bottom: 28px;
width: $sideWidth;
li {
margin-bottom: 15px;
img {
display: block;
}
}
}
.app-download {
width: 278px;
height: 158px;
border: 1px solid #000;
.qr {
float: left;
margin: 22px 0 0 18px;
width: 114px;
height: 114px;
margin-bottom: 30px;
img {
display: block;
width: 100%;
}
}
.download-text {
float: left;
margin: 20px 0 38px 12px;
width: 108px;
img {
display: block;
width: 50px;
}
p {
font-size: 12px;
color: #666;
}
.yoho-name {
font-size: 18px;
color: #000;
font-weight: bold;
max-width: 100%;
}
}
}
... ... @@ -265,33 +292,42 @@ $pageContentWidth: 1080px;
}
.side-related-tab {
border-bottom: 1px solid #000;
margin: 50px 0 20px 0;
border: 1px solid #000;
a {
float: left;
width: 140px;
text-align: center;
font-size: 18px;
line-height: 38px;
font-size: 14px;
opacity: 0.72;
height: 48px;
line-height: 48px;
color: #000;
font-weight: bold;
}
span {
float: left;
}
a.current {
border-bottom: 2px solid #000;
opacity: 1;
}
}
.side-related-list {
width: $sideWidth;
display: none;
&.current {
display: block;
}
.layout-item {
width: $sideWidth;
height: 95px;
float: none;
margin: 20px 0 0 0;
margin: 0;
.image-box {
float: left;
width: 82px;
height: 53px;
width: 92px;
height: 54px;
overflow: hidden;
img {
display: block;
... ... @@ -306,8 +342,8 @@ $pageContentWidth: 1080px;
}
.content {
float: left;
margin-left: 16px;
width: 182px;
margin: 0 0 0 16px;
width: $sideWidth - 92px - 16px;
h2 {
margin: 0;
a {
... ... @@ -317,5 +353,12 @@ $pageContentWidth: 1080px;
}
}
}
hr {
margin: 20px 0 0;
float: left;
width: $sideWidth;
border: 0;
border-top: 1px solid #e3e3e3;
}
}
}
... ...