User avatar spinner

stable
Xavier Julián 2015-01-28 08:51:24 +01:00
parent 02c4466c45
commit cfefc473e2
2 changed files with 5 additions and 4 deletions

View File

@ -14,8 +14,8 @@ div.wrapper(tg-user-profile, ng-controller="UserSettingsController as ctrl",
fieldset(tg-user-avatar)
.image-container
img.avatar(ng-src="{{user.big_photo}}" alt="avatar")
div.overlay
span.icon.icon-spinner
.overlay
img.loading-spinner(src="/svg/spinner-circle.svg", alt="loading...")
input(type="file", id="avatar-field", class="hidden",
tg-avatar-model="avatarAttachment")
p The image will be cropped to 80x80px.<br>

View File

@ -33,8 +33,9 @@
@extend %loading-spinner;
border: 0;
flex-grow: 0;
transform-origin: 32 32;
width: 30%;
max-height: 3rem;
max-width: 3rem;
transform-origin: center center;
}
p {
@extend %xsmall;