1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 09:56:51 +01: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(); photoGrid.init();
siteNavigation.init(); siteNavigation.init();
siteEffects.init();
}); });
$(window).load( AfterLoad = function() { $(window).load( AfterLoad = function() {
infiniteScroll.init(); infiniteScroll.init();
siteEffects.init();
}); });
@ -159,6 +159,9 @@ var siteEffects = {
$('.hmedia img').imagesLoaded( function(){ $('.hmedia img').imagesLoaded( function(){
$.adaptiveBackground.run(opts) $.adaptiveBackground.run(opts)
}); });
// jump to photo background start
$(document).scrollTop($('#main').offset().top);
}, },
socialiteButtons: function() { socialiteButtons: function() {
@ -169,7 +172,7 @@ var siteEffects = {
}, },
init: function(){ init: function(){
if ( $('.page-single').length > 0 ) { if ( $('.page-single .format-photo').length > 0 ) {
this.adaptiveBackground(); this.adaptiveBackground();
} }
this.socialiteButtons(); this.socialiteButtons();

View File

@ -159,6 +159,14 @@
.page-single & { .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 { figcaption {
opacity: 1; opacity: 1;
.translate(0,0); .translate(0,0);