Authored by 毕凯

postcss 完善

... ... @@ -42,13 +42,14 @@ gulp.task('default', ['postcss-dev', 'postcss-watch', 'spm-doc']);
function postcssEnvPlugin(env) {
var sprites = {
spritesmith: {
padding: 2
padding: 4
},
groupBy: function(file) {
// 根据目录分组,防止合并后的图片太大
var group = file.url.split('/')[1];
file.retina = true; // H5 强制所有图片都是用二倍图
return group ? Promise.resolve(group) : Promise.reject();
},
filterBy: function(file) {
... ...

21.5 KB | W: | H:

21.3 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

23.4 KB | W: | H:

23.3 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -2,7 +2,7 @@
float: left;
width: 276px;
height: 486px;
margin: 0 (15px) (15px);
margin: 0 15px 15px;
.tag-container {
height: 28px;
... ... @@ -114,7 +114,7 @@
color: #000;
}
.market-price {
margin: 0 0 0 (5px);
margin: 0 0 0 5px;
color: #b0b0b0;
text-decoration: line-through;
}
... ...
... ... @@ -154,7 +154,7 @@
}
.hot-brand {
margin: (30px) 0 0;
margin: 30px 0 0;
.hot-brand-list {
background: #fff;
... ...
... ... @@ -23,7 +23,7 @@
}
.download-btn {
display: block;
margin: (18px) auto 0;
margin: 18px auto 0;
width: 294px;
height: 64px;
line-height: 64px;
... ...
... ... @@ -192,7 +192,7 @@
a {
position: relative;
display: block;
margin: 0 0 0 (30px);
margin: 0 0 0 30px;
padding-left: 10px;
font-size: 36px;
z-index: 2;
... ...
... ... @@ -88,7 +88,7 @@
margin-top: 20px;
width: 100%;
height: 20px;
line-height: (20px) auto;
line-height: 20px auto;
text-align: center;
}
... ...
... ... @@ -99,7 +99,7 @@ $border_color_light: #eee;
}
.timeline-info {
padding: (20px) 0;
padding: 20px 0;
@mixin set-singleBorder "bottom",$border_color_strong;
}
... ...
/*$suggest: sprite-map("/me/suggest/*.png",$spacing: 5px);*/
.yoho-suggest-page {
width: 100%;
height: auto;
... ...