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

De Wiki Gla
Ir para navegação Ir para pesquisar
m
Etiqueta: Revertido
m
 
(194 revisões intermediárias por 3 usuários não estão sendo mostradas)
Linha 1: Linha 1:
<style>
<style>
.character-box {
    .island-grid {
    max-width: 720px; margin: 24px auto; border: 2px solid #222; border-radius: 12px;
        display: flex;
    background: #1e2327; box-shadow: 0 2px 12px #0007; padding: 24px 32px; color: #f3f3f3;
        flex-wrap: wrap;
    font-family: 'Noto Sans', Arial, sans-serif;
        justify-content: center;
}
        gap: 10px;
.character-header { display: flex; align-items: center; gap: 20px; }
        padding: 12px 0;
.character-img { width: 104px; height: 104px; border-radius: 10px; object-fit: cover; border: 2px solid #555; background: #111; box-shadow: 0 2px 6px #0007; }
    }
.character-header-main { flex: 1; }
 
.character-name { font-size: 2.3em; font-weight: 900; margin: 0 0 2px 0; }
    .island-banner {
.character-tier { font-size: 1.1em; color: #85d6ff; font-weight: 700; margin-bottom: 6px; }
        position: relative;
.character-class { font-size: 1em; color: #b8bac1; margin-bottom: 6px; }
        width: 380px;
.character-desc { font-size: 1.05em; margin-bottom: 16px; color: #f5e9c6; background: #24282d; border-radius: 6px; padding: 7px 14px; }
        height: 90px;
.tabs-bar { display: flex; gap: 8px; margin-bottom: 20px; }
        overflow: hidden;
.tab-btn { padding: 7px 24px; border: none; border-radius: 6px 6px 0 0; background: #23272d; color: #fff; font-size: 1.15em; font-weight: 600; cursor: pointer; transition: background 0.15s; }
        border-radius: 8px;
.tab-btn.active { background: #4a92e6; color: #fff; }
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 10px;
.tab-content { display: none; padding: 18px 0; border-top: 2px solid #333; }
        cursor: pointer;
.tab-content.active { display: flex; gap: 32px; }
        transition: transform 0.15s, box-shadow 0.15s;
.skills-bar { display: flex; gap: 10px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 6px; }
        display: block;
.skill-icon { width: 56px; height: 56px; background: #202429; border: 2px solid #363b45; border-radius: 8px; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; display: flex; align-items: center; justify-content: center; }
        box-sizing: border-box;
.skill-icon.active, .skill-icon:hover { border-color: #71e4fa; box-shadow: 0 0 8px #58e1ff60; }
    }
.skill-detail { flex: 1.3; background: #23272d; border-radius: 8px; padding: 16px 18px; margin-bottom: 8px; min-height: 180px; }
 
.skill-detail h3 { font-size: 1.4em; margin: 0 0 10px 0; color: #58bfff; }
    .island-banner::before {
.skill-detail p { margin: 7px 0 0 0; font-size: 1.05em; }
        content: "";
.skill-video { flex: 1; display: flex; align-items: center; justify-content: center; background: #181a1d; border-radius: 8px; padding: 8px; min-width: 220px; max-width: 350px; min-height: 120px; }
        position: absolute;
.skin-bar { display: flex; gap: 18px; margin: 8px 0; overflow-x: auto; padding-bottom: 10px; }
        top: 0;
.skin-card { min-width: 110px; max-width: 140px; border-radius: 8px; background: #24282d; border: 2px solid #474e58; padding: 4px; text-align: center; display: flex; flex-direction: column; align-items: center; }
        left: 0;
.skin-banner { width: 100%; height: 54px; border-radius: 5px; object-fit: cover; margin-bottom: 5px; background: #111; box-shadow: 0 1px 5px #0005; }
        right: 0;
.skin-card img { border-radius: 5px; max-width: 98px; max-height: 92px; background: #232323; }
        bottom: 0;
.skin-card[title] { cursor: pointer; }
        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%);
@media (max-width: 650px) {
        pointer-events: none;
     .character-box { padding: 8px; }
        z-index: 1;
     .character-header { flex-direction: column; gap: 8px; }
    }
     .tab-content.active { flex-direction: column; gap: 12px; }
 
     .skin-bar { gap: 8px; }
    .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>
<script>
(function() {
    (function () {
    // Tabs
        function applyBackgrounds() {
    var tabs = document.querySelectorAll('.tab-btn');
            document.querySelectorAll('.island-banner[data-bgimg]').forEach(function (el) {
    var contents = document.querySelectorAll('.tab-content');
                var filename = el.getAttribute('data-bgimg');
    tabs.forEach(function(tab){
                if (!filename) return;
        tab.addEventListener('click', function(){
                var url;
            tabs.forEach(t => t.classList.remove('active'));
                if (typeof mw !== 'undefined' && mw.util && mw.util.getUrl) {
            contents.forEach(c => c.classList.remove('active'));
                    url = mw.util.getUrl('Especial:FilePath/' + filename);
            tab.classList.add('active');
                } else {
            document.getElementById('tab-' + tab.dataset.tab).classList.add('active');
                    url = '/index.php?title=Especial:FilePath/' + encodeURIComponent(filename);
        });
                }
    });
                el.style.backgroundImage = 'url(' + url + ')';
 
                el.style.backgroundSize = 'cover';
    // Skills
                el.style.backgroundPosition = 'center';
    var skillIcons = document.querySelectorAll('.skills-bar .skill-icon');
                el.style.backgroundRepeat = 'no-repeat';
    var details = document.querySelector('.skill-detail');
            });
    var videoDiv = document.querySelector('.skill-video');
        }
    function showSkill(el){
        function initClickable() {
        details.innerHTML =
            document.querySelectorAll('.island-banner[data-href]').forEach(function (el) {
            '<h3>' + (el.dataset.nome || '') + '</h3>' +
                if (el._icClick) return;
            (el.dataset.atr ? '<div style="font-size:0.98em; color:#c4e5ff; margin-bottom:5px"><b>Atributos:</b> ' + el.dataset.atr + '</div>' : '') +
                el._icClick = true;
            '<p>' + (el.dataset.desc || '') + '</p>';
                el.setAttribute('role', 'link');
        if(el.dataset.video){
                el.setAttribute('tabindex', '0');
             videoDiv.innerHTML = '<video src="' + el.dataset.video + '" controls width="300" style="margin-top:10px"></video>';
                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 {
         } else {
             videoDiv.innerHTML = '';
             run();
        }
    }
    skillIcons.forEach(function(el, idx){
        el.addEventListener('click', function(){
            skillIcons.forEach(e => e.classList.remove('active'));
            el.classList.add('active');
            showSkill(el);
        });
        if(idx === 0) {
            el.classList.add('active');
            showSkill(el);
         }
         }
     });
     })();
})();
</script>
</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>