Browse Source

Fix transition duration in ui input to use site defaults

pull/1378/head
jlukic 10 years ago
parent
commit
0c3f5f4405
2 changed files with 8 additions and 13 deletions
  1. 14
      src/definitions/elements/input.less
  2. 7
      src/themes/default/elements/input.variables

14
src/definitions/elements/input.less

@ -29,14 +29,15 @@
---------------------*/ ---------------------*/
.ui.input { .ui.input {
display: inline-block;
position: relative; position: relative;
display: inline-block;
color: @inputColor; color: @inputColor;
} }
.ui.input input { .ui.input input {
margin: 0em; margin: 0em;
width: 100%; width: 100%;
outline: none; outline: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
text-align: @textAlign; text-align: @textAlign;
line-height: @lineHeight; line-height: @lineHeight;
@ -50,8 +51,6 @@
transition: @transition; transition: @transition;
box-shadow: @boxShadow; box-shadow: @boxShadow;
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
} }
@ -218,18 +217,15 @@
.ui.icon.input > .icon { .ui.icon.input > .icon {
cursor: default; cursor: default;
position: absolute; position: absolute;
opacity: @iconOpacity;
text-align: center;
top: 0px; top: 0px;
right: 0px; right: 0px;
margin: 0em; margin: 0em;
width: @iconWidth;
height: 100%; height: 100%;
text-align: center;
width: @iconWidth;
opacity: @iconOpacity;
border-radius: 0em @borderRadius @borderRadius 0em; border-radius: 0em @borderRadius @borderRadius 0em;
box-sizing: border-box;
transition: @iconTransition; transition: @iconTransition;
} }
.ui.icon.input > .icon:before, .ui.icon.input > .icon:before,

7
src/themes/default/elements/input.variables

@ -7,7 +7,6 @@
--------------------*/ --------------------*/
@pageFont: "Helvetica Neue", "Helvetica", Arial; @pageFont: "Helvetica Neue", "Helvetica", Arial;
@verticalPadding: 0.78571em; @verticalPadding: 0.78571em;
@horizontalPadding: 1em; @horizontalPadding: 1em;
@ -24,9 +23,9 @@
@borderRadius: @defaultBorderRadius; @borderRadius: @defaultBorderRadius;
@transition: @transition:
background-color 0.3s ease-out,
box-shadow 0.2s ease,
border-color 0.2s ease
background-color @transitionDuration @transitionEasing,
box-shadow @transitionDuration @transitionEasing,
border-color @transitionDuration @transitionEasing
; ;
@inputColor: @textColor; @inputColor: @textColor;

Loading…
Cancel
Save