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

De Wiki Gla
Ir para navegação Ir para pesquisar
m
 
(281 revisões intermediárias por 3 usuários não estão sendo mostradas)
Linha 1: Linha 1:
<div class="home-button-container">
    <!-- 1. Personagens -->
    <div class="home-button-item">
        <a href="/index.php/Personagens">
            <div class="home-button-image">
                <img src="https://wiki.gla.com.br/images/a/a8/Personagens_card.png">
            </div>
            <div class="home-button-title">Personagens</div>
        </a>
    </div>
    <!-- 2. Missões -->
    <div class="home-button-item">
        <a href="/index.php/Missões">
            <div class="home-button-image">
                <img src="https://wiki.gla.com.br/images/0/08/Missoes_card.png">
            </div>
            <div class="home-button-title">Missões</div>
        </a>
    </div>
    <!-- 3. Itens -->
    <div class="home-button-item">
        <a href="/index.php/Itens">
            <div class="home-button-image">
                <img src="https://wiki.gla.com.br/images/3/39/Itens_card.png">
            </div>
            <div class="home-button-title">Itens</div>
        </a>
    </div>
    <!-- 4. Bosses (desativado) -->
    <div class="home-button-item disabled">
        <a href="/index.php/World_Boss">
            <div class="home-button-image">
                <img src="https://wiki.gla.com.br/images/8/87/Worldboss_card.png">
            </div>
            <div class="home-button-title">Bosses</div>
        </a>
    </div>
    <!-- 5. Wanted Pirates -->
    <div class="home-button-item">
        <a href="/index.php/Wanted_Pirates">
            <div class="home-button-image">
                <img src="https://wiki.gla.com.br/images/9/9d/Wantedpirates_card.png">
            </div>
            <div class="home-button-title">Wanted Pirates</div>
        </a>
    </div>
    <!-- 6. Conquistas (desativado) -->
    <div class="home-button-item disabled">
        <a href="/index.php/Conquistas">
            <div class="home-button-image">
                <img src="https://wiki.gla.com.br/images/a/a9/Conquistas_card.png">
            </div>
            <div class="home-button-title">Conquistas</div>
        </a>
    </div>
    <!-- 7. Passe de Batalha -->
    <div class="home-button-item">
        <a href="/index.php/Passe de Batalha">
            <div class="home-button-image">
                <img src="https://wiki.gla.com.br/images/7/7d/Passe_card.png">
            </div>
            <div class="home-button-title">Passe de Batalha</div>
        </a>
    </div>
    <!-- 8. Guia para Iniciantes (desativado) -->
    <div class="home-button-item disabled">
        <a href="/index.php/Boss_Semanais">
            <div class="home-button-image">
                <img src="https://wiki.gla.com.br/images/6/65/Weeklyboss_card.png">
            </div>
            <div class="home-button-title">Guia para Iniciantes</div>
        </a>
    </div>
</div>
<style>
<style>
     .home-button-container {
     .island-grid {
         display: grid;
         display: flex;
         grid-template-columns: repeat(4, 1fr);
         flex-wrap: wrap;
         gap: 20px;
         justify-content: center;
         padding: 10px;
         gap: 10px;
         box-sizing: border-box;
         padding: 12px 0;
     }
     }


 
     .island-banner {
     .home-button-item {
         position: relative;
         position: relative;
        width: 380px;
        height: 90px;
         overflow: hidden;
         overflow: hidden;
        border: 1px solid #ddd;
         border-radius: 8px;
         border-radius: 8px;
         background: #fff;
         box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 10px;
         transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        cursor: pointer;
         transition: transform 0.15s, box-shadow 0.15s;
        display: block;
         box-sizing: border-box;
         box-sizing: border-box;
     }
     }


     .home-button-item:hover {
     .island-banner::before {
         transform: translateY(-5px);
         content: "";
         border-color: #007bff;
        position: absolute;
         box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
        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;
     }
     }


     .home-button-item a {
     .island-banner:hover {
         display: block;
        transform: translateY(-2px);
         text-decoration: none;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 4px 12px;
         color: inherit;
    }
 
    .island-banner .island-chests {
        position: absolute;
        top: 8px;
        left: 8px;
         display: flex;
        flex-wrap: wrap;
        gap: 6px;
         z-index: 2;
         pointer-events: none;
     }
     }


     .home-button-image {
     .island-banner .island-chest-group {
         width: 100%;
         position: relative;
        aspect-ratio: 16/9;
         display: inline-block;
         display: block;
        margin: 0;
        padding: 0;
     }
     }


     .home-button-image img {
     .island-banner .island-chest-group img {
        width: 100%;
        height: 100%;
        object-fit: cover;
         display: block;
         display: block;
         transition: filter 0.3s ease;
         width: auto;
        height: auto;
     }
     }


     .home-button-item:hover .home-button-image img {
     .island-banner .island-chest-count {
        filter: brightness(1.1);
    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;
}


     .home-button-title {
     .island-banner .island-title {
         font-family: sans-serif;
        position: absolute;
        bottom: 10px;
        left: 8px;
         font-size: 1.35em;
         font-weight: bold;
         font-weight: bold;
         font-size: 1.2em;
         color: #fff;
        background: #fff;
         text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
         color: #0645AD;
         line-height: 1.2;
         margin: 0;
         z-index: 2;
         padding: 10px 5px;
         pointer-events: none;
         position: relative;
         text-transform: uppercase;
         text-transform: uppercase;
        border-top: 1px solid #ddd;
        text-align: center;
        text-decoration: none;
        transition: background-color 0.3s ease;
        box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1);
     }
     }


     @media (max-width: 768px) {
     @media (max-width: 768px) {
         .home-button-title {
         .island-grid {
             font-size: 1.3em;
            flex-direction: column;
             align-items: stretch;
         }
         }
    }


    @media (max-width: 480px) {
         .island-banner {
         .home-button-title {
             width: 100%;
             font-size: 1.4em;
            max-width: none;
         }
         }
     }
     }
 
</style>
 
<script>
     .home-button-item:hover .home-button-title {
     (function () {
        background-color: #f9f9f9;
        function applyBackgrounds() {
    }
            document.querySelectorAll('.island-banner[data-bgimg]').forEach(function (el) {
 
                var filename = el.getAttribute('data-bgimg');
    .home-button-item.disabled {
                if (!filename) return;
        opacity: 0.5;
                var url;
        pointer-events: none;
                if (typeof mw !== 'undefined' && mw.util && mw.util.getUrl) {
        transform: none;
                    url = mw.util.getUrl('Especial:FilePath/' + filename);
        box-shadow: none;
                } else {
        border-color: #ddd;
                    url = '/index.php?title=Especial:FilePath/' + encodeURIComponent(filename);
    }
                }
 
                el.style.backgroundImage = 'url(' + url + ')';
    .home-button-item.disabled .home-button-title {
                el.style.backgroundSize = 'cover';
        color: #999;
                el.style.backgroundPosition = 'center';
    }
                el.style.backgroundRepeat = 'no-repeat';
 
            });
    @media (max-width: 1280px) {
        }
         .home-button-container {
        function initClickable() {
             grid-template-columns: repeat(2, 1fr);
            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();
         }
         }
     }
     })();
</style>
</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>