Merge pull request #592 from tiwariav/bugfix/dcl_cms_section_iamge_caption

Bugfix/ dcl cms section image caption
This commit is contained in:
Arvind Tiwari 2018-03-22 00:59:30 +05:30 committed by GitHub
commit 7ef37de084
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View file

@ -549,6 +549,7 @@ textarea {
padding-top: 20px; padding-top: 20px;
display: inline-block; display: inline-block;
color: #999 !important; color: #999 !important;
word-break: break-all;
} }
.price-calc-section .card { .price-calc-section .card {

View file

@ -107,10 +107,14 @@
var href = $(this).attr('href'); var href = $(this).attr('href');
$('.navbar-collapse').removeClass('in'); $('.navbar-collapse').removeClass('in');
$('.navbar-collapse').addClass('collapsing'); $('.navbar-collapse').addClass('collapsing');
if ($(href).length) { if (href[0] === "#") {
$('html, body').animate({ if ($(href).length) {
scrollTop: $(href).offset().top - 50 $('html, body').animate({
}, 1000); scrollTop: $(href).offset().top - 50
}, 1000);
}
} else if (href) {
window.location = href;
} }
}); });
} }