Authored by 陈峰

移除逛功能中使用rem样式

@import "star/index";
@import "plusstar/index";
@import "index/index";
@import "tvls";
@import "info";
@import "plus-star";
... ...
@define-mixin relatedTitle {
margin: 0 29px;
background: #fff;
border: 1px solid #e0e0e0;
border-bottom: none;
line-height: 72px;
font-size: 30px;
color: #b0b0b0;
text-align: center;
}
.guang-detail-page {
#wrapper {
background: #f0f0f0;
}
#wrapper.ios {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
overflow: hidden;
&.has-head {
top: 90px;
+ .fixed-top {
top: 90px;
}
}
}
.author {
border-bottom: 1px solid #e0e0e0;
background: #fff;
> a {
display: block;
height: 100%;
}
.avatar {
float: left;
margin-top: 20px;
margin-left: 30px;
width: 50px;
height: 50px;
border-radius: 50%;
}
.name {
float: left;
font-size: 28px;
color: #000;
padding: 30px 0;
margin-left: 30px;
}
.intro {
float: left;
font-size: 28px;
color: #b0b0b0;
padding: 30px 0;
margin-left: 30px;
}
}
.post-title {
padding: 16px 0 26px 30px;
background: #fff;
.title {
line-height: 60px;
font-size: 40px;
color: #000;
font-weight: bold;
}
}
.text-block {
padding: 20px 30px;
line-height: 46px;
font-size: 28px;
background: #fff;
color: #444;
word-break: break-word;
word-wrap: break-word;
}
.big-img-block {
padding-bottom: 5px;
background: #fff;
img {
width: 100%;
}
}
.small-img-block {
padding-bottom: 8px;
background: #fff;
img {
float: right;
width: 315px;
height: 420px;
&:first-child {
float: left;
}
}
}
.collocation-block {
background: #fff;
.good-list {
padding-left: 15px;
}
}
.thumb-container {
padding-top: 30px;
padding-left: 20px;
background: transparent resolve("guang/thumb-container-bg.png") no-repeat;
background-size: 200% 100%;
&.fixed-top {
position: fixed;
left: 0;
right: 0;
top: 0;
}
&.fixed-bottom {
position: fixed;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.9);
}
&.absolute {
position: absolute;
left: 0;
right: 0;
}
&.static {
position: static;
}
&.hide {
display: none;
}
}
.clothe-type {
position: absolute;
right: 6px;
bottom: 34px;
width: 20px;
height: 20px;
border-radius: 50%;
&.bag {
background: url("/guang/clothes/bag.png");
background-color: #fff;
background-size: 100%;
}
&.cloth {
background: url("/guang/clothes/cloth.png");
background-color: #fff;
background-size: 100%;
}
&.dress {
background: url("/guang/clothes/dress.png");
background-color: #fff;
background-size: 100%;
}
&.headset {
background: url("/guang/clothes/headset.png");
background-color: #fff;
background-size: 100%;
}
&.lamp {
background: url("/guang/clothes/lamp.png");
background-color: #fff;
background-size: 100%;
}
&.pants {
background: url("/guang/clothes/pants.png");
background-color: #fff;
background-size: 100%;
}
&.shoe {
background: url("/guang/clothes/shoe.png");
background-color: #fff;
background-size: 100%;
}
&.swim-suit {
background: url("/guang/clothes/swim-suit.png");
background-color: #fff;
background-size: 100%;
}
&.under {
background: url("/guang/clothes/under.png");
background-color: #fff;
background-size: 100%;
}
&.watch {
background: url("/guang/clothes/watch.png");
background-color: #fff;
background-size: 100%;
}
}
.thumb {
display: inline-block;
position: relative;
margin-right: 22px;
padding-bottom: 30px;
&:last-child {
margin-right: 0;
}
&.focus .thumb-img {
border-color: #000;
}
}
.thumb-img {
height: 134px;
width: 96px;
border: 1px solid transparent;
}
.related-reco-block {
background: #fff;
padding-left: 15px;
border-top: 1px solid #e0e0e0;
h2 {
margin-left: -15px;
line-height: 104px;
font-size: 30px;
color: #b0b0b0;
text-align: center;
}
.one-good {
padding-left: 15px;
padding-right: 30px;
margin-bottom: 20px;
.thumb {
float: left;
height: 134px;
width: 96px;
}
.content-container {
padding-left: 120px;
height: 134px;
line-height: 1;
font-size: 24px;
> p {
height: 50%;
line-height: 94px;
}
span {
display: inline-block;
line-height: 24px;
}
.price {
line-height: 47px;
}
}
.sale-price {
color: #d62927;
line-height: 1.5;
}
.sale-price.no-price {
color: #000;
}
.market-price {
margin-left: 5px;
color: #b0b0b0;
text-decoration: line-through;
line-height: 1.5;
}
.check-detail {
display: inline-block;
color: #000;
border: 1px solid;
border-radius: 2PX;
float: right;
padding: 0 5px;
line-height: 1.5;
}
}
}
.link-block {
display: block;
height: 80px;
line-height: 80px;
padding: 0 30px;
font-size: 28px;
background: #fff;
border-top: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
.iconfont {
float: right;
color: #ccc;
}
}
.related-brand {
margin-top: 30px;
h2 {
@mixin relatedTitle;
}
.brand-list {
border-top: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
padding: 30px 0;
background: #fff;
}
.brand {
float: left;
width: 158px;
height: 128px;
border-right: 1px solid #e0e0e0;
margin-bottom: 10px;
a {
display: block;
}
&:nth-child(4n) {
border-right: none;
}
}
.brand-logo {
display: table-cell;
width: 158px;
height: 94px;
vertical-align: middle;
img {
display: block;
max-width: 158px;
max-height: 94px;
margin: 0 auto;
}
}
.brand-name {
margin: 10px 0 0;
line-height: 24px;
font-size: 18px;
color: #babac2;
text-align: center;
text-decoration: none;
border-bottom: none;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.related-tag {
position: relative;
padding-bottom: 30px;
border-bottom: 1px solid #e0e0e0;
background: #fff;
.tag-bg {
position: absolute;
height: 40px;
width: 40px;
background: resolve("guang/tag.png") no-repeat;
background-size: 100% 100%;
top: 35px;
left: 20px;
}
.tag-list {
margin-left: 50px;
}
li {
float: left;
margin-top: 31px;
margin-left: 31px;
}
a {
height: 50px;
line-height: 50px;
font-size: 30px;
color: #000;
text-decoration: underline;
white-space: nowrap;
}
}
.related-info {
margin-top: 30px;
h2 {
@mixin relatedTitle;
}
.info-list {
background: #fff;
padding-bottom: 30px;
border-top: 1px solid #e0e0e0;
}
li {
padding-top: 30px;
margin-bottom: 10px;
a {
display: block;
}
img {
float: left;
margin-left: 30px;
width: 182px;
height: 114px;
&.square {
height: 182px;
}
}
}
.title,
.publish-time {
float: left;
width: 360px;
margin-left: 30px;
line-height: 40px;
color: #444;
font-size: 28px;
}
.publish-time {
font-size: 18px;
margin-top: 0;
color: #b0b0b0;
.iconfont {
font-size: 18px;
}
}
}
}
@import "info-list";
@import "info";
@import "tvls";
@import "detail";
.guang-list-page {
.editor-header {
margin-bottom: 0.75rem;
padding-top: 0.9rem;
padding-bottom: 1rem;
background: #fff;
border-bottom: 1px solid #e0e0e0;
}
.avatar {
float: left;
margin-left: 0.75rem;
img {
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
}
}
.text {
float: left;
margin-left: 0.8rem;
width: 11.875rem;
.name {
font-size: 0.8rem;
line-height: 1rem;
}
.info {
margin-top: 0.15rem;
color: #bdbdbf;
font-size: 0.6rem;
line-height: 0.8rem;
}
}
.swiper-container {
width: 100%;
height: 7.75rem;
img {
height: 100%;
width: 100%;
}
.swiper-pagination {
bottom: 0;
left: 0;
width: 100%;
}
.swiper-pagination-bullet-active {
background: #fff;
}
}
.guang-nav {
background-color: #fff;
overflow: hidden;
height: 2rem;
}
.guang-nav-item {
float: left;
color: #ccc;
font-size: 0.7rem;
padding: 0 0.55rem;
line-height: 2rem;
&.focus {
color: #000;
}
}
.bytouch {
background: #eee;
}
.info-list-container {
overflow-x: hidden;
background: #f0f0f0;
}
.info-list.hide {
display: none;
}
}
.guang-info {
margin-bottom: 0.75rem;
padding: 0 0 0.6rem;
border-top: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
background: #fff;
.info-author {
display: block;
width: 100%;
.avatar {
float: left;
margin-top: 0.5rem;
width: 1.25rem;
height: 1.25rem;
margin-left: 0.75rem;
border-radius: 50%;
}
.name {
float: left;
margin-left: 0.75rem;
padding: 0.75rem 0;
font-size: 0.7rem;
color: #000;
}
}
&:last-child {
margin-bottom: 0;
}
.info-img {
position: relative;
width: 100%;
img {
display: block;
width: 100%;
}
}
.info-match {
position: absolute;
top: 0;
left: 0;
width: 3.25rem;
height: 1.25rem;
line-height: 1.25rem;
font-size: 0.7rem;
color: #fff;
background: #000;
text-align: center;
text-decoration: none;
z-index: 1;
}
.info-tag {
position: absolute;
top: 0;
left: 2.625rem;
height: 1.25rem;
width: 1.25rem;
&.collocation {
background-image: url("/guang/info/collocation.png");
}
&.fashion-good {
background-image: url("/guang/info/fashion-good.png");
}
&.fashion-man {
background-image: url("/guang/info/fashion-man.png");
}
&.tip,
&.special-topic {
background-image: url("/guang/info/tip.png");
}
&.topic {
background-image: url("/guang/info/topic.png");
}
}
.info-deps {
margin: 0.8rem 0 0;
padding: 0 1rem 0 0.75rem;
.info-title-container {
text-decoration: none;
color: #000;
}
.info-title {
line-height: 1.1rem;
color: #000;
font-size: 1rem;
font-weight: bold;
}
.info-text {
margin: 0.4rem 0 0;
line-height: 1.15rem;
font-size: 0.7rem;
color: #444;
}
.time-view-like-share {
margin-top: 0.4rem;
}
}
}
.time-view-like-share {
color: #b0b0b0;
line-height: 0.95rem;
height: 0.95rem;
font-size: 0.6rem;
.iconfont {
vertical-align: 9%;
margin-right: 0.1rem;
font-size: 0.6rem;
}
.like-share-container {
display: inline-block;
float: right;
> * {
float: left;
}
.iconfont {
position: relative;
height: 1.5rem;
line-height: 1.5rem;
display: inline-block;
color: #b0b0b0;
width: 1.5rem;
top: -0.35rem;
font-size: 0.85rem;
text-align: center;
margin-right: 0;
outline: none;
}
.share-btn {
margin-left: 0.5rem;
}
.like-btn.like {
color: #444;
}
.collect-btn {
margin-left: 0.5rem;
&.collected {
color: #d62927;
}
}
}
}