Mudanças entre as edições de "Predefinição:Reward/styles.css"

De Wiki Gla
Ir para navegação Ir para pesquisar
Linha 1: Linha 1:
.item-wrapper {
    position: relative;
    z-index: 5;
}
.item-wrapper[data-tooltip]:hover::after {
.item-wrapper[data-tooltip]:hover::after {
     content: attr(data-tooltip);
     content: attr(data-tooltip);
Linha 12: Linha 17:
     box-shadow: 0 2px 6px rgba(0,0,0,0.3);
     box-shadow: 0 2px 6px rgba(0,0,0,0.3);
     max-width: 200px;
     max-width: 200px;
    min-width: 160px;
     text-align: left;
     text-align: left;
     line-height: 1.4;
     line-height: 1.4;
     white-space: normal;
     white-space: pre-line;
     z-index: 999;
     z-index: 999;
     display: block;
     display: block;
}
}


.item-wrapper[data-tooltip]:hover::before {
/* estilização do conteúdo do tooltip via JS-like split (simulação) */
.item-wrapper[data-tooltip]:hover::after {
     content: "";
     content: "";
    position: absolute;
    bottom: calc(120% - 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2c2c2c;
    z-index: 998;
}
}
 
.item-wrapper[data-tooltip]:hover::after {
    white-space: normal;
}
.item-wrapper[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    font-size: 12px;
}


.reward-wrapper {
.reward-wrapper {

Edição das 20h42min 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;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c2c2c;
    color: #fff;
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    max-width: 200px;
    text-align: left;
    line-height: 1.4;
    white-space: pre-line;
    z-index: 999;
    display: block;
}

/* estilização do conteúdo do tooltip via JS-like split (simulação) */
.item-wrapper[data-tooltip]:hover::after {
    content: "";
}
.item-wrapper[data-tooltip]:hover::after {
    white-space: normal;
}
.item-wrapper[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    font-size: 12px;
}

.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);
}