Mudanças entre as edições de "Predefinição:Itemdata/styles.css"
Ir para navegação
Ir para pesquisar
(wqwwqeqw) |
|||
| Linha 3: | Linha 3: | ||
position: relative; | position: relative; | ||
width: 36px; | width: 36px; | ||
height: | height: 36px; | ||
margin: 0 6px; | margin: 0 6px; | ||
padding | padding: 0; | ||
text-align: center; | text-align: center; | ||
} | } | ||
.item-wrapper img { | .item-wrapper img { | ||
display: block; | display: block; | ||
margin: 0 auto; | margin: 0 auto; | ||
| Linha 20: | Linha 16: | ||
.item-count { | .item-count { | ||
position: absolute; | position: absolute; | ||
bottom: | bottom: 0; | ||
right: 0; | |||
font-size: 10px; | |||
font-size: | |||
font-weight: bold; | font-weight: bold; | ||
color: #fff; | |||
color: # | background: rgba(0, 0, 0, 0.75); | ||
background: | padding: 1px 4px; | ||
border-radius: 4px; | border-radius: 4px; | ||
line-height: 1; | line-height: 1; | ||
white-space: nowrap; | white-space: nowrap; | ||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); | |||
z-index: 10; | |||
} | } | ||
Edição das 18h53min de 11 de junho de 2025
.item-wrapper {
display: inline-block;
position: relative;
width: 36px;
height: 36px;
margin: 0 6px;
padding: 0;
text-align: center;
}
.item-wrapper img {
display: block;
margin: 0 auto;
}
.item-count {
position: absolute;
bottom: 0;
right: 0;
font-size: 10px;
font-weight: bold;
color: #fff;
background: rgba(0, 0, 0, 0.75);
padding: 1px 4px;
border-radius: 4px;
line-height: 1;
white-space: nowrap;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
z-index: 10;
}
.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;
}