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

De Wiki Gla
Ir para navegação Ir para pesquisar
m
 
(218 revisões intermediárias por 3 usuários não estão sendo mostradas)
Linha 1: Linha 1:
<style>
<style>
.table-index {
    .island-grid {
  width: 100%;
        display: flex;
  border-spacing: 16px;
        flex-wrap: wrap;
  font-family: Verdana, Arial, Helvetica, sans-serif;
        justify-content: center;
  border-collapse: separate;
        gap: 10px;
}
        padding: 12px 0;
.index-cell {
    }
  vertical-align: top;
 
  width: 48%;
    .island-banner {
  padding: 12px;
        position: relative;
  background-color: #fdfdfd;
        width: 380px;
  border: 1px dashed #AAAAAA;
        height: 90px;
  border-radius: 8px;
        overflow: hidden;
}
        border-radius: 8px;
.index-title {
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 10px;
  display: flex;
        cursor: pointer;
  align-items: center;
        transition: transform 0.15s, box-shadow 0.15s;
  font-weight: bold;
        display: block;
  font-size: 15px;
        box-sizing: border-box;
  margin-bottom: 4px;
    }
}
 
.index-title img {
    .island-banner::before {
  width: 20px;
        content: "";
  height: 20px;
        position: absolute;
  margin-right: 6px;
        top: 0;
}
        left: 0;
.index-links {
        right: 0;
  font-size: 14px;
        bottom: 0;
  line-height: 1.6;
        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;
.index-links a {
        z-index: 1;
  color: #0366d6;
    }
  text-decoration: none;
 
  margin-right: 6px;
    .island-banner:hover {
}
        transform: translateY(-2px);
.index-links a:hover {
        box-shadow: rgba(0, 0, 0, 0.35) 0px 4px 12px;
  text-decoration: underline;
    }
 
    .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>
</style>
 
<script>
<table class="table-index">
    (function () {
<tr>
        function applyBackgrounds() {
  <td class="index-cell">
            document.querySelectorAll('.island-banner[data-bgimg]').forEach(function (el) {
    <div class="index-title">
                var filename = el.getAttribute('data-bgimg');
      <img src="/wiki/Arquivo:Gold_medal.gif" alt="Medalha" />
                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="/wiki/Download">Download</a> ·
                } else {
      <a href="/wiki/Suporte">Suporte</a> ·
                    url = '/index.php?title=Especial:FilePath/' + encodeURIComponent(filename);
      <a href="/wiki/Doações">Doações</a> ·
                }
      <a href="/wiki/Benefícios_VIP">Benefícios VIP</a> ·
                el.style.backgroundImage = 'url(' + url + ')';
      <a href="/wiki/Revendedores_Oficiais">Revendedores Oficiais</a> ·
                el.style.backgroundSize = 'cover';
      <a href="/wiki/Criadores_de_Conteúdo">Criadores de Conteúdo</a>
                el.style.backgroundPosition = 'center';
    </div>
                el.style.backgroundRepeat = 'no-repeat';
  </td>
            });
  <td class="index-cell">
        }
    <div class="index-title">
        function initClickable() {
      <img src="/wiki/Arquivo:Gold_medal.gif" alt="Medalha" />
            document.querySelectorAll('.island-banner[data-href]').forEach(function (el) {
      Informações Gerais
                if (el._icClick) return;
    </div>
                el._icClick = true;
    <div class="index-links">
                el.setAttribute('role', 'link');
      <a href="/wiki/Baús_de_Personagens">Baús de Personagens</a> ·
                el.setAttribute('tabindex', '0');
      <a href="/wiki/Tier_e_Estrelas">Tier e Estrelas</a> ·
                el.addEventListener('click', function () {
      <a href="/wiki/Perfil_e_Ranking">Perfil e Ranking</a> ·
                    var href = el.getAttribute('data-href');
      <a href="/wiki/Experiência">Experiência</a> ·
                    if (href) window.location.href = href;
      <a href="/wiki/Login_Diário">Login Diário</a> ·
                });
      <a href="/wiki/Loja_de_Gemas">Loja de Gemas</a> ·
                el.addEventListener('keydown', function (e) {
      <a href="/wiki/Skins">Skins</a>
                    if (e.key === 'Enter' || e.key === ' ') {
    </div>
                        e.preventDefault();
  </td>
                        var href = el.getAttribute('data-href');
</tr>
                        if (href) window.location.href = href;
<tr>
                    }
  <td class="index-cell">
                });
    <div class="index-title">
            });
      <img src="/wiki/Arquivo:Gold_medal.gif" alt="Medalha" />
        }
      Sistemas
        function run() {
    </div>
            applyBackgrounds();
    <div class="index-links">
            initClickable();
      <a href="/wiki/Sistema_de_Indicação">Sistema de Indicação</a> ·
        }
      <a href="/wiki/Melhoria_de_Equipamentos">Melhoria de Equipamentos</a> ·
        if (document.readyState === 'loading') {
      <a href="/wiki/Black_Market">Black Market</a> ·
            document.addEventListener('DOMContentLoaded', run);
      <a href="/wiki/Den_Den_TV">Den Den TV</a> ·
        } else {
      <a href="/wiki/Navegação">Navegação</a> ·
            run();
      <a href="/wiki/PvP">PvP</a>
        }
    </div>
     })();
  </td>
</script>
  <td class="index-cell">
    <div class="index-title">
      <img src="/wiki/Arquivo:Gold_medal.gif" alt="Medalha" />
      Configurações e Segurança
    </div>
    <div class="index-links">
      <a href="/wiki/Configuração_de_Atalhos">Configuração de Atalhos</a> ·
      <a href="/wiki/Autorização_de_Máquina">Autorização de Máquina</a> ·
      <a href="/wiki/Problemas_de_Conexão">Problemas de Conexão</a> ·
      <a href="/wiki/FAQ#Quick_Cast">Quick Cast</a>
    </div>
  </td>
</tr>
<tr>
  <td class="index-cell">
    <div class="index-title">
      <img src="/wiki/Arquivo:Gold_medal.gif" alt="Medalha" />
      Eventos Globais
    </div>
    <div class="index-links">
      <a href="/wiki/Resposta_Foxy_Quizz">Foxy Quiz</a> ·
      <a href="/wiki/Eventos_Globais#Foxy_Race">Foxy Race</a> ·
      <a href="/wiki/Eventos_Globais#Deathmatch">Deathmatch</a> ·
      <a href="/wiki/Foxy_Memory">Foxy Memory</a> ·
      <a href="/wiki/Eventos_Globais#Foxy_Count">Foxy Count</a>
    </div>
  </td>
  <td class="index-cell">
    <div class="index-title">
      <img src="/wiki/Arquivo:Gold_medal.gif" alt="Medalha" />
      Eventos Temporários
    </div>
    <div class="index-links">
      <a href="/wiki/3D2Y">3D2Y</a> ·
      <a href="/wiki/Summer">Summer</a> ·
      <a href="/wiki/Halloween">Halloween</a> ·
      <a href="/wiki/Easter">Easter</a> ·
      <a href="/wiki/Germa_66">Germa 66</a> ·
      <a href="/wiki/Freedom">Freedom</a> ·
      <a href="/wiki/Fist_of_Love">Fist of Love</a>
     </div>
  </td>
</tr>
</table>

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>