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

De Wiki Gla
Ir para navegação Ir para pesquisar
Linha 27: Linha 27:
     line-height: 1;
     line-height: 1;
     white-space: nowrap;
     white-space: nowrap;
     text-align: center;
     text-align: right;
     box-shadow: 0 0 2px #000;
     box-shadow: 0 0 2px #000;
     max-width: 100%;
     max-width: 100%; /* <-- ESSENCIAL */
     overflow: hidden;
     overflow: hidden;
     text-overflow: ellipsis;
     text-overflow: ellipsis;

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

.item-wrapper {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 4px;
    padding: 0;
    z-index: 5;
}

.item-wrapper img {
    display: block;
    margin: 0 auto;
}

/* Quantidade no canto inferior direito, sem rotação */
.item-count {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 11px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1;
    white-space: nowrap;
    text-align: right;
    box-shadow: 0 0 2px #000;
    max-width: 100%; /* <-- ESSENCIAL */
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

.item-wrapper:hover .item-count {
    background: rgba(0, 0, 0, 0.9);
}