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
Linha 412: Linha 412:
     font-size: 0.85em !important;  /* Letra pequena */
     font-size: 0.85em !important;  /* Letra pequena */
     color: #7f8c8d !important;      /* Cinza suave */
     color: #7f8c8d !important;      /* Cinza suave */
   
     text-align: center !important;  
    /* AQUI ESTÁ A CORREÇÃO DO ALINHAMENTO: */
     margin-top:10px !important;     
     text-align: center !important;
   
     margin-top: 4px !important;     
     line-height: 1.2 !important;
     line-height: 1.2 !important;
     font-weight: 400 !important;
     font-weight: 400 !important;

Edição das 21h16min de 28 de novembro de 2025

/* ================================================================= */
/* 🦶 RODAPÉ ULTRA-COMPACTO (SLIM) */
/* ================================================================= */

/* 1. Container Geral: Removemos gorduras verticais */
.citizen-footer {
    padding: 4px 20px !important; /* Apenas 4px de altura extra */
    margin-top: 10px !important;  /* Cola mais no conteúdo da página */
    border-top: 1px solid #eaecf0;
    min-height: 0 !important; /* Permite que ele fique bem fininho */
}

/* 2. Forçar layout em LINHA (Horizontal) */
.citizen-footer__content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important; 
    justify-content: space-between !important; 
    gap: 10px !important;
    width: 100% !important;
}

/* 3. MATAR MARGENS INTERNAS (O Segredo do Slim) */
/* Remove margens automáticas das listas de texto */
#footer-info, 
#footer-info ul, 
#footer-info li {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.1 !important; /* Texto bem juntinho */
}

/* 4. LOGO (Esquerda) */
.citizen-footer__logo {
    margin: 0 !important;
    padding: 0 !important;
    order: 1; 
    line-height: 0 !important; /* Remove espaço extra embaixo da imagem */
}

.citizen-footer .mw-logo-wordmark { display: none !important; }

/* Tamanho da logo */
.citizen-footer .mw-logo-icon {
    height: 32px !important; /* Diminui um pouco para caber na barra fina */
    width: auto !important;
    display: block !important;
}

/* 5. TEXTO CENTRAL (Meio) */
#footer-info {
    order: 2; 
    text-align: center !important;
    flex-grow: 1; 
    font-size: 0.85em !important; /* Texto um pouco menor */
    color: #666;
}

#footer-info li {
    display: inline-block !important;
}

/* 6. ÍCONE MEDIAWIKI (Direita) */
#footer-icons {
    order: 3;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

#footer-icons img {
    height: 28px !important; /* Ícone menorzinho */
    width: auto !important;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .citizen-footer__content {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 10px 0 !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 CELTA ERP (CSS INTELIGENTE) */
/* Aplica o visual de manual em tudo, MENOS na Página Principal */
/* ================================================================= */

/* 1. EXTERMÍNIO DA SETA (COLLAPSE ICON) */
html body:not(.page-Página_principal) .citizen-section-indicator,
html body:not(.page-Página_principal) .mw-heading .indicator,
html body:not(.page-Página_principal) .citizen-sections-enabled .citizen-section-indicator {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 2. CORREÇÃO DOS TÍTULOS H2 (BARRA AZUL) */
html body:not(.page-Página_principal) .mw-heading.mw-heading2,
html body:not(.page-Página_principal) .citizen-section-heading {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    display: block !important;
    border: none !important;
}

/* ================================================================= */
/* 📐 ESPAÇAMENTOS E TIPOGRAFIA (VERTICAL RHYTHM) */
/* ================================================================= */

/* 1. TÍTULOS H2 (Seções Principais) */
html body:not(.page-Página_principal) h2,
html body:not(.page-Página_principal) .mw-heading2 {
    margin-top: 30px !important; 
    margin-bottom: 15px !important; 
    border-left: 4px solid var(--color-primary, #3366cc) !important;
    padding-left: 15px !important;
    font-weight: 700 !important;
    font-size: 1.2em !important;
    line-height: 1.2 !important;
    font-family: "Roboto", sans-serif !important; 
}

/* 2. TÍTULOS H3 (Subseções) */
html body:not(.page-Página_principal) h3,
html body:not(.page-Página_principal) .mw-heading3 {
    margin-top: 30px !important;
    margin-bottom: 10px !important;
    
    padding-left: 10px !important;
    border-left: 3px solid #c8ccd1 !important;
    font-weight: 600 !important;
    font-size: 1.15em !important;
    font-family: "Roboto", sans-serif !important; 
}

/* 3. PARÁGRAFOS (Texto Comum) */
/* Dá um respiro padrão entre blocos de texto */
.mw-body-content p {
    margin-bottom: 1em !important;
    line-height: 1.6 !important; /* Melhora leitura */
    color: #202122; /* Cinza quase preto (menos cansativo que preto puro) */
}

/* 4. LISTAS (Bullet points e Numeradas) */
.mw-body-content ul,
.mw-body-content ol {
    margin-bottom: 1em !important;
    margin-top: 0.5em !important;
}

/* Espaço entre os itens da lista (para não ficar tudo grudado) */
.mw-body-content li {
    margin-bottom: 0.3em !important;
}

/* --- CORREÇÃO DA LEGENDA DA IMAGEM (CAPTION) --- */
.mw-file-description figcaption,
.thumbcaption,
figure[typeof~='mw:File/Thumb'] > figcaption,
figure[typeof~='mw:File/Frame'] > figcaption {
    font-size: 0.85em !important;   /* Letra pequena */
    color: #7f8c8d !important;      /* Cinza suave */
    text-align: center !important;   
    margin-top:10px !important;     
    line-height: 1.2 !important;
    font-weight: 400 !important;
    display: block !important;
}

/* Garante que a imagem e a legenda fiquem centralizadas na página */
.mw-file-description, 
figure[typeof~="mw:File/Thumb"] {
    display: table !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* 6. TABELAS */
.wikitable {
    margin-bottom: 25px !important;
    margin-top: 10px !important;
}

/* 4. LINHA HORIZONTAL (HR) */
html body:not(.page-Página_principal) hr {
    margin: 20px 0 !important;
    height: 1px;
    border: none;
    background-color: #eaecf0;
}

/* 5. ÍNDICE LATERAL (TOC) AZUL */
html body:not(.page-Página_principal) .citizen-toc__item--active > a,
html body:not(.page-Página_principal) .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) */
/* Estes podem ser globais para manter consistência de cor */
.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: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;
}

/* 8. BADGES DE VERSÃO (Globais) */
.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; 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 DO TÍTULO NATIVO (APENAS EM MANUAIS) */
/* ================================================================= */

/* 1. ESCONDE O TÍTULO NATIVO */
body:not(.page-Página_principal) .mw-page-title-main,
body:not(.page-Página_principal) h1#firstHeading {
    display: none !important;
}

/* 2. COMPACTA O CABEÇALHO DO TEMA */
body:not(.page-Página_principal) header.mw-body-header,
body:not(.page-Página_principal) .citizen-page-header {
    margin-bottom: 0 !important;
    padding-bottom: 5px !important;
    min-height: 0 !important;
    border-bottom: none !important;
}

/* 3. REMOVE O ESPAÇO DO CONTAINER */
body:not(.page-Página_principal) .firstHeading-container,
body:not(.page-Página_principal) .citizen-header__text {
    margin: 0 !important; padding: 0 !important; height: 0 !important; display: none !important;
}

/* 4. AJUSTE FINO (Puxa o template pra cima) */
body:not(.page-Página_principal) .celta-breadcrumb {
    margin-top: -10px;
    position: relative;
    z-index: 10;
}

/* ================================================================= */
/* 🧹 LIMPEZA DE RODAPÉ (FOOTER) */
/* ================================================================= */

/* Esconde a linha "Esta página foi modificada pela última vez..." */
#footer-info-lastmod,
.citizen-footer__lastmod,
.page-info-lastmod {
    display: none !important;
}

/* Espaçamento leve no cabeçalho (padrão costuma ser uns 20px, aqui reduzimos para 5px) */
.citizen-page-header-inner {
    padding-block: 5px !important;
}

/* FONTE ROBOTO GLOBAL */

/* Garante que o texto base seja fácil de ler */
body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Regular */
    letter-spacing: 0.01em; /* Um leve espaçamento ajuda na leitura */
}

/* Deixa os títulos mais imponentes, mas sem ser "gordo" demais */
h1, h2, h3, h4, h5, .mw-heading {
    font-family: 'Roboto', sans-serif;
    font-weight: 500; /* Medium - Fica muito chique em interfaces modernas */
    letter-spacing: -0.02em; /* Títulos ficam melhores com letras levemente mais juntas */
}

/* Ajuste para o texto dentro das tabelas (para caber bem) */
.wikitable {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95em; /* Levemente menor para tabelas complexas */
}