Olá,
Segue os códigos do rastreio
Rodapé
Todas as páginas
CSS
.row-fluid .canais-contato.span9 {
width: fit-content;
}
@media (min-width: 768px) and (max-width: 979px){
.row-fluid .canais-contato.span9 {
width: fit-content;
}
}
@media (min-width: 1200px){
.row-fluid .canais-contato.span9 {
width: fit-content;
}
}
.li {}.rastreio-content {
left: 140px;
}
Rodapé
Todas as páginas
Html
<style>
li {}.rastreio-content {
position: absolute;
background: rgb(255 252 252);
z-index: 999;
padding: 10px;
text-align: center;
border-radius: 0px;
border: 1px solid rgba(228, 228, 228, 0.59);
display: none;
box-shadow: 0 7px 15px rgba(0, 0, 0, 0.07);
margin-top: 5px;
}
.rastreio-btn {
cursor: pointer;
background: rgba(255, 255, 255, 0);
width: 150px;
height: 31px;
width: auto !important;
}
.rastreio-content > p:hover {
color: black;
}
.rastreio-topo {
color: white;
text-align: center;
width: 140px;
font-weight: bolder;
height: 24px;
font-size: 10.4px;
text-transform: uppercase;
margin-left: -2px;
top: 5px;
position: relative;
}
.rastreio-topo:hover {
color: white;
text-align: center;
width: 140px;
height: 24px;
font-size: 10.4px;
text-transform: uppercase;
margin-left: -2px;
top: 5px;
text-decoration: underline;
position: relative;
}
.rastreio-topo i,
.atd-inicial i {
font-size: 16px;
color: white;
margin-right: 6px;
}
.rastreio-topo i:hover,
.atd-inicial i:hover {
font-size: 16px;
color: white;
margin-right: 6px;
}
.rastreio-content p {
font-size: 10.7px;
font-weight: bolder;
text-transform: uppercase;
letter-spacing: 1px;
color: black;
}
.rastreio-content h1 {
font-size: 32px;
color: black;
}
#OrderTracking, #OrderTrackingM {
width: 160px;
color: black;
border: 0;
box-shadow: none;
background-color: rgba(245, 245, 245, 0);
box-shadow: inset 0px 0px 0px 1px rgb(204, 204, 204) !important;
border-radius: 0px;
}
.rastreio {
background: green;
margin-top: -10px;
padding: 3px 5px 5px 5px;
border-radius: 3px;
font-size: 11px;
border-radius: 0px;
margin-left: 5px;
color: white;
font-weight: bolder;
}
.rastreio:hover {
background: green;
color: white!important;
}
</style>
<script>
$(function(){
$('.barra-inicial .lista-redes').before(
`<div class="rastreio-btn span1">
<li class="rastreio-topo"><i class="fa fa-truck"></i>Rastreio Rápido</li>
<div class="rastreio-content">
<p>Digite o código de rastreio</p>
<input type="text" name="OrderTracking" id="OrderTracking">
<button type="submit" class="rastreio">ACESSAR</button>
</div>
</div>`
);
$('.icon-home').before(
`<a class="icon-truck"> </a>
<div class="rastreio-content" style="display: none;">
<p>Digite o código de rastreio</p>
<input type="text" name="OrderTrackingM" id="OrderTrackingM">
<button type="submit" class="rastreio">ACESSAR</button>
</div>`
);
$(".rastreio").click(
function() {
var numerosro = document.getElementById('OrderTracking').value;
window.open('https://melhorrastreio.com.br'+numerosro,'_blank');
}
);
$('.rastreio-btn').hover(
function () {
$('.rastreio-content').fadeIn(400).show();
},
function(){
$('.rastreio-content').fadeOut(400).hide();
}
);
var _rc_show;
$('.icon-truck').click(
function () {
if (_rc_show){
$('.rastreio-content').fadeOut(400).hide();
_rc_show = false;
} else {
$('.rastreio-content').fadeIn(400).show();
_rc_show = true;
}
});
});
</script>
Código para alterar a logo
Cabeçalho
Todas as páginas
CSS
.logo a img {
max-height: 80%;
}
@media only screen and (max-width: 767px){
body.pagina-carrinho.carrinho-checkout div#cabecalho > .conteiner > .row-fluid:first-child .span3 {
position: relative;
z-index: 1000;
top: 10px;
width: 100px;
left: 0;
right: 0;
margin: auto;
}
body:not(.pagina-carrinho.carrinho-checkout) div#cabecalho > .conteiner > .row-fluid:first-child .span3 {
position: fixed;
z-index: 1000;
top: 14px;
width: 60px;
left: -webkit-calc(23% - 40px);
left: -moz-calc(23% - 40px);
left: calc(23% - 40px);
margin: none;
}
Cabeçalho
Todas as páginas
Javascript
jQuery(documento).ready(function (a){
if (a(".menu.superior").length) {
var content = jQuery(".menu.superior").html();
jQuery('#barraTopo .conteiner .row-fluid').html('<div class="menu superior">' + content + ' </div>');
}
if (a(".menu.superior").length) {
var content = jQuery(".menu.superior").html();
jQuery('#barraTopo .conteiner .row-fluid').html('<div class="menu superior">'+content+'</div>');
}
});