Browse Source

update duration less var

pull/30/head
afc163 10 years ago
parent
commit
cb4f694e86
  1. 2
      style/core/iconfont.less
  2. 2
      style/core/motion.less
  3. 6
      style/mixins/button.less
  4. 10
      style/themes/default/custom.less

2
style/core/iconfont.less

@ -150,7 +150,7 @@
.@{iconfont-css-prefix}-windows:before {content:"\e66c";}
.@{iconfont-css-prefix}-loading:before {
display: inline-block;
.animation(loadingCircle @duration-1000 infinite linear);
.animation(loadingCircle 1s infinite linear);
content:"\e610";
}

2
style/core/motion.less

@ -1,5 +1,5 @@
.motion-common() {
animation-duration: .24s;
animation-duration: .22s;
animation-fill-mode: both;
display: block !important;
}

6
style/mixins/button.less

@ -203,12 +203,12 @@
border-radius: 50% 50%;
content: " ";
.scale(0, 0);
.transition(all @duration-300 @ease-in-out);
.transition(all .3s @ease-in-out);
z-index: 0;
background-color: @primary-color;
}
&:not([disabled]):hover,
&:not([disabled]):hover,
&:not([disabled]):active,
&:not([disabled]).active {
> .@{iconfont-css-prefix} {
@ -216,7 +216,7 @@
}
}
&:not([disabled]):hover:before,
&:not([disabled]):hover:before,
&:not([disabled]):active:before,
&:not([disabled]).active:before {
.opacity(1);

10
style/themes/default/custom.less

@ -26,16 +26,6 @@
@cursor-disabled : not-allowed;
// Animation
@duration-300 : .3s;
@duration-400 : .4s;
@duration-500 : .5s;
@duration-600 : .6s;
@duration-700 : .7s;
@duration-800 : .8s;
@duration-900 : .9s;
@duration-1000 : 1.0s;
@duration-1100 : 1.1s;
@duration-1200 : 1.2s;
@ease-out : cubic-bezier(0.215, 0.61, 0.355, 1);
@ease-in : cubic-bezier(0.55, 0.055, 0.675, 0.19);
@ease-in-out : cubic-bezier(0.645, 0.045, 0.355, 1);

Loading…
Cancel
Save