Permalink
Browse files

be smoother when we preview user avatars on Marketplace Account Setti…

…ngs (bug 745878)
  • Loading branch information...
cvan committed Apr 24, 2012
1 parent ee7aba9 commit 7be73e9cab52a39e2f70d82ba2061219a30e94b2
Showing with 7 additions and 2 deletions.
  1. +6 −1 media/css/mkt/account.less
  2. +1 −1 media/js/mkt/account.js
@@ -35,9 +35,14 @@
.border-box;
}
img {
+ .transition(~'.2s all ease-in-out');
.max-width(2);
+ &.previewed {
+ max-height: 210px;
+ max-width: 210px;
+ }
}
- img[src*="anon_user"], .button {
+ .button {
.width(2);
}
.button {
View
@@ -44,7 +44,7 @@
var img = $this.objectUrl();
if (img) {
$a.show();
- $avatar.attr('src', img);
+ $avatar.attr('src', img).addClass('previewed');
}
});
})();

0 comments on commit 7be73e9

Please sign in to comment.