From 54a992c359e27ad567c3d10310dfd73a3f236700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AF=B8=E5=B2=B3?= Date: Sat, 13 Jul 2019 16:23:15 +0800 Subject: [PATCH] fix: Style property orders --- components/button/style/index.less | 2 +- components/descriptions/style/index.less | 2 +- components/input/style/mixin.less | 6 +++--- components/mentions/style/index.less | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/button/style/index.less b/components/button/style/index.less index 1929c3484af2..903817690adc 100644 --- a/components/button/style/index.less +++ b/components/button/style/index.less @@ -24,8 +24,8 @@ > i, > span { display: inline-block; - pointer-events: none; transition: margin-left 0.3s @ease-in-out; + pointer-events: none; } &-primary { diff --git a/components/descriptions/style/index.less b/components/descriptions/style/index.less index 6282cd7533be..c29fceae2187 100644 --- a/components/descriptions/style/index.less +++ b/components/descriptions/style/index.less @@ -53,8 +53,8 @@ &-item-no-label { &::after { - content: ''; margin: 0; + content: ''; } } diff --git a/components/input/style/mixin.less b/components/input/style/mixin.less index ad1c2f74c213..4dafe941ab45 100644 --- a/components/input/style/mixin.less +++ b/components/input/style/mixin.less @@ -370,18 +370,18 @@ position: absolute; top: 50%; z-index: 2; + height: calc(100% - 2px); color: @input-color; line-height: 0; - transform: translateY(-50%); background-color: #fff; - height: calc(100% - 2px); + transform: translateY(-50%); :not(.anticon) { line-height: @line-height-base; } .anticon { position: relative; - vertical-align: top; top: 50%; + vertical-align: top; transform: translateY(-50%); } } diff --git a/components/mentions/style/index.less b/components/mentions/style/index.less index 8e2d5038ac07..29e43b62ec2b 100644 --- a/components/mentions/style/index.less +++ b/components/mentions/style/index.less @@ -11,9 +11,9 @@ position: relative; display: inline-block; height: auto; - line-height: unset; padding: 0; overflow: hidden; + line-height: unset; white-space: pre-wrap; vertical-align: bottom;