MediaWiki:Common.css
Revisão de 18h23min de 15 de dezembro de 2024 por Gurren1 (discussão | contribs) (Página substituída por '→Estilos aprimorados para "PRINCIPAIS GUIAS": .tile-halves { display: grid; grid-template-columns: 1fr; border: 1px solid #e4eaee; background: #ffff...')
Nota: Após salvar, você pode ter que limpar o "cache" do seu navegador para ver as alterações.
- Firefox / Safari: Pressione Shift enquanto clica Recarregar, ou pressione Ctrl-F5 ou Ctrl-R (⌘-R no Mac)
- Google Chrome: Pressione Ctrl-Shift-R (⌘-Shift-R no Mac)
- Internet Explorer/Edge: PressioneCtrl enquanto clica Recarregar, ou Pressione Ctrl-F5
- Opera: Pressione Ctrl-F5.
/* Estilos aprimorados para "PRINCIPAIS GUIAS" */
.tile-halves {
display: grid;
grid-template-columns: 1fr;
border: 1px solid #e4eaee;
background: #ffffff;
box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1);
border-radius: 8px;
width: 100%; /* Garantindo que ocupe toda a largura disponível */
max-width: 100%;
margin: 0 auto; /* Centraliza o contêiner */
gap: 15px; /* Mesmo espaçamento dos cards */
}
.tile-halves h2 {
font-size: 1.6em;
font-weight: bold;
text-align: center;
margin: 0 0 0.4em;
padding: 10px;
color: white;
background-color: #1a73e8; /* Azul vibrante */
border-top: 4px solid #0056b3; /* Bordinha azul no topo */
border-radius: 8px 8px 0 0;
}
.tile-halves .byline + h2 {
margin-top: -0.5em;
}
.tile-top {
width: 100%;
padding: 0; /* Removendo o padding para evitar espaçamento extra */
}
/* Adicionando alinhamento similar ao grid dos cards */
.tile-halves table {
width: 100%;
margin: 0;
padding: 0;
}
.tile-halves td {
text-align: left;
}
/**************************
CARDS
**************************/
.wiki-row-container {
text-decoration: none;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
}
.wiki-row-item {
text-decoration: none;
text-align: center;
border: 1px solid #ddd;
border-radius: 5px;
overflow: hidden;
background: #fff;
transition: box-shadow 0.3s ease, border-color 0.3s ease;
position: relative;
height: auto;
/* Ajusta automaticamente para o conteúdo */
}
.wiki-row-item:hover {
text-decoration: none;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
border-color: #007bff;
/* Muda a cor da borda no hover */
}
.wiki-row-image {
width: 100%;
aspect-ratio: 16 / 9;
/* Define uma proporção fixa para uniformizar as imagens */
position: relative;
background-color: transparent;
overflow: hidden;
/* Garante que o zoom da imagem não "escape" do container */
}
.wiki-row-image img {
width: 100%;
height: 100%;
object-fit: cover;
/* Preenche o espaço sem distorcer a proporção */
transition: transform 0.3s ease;
/* Adiciona a transição para o efeito de zoom */
}
.wiki-row-item:hover .wiki-row-image img {
transform: scale(1.1);
/* Aplica um leve zoom na imagem ao passar o mouse */
}
.wiki-row-title {
font-weight: bold;
font-size: 1.2em;
background-color: white;
display: flex; /* Adiciona flexbox */
align-items: center; /* Alinha verticalmente ao centro */
justify-content: center; /* Centraliza horizontalmente */
padding: 0; /* Remove padding para evitar espaços excessivos */
margin: 0; /* Remove margens externas */
min-height: 2em; /* Ajusta a altura mínima para garantir espaço suficiente sem excesso */
}
.wiki-row-title a {
text-decoration: none !important;
display: block;
width: 100%;
height: 100%;
text-align: center;
}
/* Página Inicial: GURREN */
.homepage-header {
text-align: center;
padding: 10px;
}
.homepage-header h1 {
font-size: 2em;
font-weight: bold;
}
.homepage-header p {
font-size: 1em;
color: #333;
max-width: 600px;
margin: 0 auto;
}
.homepage-header a:hover {
text-decoration: underline;
}
@media (max-width: 768px) {
.homepage-header {
padding: 5px;
}
.homepage-header h1 {
font-size: 1.5em;
}
.homepage-header p {
font-size: 0.9em;
max-width: 90%;
}
.homepage-header div {
font-size: 0.9em;
}
}