Authored by unknown

首页css压缩路径修改

... ... @@ -57,7 +57,7 @@ var config = JSON.parse(fs.readFileSync('./package.json').toString()),
distRoot = 'dist/yohobuy-mobile/',
distDir = {
js: distRoot + config.name + '/' + config.version,
css: distRoot + config.name + '/assets/css',
css: distRoot + config.name + '/' + config.version,
image: distRoot + config.name + '/assets/images',
fonts: distRoot + config.name + '/assets/fonts'
},
... ...
... ... @@ -70,9 +70,9 @@ $('.side-nav').on('click', 'li', function () {
//返回一级导航,收起二级导航
$('.sub-nav').each(function () {
$(this).find('li').eq(0).on('click', function () {
$(this).find('li').eq(0).on('click', function (e) {
$('.sub-nav').removeClass('show');
event.stopPropagation();
e.stopPropagation();
});
});
... ...
... ... @@ -181,8 +181,7 @@
}
.sub-nav.show {
-webkit-transform: translate3d(0, 0, 0);
-webkit-transition: transform .3s ease-out;
transform: translate3d(0, 0, 0);
transition: transform .3s ease-out;
@include transform(translateX(0));
@include transition(transform 0.3s);
}
\ No newline at end of file
... ...
... ... @@ -57,11 +57,11 @@ a:focus {
* 字体图标
*/
@font-face {font-family: 'iconfont';
src: url('../fonts/iconfont.eot'); /* IE9*/
src: url('../fonts/iconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/iconfont.woff') format('woff'), /* chromefirefox */
url('../fonts/iconfont.ttf') format('truetype'), /* chromefirefoxoperaSafari, Android, iOS 4.2+*/
url('../fonts/iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
src: font-url('iconfont.eot'); /* IE9*/
src: font-url('iconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
font-url('iconfont.woff') format('woff'), /* chromefirefox */
font-url('iconfont.ttf') format('truetype'), /* chromefirefoxoperaSafari, Android, iOS 4.2+*/
font-url('iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
}
.iconfont {
font-family:"iconfont" !important;
... ...