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

De Wiki Gla
Ir para navegação Ir para pesquisar
m
 
(250 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: 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;
    }


.index-section {
    .island-banner::before {
    flex: 1 1 45%;
        content: "";
    min-width: 300px;
        position: absolute;
    margin: 10px 0;
        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;
    }


.index-title {
    .island-banner:hover {
    display: flex;
        transform: translateY(-2px);
    align-items: center;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 4px 12px;
    border-bottom: 1px dashed #aaa;
     }
    padding-bottom: 5px;
    margin-bottom: 8px;
    font-weight: bold;
     font-size: 16px;
}


.index-title img {
    .island-banner .island-chests {
    width: 32px;
        position: absolute;
    height: 32px;
        top: 8px;
    margin-right: 8px;
        left: 8px;
}
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        z-index: 2;
        pointer-events: none;
    }


.index-links {
    .island-banner .island-chest-group {
    line-height: 1.6;
        position: relative;
}
        display: inline-block;
    }


.index-links a {
    .island-banner .island-chest-group img {
    text-decoration: none;
        display: block;
}
        width: auto;
        height: auto;
    }


.index-links span.separator {
    .island-banner .island-chest-count {
     margin: 0 4px;
     position: absolute;
     color: #aaa;
    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;
}
}


@media (max-width: 768px) {
    .island-banner .island-title {
    .index-container {
        position: absolute;
         flex-direction: column;
        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;
     }
     }
     .index-section {
 
         min-width: 100%;
     @media (max-width: 768px) {
        .island-grid {
            flex-direction: column;
            align-items: stretch;
        }
 
         .island-banner {
            width: 100%;
            max-width: none;
        }
     }
     }
}
</style>
</style>
 
<script>
<div class="index-container">
     (function () {
 
         function applyBackgrounds() {
     <div class="index-section">
             document.querySelectorAll('.island-banner[data-bgimg]').forEach(function (el) {
         <div class="index-title">
                var filename = el.getAttribute('data-bgimg');
             <img src="https://wiki.gla.com.br/images/Gold_medal.gif" alt="">
                if (!filename) return;
            Grand Line Adventures
                var url;
        </div>
                if (typeof mw !== 'undefined' && mw.util && mw.util.getUrl) {
        <div class="index-links">
                    url = mw.util.getUrl('Especial:FilePath/' + filename);
            <a href="/Download">Download</a><span class="separator">·</span>
                } else {
            <a href="/Suporte">Suporte</a><span class="separator">·</span>
                    url = '/index.php?title=Especial:FilePath/' + encodeURIComponent(filename);
            <a href="/Doações">Doações</a><span class="separator">·</span>
                }
            <a href="/Benefícios_VIP">Benefícios VIP</a><span class="separator">·</span>
                el.style.backgroundImage = 'url(' + url + ')';
            <a href="/Revendedores_Oficiais">Revendedores Oficiais</a><span class="separator">·</span>
                el.style.backgroundSize = 'cover';
            <a href="/Criadores_de_Conteúdo">Criadores de Conteúdo</a><span class="separator">·</span>
                el.style.backgroundPosition = 'center';
            <a href="/Redes_Sociais">Redes Sociais</a>
                el.style.backgroundRepeat = 'no-repeat';
        </div>
             });
    </div>
         }
 
         function initClickable() {
    <div class="index-section">
             document.querySelectorAll('.island-banner[data-href]').forEach(function (el) {
        <div class="index-title">
                if (el._icClick) return;
            <img src="https://wiki.gla.com.br/images/Gold_medal.gif" alt="">
                el._icClick = true;
             Informações Gerais
                el.setAttribute('role', 'link');
         </div>
                el.setAttribute('tabindex', '0');
         <div class="index-links">
                el.addEventListener('click', function () {
             <a href="/Baús_de_Personagens">Baús de Personagens</a><span class="separator">·</span>
                    var href = el.getAttribute('data-href');
            <a href="/Tier_e_Estrelas">Tier e Estrelas</a><span class="separator">·</span>
                    if (href) window.location.href = href;
            <a href="/Perfil_e_Ranking">Perfil e Ranking</a><span class="separator">·</span>
                });
            <a href="/Experiência">Experiência</a><span class="separator">·</span>
                el.addEventListener('keydown', function (e) {
            <a href="/Login_Diário">Login Diário</a><span class="separator">·</span>
                    if (e.key === 'Enter' || e.key === ' ') {
            <a href="/Loja_de_Gemas">Loja de Gemas</a><span class="separator">·</span>
                        e.preventDefault();
            <a href="/Skins">Skins</a>
                        var href = el.getAttribute('data-href');
        </div>
                        if (href) window.location.href = href;
    </div>
                    }
 
                });
    <div class="index-section">
             });
        <div class="index-title">
         }
            <img src="https://wiki.gla.com.br/images/Gold_medal.gif" alt="">
         function run() {
            Sistemas
             applyBackgrounds();
        </div>
             initClickable();
        <div class="index-links">
         }
            <a href="/Sistema_de_Indicação">Sistema de Indicação</a><span class="separator">·</span>
         if (document.readyState === 'loading') {
            <a href="/Melhoria_de_Equipamentos">Melhoria de Equipamentos</a><span class="separator">·</span>
             document.addEventListener('DOMContentLoaded', run);
            <a href="/Black_Market">Black Market</a><span class="separator">·</span>
        } else {
            <a href="/Den-Den_TV">Den-Den TV</a><span class="separator">·</span>
             run();
            <a href="/Navegação">Navegação</a><span class="separator">·</span>
         }
            <a href="/PvP">PvP</a>
     })();
        </div>
</script>
    </div>
 
    <div class="index-section">
        <div class="index-title">
            <img src="https://wiki.gla.com.br/images/Gold_medal.gif" alt="">
            Configurações e Segurança
        </div>
        <div class="index-links">
            <a href="/Configuração_de_Atalhos">Configuração de Atalhos</a><span class="separator">·</span>
            <a href="/Autorização_de_Máquina">Autorização de Máquina</a><span class="separator">·</span>
            <a href="/Problemas_de_Conexão">Problemas de Conexão</a><span class="separator">·</span>
            <a href="/Quick_Cast">Quick Cast</a>
        </div>
    </div>
 
    <div class="index-section">
        <div class="index-title">
            <img src="https://wiki.gla.com.br/images/Gold_medal.gif" alt="">
            Eventos Globais
        </div>
        <div class="index-links">
            <a href="/Foxy_Quiz">Foxy Quiz</a><span class="separator">·</span>
            <a href="/Foxy_Race">Foxy Race</a><span class="separator">·</span>
            <a href="/Deathmatch">Deathmatch</a><span class="separator">·</span>
            <a href="/Foxy_Memory">Foxy Memory</a><span class="separator">·</span>
             <a href="/Foxy_Count">Foxy Count</a>
         </div>
    </div>
 
    <div class="index-section">
         <div class="index-title">
             <img src="https://wiki.gla.com.br/images/Gold_medal.gif" alt="">
             Eventos Temporários
         </div>
         <div class="index-links">
            <a href="/3D2Y">3D2Y</a><span class="separator">·</span>
             <a href="/Summer">Summer</a><span class="separator">·</span>
            <a href="/Halloween">Halloween</a><span class="separator">·</span>
             <a href="/Easter">Easter</a><span class="separator">·</span>
            <a href="/Germa_66">Germa 66</a><span class="separator">·</span>
            <a href="/Freedom">Freedom</a><span class="separator">·</span>
            <a href="/Fist_of_Love">Fist of Love</a>
         </div>
     </div>
 
</div>

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>