MediaWiki:Common.css: mudanças entre as edições

De Grimopedia
Ir para navegação Ir para pesquisar
Sem resumo de edição
Sem resumo de edição
Linha 1: Linha 1:
/* =============== broAurora — Common.css (mínimo) =============== */
/* ===== Linha de CTAs com <gallery> (lado a lado) ===== */
/* Herói: só centraliza textos (não vira flex) */
/* O próprio elemento do gallery recebe o flex */
.bro-hero {
.mw-parser-output .bro-cta-gallery {
  text-align: center;
   display: flex !important;
  padding: 28px 16px 8px;
}
 
/* Barra de CTAs: lado a lado + responsivo */
.bro-cta-bar {
   display: flex;
   justify-content: center;
   justify-content: center;
   align-items: center;
   align-items: center;
   gap: 24px;
   gap: 24px;
   flex-wrap: wrap;     /* quebra no mobile */
   flex-wrap: wrap;
   margin: 14px auto 0;
   margin: 14px auto 0;
   width: 100%;
   padding: 0;              /* tira respiro extra */
  border: 0;
  background: transparent;
}
}


/* Cada CTA é um link “limpo” */
/* Neutraliza estilos internos do gallery */
.bro-cta {
.mw-parser-output .bro-cta-gallery .gallerybox {
   display: block;
   width: auto !important;  /* evita largura fixa que força quebra */
   line-height: 0;
  margin: 0 !important;
   text-decoration: none;
  padding: 0 !important;
   outline: none;
  border: 0 !important;
  background: transparent !important;
   box-shadow: none !important;
}
.mw-parser-output .bro-cta-gallery .thumb {
  border: 0 !important;
  background: transparent !important;
   box-shadow: none !important;
  margin: 0 !important;
   padding: 0 !important;
}
.mw-parser-output .bro-cta-gallery .gallerytext,
.mw-parser-output .bro-cta-gallery .gallerycaption,
.mw-parser-output .bro-cta-gallery .magnify {
  display: none !important;
}
}


/* Imagem do CTA (controlamos tamanho aqui, independente do wiki) */
/* Imagens: tamanho + zoom suave */
.bro-cta img {
.mw-parser-output .bro-cta-gallery img {
   display: block;
   display: block;
   width: 320px;          /* desktop padrão */
   width: 320px;
  max-width: 100%;
   height: auto;
   height: auto;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
   transition: transform .22s ease;
   transition: transform .22s ease;
   transform-origin: center center;
   transform-origin: center center;
}
}
 
.mw-parser-output .bro-cta-gallery .gallerybox:hover img {
/* Zoom suave */
.bro-cta:hover img,
.bro-cta:focus-visible img {
   transform: scale(1.06);
   transform: scale(1.06);
  outline: none;
}
}


/* Responsivo */
/* Responsivo */
@media (max-width: 900px) {
@media (max-width: 900px) {
   .bro-cta-bar { gap: 18px; }
   .mw-parser-output .bro-cta-gallery { gap: 18px; }
   .bro-cta img { width: 280px; }
   .mw-parser-output .bro-cta-gallery img { width: 280px; }
}
}
@media (max-width: 600px) {
@media (max-width: 600px) {
   .bro-cta img { width: 220px; }
   .mw-parser-output .bro-cta-gallery img { width: 220px; }
}
 
/* (Opcional) Esconde título/metas só na Home — pode remover se não quiser */
body.page-Página_principal #firstHeading,
body.page-Página_principal #siteSub,
body.page-Página_principal #contentSub,
body.page-Página_principal .mw-indicators { display: none !important; }
 
/* ===== Linha de CTAs usando <gallery> ===== */
.mw-parser-output .bro-cta-gallery .gallery {
  display: flex;              /* garante lado a lado */
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;              /* quebra no mobile */
}
.mw-parser-output .bro-cta-gallery .gallerybox {
  margin: 0; padding: 0;
  border: 0; box-shadow: none;
  background: transparent;
}
.mw-parser-output .bro-cta-gallery .gallerybox .thumb {
  border: 0; background: transparent; box-shadow: none;
}
.mw-parser-output .bro-cta-gallery .gallerytext { display: none; } /* sem legendas */
.mw-parser-output .bro-cta-gallery img {
  display: block;
  width: 320px; height: auto;  /* desktop padrão */
  transition: transform .22s ease;
  transform-origin: center center;
}
}
.mw-parser-output .bro-cta-gallery .gallerybox:hover img { transform: scale(1.06); }
@media (max-width: 900px){ .mw-parser-output .bro-cta-gallery img { width: 280px; } }
@media (max-width: 600px){ .mw-parser-output .bro-cta-gallery img { width: 220px; } }

Edição das 14h49min de 16 de outubro de 2025

/* ===== Linha de CTAs com <gallery> (lado a lado) ===== */
/* O próprio elemento do gallery recebe o flex */
.mw-parser-output .bro-cta-gallery {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 14px auto 0;
  padding: 0;               /* tira respiro extra */
  border: 0;
  background: transparent;
}

/* Neutraliza estilos internos do gallery */
.mw-parser-output .bro-cta-gallery .gallerybox {
  width: auto !important;   /* evita largura fixa que força quebra */
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.mw-parser-output .bro-cta-gallery .thumb {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.mw-parser-output .bro-cta-gallery .gallerytext,
.mw-parser-output .bro-cta-gallery .gallerycaption,
.mw-parser-output .bro-cta-gallery .magnify {
  display: none !important;
}

/* Imagens: tamanho + zoom suave */
.mw-parser-output .bro-cta-gallery img {
  display: block;
  width: 320px;
  height: auto;
  transition: transform .22s ease;
  transform-origin: center center;
}
.mw-parser-output .bro-cta-gallery .gallerybox:hover img {
  transform: scale(1.06);
}

/* Responsivo */
@media (max-width: 900px) {
  .mw-parser-output .bro-cta-gallery { gap: 18px; }
  .mw-parser-output .bro-cta-gallery img { width: 280px; }
}
@media (max-width: 600px) {
  .mw-parser-output .bro-cta-gallery img { width: 220px; }
}