Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
| − | /* CSS | + | /* Melhorias para o CSS de imagens NPC */ |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
/* ========== ESTILOS ESPECÍFICOS PARA NPCs ========== */ | /* ========== ESTILOS ESPECÍFICOS PARA NPCs ========== */ | ||
| Line 123: | Line 29: | ||
} | } | ||
| + | /* Melhorias para o container de imagens */ | ||
.tile-top.tile-image { | .tile-top.tile-image { | ||
display: flex; | display: flex; | ||
| Line 133: | Line 40: | ||
width: 100%; | width: 100%; | ||
box-sizing: border-box; | 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 { | .tile-top.tile-image a { | ||
width: 100%; | width: 100%; | ||
| Line 141: | Line 50: | ||
justify-content: center; | justify-content: center; | ||
align-items: center; | align-items: center; | ||
| + | text-decoration: none; /* Remove sublinhado de links */ | ||
} | } | ||
| + | /* Correções para todas as imagens, incluindo GIFs */ | ||
.tile-top.tile-image img { | .tile-top.tile-image img { | ||
display: block; | display: block; | ||
| Line 151: | Line 62: | ||
transition: 0.4s ease-out; | transition: 0.4s ease-out; | ||
object-fit: contain; | 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 { | .tile-top.tile-image img.custom-size { | ||
| − | width: var(--custom-width, auto); | + | width: var(--custom-width, auto) !important; |
| − | height: var(--custom-height, auto); | + | height: var(--custom-height, auto) !important; |
| − | max-width: var(--custom-width, 100%); | + | max-width: var(--custom-width, 100%) !important; |
| − | max-height: var(--custom-height, none); | + | max-height: var(--custom-height, none) !important; |
} | } | ||
| − | .tile- | + | /* Corrige o problema de dimensionamento zero */ |
| − | + | .tile-top.tile-image img[width="0"], | |
| − | + | .tile-top.tile-image img[height="0"] { | |
| − | width: 100%; | + | width: auto !important; |
| − | + | height: auto !important; | |
| + | max-width: 100% !important; | ||
| + | max-height: 100% !important; | ||
} | } | ||
| − | + | /* Resto do CSS permanece igual... */ | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | /* | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | . | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Revision as of 17:44, 7 May 2025
/* 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... */