MediaWiki:Common.css

De Grimopedia
Revisão de 15h14min de 16 de outubro de 2025 por Andrei478 (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.
/* ===== CTAs com <gallery> — bulletproof para várias versões do MW ===== */

/* 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: 24px;
  flex-wrap: wrap;
  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 */
  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 */
@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; }
}

/* Cursor “mãozinha” nos CTAs */
.mw-parser-output .bro-cta-gallery .gallerybox { cursor: pointer; }

/* Um pouquinho mais de respiro embaixo da faixa de CTAs */
.mw-parser-output .bro-cta-gallery { margin-bottom: 18px !important; }

/* Borda de foco acessível pra quem navega no teclado */
.mw-parser-output .bro-cta-gallery .gallerybox:focus-within img {
  outline: 3px solid #1f6aa5; outline-offset: 3px;
}

/* Tamanhos mais compactos (se quiser) */
@media (min-width: 1200px){
  .mw-parser-output .bro-cta-gallery img { width: 300px; }
}

/* ====== Cabeçalho do bloco (título com ícone + risquinho) ====== */
.bro-secbar {
  background: linear-gradient(90deg,#0f2b3a,#24546b,#0f2b3a);
  padding: 18px 24px;
  text-align: center;
}
.bro-secbar h2 {
  color: #fff;
  margin: 0;
  font-size: 1.6em;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.bro-secbar .bro-sec-icon {
  width: 22px; height: 22px;
  vertical-align: middle;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}
/* risquinho central logo abaixo do título */
.bro-secbar::after {
  content: "";
  display: block;
  width: 240px;              /* ajuste se quiser mais/menos */
  height: 4px;
  margin: 10px auto 0;
  background: #97d0ff;
  border-radius: 999px;
  opacity: .9;
}

/* ====== Grid de cards ====== */
.bro-cards { display: grid; grid-template-columns: repeat(4, minmax(240px,1fr)); gap: 20px; padding: 24px; }
@media (max-width: 1100px){ .bro-cards { grid-template-columns: repeat(2, minmax(240px,1fr)); } }
@media (max-width: 640px){ .bro-cards { grid-template-columns: 1fr; } }

.bro-card {
  border: 1px solid rgba(31,106,165,.35);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15,43,58,.06);
}

/* Título do card com “risquinho” próprio */
.bro-card h3 {
  color: #1f6aa5; font-size: 1.1em; margin: 0 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid rgba(31,106,165,.25);
  display: flex; align-items: center; gap: 8px;
}
.bro-card h3 .bro-cat-ico { width: 20px; height: 20px; object-fit: contain; }

/* ====== Pílulas de link com ícone (efeito zoom) ====== */
.bro-card ul { list-style: none; margin: 0; padding: 0; }
.bro-card li { margin: 10px 0; }

.bro-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(31,106,165,.30);
  background: #fff;
  border-radius: 12px;
  color: #1a2a3a;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
  box-shadow: 0 1px 0 rgba(15,43,58,.03);
  line-height: 1.25;
}
.bro-pill:hover {
  transform: scale(1.02);
  border-color: #1f6aa5;
  box-shadow: 0 6px 16px rgba(31,106,165,.14);
  color: #1f6aa5;
  text-decoration: none;
  background: rgba(31,106,165,.04);
}
.bro-pill .bro-ico {
  width: 22px; height: 22px; object-fit: contain;
  border-radius: 6px;
  background: #f6fbff;        /* leve “pastilha” atrás do ícone */
  padding: 2px;
  box-shadow: inset 0 0 0 1px rgba(31,106,165,.10);
}
/* ===== Esconde "Arquivo:..." (redlink) quando o ícone ainda não foi enviado ===== */
/* Pílulas (ícones à esquerda) */
.bro-pill a.new {
  display: inline-block !important;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: #f0f6fb;                 /* placeholder suave */
  box-shadow: inset 0 0 0 1px rgba(31,106,165,.12);
  vertical-align: middle;
  overflow: hidden;
  text-indent: -9999px;                 /* esconde o texto "Arquivo:..." */
  line-height: 0;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  color: transparent !important;
}

/* Ícones dos títulos (h2/h3) quando o arquivo não existe */
.bro-secbar h2 .new,
.bro-card h3 .new {
  display: inline-block !important;
  width: 20px; height: 20px;
  border-radius: 4px;
  background: #f0f6fb;
  box-shadow: inset 0 0 0 1px rgba(31,106,165,.12);
  overflow: hidden;
  text-indent: -9999px;
  vertical-align: -2px;
  margin-right: 6px;
  color: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

/* Garante espaçamento certinho quando o ícone é redlink */
.bro-pill .new + span,
.bro-card h3 .new + span { margin-left: 6px; }
/* ===== Pílulas/linhas usando os <a class="broaurora-link"> do seu wikitexto ===== */
.bro-card ul { list-style: none; margin: 0; padding: 0; }
.bro-card li { margin: 10px 0; }

/* “pílula” padrão */
.bro-card a.broaurora-link {
  display: block;
  padding: 12px 14px;
  border: 1px solid #d3e3ee !important;
  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;
}

/* hover com leve zoom */
.bro-card a.broaurora-link:hover {
  transform: scale(1.015);
  border-color: #a7cfe7 !important;
  background: #f5fbff;
  color: #1f6aa5 !important;
  box-shadow: 0 6px 18px rgba(41,109,162,.14);
}

/* Títulos dos cards com traço fininho (se já não estiver) */
.bro-card h3 {
  margin: 0 0 14px;
  font-size: 1.05em;
  color: #0f3a55;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.bro-card h3::after {
  content: "";
  display: block;
  position: relative;
  top: 10px;
  width: 100%;
  height: 3px;
  background: #d6eefc;
  border-radius: 999px;
}

/* Barra da seção (se quiser manter igual ao print) */
.bro-secbar{
  position: relative;
  background: linear-gradient(180deg,#1a2f3d,#193649 58%,#17384a);
  padding: 26px 24px 22px;
  text-align:center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.bro-secbar h2{
  margin:0; color:#fff; font-weight:800; font-size:1.9em;
  display:inline-flex; align-items:center; gap:10px;
  text-shadow:0 2px 4px rgba(0,0,0,.25);
}
.bro-secbar::before{
  content:""; position:absolute; left:40px; right:40px; bottom:10px;
  height:2px; background:rgba(255,255,255,.25); border-radius:999px;
}
.bro-secbar::after{
  content:""; position:absolute; left:50%; bottom:10px; transform:translateX(-50%);
  width:36%; height:6px; background:#97d0ff; border-radius:999px;
  box-shadow:0 1px 4px rgba(151,208,255,.6) inset;
}

/* Grid de cards (mantém seu layout atual) */
.bro-cards{ display:grid; grid-template-columns:repeat(4,minmax(260px,1fr)); gap:22px; padding:22px; }
@media (max-width:1100px){ .bro-cards{ grid-template-columns:repeat(2,minmax(260px,1fr)); } }
@media (max-width:640px){ .bro-cards{ grid-template-columns:1fr; } }

.bro-card{
  background:#fff; border:1px solid #e8eef3; border-radius:14px;
  box-shadow:0 4px 14px rgba(15,43,58,.08); padding:18px;
}