Mudanças entre as edições de "Predefinição:Itemdata/styles.css"
Ir para navegação
Ir para pesquisar
(Criou página com '.item-wrapper { position: relative; z-index: 5; } .item-wrapper[data-tooltip]:hover::after { content: attr(data-tooltip); position: absolute; bottom: calc...') |
|||
| Linha 1: | Linha 1: | ||
.item-wrapper { | .item-wrapper { | ||
position: relative; | position: relative; | ||
display: inline-block; | |||
margin: 0 4px; | |||
overflow: visible; | |||
z-index: 5; | z-index: 5; | ||
} | |||
.item-wrapper img { | |||
vertical-align: bottom; | |||
} | } | ||
| Linha 30: | Linha 37: | ||
border-color: #2c2c2c transparent transparent transparent; | border-color: #2c2c2c transparent transparent transparent; | ||
z-index: 9998; | z-index: 9998; | ||
} | |||
.item-count { | |||
position: absolute; | |||
bottom: -4px; | |||
right: -4px; | |||
font-size: 10px; | |||
font-weight: bold; | |||
background: rgba(0, 0, 0, 0.75); | |||
color: white; | |||
padding: 1px 4px; | |||
border-radius: 4px; | |||
line-height: 1; | |||
box-shadow: 0 0 2px #000; | |||
white-space: nowrap; | |||
z-index: 2; | |||
} | |||
.item-wrapper:hover .item-count { | |||
background: rgba(0, 0, 0, 0.9); | |||
} | } | ||
Edição das 23h47min de 8 de junho de 2025
.item-wrapper {
position: relative;
display: inline-block;
margin: 0 4px;
overflow: visible;
z-index: 5;
}
.item-wrapper img {
vertical-align: bottom;
}
.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;
}
.item-count {
position: absolute;
bottom: -4px;
right: -4px;
font-size: 10px;
font-weight: bold;
background: rgba(0, 0, 0, 0.75);
color: white;
padding: 1px 4px;
border-radius: 4px;
line-height: 1;
box-shadow: 0 0 2px #000;
white-space: nowrap;
z-index: 2;
}
.item-wrapper:hover .item-count {
background: rgba(0, 0, 0, 0.9);
}