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:
parent
d33473e50a
commit
07fb6564f4
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user