Predefinição:Itemdata/styles.css
Ir para navegação
Ir para pesquisar
.item-wrapper {
display: inline-block;
position: relative;
width: 40px;
height: 40px;
margin: 0 4px;
padding: 0;
z-index: 5;
text-align: center; /* garante centralização do conteúdo */
}
.item-wrapper img {
width: 32px;
height: 32px;
display: block;
margin: 0 auto;
}
.item-count {
position: absolute;
bottom: -2px;
left: 50%;
transform: translateX(-50%);
width: 38px;
text-align: center;
font-size: 12px;
font-weight: bold;
padding: 2px 4px;
color: #222;
background: #f2f2f2;
border: 1px solid #ccc;
border-radius: 4px;
box-shadow: 0 1px 2px rgba(0,0,0,0.2);
line-height: 1;
white-space: nowrap;
z-index: 2;
transition: box-shadow 0.15s ease, background 0.15s ease;
}
.item-wrapper:hover .item-count {
background: #e6e6e6; /* só um pouco mais escuro */
border-color: #bbb;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
/* Tooltip */
.item-wrapper[data-tooltip]:hover::after {
content: attr(data-tooltip);
position: absolute;
bottom: calc(100% + 8px);
left: 50%;
transform: translateX(-50%);
background: #2c2c2c;
color: #fff;
padding: 2px 5px;
font-size: 13px;
font-weight: bold;
border-radius: 4px;
white-space: nowrap;
z-index: 9999;
}
.item-wrapper[data-tooltip]:hover::before {
content: "";
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
border-width: 8px 8px 0 8px;
border-style: solid;
border-color: #2c2c2c transparent transparent transparent;
z-index: 9998;
}