MediaWiki:Common.css

De Grimopedia
Revisão de 15h41min de 7 de novembro de 2025 por Barry456 (discussão | contribs)
Ir para navegação Ir para pesquisar

Nota: Após publicar, 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)
  • Edge: Pressione Ctrl enquanto clica Recarregar, ou pressione Ctrl-F5.
  • Opera: Pressione Ctrl-F5.
/* ===== FONTES ===== */
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

/* ===== CONTAINER GERAL DA WIKI broAurora =====
   Deixa o conteúdo centralizado e com largura máxima,
   pra ficar igual em monitor grande e notebook. */
.broaurora-root {
  max-width: 1200px;      /* largura "oficial" da wiki */
  margin: 0 auto;         /* centraliza */
  padding: 0 16px;        /* respiro lateral em telas menores */
  box-sizing: border-box; /* padding não estoura a largura */
}

/* ===================================================================== */
/* ==================   CTAs COM <gallery>   =========================== */
/* ===================================================================== */

/* 1) Transformar QUALQUER container do gallery em flex horizontal */
.mw-parser-output .bro-cta-gallery,
.mw-parser-output .bro-cta-gallery .gallery,
.mw-parser-output .bro-cta-gallery ul.gallery,
.mw-parser-output .bro-cta-gallery .mw-gallery,
.mw-parser-output .bro-cta-gallery .mw-gallery-packed,
.mw-parser-output .bro-cta-gallery .mw-gallery-traditional,
.mw-parser-output .bro-cta-gallery .mw-gallery-slideshow {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;                          /* SEM nowrap fixo */
  margin: 14px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* 2) Neutralizar estilos que forçam empilhamento */
.mw-parser-output .bro-cta-gallery .gallerybox,
.mw-parser-output .bro-cta-gallery li.gallerybox {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: block !important;          /* deixa o flex cuidar do layout */
  vertical-align: middle !important;
}
.mw-parser-output .bro-cta-gallery .thumb,
.mw-parser-output .bro-cta-gallery .thumbinner {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 3) Esconder legendas/magnify do gallery */
.mw-parser-output .bro-cta-gallery .gallerytext,
.mw-parser-output .bro-cta-gallery .gallerycaption,
.mw-parser-output .bro-cta-gallery .magnify {
  display: none !important;
}

/* 4) Tamanho das imagens + zoom */
.mw-parser-output .bro-cta-gallery img {
  display: block;
  width: 320px;      /* desktop padrão */
  max-width: 100%;   /* nunca passa do container */
  height: auto;
  transition: transform .22s ease;
  transform-origin: center center;
}
.mw-parser-output .bro-cta-gallery .gallerybox:hover img {
  transform: scale(1.06);
}

/* 5) Responsivo (CTAs) — só reduzindo aos poucos */
@media (max-width: 1100px){
  .mw-parser-output .bro-cta-gallery { gap: 16px; }
  .mw-parser-output .bro-cta-gallery img { width: 280px; }
}
@media (max-width: 900px){
  .mw-parser-output .bro-cta-gallery img { width: 240px; }
}
@media (max-width: 700px){
  .mw-parser-output .bro-cta-gallery img { width: 210px; }
}

/* ===================================================================== */
/* ==================   CARDS / BLOCOS   =============================== */
/* ===================================================================== */

/* Container genérico de cards (se um dia você usar .bro-cards direto) */
.mw-parser-output .bro-cards{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  align-items:stretch;
}

/* Card genérico (classe) */
.mw-parser-output .bro-card{
  flex:1 1 260px;
  min-width:260px;
  border:1px solid rgba(36,161,55,.30);
  border-radius:14px;
  padding:18px;
  background:#fff;
}

/* Auto-detecção do seu markup atual (inline style dos blocos) */
.mw-parser-output div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"]{
  /* container de cards dos blocos GUIAS PRINCIPAIS / DIVERSOS */
  display:flex;
  flex-wrap:wrap;
  gap:20px;
}

.mw-parser-output
div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"]
> div[style*="border-radius:14px"][style*="padding:18px"]{
  /* cada card */
  flex:1 1 260px;   /* cresce até encher a linha */
  min-width:260px;  /* não fica apertado demais */
}

/* Responsivo (CARDS): 
   - Desktop: 3–4 por linha
   - Tablet: 2 por linha
   - Celular: 1 por linha
*/
@media (max-width: 1100px){
  .mw-parser-output .bro-card,
  .mw-parser-output
  div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"]
  > div[style*="border-radius:14px"][style*="padding:18px"]{
    flex:1 1 45%;   /* aprox. 2 por linha */
  }
}

@media (max-width: 700px){
  .mw-parser-output .bro-card,
  .mw-parser-output
  div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"]
  > div[style*="border-radius:14px"][style*="padding:18px"]{
    flex:1 1 100%;  /* 1 por linha */
  }
}

/* ===================================================================== */
/* ==================   PÍLULAS / LINKS BONITINHOS   =================== */
/* ===================================================================== */

/* Pílulas dentro de .bro-card (se usar essa classe no futuro) */
.bro-card .broaurora-link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border:1px solid rgba(36,161,55,.30) !important; /* verde */
  border-radius:12px;
  background:#fff;
  color:#0f2b3a !important;
  text-decoration:none !important;
  box-shadow:0 1px 0 rgba(15,43,58,.03);
  transition:transform .16s ease,
             box-shadow .16s ease,
             border-color .16s ease,
             background .16s ease,
             color .16s ease;
  line-height:1.25;
}
.bro-card .broaurora-link:hover{
  transform:scale(1.015);
  border-color:rgba(36,161,55,.50) !important;      /* verde hover */
  background:#f5fbff;
  color:#1f6aa5 !important;
  box-shadow:0 6px 18px rgba(41,109,162,.14);
}
.bro-card .broaurora-link .bro-ico{
  width:22px;
  height:22px;
  object-fit:contain;
  background:#f6fbff;
  border-radius:6px;
  padding:2px;
  box-shadow:inset 0 0 0 1px rgba(31,106,165,.12);
}
.bro-card ul{list-style:none; margin:0; padding:0;}
.bro-card li{margin:10px 0;}

/* Pílulas em QUALQUER lugar da página (incluindo sua home atual) */
.mw-parser-output .broaurora-link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border:1px solid rgba(36,161,55,.30) !important; /* verde */
  border-radius:12px;
  background:#fff;
  color:#0f2b3a !important;
  text-decoration:none !important;
  box-shadow:0 1px 0 rgba(15,43,58,.03);
  transition:transform .16s ease,
             box-shadow .16s ease,
             border-color .16s ease,
             background .16s ease,
             color .16s ease;
  line-height:1.25;
}
.mw-parser-output .broaurora-link:hover{
  transform:scale(1.015);
  border-color:rgba(36,161,55,.50) !important;      /* verde hover */
  background:#f5fbff;
  color:#1f6aa5 !important;
  box-shadow:0 6px 18px rgba(41,109,162,.14);
}

/* listas “limpas” */
.mw-parser-output ul.bro-list{
  list-style:none;
  margin:0;
  padding:0;
}
.mw-parser-output ul.bro-list > li{
  margin:10px 0;
}

/* Cores dos textos nas pílulas */
.mw-parser-output .broaurora-link,
.mw-parser-output .broaurora-link a{
  color:#1a2a3a !important;            /* cor normal */
  text-decoration:none !important;
}
.mw-parser-output .broaurora-link:hover,
.mw-parser-output .broaurora-link:hover a{
  color:#1f6aa5 !important;            /* cor no hover */
}

/* ===================================================================== */
/* ==================   NAVI (/navi clicável)   ======================== */
/* ===================================================================== */

.mw-parser-output .navi-copy {
  cursor: pointer;
  display: inline;
  white-space: nowrap;
  padding: 0 2px;

  color: #008000;           /* verdinho */
  font-weight: normal;      /* tira o "negrito" */
  text-decoration: none;
}

.mw-parser-output .navi-copy:hover {
  color: #00a000;           /* um verde um pouco mais claro no hover */
  text-decoration: underline;
}