diff --git a/app/assets/stylesheets/themes/scinote.scss b/app/assets/stylesheets/themes/scinote.scss index b63c092bd..dd40ded79 100644 --- a/app/assets/stylesheets/themes/scinote.scss +++ b/app/assets/stylesheets/themes/scinote.scss @@ -1464,3 +1464,35 @@ html.turbolinks-progress-bar::before { display: inline; } } + +//edit avatar +.avatar-container { + background-color: lighten($color-concrete, 2%); + height: 100px; + position: relative; + width: 100px; +} + +.avatar-container:hover .avatar-edit { + display: block; +} + +.avatar-image { + left: 50%; + position: absolute; + top: 50%; + transform: translate(-50%, -50%); +} + +.avatar-edit { + display: none; + margin-top: 70%; + opacity: .8; + position: absolute; + z-index: 10; + + .btn-greyed { + border-radius: 0; + width: 100px; + } +} diff --git a/app/views/users/registrations/edit.html.erb b/app/views/users/registrations/edit.html.erb index 4f0fe09d0..f272a6ab6 100644 --- a/app/views/users/registrations/edit.html.erb +++ b/app/views/users/registrations/edit.html.erb @@ -5,9 +5,32 @@