mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-05 14:41:53 +08:00
fix hound
This commit is contained in:
parent
878952f072
commit
8309df0aaf
2 changed files with 12 additions and 12 deletions
|
@ -1455,26 +1455,26 @@ html.turbolinks-progress-bar::before {
|
|||
}
|
||||
|
||||
//edit avatar
|
||||
#avatar-container {
|
||||
width: 100px;
|
||||
.avatar-container {
|
||||
height: 100px;
|
||||
position: relative;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
#avatar-image,
|
||||
#avatar-edit {
|
||||
width: 100%;
|
||||
.avatar-image,
|
||||
.avatar-edit {
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#avatar-edit {
|
||||
z-index: 10;
|
||||
opacity: 0.8;
|
||||
.avatar-edit {
|
||||
margin-top: 70px;
|
||||
opacity: .8;
|
||||
z-index: 10;
|
||||
|
||||
.btn-greyed {
|
||||
border-radius: 0em;
|
||||
border-radius: 0;
|
||||
width: 100px;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,11 +15,11 @@
|
|||
<div class="form-group">
|
||||
<%= f.label t("users.registrations.edit.avatar_label") %><br />
|
||||
<% @user_avatar_url ||= avatar_path(current_user, :thumb) %>
|
||||
<div id="avatar-container">
|
||||
<div id="avatar-image">
|
||||
<div class="avatar-container">
|
||||
<div class="avatar-image">
|
||||
<%= image_tag @user_avatar_url %>
|
||||
</div>
|
||||
<div id="avatar-edit">
|
||||
<div class="avatar-edit">
|
||||
<a href="#" class="btn btn-greyed btn-sm" data-action="edit">
|
||||
<span class="glyphicon glyphicon-pencil"></span>
|
||||
<%=t "users.registrations.edit.avatar_btn" %>
|
||||
|
|
Loading…
Reference in a new issue