Skip to content

Commit

Permalink
[#2011] Click on image opens full size image
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperBrandt committed Mar 30, 2016
1 parent 1c9b840 commit 408318c
Show file tree
Hide file tree
Showing 6 changed files with 189 additions and 144 deletions.
151 changes: 79 additions & 72 deletions akvo/rsr/static/scripts-src/my-results.js

Large diffs are not rendered by default.

151 changes: 79 additions & 72 deletions akvo/rsr/static/scripts-src/my-results.jsx

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions akvo/rsr/static/styles-src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2851,6 +2851,19 @@ label.imageUpload input[type="file"], label.fileUpload input[type="file"] {
color: #d9534f; }
.update-container .update-entry-container .update-entry-container-header .update-status.approved {
color: #5cb85c; }
.update-container .update-entry-container .image-container {
position: relative; }
.update-container .update-entry-container .image-container .image-overlay {
display: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%; }
.update-container .update-entry-container .image-container:hover .image-overlay {
display: block;
background: rgba(255, 255, 255, 0.5);
color: #d9534f; }
.update-container .update-entry-container .comments .input-group {
margin-top: 20px;
/* button {
Expand Down
16 changes: 16 additions & 0 deletions akvo/rsr/static/styles-src/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3719,6 +3719,22 @@ label.fileUpload {
}
}
}
.image-container {
position: relative;
.image-overlay {
display: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
&:hover .image-overlay {
display: block;
background: rgba(255, 255, 255, .5);
color: $progressWarning;
}
}
.comments {
.input-group {
margin-top: 20px;
Expand Down
1 change: 1 addition & 0 deletions akvo/templates/myrsr/my_results.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ <h4 class="resultProjectTitle">
"no": "{% trans 'No' %}",
"add_image": "{% trans 'Add image' %}",
"change_image": "{% trans 'Change image' %}",
"remove_image": "{% trans 'Click to remove image' %}",
"attach_file": "{% trans 'Attach file' %}",
"unknown_date": "{% trans 'Unknown date' %}",
"comment": "{% trans 'Comment' %}",
Expand Down
1 change: 1 addition & 0 deletions akvo/templates/project_main.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
"no": "{% trans 'No' %}",
"add_image": "{% trans 'Add image' %}",
"change_image": "{% trans 'Change image' %}",
"remove_image": "{% trans 'Click to remove image' %}",
"attach_file": "{% trans 'Attach file' %}",
"unknown_date": "{% trans 'Unknown date' %}",
"comment": "{% trans 'Comment' %}",
Expand Down

0 comments on commit 408318c

Please sign in to comment.