|
|
| Linha 1: |
Linha 1: |
| /* =============================== | | /* =============== broAurora — Common.css (mínimo) =============== */ |
| broAurora — Common.css (completo)
| | /* Herói: só centraliza textos (não vira flex) */ |
| Compatível com Vector e Vector-2022
| | .bro-hero { |
| =============================== */
| | text-align: center; |
| | | padding: 28px 16px 8px; |
| /* ---------- Globais / variáveis de tema locais ---------- */ | |
| .mw-parser-output .broaurora-root {
| |
| --broaurora-primary: #1f6aa5;
| |
| --broaurora-primary-light: #2b8ec8;
| |
| --broaurora-blue-dark: #0f2b3a;
| |
| --broaurora-blue-light: #24546b;
| |
| --broaurora-text: #FFD23C;
| |
| --broaurora-text-secondary: #ffe79a;
| |
| --broaurora-border: rgba(31,106,165,.35);
| |
| --broaurora-hover: rgba(31,106,165,.12);
| |
| --broaurora-shadow: rgba(15,43,58,.22);
| |
| }
| |
| | |
| /* ---------- Oculta título/metas SOMENTE na Página principal ---------- */
| |
| 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,
| |
| body.page-Página_principal .mw-indicator {
| |
| display: none !important; | |
| }
| |
| | |
| /* ---------- Respiro no topo quando o primeiro bloco é o herói ---------- */
| |
| .skin-vector .mw-body-content > .broaurora-root:first-child,
| |
| .skin-vector .vector-body > .broaurora-root:first-child,
| |
| .skin-vector-2022 .mw-content-container .mw-parser-output > .broaurora-root:first-child {
| |
| margin-top: 12px; | |
| }
| |
| | |
| /* Remove qualquer espaçamento alto residual no topo da Home */
| |
| body.page-Página_principal .mw-body { padding-top: 0.5rem; }
| |
| /* Evita linha/borda entre topo e conteúdo em algumas skins */
| |
| body.page-Página_principal #content { border-top: 0; }
| |
| | |
| /* ---------- Fundo/brilho do container no Vector-2022 ---------- */
| |
| .skin-vector-2022 .vector-header-container,
| |
| .skin-vector-2022 .mw-page-container,
| |
| .skin-vector-2022 .mw-content-container {
| |
| background: #ffffff;
| |
| }
| |
| .skin-vector-2022 #content,
| |
| .skin-vector-2022 .mw-body {
| |
| border-top: 0;
| |
| }
| |
| | |
| /* ---------- (Opcional) Wordmark via CSS até configurar $wgLogos ---------- */
| |
| /* Troque a URL abaixo pelo teu arquivo, se quiser usar apenas o wordmark */
| |
| .skin-vector-2022 .mw-logo-wordmark img {
| |
| /* content: url("/images/whatever/BRO_Aurora_wordmark.svg"); */
| |
| height: auto;
| |
| } | | } |
| .skin-vector-2022 .mw-logo-icon { /* display: none; */ } /* descomente se quiser ocultar o ícone */
| |
|
| |
| /* ---------- Blocos full width dentro do conteúdo ---------- */
| |
| .mw-parser-output .broaurora-hero,
| |
| .mw-parser-output .broaurora-card,
| |
| #content .broaurora-hero,
| |
| #content .broaurora-card {
| |
| max-width: 100%;
| |
| }
| |
|
| |
| /* ---------- Links “card/list” padrão reutilizáveis ---------- */
| |
| .broaurora-link {
| |
| display: block;
| |
| text-decoration: none;
| |
| color: #1a2a3a;
| |
| padding: 10px 12px;
| |
| border: 1px solid var(--broaurora-border, rgba(31,106,165,.35));
| |
| border-radius: 10px;
| |
| transition: all .2s ease;
| |
| }
| |
| .broaurora-link:hover {
| |
| background: var(--broaurora-hover, rgba(31,106,165,.12));
| |
| color: var(--broaurora-primary, #1f6aa5);
| |
| border-color: var(--broaurora-primary, #1f6aa5);
| |
| text-decoration: none;
| |
| }
| |
|
| |
| /* ===========================================================
| |
| LINHA DE CTAs (3 IMAGENS) — centralizadas e lado a lado
| |
| =========================================================== */
| |
|
| |
| /* O bloco do título não deve virar flex */
| |
| .mw-parser-output .bro-hero { display: block; }
| |
|
| |
|
| /* Container FLEX das artes */ | | /* Barra de CTAs: lado a lado + responsivo */ |
| .mw-parser-output .bro-cta-row {
| | .bro-cta-bar { |
| display: flex !important; | | display: flex; |
| justify-content: center; | | justify-content: center; |
| align-items: center; | | align-items: center; |
| gap: 24px; /* espaço entre as imagens */ | | gap: 24px; |
| flex-wrap: wrap; /* quebra no mobile */ | | flex-wrap: wrap; /* quebra no mobile */ |
| margin: 14px auto 0; | | margin: 14px auto 0; |
| text-align: center;
| |
| width: 100%; | | width: 100%; |
| clear: both; /* corta floats anteriores */
| |
| } | | } |
|
| |
|
| /* Zera floats/embalagens que o MediaWiki pode injetar */
| | /* Cada CTA é um link “limpo” */ |
| .mw-parser-output .bro-cta-row .image,
| | .bro-cta { |
| .mw-parser-output .bro-cta-row .thumb,
| | display: block; |
| .mw-parser-output .bro-cta-row .thumbinner,
| |
| .mw-parser-output .bro-cta-row .mw-halign-right,
| |
| .mw-parser-output .bro-cta-row .mw-halign-left,
| |
| .mw-parser-output .bro-cta-row .floatright,
| |
| .mw-parser-output .bro-cta-row .floatleft {
| |
| float: none !important;
| |
| margin: 0 !important;
| |
| border: 0 !important;
| |
| background: transparent !important;
| |
| box-shadow: none !important;
| |
| }
| |
| | |
| /* Remove quebras acidentais (<br>) e <p> embrulhando */
| |
| .mw-parser-output .broaurora-root .bro-cta-row > br { display: none !important; }
| |
| .mw-parser-output .bro-cta-row > p { display: contents !important; margin: 0 !important; }
| |
| | |
| /* Cada item clicável (neutro) */ | |
| .mw-parser-output .broaurora-root .bro-cta {
| |
| display: inline-block; | |
| line-height: 0; | | line-height: 0; |
| padding: 0; | | text-decoration: none; |
| margin: 0;
| | outline: none; |
| border: 0 !important;
| |
| background: transparent !important;
| |
| box-shadow: none !important;
| |
| vertical-align: middle; | |
| } | | } |
|
| |
|
| /* Neutraliza estilo padrão do <a class="image"> e variantes */ | | /* Imagem do CTA (controlamos tamanho aqui, independente do wiki) */ |
| .mw-parser-output .broaurora-root .bro-cta-row a.image,
| | .bro-cta img { |
| .mw-parser-output .broaurora-root .bro-cta-row a.mw-file-description {
| |
| display: block; | | display: block; |
| float: none !important; | | width: 320px; /* desktop padrão */ |
| background: transparent !important;
| | max-width: 100%; |
| border: 0 !important;
| |
| box-shadow: none !important;
| |
| padding: 0 !important;
| |
| margin: 0 !important;
| |
| }
| |
| | |
| /* A imagem em si (tamanho controlado via CSS; mantém proporção) */ | |
| .mw-parser-output .bro-cta img {
| |
| display: block;
| |
| width: 350px; /* desktop padrão */
| |
| height: auto; | | height: auto; |
| border: 0 !important; | | border: 0 !important; |
| Linha 155: |
Linha 36: |
| transition: transform .22s ease; | | transition: transform .22s ease; |
| transform-origin: center center; | | transform-origin: center center; |
| will-change: transform;
| |
| } | | } |
|
| |
|
| /* Hover: zoom suave (sem borda/sombra) */ | | /* Zoom suave */ |
| .mw-parser-output .bro-cta:hover img,
| | .bro-cta:hover img, |
| .mw-parser-output .bro-cta a:focus-visible img {
| | .bro-cta:focus-visible img { |
| transform: scale(1.06); | | transform: scale(1.06); |
| outline: none; | | outline: none; |
| } | | } |
|
| |
|
| /* Responsivo: ajusta gap e largura das imagens */ | | /* Responsivo */ |
| @media (max-width: 900px){ | | @media (max-width: 900px) { |
| .mw-parser-output .bro-cta-row { gap: 18px; } | | .bro-cta-bar { gap: 18px; } |
| .mw-parser-output .bro-cta img { width: 300px; } | | .bro-cta img { width: 280px; } |
| } | | } |
| @media (max-width: 600px){ | | @media (max-width: 600px) { |
| .mw-parser-output .bro-cta img { width: 240px; } | | .bro-cta img { width: 220px; } |
| } | | } |
|
| |
|
| /* Salvaguardas extras contra thumbs teimosos */ | | /* (Opcional) Esconde título/metas só na Home — pode remover se não quiser */ |
| .mw-parser-output .broaurora-root .bro-cta-row .thumbcaption, | | body.page-Página_principal #firstHeading, |
| .mw-parser-output .broaurora-root .bro-cta-row .magnify { | | body.page-Página_principal #siteSub, |
| display: none !important;
| | body.page-Página_principal #contentSub, |
| }
| | body.page-Página_principal .mw-indicators { display: none !important; } |
| | |
| /* ===========================================================
| |
| Pequenos utilitários
| |
| =========================================================== */
| |
| /* Ajuste de avisos (SiteNotice), se existir */
| |
| #siteNotice { margin: 0; }
| |
| .skin-vector-2022 #siteNotice { margin: 0 0 8px 0; }
| |