Mudanças entre as edições de "Widget:Teste"

De Wiki Gla
Ir para navegação Ir para pesquisar
m
m
Linha 3: Linha 3:
         display: flex;
         display: flex;
         flex-wrap: wrap;
         flex-wrap: wrap;
         gap: 16px;
         gap: 10px;
         padding: 16px 0;
         padding: 12px 0;
        justify-content: center;
     }
     }


Linha 12: Linha 13:
         border-radius: 8px;
         border-radius: 8px;
         text-align: center;
         text-align: center;
         padding: 20px 16px;
         padding: 12px 10px;
         width: calc(25% - 12px);
         width: 120px;
        min-width: 120px;
         box-sizing: border-box;
         box-sizing: border-box;
        text-decoration: none;
         display: flex;
         display: flex;
         flex-direction: column;
         flex-direction: column;
         align-items: center;
         align-items: center;
         gap: 8px;
         gap: 4px;
         transition: transform 0.15s, box-shadow 0.15s;
         transition: transform 0.15s, box-shadow 0.15s;
         color: inherit;
         color: inherit;
Linha 26: Linha 27:


     .island-card:hover {
     .island-card:hover {
         transform: translateY(-3px);
         transform: translateY(-2px);
         box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 16px;
         box-shadow: rgba(0, 0, 0, 0.35) 0px 4px 12px;
     }
     }


Linha 35: Linha 36:


     .island-card .island-img img {
     .island-card .island-img img {
         width: 150px;
         width: 100px;
         height: 150px;
         height: 100px;
         object-fit: contain;
         object-fit: contain;
         pointer-events: none;
         pointer-events: none;
Linha 42: Linha 43:


     .island-card .island-name {
     .island-card .island-name {
         font-size: 1.05em;
         font-size: 0.9em;
         font-weight: bold;
         font-weight: bold;
         color: #000;
         color: #000;
         pointer-events: none;
         pointer-events: none;
        line-height: 1.2;
        word-break: break-word;
     }
     }


     .island-card .island-chests {
     .island-card .island-chests {
         display: flex;
         display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 8px;
        pointer-events: none;
    }
    .island-card .island-chest-group {
        position: relative;
        display: inline-flex;
        flex-direction: column;
         align-items: center;
         align-items: center;
        gap: 4px;
        font-weight: bold;
        font-size: 1em;
        color: #000;
        pointer-events: none;
     }
     }


     @media (max-width: 900px) {
     .island-card .island-chest-group img {
        .island-card {
        width: 32px;
            width: calc(33.333% - 11px);
        height: 32px;
         }
        object-fit: contain;
        display: block;
    }
 
    /* Estilo da quantidade (igual itemdata.css) */
    .island-card .island-chest-count {
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        font-weight: bold;
        color: #fff;
        background: rgba(0, 0, 0, 0.75);
        padding: 1px 4px;
        border-radius: 4px;
        line-height: 1;
        white-space: nowrap;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
         z-index: 10;
     }
     }


     @media (max-width: 600px) {
     @media (max-width: 600px) {
         .island-card {
         .island-card {
             width: calc(50% - 8px);
             width: 100px;
            min-width: 100px;
            padding: 10px 8px;
         }
         }


         .island-card .island-img img {
         .island-card .island-img img {
             width: 100px;
             width: 80px;
             height: 100px;
             height: 80px;
        }
 
        .island-card .island-name {
            font-size: 0.85em;
        }
 
        .island-card .island-chest-group img {
            width: 28px;
            height: 28px;
         }
         }
    }


    @media (max-width: 360px) {
         .island-card .island-chest-count {
         .island-card {
             font-size: 11px;
             width: 100%;
            bottom: -8px;
         }
         }
     }
     }

Edição das 22h44min de 12 de março de 2026

<style>

   .island-grid {
       display: flex;
       flex-wrap: wrap;
       gap: 10px;
       padding: 12px 0;
       justify-content: center;
   }
   .island-card {
       background: #eeeded;
       box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 10px;
       border-radius: 8px;
       text-align: center;
       padding: 12px 10px;
       width: 120px;
       min-width: 120px;
       box-sizing: border-box;
       display: flex;
       flex-direction: column;
       align-items: center;
       gap: 4px;
       transition: transform 0.15s, box-shadow 0.15s;
       color: inherit;
       cursor: pointer;
   }
   .island-card:hover {
       transform: translateY(-2px);
       box-shadow: rgba(0, 0, 0, 0.35) 0px 4px 12px;
   }
   .island-card:visited {
       color: inherit;
   }
   .island-card .island-img img {
       width: 100px;
       height: 100px;
       object-fit: contain;
       pointer-events: none;
   }
   .island-card .island-name {
       font-size: 0.9em;
       font-weight: bold;
       color: #000;
       pointer-events: none;
       line-height: 1.2;
       word-break: break-word;
   }
   .island-card .island-chests {
       display: flex;
       align-items: flex-end;
       justify-content: center;
       gap: 8px;
       pointer-events: none;
   }
   .island-card .island-chest-group {
       position: relative;
       display: inline-flex;
       flex-direction: column;
       align-items: center;
   }
   .island-card .island-chest-group img {
       width: 32px;
       height: 32px;
       object-fit: contain;
       display: block;
   }
   /* Estilo da quantidade (igual itemdata.css) */
   .island-card .island-chest-count {
       position: absolute;
       bottom: -10px;
       left: 50%;
       transform: translateX(-50%);
       font-size: 12px;
       font-weight: bold;
       color: #fff;
       background: rgba(0, 0, 0, 0.75);
       padding: 1px 4px;
       border-radius: 4px;
       line-height: 1;
       white-space: nowrap;
       box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
       z-index: 10;
   }
   @media (max-width: 600px) {
       .island-card {
           width: 100px;
           min-width: 100px;
           padding: 10px 8px;
       }
       .island-card .island-img img {
           width: 80px;
           height: 80px;
       }
       .island-card .island-name {
           font-size: 0.85em;
       }
       .island-card .island-chest-group img {
           width: 28px;
           height: 28px;
       }
       .island-card .island-chest-count {
           font-size: 11px;
           bottom: -8px;
       }
   }

</style> <script>

   (function () {
       function initClickable() {
           document.querySelectorAll('.island-card[data-href]').forEach(function (el) {
               if (el._icClick) return;
               el._icClick = true;
               el.addEventListener('click', function () {
                   var href = el.getAttribute('data-href');
                   if (href) window.location.href = href;
               });
               el.addEventListener('keydown', function (e) {
                   if (e.key === 'Enter' || e.key === ' ') {
                       e.preventDefault();
                       var href = el.getAttribute('data-href');
                       if (href) window.location.href = href;
                   }
               });
           });
       }
       if (document.readyState === 'loading') {
           document.addEventListener('DOMContentLoaded', initClickable);
       } else {
           initClickable();
       }
   })();

</script>