MediaWiki:Citizen.css: mudanças entre as edições
Página de Interface do MediaWiki
Mais ações
Sem resumo de edição |
Sem resumo de edição |
||
| Linha 304: | Linha 304: | ||
/* ================================================================= */ | /* ================================================================= */ | ||
/* | /* 🛡️ PADRÃO VISUAL CELTA | ||
/* ================================================================= */ | /* ================================================================= */ | ||
/* 1. REMOÇÃO DAS SETAS (COLLAPSE ICONS) | /* 1. REMOÇÃO AGRESSIVA DAS SETAS (COLLAPSE ICONS) | ||
Tentamos esconder o input, o label, o indicador e o span. | |||
Uma dessas regras VAI pegar. | |||
*/ | */ | ||
.citizen-section-heading-indicator, | .citizen-section-heading-indicator, | ||
.mw-heading .indicator { | .mw-heading .indicator, | ||
label.citizen-section-heading-indicator, | |||
input.citizen-section-heading-toggle, | |||
.client-js .citizen-section-heading-indicator { | |||
display: none !important; | display: none !important; | ||
visibility: hidden !important; | |||
opacity: 0 !important; | |||
width: 0 !important; | |||
max-width: 0 !important; | |||
} | } | ||
/* 2. RESET DA LINHA HORIZONTAL | /* Remove a função de clicar para fechar (já que sumimos com a seta) */ | ||
.citizen-section-heading-label { | |||
pointer-events: none !important; | |||
cursor: default !important; | |||
} | |||
/* 2. RESET DA LINHA HORIZONTAL */ | |||
hr { | hr { | ||
margin | margin: 15px 0 !important; | ||
height: 1px; border: none; | height: 1px; border: none; | ||
background-color: var(--border-color-base, #eaecf0); | background-color: var(--border-color-base, #eaecf0); | ||
} | } | ||
/* 3. TÍTULOS H2 ( | /* 3. TÍTULOS H2 (BARRA AZUL) */ | ||
*/ | |||
.mw-body h2 { | .mw-body h2 { | ||
border-bottom: 1px solid var(--border-color-base, #eaecf0); | border-bottom: 1px solid var(--border-color-base, #eaecf0) !important; | ||
border-left: 5px solid var(--color-primary, #3366cc); | border-left: 5px solid var(--color-primary, #3366cc) !important; | ||
padding-left: 12px !important; | |||
padding-bottom: 5px !important; | |||
padding-left: 12px; | margin: 0 !important; | ||
padding-bottom: 5px; | font-weight: 700 !important; | ||
margin: 0 !important; | font-size: 1.3em !important; | ||
line-height: 1.3 !important; | |||
font-weight: 700; | |||
font-size: 1.3em; | |||
line-height: 1.3; | |||
} | } | ||
/* Wrapper do Título | /* Wrapper do Título - Forçando margem */ | ||
.mw-heading.mw-heading2, | .mw-heading.mw-heading2, | ||
.citizen-section-heading { | .citizen-section-heading { | ||
margin-top: 25px !important; | margin-top: 25px !important; | ||
margin-bottom: 15px !important; | margin-bottom: 15px !important; | ||
padding | padding: 0 !important; | ||
} | } | ||
/* 4. TÍTULOS H3 (Subtítulos) */ | /* 4. TÍTULOS H3 (Subtítulos) */ | ||
.mw-heading.mw-heading3 { margin-top: | .mw-heading.mw-heading3 { margin-top: 25px !important; margin-bottom: 8px !important; } | ||
.mw-body h3 { | .mw-body h3 { | ||
padding-left: 10px; | padding-left: 10px !important; | ||
border-left: 3px solid var(--border-color-subtle, #c8ccd1); | border-left: 3px solid var(--border-color-subtle, #c8ccd1) !important; | ||
font-weight: 600; margin: 0 !important; | font-weight: 600 !important; margin: 0 !important; | ||
} | } | ||
/* 5. DESTAQUE DE INTRODUÇÃO (<big>) */ | /* 5. DESTAQUE DE INTRODUÇÃO (<big>) */ | ||
.mw-body big { | .mw-body big { | ||
display: block; | display: block !important; | ||
background-color: var(--background-color-interactive-subtle, #f8f9fa); | background-color: var(--background-color-interactive-subtle, #f8f9fa); | ||
border: 1px solid var(--border-color-base, #eaecf0); | border: 1px solid var(--border-color-base, #eaecf0); | ||
border-left: 4px solid var(--color-primary, #3366cc); | border-left: 4px solid var(--color-primary, #3366cc); | ||
border-radius: 4px; | border-radius: 4px; | ||
padding: 15px; | padding: 15px !important; | ||
margin-bottom: 15px; margin-top: 0px; | margin-bottom: 15px !important; margin-top: 0px !important; | ||
font-size: 1.05em | font-size: 1.05em !important; | ||
color: var(--color-base, #202122); | color: var(--color-base, #202122); | ||
} | } | ||
/* 6. ÍNDICE LATERAL (TOC) - | /* 6. ÍNDICE LATERAL (TOC) - FORÇA BRUTA */ | ||
/* | /* Garante que o container tenha a linha cinza */ | ||
.citizen-toc { | nav.citizen-toc, .citizen-toc { | ||
border-left: 1px solid | border-left: 1px solid #eaecf0 !important; | ||
} | } | ||
/* | /* Item ATIVO (Seção atual) */ | ||
.citizen-toc__item--active > a, | |||
.citizen-toc__item--active > .citizen-toc__link { | .citizen-toc__item--active > .citizen-toc__link { | ||
color: | color: #3366cc !important; /* Azul Celta */ | ||
font-weight: | font-weight: 700 !important; | ||
border-left: 3px solid | border-left: 3px solid #3366cc !important; | ||
background-color: | background-color: #f0f4ff !important; /* Fundo azul claro */ | ||
padding-left: | padding-left: 10px !important; | ||
text-decoration: none !important; | |||
display: block !important; /* Garante que o fundo preencha tudo */ | |||
} | } | ||
/* | /* Item HOVER (Passar o mouse) */ | ||
.citizen-toc__link:hover { | .citizen-toc__link:hover { | ||
color: | color: #3366cc !important; | ||
text-decoration: underline; | text-decoration: underline !important; | ||
background-color: #f8f9fa !important; | |||
} | } | ||
| Linha 399: | Linha 412: | ||
border-bottom: 2px solid var(--border-color-base, #eaecf0) !important; | border-bottom: 2px solid var(--border-color-base, #eaecf0) !important; | ||
text-transform: uppercase; font-size: 0.85em; padding: 10px !important; | text-transform: uppercase; font-size: 0.85em; padding: 10px !important; | ||
border-top: | border-top: 0 !important; border-left: 0 !important; border-right: 0 !important; | ||
} | } | ||
.wikitable td { | .wikitable td { | ||
border-bottom: 1px solid var(--border-color-base, #eaecf0) !important; | border-bottom: 1px solid var(--border-color-base, #eaecf0) !important; | ||
padding: 10px !important; | padding: 10px !important; | ||
border-top: | border-top: 0 !important; border-left: 0 !important; border-right: 0 !important; | ||
} | } | ||
Edição das 18h18min de 26 de novembro de 2025
/* --- FOOTER CORRIGIDO (PROTEGE A SIDEBAR) --- */
/* 1. Configuração do Container Principal */
.citizen-footer {
padding: 8px 20px !important;
margin-top: 30px !important;
}
/* 2. Forçar layout horizontal (Linha) */
.citizen-footer__content {
display: flex !important;
flex-direction: row !important;
align-items: center !important; /* Centraliza verticalmente */
justify-content: space-between !important; /* Espalha: Esq - Meio - Dir */
gap: 20px !important;
}
/* Oculta o texto "Celta Sistemas Wiki" SÓ no footer */
.citizen-footer .mw-logo-wordmark {
display: none !important;
}
/* Ajusta o tamanho da logo SÓ no footer */
.citizen-footer .citizen-footer__sitetitle {
margin: 0 !important;
padding: 0 !important;
display: block !important;
flex-shrink: 0; /* Impede que a logo seja esmagada */
}
.citizen-footer .mw-logo-icon {
height: 40px !important; /* Altura fixa para garantir que não fique minúscula */
width: auto !important;
display: block !important;
}
/* ----------------------------------------------------------- */
/* 3. TEXTO CENTRAL */
#footer-info {
margin: 0 !important;
padding: 0 !important;
text-align: center !important;
flex-grow: 1; /* Faz o texto ocupar o espaço central */
}
#footer-info li {
display: inline-block !important;
margin: 0 10px !important;
font-size: 0.85em !important;
line-height: 1 !important;
color: #666;
}
/* 4. ÍCONE MEDIAWIKI (DIREITA) */
#footer-icons {
margin: 0 !important;
padding: 0 !important;
flex-shrink: 0;
}
/* Ajuste para Celular (volta a empilhar para não quebrar) */
@media (max-width: 768px) {
.citizen-footer__content {
flex-direction: column !important;
gap: 10px !important;
}
}
/* --- AJUSTE FINO DO LOGO NO TOPO (SIDEBAR) --- */
.citizen-header .mw-logo-icon,
.citizen-drawer__header .mw-logo-icon {
height: 40px !important; /* Reduzi de 55px para 40px */
width: auto !important;
max-height: none !important;
margin-top: 2px !important; /* Um leve ajuste para centralizar */
}
/* --- REMOVER MENU DE PREFERÊNCIAS --- */
/* 1. Bloqueia pelo ID exato que aparece no seu inspetor */
#citizen-preferences-details {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
pointer-events: none !important;
}
/* 2. Bloqueia pelo texto do título (visto no seu print: "Alternar menu de preferências") */
summary[title="Alternar menu de preferências"],
summary[aria-label="Alternar menu de preferências"] {
display: none !important;
}
/* 3. Garante que suma da barra lateral rodapé
.citizen-sidebar__footer details,
.citizen-sidebar__footer summary {
display: none !important;
} */
/* --- RESPONSIVIDADE DAS TABELAS DA PÁGINA PRINCIPAL --- */
@media (max-width: 768px) {
.categoria-table,
.help-table {
display: block !important;
}
.categoria-table tbody,
.categoria-table tr,
.categoria-table td,
.help-table tbody,
.help-table tr,
.help-table td {
display: block !important;
width: 100% !important;
}
.categoria-table td,
.help-table td {
margin-bottom: 10px !important;
border-spacing: 0 !important;
}
}
/* --- REMOVER FUNDO CINZA DOS LINKS COM SPAN ---
a span,
a:visited span,
a:hover span,
a:active span {
background: none !important;
background-color: transparent !important;
}*/
/* Remove o texto "De Celta Sistemas Wiki" */
#siteSub {
display: none;
}
/* Ajuste do tamanho do título */
.citizen-page-header-inner .firstHeading,
.citizen-page-header .firstHeading,
#firstHeading {
font-size: 1.3em !important;
font-weight: 400 !important;
letter-spacing: -0.03em !important;
line-height: 1.2 !important;
padding-top: 0 !important;
padding-bottom: 0.2em !important;
margin: 0 !important;
}
.citizen-page-header {
padding-top: 0px !important;
padding-bottom: 0px !important;
margin-bottom: -0.8em !important;
}
.citizen-body-header {
padding-top: 0.3em !important;
margin-top: 0 !important;
}
/* Sombra para imagens com a classe screenshot */
.screenshot img {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
border: 1px solid #ddd;
border-radius: 4px;
}
/* --- FOOTER CORRIGIDO (PROTEGE A SIDEBAR) --- */
/* 1. Configuração do Container Principal */
.citizen-footer {
padding: 8px 20px !important;
margin-top: 30px !important;
}
/* 2. Forçar layout horizontal (Linha) */
.citizen-footer__content {
display: flex !important;
flex-direction: row !important;
align-items: center !important; /* Centraliza verticalmente */
justify-content: space-between !important; /* Espalha: Esq - Meio - Dir */
gap: 20px !important;
}
/* Oculta o texto "Celta Sistemas Wiki" SÓ no footer */
.citizen-footer .mw-logo-wordmark {
display: none !important;
}
/* Ajusta o tamanho da logo SÓ no footer */
.citizen-footer .citizen-footer__sitetitle {
margin: 0 !important;
padding: 0 !important;
display: block !important;
flex-shrink: 0; /* Impede que a logo seja esmagada */
}
.citizen-footer .mw-logo-icon {
height: 40px !important; /* Altura fixa para garantir que não fique minúscula */
width: auto !important;
display: block !important;
}
/* ----------------------------------------------------------- */
/* 3. TEXTO CENTRAL */
#footer-info {
margin: 0 !important;
padding: 0 !important;
text-align: center !important;
flex-grow: 1; /* Faz o texto ocupar o espaço central */
}
#footer-info li {
display: inline-block !important;
margin: 0 10px !important;
font-size: 0.85em !important;
line-height: 1 !important;
color: #666;
}
/* 4. ÍCONE MEDIAWIKI (DIREITA) */
#footer-icons {
margin: 0 !important;
padding: 0 !important;
flex-shrink: 0;
}
/* Ajuste para Celular (volta a empilhar para não quebrar) */
@media (max-width: 768px) {
.citizen-footer__content {
flex-direction: column !important;
gap: 10px !important;
}
}
/* --- AJUSTE FINO DO LOGO NO TOPO (SIDEBAR) --- */
.citizen-header .mw-logo-icon,
.citizen-drawer__header .mw-logo-icon {
height: 40px !important; /* Reduzi de 55px para 40px */
width: auto !important;
max-height: none !important;
margin-top: 2px !important; /* Um leve ajuste para centralizar */
}
/* --- REMOVER MENU DE PREFERÊNCIAS --- */
/* 1. Bloqueia pelo ID exato que aparece no seu inspetor */
#citizen-preferences-details {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
pointer-events: none !important;
}
/* 2. Bloqueia pelo texto do título (visto no seu print: "Alternar menu de preferências") */
summary[title="Alternar menu de preferências"],
summary[aria-label="Alternar menu de preferências"] {
display: none !important;
}
/* 3. Garante que suma da barra lateral rodapé
.citizen-sidebar__footer details,
.citizen-sidebar__footer summary {
display: none !important;
} */
/* --- RESPONSIVIDADE DAS TABELAS DA PÁGINA PRINCIPAL --- */
@media (max-width: 768px) {
.categoria-table,
.help-table {
display: block !important;
}
.categoria-table tbody,
.categoria-table tr,
.categoria-table td,
.help-table tbody,
.help-table tr,
.help-table td {
display: block !important;
width: 100% !important;
}
.categoria-table td,
.help-table td {
margin-bottom: 10px !important;
border-spacing: 0 !important;
}
}
/* --- REMOVER FUNDO CINZA DOS LINKS COM SPAN ---
a span,
a:visited span,
a:hover span,
a:active span {
background: none !important;
background-color: transparent !important;
}*/
/* Remove o texto "De Celta Sistemas Wiki" */
#siteSub {
display: none;
}
/* Ajuste do tamanho do título */
.citizen-page-header-inner .firstHeading,
.citizen-page-header .firstHeading,
#firstHeading {
font-size: 1.3em !important;
font-weight: 400 !important;
letter-spacing: -0.03em !important;
line-height: 1.2 !important;
padding-top: 0 !important;
padding-bottom: 0.2em !important;
margin: 0 !important;
}
.citizen-page-header {
padding-top: 0px !important;
padding-bottom: 0px !important;
margin-bottom: -0.8em !important;
}
.citizen-body-header {
padding-top: 0.3em !important;
margin-top: 0 !important;
}
/* Sombra para imagens com a classe screenshot */
.screenshot img {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
border: 1px solid #ddd;
border-radius: 4px;
}
/* ================================================================= */
/* 🛡️ PADRÃO VISUAL CELTA
/* ================================================================= */
/* 1. REMOÇÃO AGRESSIVA DAS SETAS (COLLAPSE ICONS)
Tentamos esconder o input, o label, o indicador e o span.
Uma dessas regras VAI pegar.
*/
.citizen-section-heading-indicator,
.mw-heading .indicator,
label.citizen-section-heading-indicator,
input.citizen-section-heading-toggle,
.client-js .citizen-section-heading-indicator {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
width: 0 !important;
max-width: 0 !important;
}
/* Remove a função de clicar para fechar (já que sumimos com a seta) */
.citizen-section-heading-label {
pointer-events: none !important;
cursor: default !important;
}
/* 2. RESET DA LINHA HORIZONTAL */
hr {
margin: 15px 0 !important;
height: 1px; border: none;
background-color: var(--border-color-base, #eaecf0);
}
/* 3. TÍTULOS H2 (BARRA AZUL) */
.mw-body h2 {
border-bottom: 1px solid var(--border-color-base, #eaecf0) !important;
border-left: 5px solid var(--color-primary, #3366cc) !important;
padding-left: 12px !important;
padding-bottom: 5px !important;
margin: 0 !important;
font-weight: 700 !important;
font-size: 1.3em !important;
line-height: 1.3 !important;
}
/* Wrapper do Título - Forçando margem */
.mw-heading.mw-heading2,
.citizen-section-heading {
margin-top: 25px !important;
margin-bottom: 15px !important;
padding: 0 !important;
}
/* 4. TÍTULOS H3 (Subtítulos) */
.mw-heading.mw-heading3 { margin-top: 25px !important; margin-bottom: 8px !important; }
.mw-body h3 {
padding-left: 10px !important;
border-left: 3px solid var(--border-color-subtle, #c8ccd1) !important;
font-weight: 600 !important; margin: 0 !important;
}
/* 5. DESTAQUE DE INTRODUÇÃO (<big>) */
.mw-body big {
display: block !important;
background-color: var(--background-color-interactive-subtle, #f8f9fa);
border: 1px solid var(--border-color-base, #eaecf0);
border-left: 4px solid var(--color-primary, #3366cc);
border-radius: 4px;
padding: 15px !important;
margin-bottom: 15px !important; margin-top: 0px !important;
font-size: 1.05em !important;
color: var(--color-base, #202122);
}
/* 6. ÍNDICE LATERAL (TOC) - FORÇA BRUTA */
/* Garante que o container tenha a linha cinza */
nav.citizen-toc, .citizen-toc {
border-left: 1px solid #eaecf0 !important;
}
/* Item ATIVO (Seção atual) */
.citizen-toc__item--active > a,
.citizen-toc__item--active > .citizen-toc__link {
color: #3366cc !important; /* Azul Celta */
font-weight: 700 !important;
border-left: 3px solid #3366cc !important;
background-color: #f0f4ff !important; /* Fundo azul claro */
padding-left: 10px !important;
text-decoration: none !important;
display: block !important; /* Garante que o fundo preencha tudo */
}
/* Item HOVER (Passar o mouse) */
.citizen-toc__link:hover {
color: #3366cc !important;
text-decoration: underline !important;
background-color: #f8f9fa !important;
}
/* 7. TABELAS LIMPAS */
.wikitable {
border: none !important; border-collapse: collapse; width: 100%;
margin-top: 10px; margin-bottom: 15px;
box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.wikitable th {
background-color: var(--background-color-interactive-subtle, #f8f9fa) !important;
border-bottom: 2px solid var(--border-color-base, #eaecf0) !important;
text-transform: uppercase; font-size: 0.85em; padding: 10px !important;
border-top: 0 !important; border-left: 0 !important; border-right: 0 !important;
}
.wikitable td {
border-bottom: 1px solid var(--border-color-base, #eaecf0) !important;
padding: 10px !important;
border-top: 0 !important; border-left: 0 !important; border-right: 0 !important;
}