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

De Wiki Gla
Ir para navegação Ir para pesquisar
Linha 2: Linha 2:
     display: inline-block;
     display: inline-block;
     position: relative;
     position: relative;
     width: 40px;
     width: 36px; /* ↓ menor que antes */
     height: 40px;
     height: 40px;
     margin: 0 4px;
     margin: 0 6px; /* ↑ aumenta espaçamento entre ícones */
     padding: 0;
     padding: 0;
     z-index: 5;
     z-index: 5;
     text-align: center; /* garante centralização do conteúdo */
     text-align: center;
}
}


Linha 22: Linha 22:
     left: 50%;
     left: 50%;
     transform: translateX(-50%);
     transform: translateX(-50%);
     width: 38px;
     min-width: 28px; /* ↓ mais estreito */
     text-align: center;
     text-align: center;
     font-size: 12px;
     font-size: 11px;
     font-weight: bold;
     font-weight: bold;
     padding: 2px 4px;
     padding: 2px 5px;
     color: #222;
     color: #222;
     background: #f2f2f2;
     background: #f2f2f2;
     border: 1px solid #ccc;
     border: 1px solid #ccc;
     border-radius: 4px;
     border-radius: 4px;
     box-shadow: 0 1px 2px rgba(0,0,0,0.2);
     box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
     line-height: 1;
     line-height: 1;
     white-space: nowrap;
     white-space: nowrap;
     z-index: 2;
     z-index: 2;
     transition: box-shadow 0.15s ease, background 0.15s ease;
     transition: background 0.2s ease;
}
}


.item-wrapper:hover .item-count {
.item-wrapper:hover .item-count {
     background: #e6e6e6; /* só um pouco mais escuro */
     background: #e6e6e6;
     border-color: #bbb;
     border-color: #bbb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
}



Edição das 18h47min de 11 de junho de 2025

.item-wrapper {
    display: inline-block;
    position: relative;
    width: 36px; /* ↓ menor que antes */
    height: 40px;
    margin: 0 6px; /* ↑ aumenta espaçamento entre ícones */
    padding: 0;
    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;
}