MediaWiki:Common.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 1: | Linha 1: | ||
/* ================================================================= */ | /* ================================================================= */ | ||
/* 🧩 CELTA WIKI | /* 🧩 CELTA WIKI MASTER FILE */ | ||
/* Contém: Componentes, Tipografia, Layout e Correções do Tema */ | |||
/* ================================================================= */ | /* ================================================================= */ | ||
/* --- | /* ================================================================= */ | ||
/* 1. FRAMEWORK DE COMPONENTES (ALERTAS, TABELAS, CARDS) */ | |||
/* ================================================================= */ | |||
/* --- CAIXAS DE NOTA (ALERTS) --- */ | |||
.celta-box { | .celta-box { | ||
padding: 15px 20px; | padding: 15px 20px; | ||
| Linha 23: | Linha 28: | ||
} | } | ||
.celta-info { background: #f0f7ff; border-color: #3366cc; } | .celta-info { background: #f0f7ff; border-color: #3366cc; } | ||
.celta-info .celta-box-title { color: #3366cc; } | .celta-info .celta-box-title { color: #3366cc; } | ||
.celta-success { background: #d1e7dd; border-color: #198754; } | .celta-success { background: #d1e7dd; border-color: #198754; } | ||
.celta-success .celta-box-title { color: #155724; } | .celta-success .celta-box-title { color: #155724; } | ||
.celta-warning { background: #fff3cd; border-color: #ffc107; } | .celta-warning { background: #fff3cd; border-color: #ffc107; } | ||
.celta-warning .celta-box-title { color: #856404; } | .celta-warning .celta-box-title { color: #856404; } | ||
.celta-danger { background: #fff5f5; border-color: #dc3545; } | .celta-danger { background: #fff5f5; border-color: #dc3545; } | ||
.celta-danger .celta-box-title { color: #dc3545; } | .celta-danger .celta-box-title { color: #dc3545; } | ||
/* --- TABELAS PADRÃO (CELTA TABLE) --- */ | |||
/* --- | |||
.celta-table { | .celta-table { | ||
width: 100%; | width: 100%; | ||
| Linha 47: | Linha 47: | ||
margin-bottom: 25px; | margin-bottom: 25px; | ||
} | } | ||
.celta-table th { | .celta-table th { | ||
background-color: #2c3e50; | background-color: #2c3e50; | ||
| Linha 55: | Linha 54: | ||
font-weight: 600; | font-weight: 600; | ||
} | } | ||
.celta-table td { | .celta-table td { | ||
padding: 12px; | padding: 12px; | ||
| Linha 61: | Linha 59: | ||
vertical-align: top; | vertical-align: top; | ||
} | } | ||
.celta-table tr:last-child td { border-bottom: none; } | |||
.celta-col-key { background-color: #f8f9fa; font-weight: 600; color: #2c3e50; width: 30%; } | |||
.celta-col-value { width: 70%; } | |||
/* Ajuste de listas dentro da tabela */ | |||
.celta-table ul { margin: 5px 0 !important; padding-left: 20px !important; } | |||
.celta-table li { margin-bottom: 2px !important; } | |||
/* --- GRID E CARDS --- */ | |||
/* | |||
.celta-grid { | .celta-grid { | ||
display: grid; | display: grid; | ||
| Linha 96: | Linha 74: | ||
width: 100%; | width: 100%; | ||
} | } | ||
.celta-card { | .celta-card { | ||
border: 1px solid #e0e0e0; | border: 1px solid #e0e0e0; | ||
| Linha 108: | Linha 85: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
.celta-card:hover { | .celta-card:hover { | ||
transform: translateY(-3px); | transform: translateY(-3px); | ||
| Linha 114: | Linha 90: | ||
border-color: #3498db; | border-color: #3498db; | ||
} | } | ||
.celta-card-header { | .celta-card-header { | ||
font-weight: 700; | font-weight: 700; | ||
| Linha 123: | Linha 98: | ||
font-size: 1.1em; | font-size: 1.1em; | ||
} | } | ||
.celta-card-body { font-size: 0.95em; color: #666; line-height: 1.5; } | |||
.celta-card-body { | |||
} | |||
.celta-card pre { | .celta-card pre { | ||
white-space: pre-wrap; | white-space: pre-wrap; word-wrap: break-word; background: #f8f9fa; | ||
border: none; padding: 10px; border-radius: 4px; font-size: 0.85em; | |||
border: none; | |||
} | } | ||
/* ================================================================= */ | /* ================================================================= */ | ||
/* | /* 2. TIPOGRAFIA MODERNA (ESTILO SAAS) */ | ||
/* ================================================================= */ | /* ================================================================= */ | ||
html body:not(.page-Página_principal) h1, | html body:not(.page-Página_principal) h1, | ||
html body:not(.page-Página_principal) h2, | html body:not(.page-Página_principal) h2, | ||
| Linha 150: | Linha 112: | ||
html body:not(.page-Página_principal) h4 { | html body:not(.page-Página_principal) h4 { | ||
font-family: 'Segoe UI', Roboto, sans-serif !important; | font-family: 'Segoe UI', Roboto, sans-serif !important; | ||
color: #1e293b !important; | color: #1e293b !important; | ||
margin-top: 1.5em !important; | margin-top: 1.5em !important; | ||
margin-bottom: 0.8em !important; | margin-bottom: 0.8em !important; | ||
| Linha 156: | Linha 118: | ||
} | } | ||
/* | /* Títulos H2 Limpos */ | ||
html body:not(.page-Página_principal) h2, | html body:not(.page-Página_principal) h2, | ||
html body:not(.page-Página_principal) .mw-heading2 { | html body:not(.page-Página_principal) .mw-heading2 { | ||
| Linha 168: | Linha 130: | ||
} | } | ||
/* | /* Títulos H3 */ | ||
html body:not(.page-Página_principal) h3, | html body:not(.page-Página_principal) h3, | ||
html body:not(.page-Página_principal) .mw-heading3 { | html body:not(.page-Página_principal) .mw-heading3 { | ||
| Linha 179: | Linha 141: | ||
} | } | ||
/* | /* Texto de Parágrafo */ | ||
.mw-body-content p { | .mw-body-content p { | ||
font-size: 1.05em !important; | font-size: 1.05em !important; | ||
| Linha 194: | Linha 150: | ||
} | } | ||
/* | /* ================================================================= */ | ||
/* 3. COMPONENTE DE CABEÇALHO (TEMPLATE) E OMITIR TÍTULO NATIVO */ | |||
/* ================================================================= */ | |||
.celta-page-header { | .celta-page-header { | ||
margin-bottom: 40px; | margin-bottom: 40px; | ||
| Linha 200: | Linha 158: | ||
border-bottom: 1px solid #e2e8f0; | border-bottom: 1px solid #e2e8f0; | ||
} | } | ||
.celta-breadcrumbs { | .celta-breadcrumbs { | ||
font-size: 0.85em; | font-size: 0.85em; | ||
| Linha 209: | Linha 166: | ||
font-weight: 600; | font-weight: 600; | ||
} | } | ||
.celta-breadcrumbs a { color: #64748b !important; text-decoration: none; transition: color 0.2s; } | |||
.celta-breadcrumbs a { | .celta-breadcrumbs a:hover { color: #3498db !important; } | ||
.celta-main-title { | |||
font-size: 2.2em; font-weight: 800; color: #0f172a; | |||
margin: 0; padding: 0; letter-spacing: -1px; line-height: 1.1; | |||
} | } | ||
.celta- | .celta-meta-info { | ||
color: # | margin-top: 10px; font-size: 0.85em; color: #94a3b8; | ||
display: flex; align-items: center; gap: 6px; | |||
} | } | ||
. | /* Esconde título nativo e indicadores do tema */ | ||
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; | |||
} | } | ||
. | /* ================================================================= */ | ||
margin-top: | /* 4. RODAPÉ COMPACTO (A PARTE QUE VOCÊ PERDEU) */ | ||
/* ================================================================= */ | |||
.citizen-footer { | |||
display: flex; | padding: 4px 20px !important; | ||
align-items: center; | margin-top: 30px !important; | ||
gap: | 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; | |||
} | |||
#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: 32px !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; } | |||
/* Esconde linha de 'modificado em' */ | |||
#footer-info-lastmod, .citizen-footer__lastmod { display: none !important; } | |||
/* | /* Responsividade do Footer */ | ||
@media (max-width: 768px) { | |||
.citizen-footer__content { flex-direction: column !important; gap: 8px !important; padding: 10px 0 !important; } | |||
} | } | ||
Edição das 06h41min de 29 de novembro de 2025
/* ================================================================= */
/* 🧩 CELTA WIKI MASTER FILE */
/* Contém: Componentes, Tipografia, Layout e Correções do Tema */
/* ================================================================= */
/* ================================================================= */
/* 1. FRAMEWORK DE COMPONENTES (ALERTAS, TABELAS, CARDS) */
/* ================================================================= */
/* --- CAIXAS DE NOTA (ALERTS) --- */
.celta-box {
padding: 15px 20px;
margin: 20px 0;
border-radius: 6px;
border-left: 5px solid #ccc;
background-color: #f9f9f9;
font-size: 0.95em;
}
.celta-box-title {
font-weight: 700;
margin-bottom: 5px;
display: flex;
align-items: center;
gap: 8px;
text-transform: uppercase;
font-size: 0.9em;
}
.celta-info { background: #f0f7ff; border-color: #3366cc; }
.celta-info .celta-box-title { color: #3366cc; }
.celta-success { background: #d1e7dd; border-color: #198754; }
.celta-success .celta-box-title { color: #155724; }
.celta-warning { background: #fff3cd; border-color: #ffc107; }
.celta-warning .celta-box-title { color: #856404; }
.celta-danger { background: #fff5f5; border-color: #dc3545; }
.celta-danger .celta-box-title { color: #dc3545; }
/* --- TABELAS PADRÃO (CELTA TABLE) --- */
.celta-table {
width: 100%;
border-collapse: collapse;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 0 0 1px #e0e0e0;
margin-top: 15px;
margin-bottom: 25px;
}
.celta-table th {
background-color: #2c3e50;
color: white;
padding: 12px;
text-align: left;
font-weight: 600;
}
.celta-table td {
padding: 12px;
border-bottom: 1px solid #eee;
vertical-align: top;
}
.celta-table tr:last-child td { border-bottom: none; }
.celta-col-key { background-color: #f8f9fa; font-weight: 600; color: #2c3e50; width: 30%; }
.celta-col-value { width: 70%; }
/* Ajuste de listas dentro da tabela */
.celta-table ul { margin: 5px 0 !important; padding-left: 20px !important; }
.celta-table li { margin-bottom: 2px !important; }
/* --- GRID E CARDS --- */
.celta-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin: 20px 0;
width: 100%;
}
.celta-card {
border: 1px solid #e0e0e0;
border-radius: 8px;
background: #fff;
padding: 20px;
transition: transform 0.2s, box-shadow 0.2s;
display: flex;
flex-direction: column;
overflow: hidden;
box-sizing: border-box;
}
.celta-card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(0,0,0,0.05);
border-color: #3498db;
}
.celta-card-header {
font-weight: 700;
color: #2c3e50;
margin-bottom: 15px;
border-bottom: 1px solid #f0f0f0;
padding-bottom: 10px;
font-size: 1.1em;
}
.celta-card-body { font-size: 0.95em; color: #666; line-height: 1.5; }
.celta-card pre {
white-space: pre-wrap; word-wrap: break-word; background: #f8f9fa;
border: none; padding: 10px; border-radius: 4px; font-size: 0.85em;
}
/* ================================================================= */
/* 2. TIPOGRAFIA MODERNA (ESTILO SAAS) */
/* ================================================================= */
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.5em !important;
margin-bottom: 0.8em !important;
line-height: 1.3 !important;
}
/* Títulos H2 Limpos */
html body:not(.page-Página_principal) h2,
html body:not(.page-Página_principal) .mw-heading2 {
font-size: 1.5em !important;
font-weight: 700 !important;
border-bottom: 1px solid #e2e8f0 !important;
border-left: none !important;
padding-bottom: 0.3em !important;
padding-left: 0 !important;
margin-top: 40px !important;
}
/* Títulos H3 */
html body:not(.page-Página_principal) h3,
html body:not(.page-Página_principal) .mw-heading3 {
font-size: 1.2em !important;
font-weight: 600 !important;
color: #334155 !important;
border: none !important;
padding-left: 0 !important;
margin-top: 30px !important;
}
/* Texto de Parágrafo */
.mw-body-content p {
font-size: 1.05em !important;
line-height: 1.7 !important;
color: #475569 !important;
margin-bottom: 1.2em !important;
max-width: 900px;
}
/* ================================================================= */
/* 3. COMPONENTE DE CABEÇALHO (TEMPLATE) E OMITIR TÍTULO NATIVO */
/* ================================================================= */
.celta-page-header {
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: 1px solid #e2e8f0;
}
.celta-breadcrumbs {
font-size: 0.85em;
color: #64748b;
margin-bottom: 10px;
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: 600;
}
.celta-breadcrumbs a { color: #64748b !important; text-decoration: none; transition: color 0.2s; }
.celta-breadcrumbs a:hover { color: #3498db !important; }
.celta-main-title {
font-size: 2.2em; font-weight: 800; color: #0f172a;
margin: 0; padding: 0; letter-spacing: -1px; line-height: 1.1;
}
.celta-meta-info {
margin-top: 10px; font-size: 0.85em; color: #94a3b8;
display: flex; align-items: center; gap: 6px;
}
/* Esconde título nativo e indicadores do tema */
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;
}
/* ================================================================= */
/* 4. RODAPÉ COMPACTO (A PARTE QUE VOCÊ PERDEU) */
/* ================================================================= */
.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;
}
#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: 32px !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; }
/* Esconde linha de 'modificado em' */
#footer-info-lastmod, .citizen-footer__lastmod { display: none !important; }
/* Responsividade do Footer */
@media (max-width: 768px) {
.citizen-footer__content { flex-direction: column !important; gap: 8px !important; padding: 10px 0 !important; }
}