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

De Wiki Gla
Ir para navegação Ir para pesquisar
m
 
(249 revisões intermediárias por 3 usuários não estão sendo mostradas)
Linha 1: Linha 1:
<style>
<style>
.index-container {
    .island-grid {
    display: flex;
        display: flex;
    flex-wrap: wrap;
        flex-wrap: wrap;
    justify-content: space-between;
        justify-content: center;
    font-family: Verdana, Arial, Helvetica, sans-serif;
        gap: 10px;
}
        padding: 12px 0;
    }


.index-section {
    .island-banner {
    flex: 1 1 45%;
        position: relative;
    min-width: 300px;
        width: 380px;
    margin: 5px 0;
        height: 90px;
}
        overflow: hidden;
        border-radius: 8px;
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 10px;
        cursor: pointer;
        transition: transform 0.15s, box-shadow 0.15s;
        display: block;
        box-sizing: border-box;
    }


.index-title {
    .island-banner::before {
    display: flex;
        content: "";
    align-items: center;
        position: absolute;
    border-bottom: 1px dashed #aaa;
        top: 0;
    margin-bottom: 5px;
        left: 0;
    font-weight: bold;
        right: 0;
    font-size: 16px;
        bottom: 0;
}
        background: linear-gradient(105deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.1) 70%, transparent 100%);
        pointer-events: none;
        z-index: 1;
    }


.index-title img {
    .island-banner:hover {
    width: 32px;
        transform: translateY(-2px);
    height: 32px;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 4px 12px;
     margin-right: 8px;
     }
}


.index-links {
    .island-banner .island-chests {
    line-height: 1.6;
        position: absolute;
    margin-bottom: 10px;
        top: 8px;
}
        left: 8px;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        z-index: 2;
        pointer-events: none;
    }


.index-links span.separator {
    .island-banner .island-chest-group {
    margin: 0 4px;
        position: relative;
    color: #aaa;
        display: inline-block;
}
    }


@media (max-width: 768px) {
    .island-banner .island-chest-group img {
    .index-container {
         display: block;
         flex-direction: column;
        width: auto;
    }
         height: auto;
    .index-section {
         min-width: 100%;
     }
     }
    .island-banner .island-chest-count {
    position: absolute;
    left: 0;          /* era right: 0 */
    bottom: 0;
    font-size: 12.5px;  /* era 11px */
    font-weight: bold;
    color: #fff;
    background: rgba(0, 0, 0, 0.75);
    padding: 1px 3px;
    border-radius: 3px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 10;
}
}
</style>


<div class="index-container">
    .island-banner .island-title {
        position: absolute;
        bottom: 10px;
        left: 8px;
        font-size: 1.35em;
        font-weight: bold;
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
        line-height: 1.2;
        z-index: 2;
        pointer-events: none;
        text-transform: uppercase;
    }


     <div class="index-section">
     @media (max-width: 768px) {
         <div class="index-title">
         .island-grid {
             <img src="https://wiki.gla.com.br/images/Gold_medal.gif" alt="">
             flex-direction: column;
             Grand Line Adventures
             align-items: stretch;
        </div>
         }
        <div class="index-links">
            [[Download]] · [[Suporte]] · [[Doações]] · [[Benefícios VIP]] · [[Revendedores Oficiais]] · [[Criadores de Conteúdo]] · [[Redes Sociais]]
         </div>
    </div>


    <div class="index-section">
         .island-banner {
         <div class="index-title">
             width: 100%;
             <img src="https://wiki.gla.com.br/images/Gold_medal.gif" alt="">
             max-width: none;
             Informações Gerais
         }
         </div>
    }
        <div class="index-links">
</style>
             [[Baús de Personagens]] · [[Tier e Estrelas]] · [[Perfil e Ranking]] · [[Experiência]] · [[Login Diário]] · [[Loja de Gemas]] · [[Skins]]
<script>
        </div>
    (function () {
    </div>
        function applyBackgrounds() {
 
             document.querySelectorAll('.island-banner[data-bgimg]').forEach(function (el) {
    <div class="index-section">
                var filename = el.getAttribute('data-bgimg');
        <div class="index-title">
                if (!filename) return;
            <img src="https://wiki.gla.com.br/images/Gold_medal.gif" alt="">
                var url;
            Sistemas
                if (typeof mw !== 'undefined' && mw.util && mw.util.getUrl) {
        </div>
                    url = mw.util.getUrl('Especial:FilePath/' + filename);
        <div class="index-links">
                } else {
            [[Sistema de Indicação]] · [[Melhoria de Equipamentos]] · [[Black Market]] · [[Den-Den TV]] · [[Navegação]] · [[PvP]]
                    url = '/index.php?title=Especial:FilePath/' + encodeURIComponent(filename);
        </div>
                }
    </div>
                el.style.backgroundImage = 'url(' + url + ')';
 
                el.style.backgroundSize = 'cover';
    <div class="index-section">
                el.style.backgroundPosition = 'center';
        <div class="index-title">
                el.style.backgroundRepeat = 'no-repeat';
            <img src="https://wiki.gla.com.br/images/Gold_medal.gif" alt="">
             });
             Configurações e Segurança
         }
         </div>
         function initClickable() {
         <div class="index-links">
             document.querySelectorAll('.island-banner[data-href]').forEach(function (el) {
             [[Configuração de Atalhos]] · [[Autorização de Máquina]] · [[Problemas de Conexão]] · [[Quick Cast]]
                if (el._icClick) return;
        </div>
                el._icClick = true;
    </div>
                el.setAttribute('role', 'link');
 
                el.setAttribute('tabindex', '0');
    <div class="index-section">
                el.addEventListener('click', function () {
        <div class="index-title">
                    var href = el.getAttribute('data-href');
            <img src="https://wiki.gla.com.br/images/Gold_medal.gif" alt="">
                    if (href) window.location.href = href;
             Eventos Globais
                });
         </div>
                el.addEventListener('keydown', function (e) {
         <div class="index-links">
                    if (e.key === 'Enter' || e.key === ' ') {
             [[Foxy Quiz]] · [[Foxy Race]] · [[Deathmatch]] · [[Foxy Memory]] · [[Foxy Count]]
                        e.preventDefault();
         </div>
                        var href = el.getAttribute('data-href');
    </div>
                        if (href) window.location.href = href;
 
                    }
    <div class="index-section">
                });
         <div class="index-title">
             });
            <img src="https://wiki.gla.com.br/images/Gold_medal.gif" alt="">
         }
             Eventos Temporários
         function run() {
        </div>
            applyBackgrounds();
         <div class="index-links">
             initClickable();
             [[3D2Y]] · [[Summer]] · [[Halloween]] · [[Easter]] · [[Germa 66]] · [[Freedom]] · [[Fist of Love]]
         }
         </div>
         if (document.readyState === 'loading') {
     </div>
             document.addEventListener('DOMContentLoaded', run);
 
         } else {
</div>
             run();
         }
     })();
</script>

Edição atual tal como às 00h06min de 13 de março de 2026

<style>

   .island-grid {
       display: flex;
       flex-wrap: wrap;
       justify-content: center;
       gap: 10px;
       padding: 12px 0;
   }
   .island-banner {
       position: relative;
       width: 380px;
       height: 90px;
       overflow: hidden;
       border-radius: 8px;
       box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 10px;
       cursor: pointer;
       transition: transform 0.15s, box-shadow 0.15s;
       display: block;
       box-sizing: border-box;
   }
   .island-banner::before {
       content: "";
       position: absolute;
       top: 0;
       left: 0;
       right: 0;
       bottom: 0;
       background: linear-gradient(105deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.1) 70%, transparent 100%);
       pointer-events: none;
       z-index: 1;
   }
   .island-banner:hover {
       transform: translateY(-2px);
       box-shadow: rgba(0, 0, 0, 0.35) 0px 4px 12px;
   }
   .island-banner .island-chests {
       position: absolute;
       top: 8px;
       left: 8px;
       display: flex;
       flex-wrap: wrap;
       gap: 6px;
       z-index: 2;
       pointer-events: none;
   }
   .island-banner .island-chest-group {
       position: relative;
       display: inline-block;
   }
   .island-banner .island-chest-group img {
       display: block;
       width: auto;
       height: auto;
   }
   .island-banner .island-chest-count {
   position: absolute;
   left: 0;          /* era right: 0 */
   bottom: 0;
   font-size: 12.5px;  /* era 11px */
   font-weight: bold;
   color: #fff;
   background: rgba(0, 0, 0, 0.75);
   padding: 1px 3px;
   border-radius: 3px;
   line-height: 1;
   white-space: nowrap;
   box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
   z-index: 10;

}

   .island-banner .island-title {
       position: absolute;
       bottom: 10px;
       left: 8px;
       font-size: 1.35em;
       font-weight: bold;
       color: #fff;
       text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
       line-height: 1.2;
       z-index: 2;
       pointer-events: none;
       text-transform: uppercase;
   }
   @media (max-width: 768px) {
       .island-grid {
           flex-direction: column;
           align-items: stretch;
       }
       .island-banner {
           width: 100%;
           max-width: none;
       }
   }

</style> <script>

   (function () {
       function applyBackgrounds() {
           document.querySelectorAll('.island-banner[data-bgimg]').forEach(function (el) {
               var filename = el.getAttribute('data-bgimg');
               if (!filename) return;
               var url;
               if (typeof mw !== 'undefined' && mw.util && mw.util.getUrl) {
                   url = mw.util.getUrl('Especial:FilePath/' + filename);
               } else {
                   url = '/index.php?title=Especial:FilePath/' + encodeURIComponent(filename);
               }
               el.style.backgroundImage = 'url(' + url + ')';
               el.style.backgroundSize = 'cover';
               el.style.backgroundPosition = 'center';
               el.style.backgroundRepeat = 'no-repeat';
           });
       }
       function initClickable() {
           document.querySelectorAll('.island-banner[data-href]').forEach(function (el) {
               if (el._icClick) return;
               el._icClick = true;
               el.setAttribute('role', 'link');
               el.setAttribute('tabindex', '0');
               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;
                   }
               });
           });
       }
       function run() {
           applyBackgrounds();
           initClickable();
       }
       if (document.readyState === 'loading') {
           document.addEventListener('DOMContentLoaded', run);
       } else {
           run();
       }
   })();

</script>