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

De Wiki Gla
Ir para navegação Ir para pesquisar
m
 
(221 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;
}
        gap: 10px;
.index-cell {
        padding: 12px 0;
  vertical-align: top;
    }
  width: 48%;
 
  padding: 12px;
    .island-banner {
  background-color: #fdfdfd;
        position: relative;
  border: 1px dashed #AAAAAA;
        width: 380px;
  border-radius: 8px;
        height: 90px;
}
        overflow: hidden;
.index-title {
        border-radius: 8px;
  display: flex;
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 10px;
  align-items: center;
        cursor: pointer;
  font-weight: bold;
        transition: transform 0.15s, box-shadow 0.15s;
  font-size: 15px;
        display: block;
  margin-bottom: 4px;
        box-sizing: border-box;
}
    }
.index-title img {
 
  width: 20px;
    .island-banner::before {
  height: 20px;
        content: "";
  margin-right: 6px;
        position: absolute;
}
        top: 0;
.index-links {
        left: 0;
  font-size: 14px;
        right: 0;
  line-height: 1.6;
        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>
</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="https://static.wikia.nocookie.net/onepiece/images/9/99/Gold_medal.gif" />
                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);
        [[Download]] · [[Suporte]] · [[Doações]] · [[Benefícios VIP]] · [[Revendedores Oficiais]] · [[Criadores de Conteúdo]]
                } else {
      </div>
                    url = '/index.php?title=Especial:FilePath/' + encodeURIComponent(filename);
    </td>
                }
    <td class="index-cell">
                el.style.backgroundImage = 'url(' + url + ')';
      <div class="index-title">
                el.style.backgroundSize = 'cover';
        <img src="https://static.wikia.nocookie.net/onepiece/images/9/99/Gold_medal.gif" />
                el.style.backgroundPosition = 'center';
         Informações Gerais
                el.style.backgroundRepeat = 'no-repeat';
      </div>
            });
      <div class="index-links">
         }
        [[Baús de Personagens]] · [[Tier e Estrelas]] · [[Perfil e Ranking]] · [[Experiência]] · [[Login Diário]] · [[Loja de Gemas]] · [[Skins]]
        function initClickable() {
      </div>
            document.querySelectorAll('.island-banner[data-href]').forEach(function (el) {
    </td>
                if (el._icClick) return;
  </tr>
                el._icClick = true;
  <tr>
                el.setAttribute('role', 'link');
    <td class="index-cell">
                el.setAttribute('tabindex', '0');
      <div class="index-title">
                el.addEventListener('click', function () {
        <img src="https://static.wikia.nocookie.net/onepiece/images/9/99/Gold_medal.gif" />
                    var href = el.getAttribute('data-href');
        Sistemas
                    if (href) window.location.href = href;
      </div>
                });
      <div class="index-links">
                el.addEventListener('keydown', function (e) {
        [[Sistema de Indicação]] · [[Melhoria de Equipamentos]] · [[Black Market]] · [[Den Den TV]] · [[Navegação]] · [[PvP]]
                    if (e.key === 'Enter' || e.key === ' ') {
      </div>
                        e.preventDefault();
    </td>
                        var href = el.getAttribute('data-href');
    <td class="index-cell">
                        if (href) window.location.href = href;
      <div class="index-title">
                    }
        <img src="https://static.wikia.nocookie.net/onepiece/images/9/99/Gold_medal.gif" />
                });
        Configurações e Segurança
            });
      </div>
         }
      <div class="index-links">
         function run() {
        [[Configuração de Atalhos]] · [[Autorização de Máquina]] · [[Problemas de Conexão]] · [[FAQ#Quick_Cast|Quick Cast]]
            applyBackgrounds();
      </div>
            initClickable();
    </td>
         }
  </tr>
        if (document.readyState === 'loading') {
  <tr>
            document.addEventListener('DOMContentLoaded', run);
    <td class="index-cell">
         } else {
      <div class="index-title">
            run();
         <img src="https://static.wikia.nocookie.net/onepiece/images/9/99/Gold_medal.gif" />
         }
         Eventos Globais
     })();
      </div>
</script>
      <div class="index-links">
         [[Resposta_Foxy_Quizz|Foxy Quiz]] · [[Eventos_Globais#Foxy_Race|Foxy Race]] · [[Eventos_Globais#Deathmatch|Deathmatch]] · [[Foxy Memory]] · [[Eventos_Globais#Foxy_Count|Foxy Count]]
      </div>
    </td>
    <td class="index-cell">
      <div class="index-title">
        <img src="https://static.wikia.nocookie.net/onepiece/images/9/99/Gold_medal.gif" />
         Eventos Temporários
      </div>
      <div class="index-links">
         [[3D2Y]] · [[Summer]] · [[Halloween]] · [[Easter]] · [[Germa 66]] · [[Freedom]] · [[Fist of Love]]
      </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>