Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
/* Container para GIFs animados */ | /* Container para GIFs animados */ | ||
Line 152: | Line 9: | ||
} | } | ||
+ | /* A imagem do NPC (GIF) */ | ||
.tile-top.tile-image img { | .tile-top.tile-image img { | ||
display: block; | display: block; | ||
Line 164: | Line 22: | ||
/* Estilo ajustado para tamanhos personalizados */ | /* Estilo ajustado para tamanhos personalizados */ | ||
.tile-top.tile-image img.custom-size { | .tile-top.tile-image img.custom-size { | ||
− | + | object-fit: cover; /* Garante que a animação não seja perdida */ | |
− | object-fit: cover; | ||
− | |||
} | } | ||
− | . | + | /* Classes para dimensionamento manual */ |
− | + | .npc-image { | |
− | + | width: 100%; | |
− | + | height: 100%; | |
− | + | object-fit: contain; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
.npc-image-small { | .npc-image-small { | ||
max-width: 150px !important; | max-width: 150px !important; | ||
} | } | ||
+ | |||
.npc-image-medium { | .npc-image-medium { | ||
max-width: 200px !important; | max-width: 200px !important; | ||
} | } | ||
+ | |||
.npc-image-large { | .npc-image-large { | ||
max-width: 250px !important; | max-width: 250px !important; | ||
+ | } | ||
+ | |||
+ | /* Aplicação da classe custom-size no gif */ | ||
+ | .tile-top.tile-image img.custom-size { | ||
+ | object-fit: contain; /* Garante que a animação continue */ | ||
} | } |
Revision as of 15:48, 8 May 2025
/* Container para GIFs animados */ .gif-container { position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; } /* A imagem do NPC (GIF) */ .tile-top.tile-image img { display: block; max-width: 100%; width: auto; height: auto; margin: 0; transition: 0.4s ease-out; object-fit: contain; } /* Estilo ajustado para tamanhos personalizados */ .tile-top.tile-image img.custom-size { object-fit: cover; /* Garante que a animação não seja perdida */ } /* Classes para dimensionamento manual */ .npc-image { width: 100%; height: 100%; object-fit: contain; } .npc-image-small { max-width: 150px !important; } .npc-image-medium { max-width: 200px !important; } .npc-image-large { max-width: 250px !important; } /* Aplicação da classe custom-size no gif */ .tile-top.tile-image img.custom-size { object-fit: contain; /* Garante que a animação continue */ }