Mudanças entre as edições de "Predefinição:Itemdata/styles.css"
Ir para navegação
Ir para pesquisar
| Linha 2: | Linha 2: | ||
display: inline-block; | display: inline-block; | ||
position: relative; | position: relative; | ||
width: 36px; | width: 36px; | ||
height: 40px; | height: 40px; | ||
margin: 0 6px; | margin: 0 6px; | ||
padding: | padding-bottom: 10px; /* 👈 aqui o truque */ | ||
z-index: 5; | z-index: 5; | ||
text-align: center; | text-align: center; | ||
} | } | ||
.item-wrapper img { | .item-wrapper img { | ||
Edição das 18h50min de 11 de junho de 2025
.item-wrapper {
display: inline-block;
position: relative;
width: 36px;
height: 40px;
margin: 0 6px;
padding-bottom: 10px; /* 👈 aqui o truque */
z-index: 5;
text-align: center;
}
.item-wrapper img {
width: 32px;
height: 32px;
display: block;
margin: 0 auto;
}
.item-count {
position: absolute;
bottom: -2px;
left: 50%;
transform: translateX(-50%);
min-width: 28px; /* ↓ mais estreito */
text-align: center;
font-size: 11px;
font-weight: bold;
padding: 2px 5px;
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: background 0.2s ease;
}
.item-wrapper:hover .item-count {
background: #e6e6e6;
border-color: #bbb;
}
/* 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;
}