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

De Wiki Gla
Ir para navegação Ir para pesquisar
m
m
 
(4 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1: Linha 1:
<includeonly>
<includeonly>
    <!--
      Tooltip: o HTML das passivas/descrição vem do Módulo:Item (Scribunto), função renderOne.
      Este widget só aplica estilos (.item-tooltip-passive-*) e o script de posição no hover.
      Se as passivas não aparecem, confira Módulo:ItemDB (dados) e Módulo:Item.lua na wiki.
    -->
     <style>
     <style>
         .reward-wrapper {
         .reward-wrapper {
Linha 34: Linha 39:
         }
         }


         /* Categoria special_item (Módulo:Item.lua adiciona .item-wrapper-special) */
        .item-icon-placeholder {
            display: inline-block;
            width: 28px;
            height: 28px;
            margin: 2px auto 0;
            border-radius: 4px;
            background: linear-gradient(135deg, #3a3a52 0%, #252536 100%);
            border: 1px solid rgba(120, 120, 180, 0.35);
            box-sizing: border-box;
            vertical-align: middle;
        }
 
         /* Categoria special_item — destaque dourado (item especial no jogo) */
         .item-wrapper-special {
         .item-wrapper-special {
             filter: drop-shadow(0 0 4px rgba(232, 200, 74, 0.55));
             filter: drop-shadow(0 0 6px rgba(200, 150, 60, 0.45));
         }
         }


         .item-wrapper-special .item-tooltip-body {
         .item-wrapper-special .item-tooltip-body {
             border-color: rgba(232, 200, 74, 0.45);
             border-color: #8a7352;
            background: linear-gradient(180deg, #2d2a22 0%, #1e1c18 100%);
            background-color: #221910;
            box-shadow:
                inset 0 1px 0 rgba(255, 220, 180, 0.04),
                0 4px 14px rgba(0, 0, 0, 0.5);
        }
 
        .item-wrapper-special .item-tooltip-name {
            color: #c9b078;
         }
         }


         .item-wrapper-special .item-tooltip-cat {
         .item-wrapper-special .item-tooltip-cat {
             color: #d4b44a;
             color: rgba(255, 250, 240, 0.88);
        }
 
        .item-wrapper-special .item-tooltip-sep {
            background: rgba(92, 74, 49, 0.75);
         }
         }


Linha 78: Linha 106:
         }
         }


         /* ===== TOOLTIP ===== */
         /* ===== TOOLTIP (estilo marrom / ouro — próximo ao jogo) ===== */


         .item-tooltip {
         .item-tooltip {
             display: none;
             display: none;
             width: 230px;
             width: 280px;
            max-width: min(280px, calc(100vw - 16px));
             pointer-events: none;
             pointer-events: none;
             flex-direction: column;
             flex-direction: column;
             align-items: center;
             align-items: center;
             filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.55));
             filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.65));
         }
         }


Linha 99: Linha 128:
             flex-direction: column;
             flex-direction: column;
             width: 100%;
             width: 100%;
             background: linear-gradient(180deg, #2a2a3d 0%, #1e1e30 100%);
             background-color: #1a110d;
             border: 1px solid rgba(100, 100, 160, 0.3);
             border: 2px solid #5c4838;
             border-radius: 8px;
             border-radius: 0;
             padding: 12px 16px;
             padding: 11px 14px 12px;
             box-sizing: border-box;
             box-sizing: border-box;
             font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
             font-family: Tahoma, "Segoe UI", Arial, sans-serif;
            /* Brilho interno quase imperceptível (sem degradê no fundo) */
            box-shadow: inset 0 1px 0 rgba(255, 245, 220, 0.035);
         }
         }


         .item-tooltip-name {
         .item-tooltip-name {
             display: block;
             display: block;
             font-size: 14px;
             font-size: 15px;
             font-weight: 700;
             font-weight: 700;
             color: #ffffff;
             color: #c4a96a;
             text-align: center;
             text-align: center;
             line-height: 1.3;
             line-height: 1.25;
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
         }
         }


         .item-tooltip-cat {
         .item-tooltip-cat {
             display: block;
             display: block;
             font-size: 10px;
             font-size: 11px;
             color: #7e7e9e;
             color: rgba(255, 252, 248, 0.82);
             text-align: center;
             text-align: center;
             margin-top: 3px;
             margin-top: 4px;
             text-transform: uppercase;
             text-transform: none;
             letter-spacing: 0.8px;
             letter-spacing: 0.02em;
             font-weight: 600;
             font-weight: 700;
         }
         }


Linha 130: Linha 162:
             display: block;
             display: block;
             height: 1px;
             height: 1px;
             background: linear-gradient(90deg, transparent 0%, rgba(120, 120, 180, 0.35) 50%, transparent 100%);
             background: #5c4a31;
             margin: 9px 0;
            /* Encosta nas bordas internas da caixa (ignora padding lateral) */
             width: 100%;
            margin: 8px -14px 10px;
            width: calc(100% + 28px);
             max-width: none;
             flex-shrink: 0;
         }
         }


Linha 138: Linha 173:
             display: block;
             display: block;
             font-size: 12px;
             font-size: 12px;
             color: #b0b0cc;
             color: #92a8d4;
             line-height: 1.5;
             line-height: 1.5;
             text-align: center;
             text-align: center;
            font-weight: 600;
            margin-top: 2px;
        }
        .item-tooltip-level {
            display: block;
            font-size: 12px;
            color: rgba(255, 252, 248, 0.9);
            text-align: left;
            margin-top: 0;
            font-weight: 700;
            width: 100%;
        }
        .item-tooltip-passives {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 8px;
            width: 100%;
        }
        .item-tooltip-passive-row {
            display: flex;
            align-items: center;
            gap: 8px;
            text-align: left;
        }
        .item-tooltip-passive-badge {
            flex-shrink: 0;
            width: 22px;
            height: 22px;
            box-sizing: border-box;
            border-radius: 50%;
            background: #2c2824;
            border: 1px solid #4a433c;
            color: #e8e4dc;
            font-size: 11px;
            font-weight: 700;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .item-tooltip-passive-text {
            flex: 1;
            font-size: 11px;
            color: #9a9490;
            line-height: 1.45;
            font-weight: 600;
         }
         }


         .item-tooltip-footer {
         .item-tooltip-footer {
             display: flex;
             display: flex;
             justify-content: center;
             justify-content: flex-end;
            align-items: center;
             gap: 14px;
             gap: 14px;
             margin-top: 10px;
             margin-top: 12px;
             padding-top: 8px;
             padding-top: 10px;
             border-top: 1px solid rgba(120, 120, 180, 0.18);
             border-top: 1px solid transparent;
            width: 100%;
         }
         }


         .item-tooltip-val {
         .item-tooltip-val {
             font-size: 11px;
             font-size: 12px;
             color: #e8c84a;
             color: #b8a06e;
             font-weight: 600;
             font-weight: 700;
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
         }
         }


         .item-tooltip-lvl {
         .item-tooltip-lvl {
             font-size: 11px;
             font-size: 11px;
             color: #6ab4ff;
             color: rgba(255, 252, 248, 0.88);
             font-weight: 600;
             font-weight: 700;
         }
         }


         /* Seta padrão: aponta para baixo (tooltip acima do item) */
         /* Seta — cor sólida igual ao fundo */
         .item-tooltip-arrow {
         .item-tooltip-arrow {
             display: block;
             display: block;
Linha 171: Linha 261:
             border-left: 8px solid transparent;
             border-left: 8px solid transparent;
             border-right: 8px solid transparent;
             border-right: 8px solid transparent;
             border-top: 8px solid #1e1e30;
             border-top: 8px solid #1a110d;
             border-bottom: none;
             border-bottom: none;
             flex-shrink: 0;
             flex-shrink: 0;
         }
         }


        /* Tooltip abaixo do item: inverte a ordem e a seta */
         .item-tooltip.tooltip-below {
         .item-tooltip.tooltip-below {
             flex-direction: column-reverse;
             flex-direction: column-reverse;
Linha 183: Linha 272:
         .item-tooltip.tooltip-below .item-tooltip-arrow {
         .item-tooltip.tooltip-below .item-tooltip-arrow {
             border-top: none;
             border-top: none;
             border-bottom: 8px solid #2a2a3d;
             border-bottom: 8px solid #1a110d;
         }
         }


Linha 206: Linha 295:
     <script>
     <script>
         (function () {
         (function () {
             var TIP_WIDTH = 230;
             var TIP_WIDTH = 280;
             var MARGIN = 8;
             var MARGIN = 8;
             var GAP = 6;
             var GAP = 6;

Edição atual tal como às 22h58min de 8 de abril de 2026