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.

Ajuda:Guia de Estilo: mudanças entre as edições

De Celta Sistemas Wiki
Sem resumo de edição
Sem resumo de edição
Etiqueta: Revertido
Linha 1: Linha 1:
{{Cabecalho
/* ================================================================= */
|
/* 🎨 VISUAL GLOBAL DO TEMA (TIPOGRAFIA COMPACTA E RODAPÉ) */
| Guia de Estilo e Padrões
/* ================================================================= */
}}


Use este guia para copiar os códigos dos componentes oficiais.
/* 1. RODAPÉ COMPACTO (SLIM) */
/* (Este bloco não mudou, já estava compacto) */
.citizen-footer {
    padding: 4px 20px !important;
    margin-top: 30px !important;
    border-top: 1px solid #eaecf0;
    min-height: 0 !important;
}
.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;
}
#footer-info, #footer-info ul, #footer-info li {
    margin: 0 !important; padding: 0 !important; line-height: 1.1 !important;
}
.citizen-footer__logo {
    margin: 0 !important; padding: 0 !important; order: 1; line-height: 0 !important;
}
.citizen-footer .mw-logo-wordmark { display: none !important; }
.citizen-footer .mw-logo-icon {
    height: 45px !important; width: auto !important; display: block !important;
}
#footer-info {
    order: 2; text-align: center !important; flex-grow: 1;
    font-size: 0.85em !important; color: #666;
}
#footer-info li { display: inline-block !important; }
#footer-icons {
    order: 3; margin: 0 !important; padding: 0 !important;
    display: flex !important; align-items: center !important;
}
#footer-icons img { height: 28px !important; width: auto !important; }
#footer-info-lastmod, .citizen-footer__lastmod { display: none !important; }
@media (max-width: 768px) {
    .citizen-footer__content { flex-direction: column !important; gap: 8px !important; padding: 10px 0 !important; }
}
.citizen-footer__siteinfo {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 1;
}
/* Garante que o container do titulo/logo não tenha margem */
.citizen-footer__sitetitle {
    display: block !important;
    margin: 0 !important;
    line-height: 0 !important;
}


__TOC__
/* 2. TIPOGRAFIA GLOBAL COMPACTA */
body {
    font-family: 'Segoe UI', Roboto, sans-serif !important;
}


== 1. Cabeçalho da Página ==
/* Títulos Globais - Margens Base Reduzidas */
Use sempre na primeira linha da página.
html body:not(.page-Página_principal) h1,
html body:not(.page-Página_principal) h2,
html body:not(.page-Página_principal) h3,
html body:not(.page-Página_principal) h4 {
    font-family: 'Segoe UI', Roboto, sans-serif !important;
    color: #1e293b !important;
    margin-top: 1.2em !important; /* REDUZIDO: Era 1.5em */
    margin-bottom: 0.6em !important; /* REDUZIDO: Era 0.8em */
    line-height: 1.2 !important;
}


=== Exemplo Padrão (Manuais e Tutoriais) ===
/* ================================================================= */
/* ESTILO DOS TÍTULOS H2 (LIMPO E COM SETA) */
/* ================================================================= */


<pre>
/* 1. Configuração do Texto e Risco Azul */
{{Cabecalho
html body:not(.page-Página_principal) .mw-heading2 {
| [[Módulo Pai]] › [[Sub-rotina]]
    font-size: 1.25em !important;
| Título da Página
    font-weight: 700 !important;
}}
    color: #1e293b !important;
</pre>
    margin-top: 15px !important;
    margin-bottom: 15px !important;
   
    /* Risco Azul na Esquerda */
    border-left: 4px solid #3b82f6 !important;
    padding-left: 15px !important;
   
    /* Remove bordas antigas */
    border-bottom: none !important;
    position: relative;
    display: flex;
    align-items: center;
}


'''Resultado:'''
/* Garante que o h2 dentro do wrapper não tenha bordas extras */
html body:not(.page-Página_principal) h2 {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit !important;
}


{{Cabecalho
/* Títulos H3 (Subseções) */
| [[Módulo Pai]] › [[Sub-rotina]]
html body:not(.page-Página_principal) h3,
| Título da Página
html body:not(.page-Página_principal) .mw-heading3 {
}}
    font-size: 1.15em !important; /* REDUZIDO: Era 1.2em */
    font-weight: 600 !important;
    color: #334155 !important;
    border: none !important;
    padding-left: 0 !important;
    margin-top: 5px !important;
}
 
/* Texto de Parágrafo (Corpo) */
.mw-body-content p {
    font-size: 1em !important; /* REDUZIDO: Era 1.05em (Voltou ao padrão) */
    line-height: 1.5 !important; /* REDUZIDO: Era 1.7 (Linhas mais próximas) */
    color: #475569 !important;
    margin-bottom: 1em !important; /* REDUZIDO: Era 1.2em */
    max-width: 900px;
}
 
 
/* 3. LIMPEZA DA INTERFACE */
/* (Este bloco não mudou, apenas esconde itens nativos) */
body:not(.page-Página_principal) .mw-page-title-main,
body:not(.page-Página_principal) h1#firstHeading,
html body:not(.page-Página_principal) .citizen-section-indicator {
    display: none !important;
}
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: 0px !important;
    min-height: 0 !important;
    border-bottom: none !important;
}
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;
}
.citizen-header .mw-logo-icon,
.citizen-drawer__header .mw-logo-icon {
    height: 40px !important;
    width: auto !important;
    margin-top: 2px !important;
}
 
/* ================================================================= */
/* 📐 AJUSTE DA BARRA LATERAL (ÍNDICE) */
/* ================================================================= */
 
/* Empurra a coluna da direita para baixo para alinhar com o Título */
.citizen-col-toc {
    padding-top: 60px !important; /* Aumente ou diminua esse número para alinhar perfeito */
}
 
/* Opcional: Se quiser que o "Última modificação" fique menos chamativo */
.page-info {
    opacity: 0.6;
    font-size: 0.85em;
}

Edição das 12h45min de 1 de dezembro de 2025

/* ================================================================= */ /* 🎨 VISUAL GLOBAL DO TEMA (TIPOGRAFIA COMPACTA E RODAPÉ) */ /* ================================================================= */

/* 1. RODAPÉ COMPACTO (SLIM) */ /* (Este bloco não mudou, já estava compacto) */ .citizen-footer {

   padding: 4px 20px !important;
   margin-top: 30px !important;
   border-top: 1px solid #eaecf0;
   min-height: 0 !important;

} .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;

}

  1. footer-info, #footer-info ul, #footer-info li {
   margin: 0 !important; padding: 0 !important; line-height: 1.1 !important;

} .citizen-footer__logo {

   margin: 0 !important; padding: 0 !important; order: 1; line-height: 0 !important;

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

   height: 45px !important; width: auto !important; display: block !important;

}

  1. footer-info {
   order: 2; text-align: center !important; flex-grow: 1; 
   font-size: 0.85em !important; color: #666;

}

  1. footer-info li { display: inline-block !important; }
  2. footer-icons {
   order: 3; margin: 0 !important; padding: 0 !important; 
   display: flex !important; align-items: center !important;

}

  1. footer-icons img { height: 28px !important; width: auto !important; }
  2. footer-info-lastmod, .citizen-footer__lastmod { display: none !important; }

@media (max-width: 768px) {

   .citizen-footer__content { flex-direction: column !important; gap: 8px !important; padding: 10px 0 !important; }

} .citizen-footer__siteinfo {

   display: block !important;
   margin: 0 !important;
   padding: 0 !important;
   order: 1;

} /* Garante que o container do titulo/logo não tenha margem */ .citizen-footer__sitetitle {

   display: block !important;
   margin: 0 !important;
   line-height: 0 !important;

}

/* 2. TIPOGRAFIA GLOBAL COMPACTA */ body {

   font-family: 'Segoe UI', Roboto, sans-serif !important;

}

/* Títulos Globais - Margens Base Reduzidas */ html body:not(.page-Página_principal) h1, html body:not(.page-Página_principal) h2, html body:not(.page-Página_principal) h3, html body:not(.page-Página_principal) h4 {

   font-family: 'Segoe UI', Roboto, sans-serif !important;
   color: #1e293b !important;
   margin-top: 1.2em !important; /* REDUZIDO: Era 1.5em */
   margin-bottom: 0.6em !important; /* REDUZIDO: Era 0.8em */
   line-height: 1.2 !important;

}

/* ================================================================= */ /* ESTILO DOS TÍTULOS H2 (LIMPO E COM SETA) */ /* ================================================================= */

/* 1. Configuração do Texto e Risco Azul */ html body:not(.page-Página_principal) .mw-heading2 {

   font-size: 1.25em !important;
   font-weight: 700 !important;
   color: #1e293b !important;
   margin-top: 15px !important;
   margin-bottom: 15px !important;
   
   /* Risco Azul na Esquerda */
   border-left: 4px solid #3b82f6 !important;
   padding-left: 15px !important;
   
   /* Remove bordas antigas */
   border-bottom: none !important;
   position: relative;
   display: flex;
   align-items: center;

}

/* Garante que o h2 dentro do wrapper não tenha bordas extras */ html body:not(.page-Página_principal) h2 {

   border: none !important;
   padding: 0 !important;
   margin: 0 !important;
   font-size: inherit !important;

}

/* Títulos H3 (Subseções) */ html body:not(.page-Página_principal) h3, html body:not(.page-Página_principal) .mw-heading3 {

   font-size: 1.15em !important; /* REDUZIDO: Era 1.2em */
   font-weight: 600 !important;
   color: #334155 !important;
   border: none !important;
   padding-left: 0 !important;
   margin-top: 5px !important; 

}

/* Texto de Parágrafo (Corpo) */ .mw-body-content p {

   font-size: 1em !important; /* REDUZIDO: Era 1.05em (Voltou ao padrão) */
   line-height: 1.5 !important; /* REDUZIDO: Era 1.7 (Linhas mais próximas) */
   color: #475569 !important;
   margin-bottom: 1em !important; /* REDUZIDO: Era 1.2em */
   max-width: 900px;

}


/* 3. LIMPEZA DA INTERFACE */ /* (Este bloco não mudou, apenas esconde itens nativos) */ body:not(.page-Página_principal) .mw-page-title-main, body:not(.page-Página_principal) h1#firstHeading, html body:not(.page-Página_principal) .citizen-section-indicator {

   display: none !important;

} 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: 0px !important;
   min-height: 0 !important;
   border-bottom: none !important;

} 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;

} .citizen-header .mw-logo-icon, .citizen-drawer__header .mw-logo-icon {

   height: 40px !important;
   width: auto !important;
   margin-top: 2px !important;

}

/* ================================================================= */ /* 📐 AJUSTE DA BARRA LATERAL (ÍNDICE) */ /* ================================================================= */

/* Empurra a coluna da direita para baixo para alinhar com o Título */ .citizen-col-toc {

   padding-top: 60px !important; /* Aumente ou diminua esse número para alinhar perfeito */

}

/* Opcional: Se quiser que o "Última modificação" fique menos chamativo */ .page-info {

   opacity: 0.6;
   font-size: 0.85em;

}