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();
|
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();
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user