MediaWiki:Common.css: mudanças entre as edições
Ir para navegação
Ir para pesquisar
Sem resumo de edição |
Sem resumo de edição |
||
| Linha 1: | Linha 1: | ||
/* ===== | /* ===== CTAs com <gallery> — bulletproof para várias versões do MW ===== */ | ||
/* Fonte dos títulos (Google Fonts) */ | |||
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap'); | @import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap'); | ||
/* | /* CONTAINER GERAL – mantém a página centralizada e com largura máxima */ | ||
.broaurora-root { | .broaurora-root { | ||
max-width: 1200px; /* largura | max-width: 1200px; /* largura “oficial” da página */ | ||
margin: 0 auto; /* centraliza */ | margin: 0 auto; /* centraliza */ | ||
padding: 0 16px; /* respiro lateral em telas menores */ | padding: 0 16px; /* respiro lateral em telas menores */ | ||
box-sizing: border-box; /* padding não estoura a largura */ | box-sizing: border-box; /* padding não estoura a largura */ | ||
} | } | ||
/* 1) Transformar QUALQUER container do gallery em flex horizontal */ | /* 1) Transformar QUALQUER container do gallery em flex horizontal */ | ||
| Linha 27: | Linha 22: | ||
justify-content: center; | justify-content: center; | ||
align-items: center; | align-items: center; | ||
gap: | gap: 24px; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
margin: 14px auto 0 !important; | margin: 14px auto 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
| Linha 68: | Linha 63: | ||
display: block; | display: block; | ||
width: 320px; /* desktop padrão */ | width: 320px; /* desktop padrão */ | ||
height: auto; | height: auto; | ||
transition: transform .22s ease; | transition: transform .22s ease; | ||
| Linha 77: | Linha 71: | ||
} | } | ||
/* 5) Responsivo (CTAs) — | /* 5) Responsivo (CTAs) — reduzir e depois forçar scroll horizontal em telas pequenas */ | ||
@media (max-width: | @media (max-width: 1280px){ | ||
.mw-parser-output .bro-cta-gallery { gap: | .mw-parser-output .bro-cta-gallery { gap: 18px; } | ||
.mw-parser-output .bro-cta-gallery img { width: 280px; } | .mw-parser-output .bro-cta-gallery img { width: 280px; } | ||
} | |||
@media (max-width: 1024px){ | |||
.mw-parser-output .bro-cta-gallery img { width: 240px; } | |||
} | } | ||
@media (max-width: 900px){ | @media (max-width: 900px){ | ||
.mw-parser-output .bro-cta-gallery img { width: | .mw-parser-output .bro-cta-gallery{ | ||
flex-wrap: nowrap; | |||
overflow-x: auto; | |||
-webkit-overflow-scrolling: touch; | |||
padding-bottom: 8px !important; /* espaço pro scroll */ | |||
} | |||
.mw-parser-output .bro-cta-gallery .gallerybox{ flex:0 0 auto; } | |||
.mw-parser-output .bro-cta-gallery img { width: 260px; } | |||
} | } | ||
@media (max-width: | @media (max-width: 720px){ | ||
.mw-parser-output .bro-cta-gallery img { width: | .mw-parser-output .bro-cta-gallery img { width: 220px; } | ||
} | } | ||
/* ====== | /* ====== CARDS / BLOCOS ====== | ||
Regras gerais por classe (use se quiser): .bro-cards (container), .bro-card (cada coluna) | |||
Mas abaixo também há seletores que "auto-detectam" seu HTML atual com inline style. | |||
*/ | |||
.mw-parser-output .bro-cards{ | .mw-parser-output .bro-cards{ | ||
display:flex; | display:flex; gap:20px; flex-wrap:wrap; align-items:stretch; | ||
} | } | ||
.mw-parser-output .bro-card{ | .mw-parser-output .bro-card{ | ||
flex:1 1 | flex:1 1 320px; min-width:260px; | ||
border:1px solid rgba(36,161,55,.30); border-radius:14px; padding:18px; background:#fff; | |||
border:1px solid rgba(36,161,55,.30); | |||
} | } | ||
/* Auto-detecção do seu markup atual ( | /* Auto-detecção do seu markup atual (sem precisar editar o HTML): | ||
Pega <div style*="display:flex; flex-wrap:wrap; gap:20px;"> como container | |||
e cada <div style*="border-radius:14px; padding:18px"> como card | |||
*/ | |||
.mw-parser-output div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"]{ | .mw-parser-output div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"]{ | ||
/* container de cards | /* container de cards */ | ||
overflow: visible; /* default */ | |||
} | |||
.mw-parser-output div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"] > div[style*="border-radius:14px"][style*="padding:18px"]{ | |||
/* card */ | |||
flex:1 1 320px; | |||
min-width:260px; | |||
} | } | ||
.mw-parser-output | /* Responsivo (CARDS): diminuir largura e, em telas menores, virar uma faixa com scroll horizontal */ | ||
div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"] | @media (max-width: 1280px){ | ||
> div[style*="border-radius:14px"][style*="padding:18px"]{ | .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:0 0 300px; | |||
} | |||
} | } | ||
@media (max-width: 1100px){ | @media (max-width: 1100px){ | ||
.mw-parser-output .bro-card, | .mw-parser-output .bro-card, | ||
.mw-parser-output | .mw-parser-output div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"] > div[style*="border-radius:14px"][style*="padding:18px"]{ | ||
div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"] | flex:0 0 280px; | ||
> div[style*="border-radius:14px"][style*="padding:18px"]{ | } | ||
flex: | } | ||
@media (max-width: 980px){ | |||
/* força uma linha com scroll horizontal, mantendo lado a lado */ | |||
.mw-parser-output .bro-cards, | |||
.mw-parser-output div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"]{ | |||
flex-wrap: nowrap !important; | |||
overflow-x: auto; | |||
-webkit-overflow-scrolling: touch; | |||
padding-bottom: 8px; | |||
} | |||
.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:0 0 260px; | |||
} | |||
} | |||
@media (max-width: 820px){ | |||
.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:0 0 230px; | |||
} | } | ||
} | } | ||
@media (max-width: 700px){ | @media (max-width: 700px){ | ||
.mw-parser-output .bro-card, | .mw-parser-output .bro-card, | ||
.mw-parser-output | .mw-parser-output div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"] > div[style*="border-radius:14px"][style*="padding:18px"]{ | ||
flex:0 0 210px; | |||
flex: | |||
} | } | ||
} | } | ||
/* | /* Modos opcionais (se quiser controlar por classe no HTML) */ | ||
/* === | .mw-parser-output .bro-cards.nowrap{ | ||
flex-wrap: nowrap; | |||
overflow-x: auto; | |||
-webkit-overflow-scrolling: touch; | |||
padding-bottom: 8px; | |||
} | |||
.mw-parser-output .bro-cards.nowrap .bro-card{ flex:0 0 260px; } | |||
/* Scrollbar mais discreta (opcional) */ | |||
.mw-parser-output .bro-cta-gallery, | |||
.mw-parser-output .bro-cards, | |||
.mw-parser-output div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"]{ | |||
scrollbar-width: thin; | |||
scrollbar-color: rgba(0,0,0,.35) transparent; | |||
} | |||
.mw-parser-output .bro-cta-gallery::-webkit-scrollbar, | |||
.mw-parser-output .bro-cards::-webkit-scrollbar, | |||
.mw-parser-output div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"]::-webkit-scrollbar{ | |||
height: 8px; | |||
} | |||
.mw-parser-output .bro-cta-gallery::-webkit-scrollbar-thumb, | |||
.mw-parser-output .bro-cards::-webkit-scrollbar-thumb, | |||
.mw-parser-output div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"]::-webkit-scrollbar-thumb{ | |||
background: rgba(0,0,0,.35); | |||
border-radius: 4px; | |||
} | |||
/* | /* ===== PÍLULAS/LINHAS (links) ===== */ | ||
.bro-card .broaurora-link{ | .bro-card .broaurora-link{ | ||
display:flex; | display:flex; align-items:center; gap:10px; | ||
padding:12px 14px; | padding:12px 14px; | ||
border:1px solid rgba(36,161,55,.30) !important; /* verde */ | border:1px solid rgba(36,161,55,.30) !important; /* verde */ | ||
| Linha 166: | Linha 197: | ||
text-decoration:none !important; | text-decoration:none !important; | ||
box-shadow:0 1px 0 rgba(15,43,58,.03); | box-shadow:0 1px 0 rgba(15,43,58,.03); | ||
transition:transform .16s ease, | transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease; | ||
line-height:1.25; | line-height:1.25; | ||
} | } | ||
| Linha 181: | Linha 208: | ||
} | } | ||
.bro-card .broaurora-link .bro-ico{ | .bro-card .broaurora-link .bro-ico{ | ||
width:22px; | width:22px; height:22px; object-fit:contain; | ||
background:#f6fbff; border-radius:6px; padding:2px; | |||
background:#f6fbff; | |||
box-shadow:inset 0 0 0 1px rgba(31,106,165,.12); | box-shadow:inset 0 0 0 1px rgba(31,106,165,.12); | ||
} | } | ||
| Linha 192: | Linha 215: | ||
.bro-card li{margin:10px 0;} | .bro-card li{margin:10px 0;} | ||
/* Pílulas em QUALQUER lugar da página | /* Pílulas em QUALQUER lugar da página */ | ||
.mw-parser-output .broaurora-link{ | .mw-parser-output .broaurora-link{ | ||
display:flex; | display:flex; align-items:center; gap:10px; | ||
padding:12px 14px; | padding:12px 14px; | ||
border:1px solid rgba(36,161,55,.30) !important; /* verde */ | border:1px solid rgba(36,161,55,.30) !important; /* verde */ | ||
| Linha 204: | Linha 225: | ||
text-decoration:none !important; | text-decoration:none !important; | ||
box-shadow:0 1px 0 rgba(15,43,58,.03); | box-shadow:0 1px 0 rgba(15,43,58,.03); | ||
transition:transform .16s ease, | transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease; | ||
line-height:1.25; | line-height:1.25; | ||
} | } | ||
| Linha 220: | Linha 237: | ||
/* listas “limpas” */ | /* listas “limpas” */ | ||
.mw-parser-output ul.bro-list{ | .mw-parser-output ul.bro-list{ list-style:none; margin:0; padding:0; } | ||
.mw-parser-output ul.bro-list > li{ margin:10px 0; } | |||
} | |||
.mw-parser-output ul.bro-list > li{ | |||
} | |||
/* Cores dos textos nas pílulas */ | /* Cores dos textos nas pílulas */ | ||
| Linha 240: | Linha 251: | ||
} | } | ||
/* ===== | /* ===== Navi (/navi clicável) ===== */ | ||
.mw-parser-output .navi-copy { | .mw-parser-output .navi-copy { | ||
cursor: pointer; | cursor: pointer; | ||
Edição das 15h45min de 7 de novembro de 2025
/* ===== CTAs com <gallery> — bulletproof para várias versões do MW ===== */
/* Fonte dos títulos (Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');
/* CONTAINER GERAL – mantém a página centralizada e com largura máxima */
.broaurora-root {
max-width: 1200px; /* largura “oficial” da página */
margin: 0 auto; /* centraliza */
padding: 0 16px; /* respiro lateral em telas menores */
box-sizing: border-box; /* padding não estoura a largura */
}
/* 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 (CTAs) — reduzir e depois forçar scroll horizontal em telas pequenas */
@media (max-width: 1280px){
.mw-parser-output .bro-cta-gallery { gap: 18px; }
.mw-parser-output .bro-cta-gallery img { width: 280px; }
}
@media (max-width: 1024px){
.mw-parser-output .bro-cta-gallery img { width: 240px; }
}
@media (max-width: 900px){
.mw-parser-output .bro-cta-gallery{
flex-wrap: nowrap;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
padding-bottom: 8px !important; /* espaço pro scroll */
}
.mw-parser-output .bro-cta-gallery .gallerybox{ flex:0 0 auto; }
.mw-parser-output .bro-cta-gallery img { width: 260px; }
}
@media (max-width: 720px){
.mw-parser-output .bro-cta-gallery img { width: 220px; }
}
/* ====== CARDS / BLOCOS ======
Regras gerais por classe (use se quiser): .bro-cards (container), .bro-card (cada coluna)
Mas abaixo também há seletores que "auto-detectam" seu HTML atual com inline style.
*/
.mw-parser-output .bro-cards{
display:flex; gap:20px; flex-wrap:wrap; align-items:stretch;
}
.mw-parser-output .bro-card{
flex:1 1 320px; 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 (sem precisar editar o HTML):
Pega <div style*="display:flex; flex-wrap:wrap; gap:20px;"> como container
e cada <div style*="border-radius:14px; padding:18px"> como card
*/
.mw-parser-output div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"]{
/* container de cards */
overflow: visible; /* default */
}
.mw-parser-output div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"] > div[style*="border-radius:14px"][style*="padding:18px"]{
/* card */
flex:1 1 320px;
min-width:260px;
}
/* Responsivo (CARDS): diminuir largura e, em telas menores, virar uma faixa com scroll horizontal */
@media (max-width: 1280px){
.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:0 0 300px;
}
}
@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:0 0 280px;
}
}
@media (max-width: 980px){
/* força uma linha com scroll horizontal, mantendo lado a lado */
.mw-parser-output .bro-cards,
.mw-parser-output div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"]{
flex-wrap: nowrap !important;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
padding-bottom: 8px;
}
.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:0 0 260px;
}
}
@media (max-width: 820px){
.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:0 0 230px;
}
}
@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:0 0 210px;
}
}
/* Modos opcionais (se quiser controlar por classe no HTML) */
.mw-parser-output .bro-cards.nowrap{
flex-wrap: nowrap;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
padding-bottom: 8px;
}
.mw-parser-output .bro-cards.nowrap .bro-card{ flex:0 0 260px; }
/* Scrollbar mais discreta (opcional) */
.mw-parser-output .bro-cta-gallery,
.mw-parser-output .bro-cards,
.mw-parser-output div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"]{
scrollbar-width: thin;
scrollbar-color: rgba(0,0,0,.35) transparent;
}
.mw-parser-output .bro-cta-gallery::-webkit-scrollbar,
.mw-parser-output .bro-cards::-webkit-scrollbar,
.mw-parser-output div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"]::-webkit-scrollbar{
height: 8px;
}
.mw-parser-output .bro-cta-gallery::-webkit-scrollbar-thumb,
.mw-parser-output .bro-cards::-webkit-scrollbar-thumb,
.mw-parser-output div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"]::-webkit-scrollbar-thumb{
background: rgba(0,0,0,.35);
border-radius: 4px;
}
/* ===== PÍLULAS/LINHAS (links) ===== */
.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 */
.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;
}