Authored by 毕凯

雪碧图优化

... ... @@ -43,7 +43,7 @@ gulp.task('default', ['postcss-dev', 'postcss-watch', 'spm-doc']);
function postcssEnvPlugin(env) {
var sprites = {
spritesmith: {
padding: 4
padding: 10
},
groupBy: function(file) {
... ...

23.3 KB | W: | H:

17.4 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -101,7 +101,7 @@
height: auto;
overflow: hidden;
padding:20px 0 0;
font-size: 48px;
font-size: 32px;
text-align: center;
color: #444;
}
... ... @@ -109,7 +109,7 @@
width: 73.75%;
height: 80px;
overflow: hidden;
font-size: 56px;
font-size: 36px;
line-height: 80px;
display: block;
background: #444444;
... ...
... ... @@ -58,8 +58,9 @@
content: '';
display: block;
width: 188px;
height: 177px;
background: url("/me/fav/fav-null.png");
height: 171px;
background: resolve("me/fav/fav-null.png");
background-size: 100% 100%;
margin: 0 auto 45px auto;
}
}
... ...