Small improvements in the avatar settings

This commit is contained in:
Mojca Lorber 2019-10-29 13:21:22 +01:00
parent b33ba9350a
commit a0873cb16d
18 changed files with 10 additions and 22 deletions

View file

@ -1383,6 +1383,7 @@ table.dataTable {
//edit avatar
.avatar-container {
background-color: lighten($color-concrete, 2%);
border-radius: 50%;
height: 100px;
position: relative;
width: 100px;
@ -1400,26 +1401,15 @@ table.dataTable {
}
.avatar-edit {
background-color: $color-silver-chalice;
border-radius: inherit;
color: $color-white;
display: none;
margin-top: 70%;
height: inherit;
opacity: .8;
position: absolute;
z-index: 10;
.btn-grey {
background-color: $color-silver-chalice;
border-color: $color-silver-chalice;
border-radius: 0;
color: $color-white;
width: 100px;
&:hover,
&:focus {
background-color: darken($color-silver-chalice, 15%);
border-color: darken($color-silver-chalice, 15%);
color: $color-white;
}
}
padding-top: 40%;
text-align: center;
width: inherit;
}
.avatar-file-upload input[type=file] {

View file

@ -25,10 +25,8 @@
<%= image_tag @user_avatar_url %>
</div>
<div class="avatar-edit">
<div class="btn btn-grey btn-sm">
<span class="fas fa-pencil-alt"></span>
<%=t "users.registrations.edit.avatar_btn" %>
</div>
<span class="fas fa-pencil-alt"></span>
<%=t "users.registrations.edit.avatar_btn" %>
</div>
</div>
</div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 11 KiB