From 04d97f9ad7d0323be5896d8be9b7ab721eee4396 Mon Sep 17 00:00:00 2001 From: yiminghe Date: Tue, 7 Jul 2015 17:09:04 +0800 Subject: [PATCH] add autoprefixer --- package.json | 5 +++-- style/components/inputNumber.less | 2 ++ style/components/progress.less | 1 - style/components/steps.less | 2 -- style/mixins/button.less | 2 +- webpack.config.js | 5 ++--- 6 files changed, 8 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index d9e1806a16..1ade6a3a01 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,6 @@ "url": "https://github.com/ant-design/ant-design/issues" }, "dependencies": { - "css-animation": "~1.0.3", "gregorian-calendar": "~3.0.0", "gregorian-calendar-format": "~3.0.1", "rc-calendar": "~3.10.0", @@ -27,7 +26,8 @@ "rc-tooltip": "~2.2.3" }, "devDependencies": { - "react-router": "~0.13.3", + "css-animation": "~1.0.3", + "autoprefixer-loader": "~2.0.0", "babel": "~5.6.14", "babel-core": "~5.4.7", "babel-loader": "~5.1.3", @@ -42,6 +42,7 @@ "lodash": "^3.10.0", "nico-jsx": "~0.5.8", "precommit-hook": "^1.0.7", + "react-router": "~0.13.3", "webpack": "^1.10.1", "webpack-dev-middleware": "^1.2.0" }, diff --git a/style/components/inputNumber.less b/style/components/inputNumber.less index 8a13d9f224..c30e89b69e 100644 --- a/style/components/inputNumber.less +++ b/style/components/inputNumber.less @@ -66,9 +66,11 @@ border-left: 1px solid #D9D9D9; width: 20px; height: 26px; + margin-top: -1px; } &-handler-up { + padding-top: 1px; border-bottom: 1px solid #D9D9D9; &-inner { .iconfont-mixin(); diff --git a/style/components/progress.less b/style/components/progress.less index 45abbe3360..705110234c 100644 --- a/style/components/progress.less +++ b/style/components/progress.less @@ -40,7 +40,6 @@ text-align: center; line-height: 1; top: 50%; - -webkit-transform: translateY(-50%); transform: translateY(-50%); left: 0; diff --git a/style/components/steps.less b/style/components/steps.less index 31e3014094..a75d70b7fa 100644 --- a/style/components/steps.less +++ b/style/components/steps.less @@ -5,8 +5,6 @@ @wait-color: #e9e9e9; .transition(@transition) { - -webkit-transition: @transition; - -o-transition: @transition; transition: @transition; } diff --git a/style/mixins/button.less b/style/mixins/button.less index 89d9c455d1..8a1e1f460d 100644 --- a/style/mixins/button.less +++ b/style/mixins/button.less @@ -88,7 +88,7 @@ .button-size(@btn-padding-base; @font-size-base; @btn-border-radius-base); .user-select(none); .transition(all .3s @ease-in-out); - -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); > .@{iconfont-css-prefix} { font-size: @font-size-base + 2; diff --git a/webpack.config.js b/webpack.config.js index c4297aa1bf..59ff477d59 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -35,13 +35,12 @@ module.exports = { }, { test: /\.less$/, loader: ExtractTextPlugin.extract( - 'css?sourceMap&-restructuring!' + - 'less?sourceMap' + 'css?sourceMap&-restructuring!' + 'autoprefixer-loader?browsers=last 2 versions!' + 'less?sourceMap' ) }, { test: /\.css$/, loader: ExtractTextPlugin.extract( - 'css?sourceMap' + 'css?sourceMap!' + 'autoprefixer-loader?browsers=last 2 versions' ) }] },