Fix home RWD
This commit is contained in:
@@ -771,4 +771,34 @@ article.product-miniature .discount-percentage.discount-percentage {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
#_desktop_contact_link_temp {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#nav-phone-numb {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin-left: 10px;
|
||||
-moz-column-gap: 5px;
|
||||
column-gap: 5px;
|
||||
height: 50px;
|
||||
}
|
||||
#nav-phone-numb i {
|
||||
font-size: 21px;
|
||||
}
|
||||
#nav-phone-numb a {
|
||||
color: #f57e20;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
footer#footer .footer-container .block-contact .hidden-sm-down {
|
||||
display: block !important;
|
||||
padding: 0.625rem;
|
||||
}
|
||||
footer#footer .footer-container .block-contact .hidden-md-up {
|
||||
display: none !important;
|
||||
}
|
||||
}/*# sourceMappingURL=custom.css.map */
|
||||
File diff suppressed because one or more lines are too long
@@ -838,3 +838,44 @@ article.product-miniature {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#_desktop_contact_link_temp {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#nav-phone-numb {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin-left: 10px;
|
||||
column-gap: 5px;
|
||||
height: 50px;
|
||||
|
||||
i {
|
||||
font-size: 21px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #f57e20;
|
||||
}
|
||||
}
|
||||
|
||||
footer#footer {
|
||||
@media (max-width: 767px) {
|
||||
.footer-container {
|
||||
.block-contact {
|
||||
.hidden-sm-down {
|
||||
display: block !important;
|
||||
padding: 0.625rem;
|
||||
|
||||
.block-contact-title {
|
||||
}
|
||||
}
|
||||
|
||||
.hidden-md-up {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,3 +49,66 @@ $(function () {
|
||||
$("#btn_continue_shopping").trigger("click")
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
$(function () {
|
||||
$(window).on("load", function () {
|
||||
let phoneBox = $("#_desktop_contact_link_temp").html();
|
||||
$('#nav-phone-numb').html(phoneBox);
|
||||
});
|
||||
});
|
||||
|
||||
$(function () {
|
||||
let originalParent = $("#st_banner_11").parent();
|
||||
let originalPosition = $("#st_banner_11").index();
|
||||
|
||||
function moveBanner() {
|
||||
let banner = $("#st_banner_11");
|
||||
let targetSection = $("#content-wrapper #content .blog.blocks.displayHome");
|
||||
|
||||
if ($(window).width() <= 767) {
|
||||
if (banner.parent().attr("id") !== "content") {
|
||||
banner.detach().insertBefore(targetSection);
|
||||
}
|
||||
} else {
|
||||
if (banner.parent().attr("id") !== originalParent.attr("id")) {
|
||||
if (originalPosition === 0) {
|
||||
originalParent.prepend(banner);
|
||||
} else {
|
||||
banner.detach().insertAfter(originalParent.children().eq(originalPosition - 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
moveBanner();
|
||||
$(window).on("resize", moveBanner);
|
||||
});
|
||||
|
||||
|
||||
$(function () {
|
||||
let originalParentCustomText = $("#custom-text").parent();
|
||||
let originalPositionCustomText = $("#custom-text").index();
|
||||
|
||||
function moveCustomText() {
|
||||
let customText = $("#custom-text");
|
||||
let banner = $("#st_banner_11");
|
||||
|
||||
if ($(window).width() <= 576) {
|
||||
if (customText.next("#st_banner_11").length === 0) {
|
||||
customText.detach().insertAfter(banner);
|
||||
}
|
||||
} else {
|
||||
if (customText.parent().attr("id") !== originalParentCustomText.attr("id")) {
|
||||
if (originalPositionCustomText === 0) {
|
||||
originalParentCustomText.prepend(customText);
|
||||
} else {
|
||||
customText.detach().insertAfter(originalParentCustomText.children().eq(originalPositionCustomText - 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
moveCustomText();
|
||||
|
||||
$(window).on("resize", moveCustomText);
|
||||
});
|
||||
Reference in New Issue
Block a user