Mudanças entre as edições de "Widget:Item"
Ir para navegação
Ir para pesquisar
m |
m |
||
| (Uma revisão intermediária pelo mesmo usuário não está sendo mostrada) | |||
| Linha 51: | Linha 51: | ||
} | } | ||
/* Categoria special_item ( | /* Categoria special_item — destaque dourado (item especial no jogo) */ | ||
.item-wrapper-special { | .item-wrapper-special { | ||
filter: drop-shadow(0 0 | 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( | border-color: #8a7352; | ||
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: | color: rgba(255, 250, 240, 0.88); | ||
} | |||
.item-wrapper-special .item-tooltip-sep { | |||
background: rgba(92, 74, 49, 0.75); | |||
} | } | ||
| Linha 95: | Linha 106: | ||
} | } | ||
/* ===== TOOLTIP ===== */ | /* ===== TOOLTIP (estilo marrom / ouro — próximo ao jogo) ===== */ | ||
.item-tooltip { | .item-tooltip { | ||
display: none; | display: none; | ||
width: | 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 | filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.65)); | ||
} | } | ||
| Linha 116: | Linha 128: | ||
flex-direction: column; | flex-direction: column; | ||
width: 100%; | width: 100%; | ||
background: | background-color: #1a110d; | ||
border: | border: 2px solid #5c4838; | ||
border-radius: | border-radius: 0; | ||
padding: 12px | padding: 11px 14px 12px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
font-family: | 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: | font-size: 15px; | ||
font-weight: 700; | font-weight: 700; | ||
color: # | color: #c4a96a; | ||
text-align: center; | text-align: center; | ||
line-height: 1. | 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: | font-size: 11px; | ||
color: | color: rgba(255, 252, 248, 0.82); | ||
text-align: center; | text-align: center; | ||
margin-top: | margin-top: 4px; | ||
text-transform: | text-transform: none; | ||
letter-spacing: 0. | letter-spacing: 0.02em; | ||
font-weight: | font-weight: 700; | ||
} | } | ||
| Linha 147: | Linha 162: | ||
display: block; | display: block; | ||
height: 1px; | height: 1px; | ||
background: | background: #5c4a31; | ||
/* Encosta nas bordas internas da caixa (ignora padding lateral) */ | |||
margin: 8px -14px 10px; | |||
width: calc(100% + 28px); | |||
max-width: none; | |||
flex-shrink: 0; | |||
} | } | ||
| Linha 155: | Linha 173: | ||
display: block; | display: block; | ||
font-size: 12px; | font-size: 12px; | ||
color: # | 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 { | .item-tooltip-level { | ||
display: block; | display: block; | ||
font-size: | font-size: 12px; | ||
color: | color: rgba(255, 252, 248, 0.9); | ||
text-align: | text-align: left; | ||
margin-top: | margin-top: 0; | ||
font-weight: | font-weight: 700; | ||
width: 100%; | |||
} | } | ||
| Linha 180: | Linha 201: | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: | gap: 8px; | ||
text-align: left; | text-align: left; | ||
} | } | ||
| Linha 190: | Linha 211: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
border-radius: 50%; | border-radius: 50%; | ||
background: | background: #2c2824; | ||
border: 1px solid | border: 1px solid #4a433c; | ||
color: # | color: #e8e4dc; | ||
font-size: 11px; | font-size: 11px; | ||
font-weight: 700; | font-weight: 700; | ||
| Linha 204: | Linha 225: | ||
flex: 1; | flex: 1; | ||
font-size: 11px; | font-size: 11px; | ||
color: # | color: #9a9490; | ||
line-height: 1.45; | 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: | margin-top: 12px; | ||
padding-top: | padding-top: 10px; | ||
border-top: 1px solid | border-top: 1px solid transparent; | ||
width: 100%; | |||
} | } | ||
.item-tooltip-val { | .item-tooltip-val { | ||
font-size: | font-size: 12px; | ||
color: # | color: #b8a06e; | ||
font-weight: | 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: | color: rgba(255, 252, 248, 0.88); | ||
font-weight: | font-weight: 700; | ||
} | } | ||
/* Seta | /* Seta — cor sólida igual ao fundo */ | ||
.item-tooltip-arrow { | .item-tooltip-arrow { | ||
display: block; | display: block; | ||
| Linha 236: | 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 # | border-top: 8px solid #1a110d; | ||
border-bottom: none; | border-bottom: none; | ||
flex-shrink: 0; | flex-shrink: 0; | ||
} | } | ||
.item-tooltip.tooltip-below { | .item-tooltip.tooltip-below { | ||
flex-direction: column-reverse; | flex-direction: column-reverse; | ||
| Linha 248: | 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 # | border-bottom: 8px solid #1a110d; | ||
} | } | ||
| Linha 271: | Linha 295: | ||
<script> | <script> | ||
(function () { | (function () { | ||
var TIP_WIDTH = | var TIP_WIDTH = 280; | ||
var MARGIN = 8; | var MARGIN = 8; | ||
var GAP = 6; | var GAP = 6; | ||