DG IZ photo spacing now works
This commit is contained in:
parent
5723d91dae
commit
3f27e1f67d
4 changed files with 27 additions and 1 deletions
|
|
@ -18,7 +18,8 @@
|
||||||
%h4= "by #{@album.person.real_name}"
|
%h4= "by #{@album.person.real_name}"
|
||||||
|
|
||||||
- for photo in @album_photos
|
- for photo in @album_photos
|
||||||
= link_to (image_tag photo.image.url(:thumb_medium)), object_path(photo)
|
.image_thumb
|
||||||
|
= link_to (image_tag photo.image.url(:thumb_medium)), object_path(photo)
|
||||||
|
|
||||||
#content_bottom
|
#content_bottom
|
||||||
.back
|
.back
|
||||||
|
|
|
||||||
|
|
@ -107,4 +107,9 @@ $(document).ready(function(){
|
||||||
|
|
||||||
$("input[type='submit']").addClass("button");
|
$("input[type='submit']").addClass("button");
|
||||||
|
|
||||||
|
$(".image_thumb img").load( function() {
|
||||||
|
$(this).fadeIn("slow");
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
});//end document ready
|
});//end document ready
|
||||||
|
|
|
||||||
|
|
@ -393,3 +393,12 @@ h1.big_text {
|
||||||
|
|
||||||
#next_prev_links {
|
#next_prev_links {
|
||||||
text-align: center; }
|
text-align: center; }
|
||||||
|
|
||||||
|
.image_thumb {
|
||||||
|
display: inline-block;
|
||||||
|
width: 100px;
|
||||||
|
min-width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
min-height: 100px; }
|
||||||
|
.image_thumb img {
|
||||||
|
display: none; }
|
||||||
|
|
|
||||||
|
|
@ -486,3 +486,14 @@ h1.big_text
|
||||||
|
|
||||||
#next_prev_links
|
#next_prev_links
|
||||||
:text-align center
|
:text-align center
|
||||||
|
|
||||||
|
|
||||||
|
.image_thumb
|
||||||
|
:display inline-block
|
||||||
|
:width 100px
|
||||||
|
:min-width 100px
|
||||||
|
:height 100px
|
||||||
|
:min-height 100px
|
||||||
|
|
||||||
|
img
|
||||||
|
:display none
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue