MediaWiki:Common.css
Jump to navigation
Jump to search
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* Melhorias para o CSS de imagens NPC */ /* ========== ESTILOS ESPECÍFICOS PARA NPCs ========== */ .tile-row { display: flex; flex-flow: row wrap; margin-bottom: 1em; } .tile-halves { display: flex; flex-flow: row wrap; border: 1px solid #e4eaee; background: #ffffff; box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1); position: relative; } .tile-halves h2 { font-size: 1.4em; font-weight: bold; border: none; margin: 0 0 0.4em; } .tile-top { width: 100%; padding: 1.3rem 1.5rem 0.6rem; } /* Melhorias para o container de imagens */ .tile-top.tile-image { display: flex; align-items: center; justify-content: center; background-color: #949eaa; overflow: visible; padding: 0; height: auto; width: 100%; box-sizing: border-box; min-height: 50px; /* Garante altura mínima mesmo sem imagem */ } /* Correção para links dentro do tile de imagem */ .tile-top.tile-image a { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; text-decoration: none; /* Remove sublinhado de links */ } /* Correções para todas as imagens, incluindo GIFs */ .tile-top.tile-image img { display: block; max-width: 100%; width: auto; height: auto; margin: 0; transition: 0.4s ease-out; object-fit: contain; image-rendering: -webkit-optimize-contrast; /* Melhora renderização em Webkit */ image-rendering: crisp-edges; /* Melhora renderização em Firefox */ } /* Correção para tamanhos personalizados */ .tile-top.tile-image img.custom-size { width: var(--custom-width, auto) !important; height: var(--custom-height, auto) !important; max-width: var(--custom-width, 100%) !important; max-height: var(--custom-height, none) !important; } /* Corrige o problema de dimensionamento zero */ .tile-top.tile-image img[width="0"], .tile-top.tile-image img[height="0"] { width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important; } /* Resto do CSS permanece igual... */