From 399678ca36318e62af0c37a1958243fbc34ce7ab Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Thu, 15 Nov 2018 10:30:46 +0800 Subject: Update transition rules --- src/_forms.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/_forms.scss') diff --git a/src/_forms.scss b/src/_forms.scss index 50fb585..2c60dfc 100644 --- a/src/_forms.scss +++ b/src/_forms.scss @@ -34,7 +34,6 @@ legend { // Form element: Input .form-input { - @include control-transition(); appearance: none; background: $bg-color-light; background-image: none; @@ -49,6 +48,7 @@ legend { outline: none; padding: $control-padding-y $control-padding-x; position: relative; + transition: background .2s, border .2s, box-shadow .2s, color .2s; width: 100%; &:focus { @include control-shadow(); @@ -221,11 +221,11 @@ textarea.form-input { } .form-icon { - @include control-transition(); border: $border-width solid $border-color-dark; cursor: pointer; display: inline-block; position: absolute; + transition: background .2s, border .2s, box-shadow .2s, color .2s; } // Input checkbox, radio and switch sizes @@ -331,7 +331,6 @@ textarea.form-input { top: ($control-size-sm - $unit-4) / 2 - $border-width; width: $unit-8; &::before { - @include control-transition(); background: $bg-color-light; border-radius: 50%; content: ""; @@ -340,6 +339,7 @@ textarea.form-input { left: 0; position: absolute; top: 0; + transition: background .2s, border .2s, box-shadow .2s, color .2s, left .2s; width: $unit-4; } } -- cgit v1.3.1-23-gd82d