Ativa o menu
Alternar menu de preferências
Alternar menu pessoal
Não autenticado(a)
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.css: mudanças entre as edições

Página de Interface do MediaWiki
Sem resumo de edição
Sem resumo de edição
Etiqueta: Revertido
Linha 304: Linha 304:


/* ================================================================= */
/* ================================================================= */
/* 🚀 PADRÃO CELTA ERP
/* 🛡️ CSS INTELIGENTE (MANUAIS VS HOME) */
/* ================================================================= */
/* ================================================================= */


/* 1. EXTERMÍNIO DA SETA (COLLAPSE ICON)
/* 1. REGRAS GERAIS (Valem para TODO o site) */
  Usamos 'html body' para garantir prioridade máxima sobre o tema.
 
*/
/* Badges de Versão */
html body .citizen-section-indicator,
.celta-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.6em; font-weight: 700; text-transform: uppercase; margin-left: 10px; vertical-align: middle; top: -2px; position: relative; }
html body .mw-heading .indicator,
.celta-badge-novo { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
html body .citizen-sections-enabled .citizen-section-indicator {
.celta-badge-versao { background: #e2e3e5; color: #383d41; border: 1px solid #d6d8db; }
     display: none !important;
 
    width: 0 !important;
/* Remover setas de collapse (Geral) */
    height: 0 !important;
.citizen-section-indicator, .mw-heading .indicator, .citizen-sections-enabled .citizen-section-indicator {
    opacity: 0 !important;
     display: none !important; width: 0 !important; height: 0 !important; opacity: 0 !important; pointer-events: none !important;
    pointer-events: none !important;
}
}


/* 2. CORREÇÃO DOS TÍTULOS H2 (BARRA AZUL)
/* ================================================================= */
  Aqui arrumamos a "falta de separação" e o alinhamento.
/* 2. REGRAS EXCLUSIVAS DE MANUAL (IF NOT PAGINA_PRINCIPAL) */
*/
/* Aplica bordas azuis e espaçamentos APENAS se NÃO for a Home */
html body .mw-heading.mw-heading2,
/* ================================================================= */
html body .citizen-section-heading {
    /* Reduzindo o topo de 48px (padrão ruim) para 25px (padrão bom) */
    margin-top: 25px !important;
   
    /* Dando um respiro embaixo para o texto não grudar no título */
    margin-bottom: 15px !important;
   
    padding: 0 !important;
    display: block !important;
    border: none !important; /* Remove bordas do container, deixa só no H2 */
}


/* Estilo do Texto H2 */
/* Títulos H2 (Barra Azul) */
html body h2 {
body:not(.page-Página_principal) h2 {
     border-bottom: 1px solid var(--border-color-base, #eaecf0) !important;
     border-bottom: 1px solid var(--border-color-base, #eaecf0) !important;
     border-left: 5px solid var(--color-primary, #3366cc) !important;
     border-left: 5px solid var(--color-primary, #3366cc) !important;
   
    /* Afasta o texto da barra azul para dar leitura */
     padding-left: 15px !important;
     padding-left: 15px !important;
     padding-bottom: 8px !important;
     padding-bottom: 8px !important;
   
    /* Remove margens internas do H2 para o container controlar */
     margin: 0 !important;
     margin: 0 !important;
   
     font-weight: 700 !important;
     font-weight: 700 !important;
     font-size: 1.5em !important;
     font-size: 1.5em !important;
Linha 353: Linha 336:
}
}


/* 3. TÍTULOS H3 (Subtítulos) */
/* Correção de Espaçamento do Container H2 (Aquele gap de 48px) */
html body .mw-heading.mw-heading3 {
body:not(.page-Página_principal) .mw-heading.mw-heading2,
     margin-top: 30px !important; /* Mais espaço antes do subtítulo */
body:not(.page-Página_principal) .citizen-section-heading {
     margin-bottom: 10px !important;
     margin-top: 25px !important;
     margin-bottom: 15px !important;
    padding: 0 !important;
    display: block !important;
    border: none !important;
}
}


html body h3 {
/* Títulos H3 (Subtítulos) */
body:not(.page-Página_principal) .mw-heading.mw-heading3 { margin-top: 30px !important; margin-bottom: 10px !important; }
body:not(.page-Página_principal) h3 {
     padding-left: 10px !important;
     padding-left: 10px !important;
     border-left: 3px solid #c8ccd1 !important;
     border-left: 3px solid #c8ccd1 !important;
Linha 366: Linha 355:
}
}


/* 4. LINHA HORIZONTAL (HR) - MAIS DISCRETA */
/* Introdução (<big>) como Caixa de Destaque */
html body hr {
body:not(.page-Página_principal) big {
    margin: 20px 0 !important;
    height: 1px;
    border: none;
    background-color: #eaecf0;
}
 
/* 5. ÍNDICE LATERAL (TOC) AZUL */
html body .citizen-toc__item--active > a,
html body .citizen-toc__item--active > .citizen-toc__link {
    color: #3366cc !important;
    font-weight: 700 !important;
    border-left: 3px solid #3366cc !important;
    background-color: rgba(51, 102, 204, 0.08) !important;
    padding-left: 10px !important;
    text-decoration: none !important;
}
 
/* 6. TEMPLATES (BREADCRUMB, META, NOTAS) - CORES CORRIGIDAS */
.celta-breadcrumb a { color: #3366cc !important; text-decoration: none; font-weight: 600; }
.celta-breadcrumb a:hover { text-decoration: underline; }
 
.celta-note-box {
    background-color: rgba(51, 102, 204, 0.03) !important;
    border: 1px solid rgba(51, 102, 204, 0.2) !important;
    border-left: 4px solid #3366cc !important;
    border-radius: 6px;
    padding: 15px 20px;
    margin: 20px 0;
}
.celta-note-title {
    font-weight: 700; font-size: 0.95em;
    color: #3366cc !important;
    text-transform: uppercase;
    display: flex; align-items: center; gap: 8px;
}
 
/* 7. INTRODUÇÃO (<BIG>) */
html body big {
     display: block !important;
     display: block !important;
     background-color: #f8f9fa;
     background-color: #f8f9fa;
Linha 416: Linha 367:
}
}


/* 8. BADGES DE VERSÃO */
/* Linha Horizontal mais discreta */
.celta-badge {
body:not(.page-Página_principal) hr {
     display: inline-block; padding: 2px 8px; border-radius: 4px;
     margin: 20px 0 !important; height: 1px; border: none; background-color: #eaecf0;
    font-size: 0.6em; font-weight: 700; text-transform: uppercase;
    margin-left: 10px; vertical-align: middle; position: relative; top: -2px;
}
}
.celta-badge-novo { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.celta-badge-versao { background: #e2e3e5; color: #383d41; border: 1px solid #d6d8db; }


/* ================================================================= */
/* ================================================================= */
/* ✂️ REMOÇÃO TOTAL DO TÍTULO E DO GAP (ESPAÇO VAZIO) */
/* 3. AJUSTES FINAIS DE TEMPLATES (Breadcrumb e Notas) */
/* ================================================================= */
/* ================================================================= */


/* 1. ESCONDE O TÍTULO NATIVO */
.celta-breadcrumb a { color: #3366cc !important; text-decoration: none; font-weight: 600; }
.mw-page-title-main,
.celta-breadcrumb a:hover { text-decoration: underline; }
h1#firstHeading {
    display: none !important;
}


/* 2. COMPACTA O CABEÇALHO DO TEMA CITIZEN
.celta-note-box {
  Aqui está o segredo. O tema coloca margin-bottom e min-height no header.
     background-color: rgba(51, 102, 204, 0.03) !important;
  Vamos zerar tudo isso.
     border: 1px solid rgba(51, 102, 204, 0.2) !important;
*/
     border-left: 4px solid #3366cc !important;
header.mw-body-header,
     border-radius: 6px;
.citizen-page-header {
    padding: 15px 20px;
     margin-bottom: 0 !important;
    margin: 20px 0;
     padding-bottom: 5px !important; /* Deixa só um respiro pros botões de editar */
     min-height: 0 !important;
     border-bottom: none !important; /* Remove linha se houver */
}
}
 
.celta-note-title {
/* 3. REMOVE O ESPAÇO DO CONTAINER DO TÍTULO
     font-weight: 700; font-size: 0.95em; color: #3366cc !important; text-transform: uppercase; display: flex; align-items: center; gap: 8px;
  Mesmo sem texto, a div que segura o título tem altura.
*/
.firstHeading-container,
.citizen-header__text {
     margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    display: none !important; /* Garante que suma da renderização */
}
 
/* 4. PUXA O SEU TEMPLATE PARA CIMA (AJUSTE FINO)
  Se ainda sobrar um espacinho branco teimando, isso força seu breadcrumb a subir.
*/
.celta-breadcrumb {
    margin-top: -10px; /* Valor negativo puxa o elemento para cima */
    position: relative;
    z-index: 10;
}
}

Edição das 19h22min 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;
}

/* ================================================================= */
/* 🛡️ CSS INTELIGENTE (MANUAIS VS HOME) */
/* ================================================================= */

/* 1. REGRAS GERAIS (Valem para TODO o site) */

/* Badges de Versão */
.celta-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.6em; font-weight: 700; text-transform: uppercase; margin-left: 10px; vertical-align: middle; top: -2px; position: relative; }
.celta-badge-novo { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.celta-badge-versao { background: #e2e3e5; color: #383d41; border: 1px solid #d6d8db; }

/* Remover setas de collapse (Geral) */
.citizen-section-indicator, .mw-heading .indicator, .citizen-sections-enabled .citizen-section-indicator {
    display: none !important; width: 0 !important; height: 0 !important; opacity: 0 !important; pointer-events: none !important;
}

/* ================================================================= */
/* 2. REGRAS EXCLUSIVAS DE MANUAL (IF NOT PAGINA_PRINCIPAL) */
/* Aplica bordas azuis e espaçamentos APENAS se NÃO for a Home */
/* ================================================================= */

/* Títulos H2 (Barra Azul) */
body:not(.page-Página_principal) h2 {
    border-bottom: 1px solid var(--border-color-base, #eaecf0) !important;
    border-left: 5px solid var(--color-primary, #3366cc) !important;
    padding-left: 15px !important;
    padding-bottom: 8px !important;
    margin: 0 !important;
    font-weight: 700 !important;
    font-size: 1.5em !important;
    line-height: 1.2 !important;
}

/* Correção de Espaçamento do Container H2 (Aquele gap de 48px) */
body:not(.page-Página_principal) .mw-heading.mw-heading2,
body:not(.page-Página_principal) .citizen-section-heading {
    margin-top: 25px !important;
    margin-bottom: 15px !important;
    padding: 0 !important;
    display: block !important;
    border: none !important;
}

/* Títulos H3 (Subtítulos) */
body:not(.page-Página_principal) .mw-heading.mw-heading3 { margin-top: 30px !important; margin-bottom: 10px !important; }
body:not(.page-Página_principal) h3 {
    padding-left: 10px !important;
    border-left: 3px solid #c8ccd1 !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* Introdução (<big>) como Caixa de Destaque */
body:not(.page-Página_principal) big {
    display: block !important;
    background-color: #f8f9fa;
    border: 1px solid #eaecf0;
    border-left: 4px solid #3366cc;
    border-radius: 4px;
    padding: 15px !important;
    margin-bottom: 20px !important;
    font-size: 1.05em !important;
}

/* Linha Horizontal mais discreta */
body:not(.page-Página_principal) hr {
    margin: 20px 0 !important; height: 1px; border: none; background-color: #eaecf0;
}

/* ================================================================= */
/* 3. AJUSTES FINAIS DE TEMPLATES (Breadcrumb e Notas) */
/* ================================================================= */

.celta-breadcrumb a { color: #3366cc !important; text-decoration: none; font-weight: 600; }
.celta-breadcrumb a:hover { text-decoration: underline; }

.celta-note-box {
    background-color: rgba(51, 102, 204, 0.03) !important;
    border: 1px solid rgba(51, 102, 204, 0.2) !important;
    border-left: 4px solid #3366cc !important;
    border-radius: 6px;
    padding: 15px 20px;
    margin: 20px 0;
}
.celta-note-title {
    font-weight: 700; font-size: 0.95em; color: #3366cc !important; text-transform: uppercase; display: flex; align-items: center; gap: 8px;
}