mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 15:05:26 +08:00
show edit avatar on mouse hover, add background and center image
This commit is contained in:
parent
8309df0aaf
commit
5719d4c61f
1 changed files with 12 additions and 5 deletions
|
@ -1459,17 +1459,24 @@ html.turbolinks-progress-bar::before {
|
||||||
height: 100px;
|
height: 100px;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
|
background-color: lighten($color-concrete, 2%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.avatar-image,
|
.avatar-container:hover .avatar-edit{
|
||||||
.avatar-edit {
|
display : block;
|
||||||
height: 100%;
|
}
|
||||||
|
|
||||||
|
.avatar-image {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%,-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.avatar-edit {
|
.avatar-edit {
|
||||||
margin-top: 70px;
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
margin-top: 70%;
|
||||||
opacity: .8;
|
opacity: .8;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue