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:Common.css

Página de Interface do MediaWiki
Revisão de 00h06min de 1 de dezembro de 2025 por Raul (discussão | contribs)

Nota: Após publicar, você pode ter que limpar o "cache" do seu navegador para ver as alterações.

  • Firefox / Safari: Pressione Shift enquanto clica Recarregar, ou pressione Ctrl-F5 ou Ctrl-R (⌘-R no Mac)
  • Google Chrome: Pressione Ctrl-Shift-R (⌘-Shift-R no Mac)
  • Edge: Pressione Ctrl enquanto clica Recarregar, ou pressione Ctrl-F5.
  • Opera: Pressione Ctrl-F5.
/* ================================================================= */
/* 🧩 CELTA WIKI FRAMEWORK
/* ================================================================= */

/* ================================================================= */
/* 1. COMPONENTES: ALERTAS, BADGES, TABELAS E CARDS */
/* ================================================================= */

/* --- CAIXAS DE NOTA (TEMPLATE:NOTA) --- */
.celta-box {
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 6px;
    border-left: 4px solid #ccc;
    background-color: #f9f9f9;
    font-size: 0.93em;
}
.celta-box-title {
    font-weight: 700; margin-bottom: 4px; 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; }

/* --- BADGES (ETIQUETAS DE VERSÃO) --- */
.celta-badge {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: 0.75em; font-weight: 700; text-transform: uppercase;
    margin-left: 8px; vertical-align: middle; position: relative; top: -1px;
}
.celta-badge-novo { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.celta-badge-versao { background: #e2e3e5; color: #383d41; border: 1px solid #d6d8db; }

/* --- 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;
    font-family: 'Segoe UI', Roboto, sans-serif !important;
}
.celta-table th {
    background-color: #2c3e50; color: white; padding: 12px 15px;
    text-align: left; font-weight: 600; font-size: 1em;
}
.celta-table td {
    padding: 12px 15px; border-bottom: 1px solid #eee; vertical-align: top;
    font-size: 1em; color: #333;
}
.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%; }
.celta-table ul { margin: 5px 0 !important; padding-left: 20px !important; }
.celta-table li { margin-bottom: 2px !important; }

/* --- GRID E CARDS (LAYOUT GERAL) --- */
.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 #e2e8f0; border-radius: 12px; background: #fff; padding: 0;
    transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column;
    overflow: hidden; box-sizing: border-box; box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.celta-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); }

.celta-card-header {
    font-weight: 700; color: #1e293b; padding: 20px 20px 15px 20px;
    font-size: 1em; display: flex; align-items: center; gap: 10px; background: #fff;
}
.celta-card-body { padding: 0 20px 20px 20px; font-size: 0.95em; color: #64748b; flex-grow: 1; }

/* Listas do CardMenu */
.celta-card-body ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.celta-card-body li { margin: 0 !important; padding: 0 !important; background: transparent !important; border: none !important; }
.celta-card-body li a {
    display: block; padding: 8px 0; border-bottom: 1px solid #f1f5f9;
    color: #475569; text-decoration: none; font-weight: 500; transition: all 0.2s;
}
.celta-card-body li a:hover { color: #3366cc; padding-left: 5px; border-bottom-color: #e2e8f0; }
.celta-card-body li a::before {
    content: "›"; margin-right: 8px; font-size: 1.2em; position: relative; top: 1px; color: #cbd5e1;
}
.celta-card-body li a:hover::before { color: #3366cc; }
.celta-card-body li:last-child a { border-bottom: none; }

/* Cores dos Cards */
.celta-card.accent-blue   { border-top: 4px solid #3366cc; } .celta-card.accent-blue .celta-card-header i { color: #3366cc; }
.celta-card.accent-dark   { border-top: 4px solid #2c3e50; } .celta-card.accent-dark .celta-card-header i { color: #2c3e50; }
.celta-card.accent-orange { border-top: 4px solid #fd7e14; } .celta-card.accent-orange .celta-card-header i { color: #fd7e14; }
.celta-card.accent-green  { border-top: 4px solid #198754; } .celta-card.accent-green .celta-card-header i { color: #198754; }
.celta-card.accent-red    { border-top: 4px solid #dc3545; } .celta-card.accent-red .celta-card-header i { color: #dc3545; }

/* Grid 2 colunas */
@media (min-width: 768px) { .celta-grid.celta-grid-2 { grid-template-columns: 1fr 1fr !important; } }


/* ================================================================= */
/* 2. MENU LATERAL - ESTILO SISTEMA (BRANCO E BLINDADO) */
/* ================================================================= */
.celta-sys-menu {
    background-color: #ffffff !important; border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important; padding: 20px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
    min-width: 260px; height: fit-content;
}
.celta-sys-header {
    font-weight: 700; color: #9ca3af; font-size: 0.8em;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0;
    text-align: center;
}
.celta-sys-btn {
    display: flex !important; align-items: center !important; width: 100% !important; box-sizing: border-box !important;
    padding: 10px 15px !important;
    background-color: #ffffff !important; 
    border: 1px solid #e5e7eb !important; border-radius: 6px !important;
    color: #4b5563 !important; font-weight: 600 !important; font-size: 0.95em !important; line-height: 1.2 !important;
    text-decoration: none !important; margin-bottom: 8px !important; transition: all 0.2s !important;
}
.celta-sys-btn:hover {
    background-color: #f8fafc !important; border-color: #cbd5e1 !important; color: #1e293b !important;
    transform: translateX(3px) !important; box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}
.celta-sys-btn i {
    font-size: 1.1em !important; color: #94a3b8 !important; margin-right: 12px !important; width: 20px !important; text-align: center !important; display: inline-block !important;
}
.celta-sys-btn:hover i { color: #3b82f6 !important; }
.celta-sys-menu a { text-decoration: none !important; display: block !important; }


/* ================================================================= */
/* 3. TIPOGRAFIA, CABEÇALHO E UI GLOBAL (VERSÃO COMPACTA) */
/* ================================================================= */

/* Remoção de Itens Nativos */
#siteSub, .citizen-section-indicator { display: none !important; }
body:not(.page-Página_principal) .mw-page-title-main,
body:not(.page-Página_principal) h1#firstHeading { display: none !important; }

/* Cabeçalho Template */
.celta-page-header {
    background: transparent !important; border: none !important;
    border-bottom: 1px solid #e2e8f0 !important; padding: 0 0 15px 0 !important;
    margin-bottom: 25px !important; box-shadow: none !important;
}
.celta-page-header.celta-header-clean { border-bottom: none !important; margin-bottom: 10px !important; }

.celta-breadcrumbs {
    background: transparent !important; padding: 0 !important; font-size: 0.8em !important;
    color: #64748b !important; text-transform: uppercase; font-weight: 600; margin-bottom: 5px !important;
}
.celta-main-title {
    background: transparent !important; padding: 0 !important; margin: 0 !important;
    font-size: 1.8em !important; font-weight: 800 !important; color: #0f172a !important;
    line-height: 1.2 !important; border: none !important;
}
.celta-meta-info {
    background: transparent !important; padding: 0 !important; margin-top: 5px !important;
    font-size: 0.8em !important; color: #94a3b8 !important; border: none !important;
}

/* Modo Tela Cheia */
body:has(.celta-full-width) .citizen-col-toc { display: none !important; }
body:has(.celta-full-width) .citizen-col-content { grid-column: 1 / -1 !important; max-width: 100% !important; }
body:has(.celta-full-width) .celta-page-header { max-width: 1150px; margin: 0 auto 40px auto; }
body:has(.celta-full-width) .citizen-section-indicator { display: none !important; }

/* Tipografia Geral (H1, H2, H3) */
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; margin-bottom: 0.6em !important; line-height: 1.2 !important;
}
html body:not(.page-Página_principal) h2,
html body:not(.page-Página_principal) .mw-heading2 {
    font-size: 1.4em !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: 30px !important;
}
html body:not(.page-Página_principal) h3,
html body:not(.page-Página_principal) .mw-heading3 {
    font-size: 1.15em !important; font-weight: 600 !important; color: #334155 !important;
    border: none !important; padding-left: 0 !important; margin-top: 20px !important;
}
.mw-body-content p {
    font-size: 1em !important; line-height: 1.5 !important; color: #475569 !important;
    margin-bottom: 1em !important; max-width: 900px;
}

/* ================================================================= */
/* 4. RODAPÉ COMPACTO (SLIM) */
/* ================================================================= */
.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: 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; }
#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; }
}

/* ================================================================= */
/* 📱 HERO SECTION RESPONSIVA (DESTAQUE HOME) */
/* ================================================================= */

.celta-hero-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* PC: 60% / 40% */
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.celta-hero-left {
    padding: 40px;
    border-right: 1px solid #f1f5f9; /* Linha vertical no PC */
}

/* REGRAS PARA CELULAR (Telas menores que 900px) */
@media (max-width: 900px) {
    .celta-hero-container {
        grid-template-columns: 1fr !important; /* Vira 1 coluna única */
    }
    .celta-hero-left {
        border-right: none !important; /* Remove linha vertical */
        border-bottom: 1px solid #f1f5f9; /* Adiciona linha horizontal */
        padding: 30px 20px !important; /* Ajusta espaçamento */
    }
}

/* ================================================================= */
/* 📞 NOVA GRADE DE CONTATOS (MODERN CONTACT GRID) */
/* ================================================================= */

.celta-contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}

.celta-contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
    text-decoration: none !important; /* Remove sublinhado do link pai */
    color: inherit;
}

/* Efeito Hover: Sobe um pouquinho e ganha sombra */
.celta-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: #3498db;
}

/* Círculo do Ícone */
.celta-contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    flex-shrink: 0;
}

/* Cores dos Ícones */
.bg-blue   { background: #eff6ff; color: #3b82f6; }
.bg-green  { background: #f0fdf4; color: #22c55e; }
.bg-red    { background: #fef2f2; color: #ef4444; }
.bg-purple { background: #f3e8ff; color: #a855f7; }

/* Textos */
.celta-contact-info {
    display: flex;
    flex-direction: column;
}

.celta-contact-label {
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.celta-contact-value {
    font-size: 0.95em;
    font-weight: 600;
    color: #334155;
}

/* Link dentro do card */
.celta-contact-card a {
    text-decoration: none !important;
    color: inherit !important;
}