Mudanças entre as edições de "Predefinição:Reward/styles.css"
Ir para navegação
Ir para pesquisar
| Linha 7: | Linha 7: | ||
content: attr(data-tooltip); | content: attr(data-tooltip); | ||
position: absolute; | position: absolute; | ||
top: 50%; | |||
top: | |||
left: 100%; | left: 100%; | ||
transform: | transform: translate(10px, -50%); | ||
background: #2c2c2c; | background: #2c2c2c; | ||
color: #fff; | color: #fff; | ||
| Linha 21: | Linha 20: | ||
white-space: nowrap; | white-space: nowrap; | ||
z-index: 999; | z-index: 999; | ||
} | } | ||
.item-wrapper[data-tooltip]:hover::before { | .item-wrapper[data-tooltip]:hover::before { | ||
content: ""; | content: ""; | ||
position: absolute; | position: absolute; | ||
top: 50%; | |||
left: | left: calc(100% + 1px); | ||
transform: | transform: translateY(-50%); | ||
border: 6px solid transparent; | border: 6px solid transparent; | ||
border- | border-left-color: #2c2c2c; | ||
z-index: 998; | z-index: 998; | ||
} | } | ||
Edição das 20h53min de 8 de junho de 2025
.item-wrapper {
position: relative;
z-index: 5;
}
.item-wrapper[data-tooltip]:hover::after {
content: attr(data-tooltip);
position: absolute;
top: 50%;
left: 100%;
transform: translate(10px, -50%);
background: #2c2c2c;
color: #fff;
padding: 8px 10px;
font-size: 13px;
font-weight: bold;
border-radius: 6px;
box-shadow: 0 2px 6px rgba(0,0,0,0.3);
max-width: 220px;
white-space: nowrap;
z-index: 999;
}
.item-wrapper[data-tooltip]:hover::before {
content: "";
position: absolute;
top: 50%;
left: calc(100% + 1px);
transform: translateY(-50%);
border: 6px solid transparent;
border-left-color: #2c2c2c;
z-index: 998;
}
.reward-wrapper {
display: inline-block;
margin: 8px 0;
font-family: Arial, sans-serif;
}
.reward-title {
font-weight: bold;
font-size: 16px;
text-transform: uppercase;
color: #444;
margin-bottom: 4px;
}
.reward-items {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
}
.item-wrapper {
display: inline-block;
position: relative;
margin: 0 4px;
overflow: visible;
}
.item-wrapper img {
vertical-align: bottom;
}
.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);
}