1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-28 16:48:00 +02:00

photo background refinements

This commit is contained in:
Matthias Kretschmann 2013-12-16 01:41:20 +01:00
parent d33473e50a
commit 07fb6564f4
2 changed files with 13 additions and 2 deletions

View File

@ -3,13 +3,13 @@ $(ASAP = function(){
photoGrid.init();
siteNavigation.init();
siteEffects.init();
});
$(window).load( AfterLoad = function() {
infiniteScroll.init();
siteEffects.init();
});
@ -159,6 +159,9 @@ var siteEffects = {
$('.hmedia img').imagesLoaded( function(){
$.adaptiveBackground.run(opts)
});
// jump to photo background start
$(document).scrollTop($('#main').offset().top);
},
socialiteButtons: function() {
@ -169,7 +172,7 @@ var siteEffects = {
},
init: function(){
if ( $('.page-single').length > 0 ) {
if ( $('.page-single .format-photo').length > 0 ) {
this.adaptiveBackground();
}
this.socialiteButtons();

View File

@ -159,6 +159,14 @@
.page-single & {
padding-top: @line-height-computed*2;
padding-bottom: @line-height-computed*3;
@media @breakpoint2 {
padding-top: @line-height-computed*4;
padding-bottom: @line-height-computed*6;
}
figcaption {
opacity: 1;
.translate(0,0);