DG IZ photo spacing now works

This commit is contained in:
ilya 2010-07-28 14:48:28 -07:00
parent 5723d91dae
commit 3f27e1f67d
4 changed files with 27 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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; }

View file

@ -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