MediaWiki:Common.css: mudanças entre as edições
Página de Interface do MediaWiki
Mais ações
Sem resumo de edição Etiqueta: Revertido |
Sem resumo de edição Etiqueta: Revertido |
||
| Linha 1: | Linha 1: | ||
/* =================================================================== | /* =================================================================== | ||
CELTA WIKI FRAMEWORK - ESTILO COMPLETO (REFATORADO) | CELTA WIKI FRAMEWORK - ESTILO COMPLETO (REFATORADO) | ||
Edição das 04h25min de 7 de dezembro de 2025
/* ===================================================================
CELTA WIKI FRAMEWORK - ESTILO COMPLETO (REFATORADO)
===================================================================
*/
:root {
/* --- PALETA DE CORES CELTA --- */
--celta-green: #31c131; /* Verde Principal (Brand) */
--celta-green-hover: #28a028; /* Verde Escuro (Hover) */
--celta-blue: #3366cc;
--celta-dark: #2c3e50;
--celta-yellow: #ffc107;
--celta-red: #dc3545;
/* --- FUNDOS & BORDAS --- */
--celta-bg-light: #f8f9fa;
--celta-bg-code: #e2e8f0;
--celta-bg-info: #f0f7ff;
--celta-bg-success: #d1e7dd;
--celta-bg-warning: #fff3cd;
--celta-bg-danger: #fff5f5;
--celta-border-light: #e2e8f0;
--celta-border-code: #cbd5e1;
/* --- TEXTO & FONTES --- */
--celta-text-main: #333;
--celta-text-muted: #64748b;
--celta-text-dark: #0f172a;
--celta-font-sans: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
--celta-font-mono: 'Consolas', 'Monaco', monospace;
}
/* --- RESET BÁSICO PARA O WIKI --- */
body {
font-family: var(--celta-font-sans);
background-color: #f4f4f4;
}
/* Remove sublinhados padrão de links dentro do container do sistema */
.erp-container a {
text-decoration: none !important;
color: inherit !important;
border-bottom: none !important;
}
.erp-container a:hover {
text-decoration: none !important;
color: inherit !important;
}
/* ===================================================================
LAYOUT DO SISTEMA ERP (SIDEBAR + CONTEÚDO)
=================================================================== */
.celta-full-width { width: 100%; }
.erp-container {
display: flex;
flex-direction: column;
height: 85vh; /* Altura fixa para simular aplicação */
background-color: #f0f2f5;
border: 1px solid #d1d5db;
border-radius: 4px;
overflow: hidden;
position: relative;
box-shadow: 0 0 20px rgba(0,0,0,0.1);
font-family: var(--celta-font-sans);
margin: 20px 0;
}
/* --- BARRA SUPERIOR (TOP BAR) --- */
.erp-top-bar {
background-color: var(--celta-green);
height: 50px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
color: white;
z-index: 20; /* Acima dos submenus */
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.erp-brand {
font-weight: 700;
font-size: 1.1em;
display: flex;
align-items: center;
gap: 10px;
text-transform: uppercase;
}
.erp-user-actions {
display: flex;
gap: 10px;
}
.erp-icon-circle {
border: 1px solid rgba(255, 255, 255, 0.6);
border-radius: 50%;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.1em;
cursor: pointer;
}
/* --- CORPO PRINCIPAL --- */
.erp-body {
display: flex;
flex: 1;
overflow: hidden;
position: relative; /* Importante para posicionamento absoluto dos menus */
}
/* --- SIDEBAR (MENU LATERAL ESQUERDO) --- */
.erp-sidebar {
width: 260px;
background-color: #ffffff;
border-right: 1px solid #e0e0e0;
overflow-y: auto;
display: flex;
flex-direction: column;
z-index: 15;
padding-top: 10px;
flex-shrink: 0;
}
/* ITENS DO MENU LATERAL */
.erp-menu-item {
padding: 12px 20px;
color: #444;
cursor: pointer;
display: flex;
align-items: center;
border-left: 4px solid transparent;
transition: all 0.2s;
font-size: 0.95em;
font-weight: 500;
text-decoration: none !important;
}
.erp-menu-item:hover {
background-color: #f5f5f5;
color: #000;
}
/* Item Ativo (Clicado) */
.erp-menu-item.active,
[class*="erp-click-"].active {
background-color: #e8f5e9;
color: var(--celta-green);
border-left-color: var(--celta-green);
}
.erp-menu-item i {
font-size: 1.3em;
margin-right: 15px;
width: 24px;
text-align: center;
color: #666;
}
.erp-menu-item.active i {
color: var(--celta-green);
}
/* --- ESTILO GENÉRICO PARA BOTÕES DE MENU --- */
/* Isso garante a mãozinha em qualquer classe que comece com erp-click- */
[class*="erp-click-"] {
cursor: pointer;
}
/* --- ÁREA DE CONTEÚDO (DIREITA) --- */
.erp-content-stage {
flex: 1;
background-color: #f9f9f9;
padding: 30px;
overflow-y: auto;
position: relative;
}
/* Logo de Fundo (Marca D'água) */
.erp-bg-logo {
position: absolute;
bottom: 20px;
right: 20px;
width: 300px;
height: 300px;
/* Ajuste o caminho da imagem conforme sua Wiki */
background-image: url('/resources/assets/celta-logo.svg');
background-repeat: no-repeat;
background-position: bottom right;
background-size: contain;
opacity: 1;
pointer-events: none;
z-index: 0;
}
.erp-widgets-area {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
gap: 20px;
max-width: 800px;
}
/* --- FOOTER DO SISTEMA --- */
.erp-footer-bar {
background-color: var(--celta-green);
height: 30px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 15px;
font-size: 0.75em;
color: white;
font-weight: 600;
}
/* ===================================================================
SUBMENUS (O NOVO VISUAL MELHORADO)
=================================================================== */
/* Overlay Transparente (ocupa a área da direita) */
.erp-submenu-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: transparent;
display: none; /* Oculto por padrão */
z-index: 100;
}
/* Painel do Submenu */
.erp-submenu-panel {
width: 100%;
height: 100%;
padding: 0;
box-sizing: border-box;
overflow-y: auto;
border: none;
box-shadow: none;
/* Fundo transparente para ver a logo, ou cor sólida se preferir */
background: transparent;
}
/* GRID DE COLUNAS (Layout de 4 colunas alinhado ao topo) */
.sys-columns-grid {
display: grid;
grid-template-columns: repeat(4, 1fr); /* 4 Colunas por padrão */
gap: 15px;
align-items: start; /* O SEGREDO: Alinha itens no topo, sem esticar */
}
/* CARTÃO DA COLUNA (Caixinha Branca) */
.sys-column {
background: white;
border: 1px solid #ccc;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
border-radius: 4px;
overflow: hidden;
}
/* CABEÇALHO DA COLUNA (Verde) */
.sys-col-header {
background-color: var(--celta-green);
color: white;
padding: 8px 10px;
text-align: center;
font-weight: 700;
font-size: 0.9em;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* ITENS DA LISTA */
.sys-col-item {
padding: 8px 15px;
border-bottom: 1px solid #f0f0f0;
font-size: 0.85em;
cursor: pointer;
color: #333;
transition: background 0.1s;
}
.sys-col-item:last-child {
border-bottom: none;
}
.sys-col-item:hover {
background-color: #e9ecef;
color: #000;
font-weight: 500;
}
/* Corrige links da Wiki dentro dos itens */
.sys-col-item a {
display: block; /* Ocupa todo o espaço do item */
width: 100%;
height: 100%;
color: inherit !important; /* Herda a cor do item, não azul de link */
}
/* Separador cinza dentro da lista */
.sys-separator {
height: 10px;
background: #f8f9fa;
border-top: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
}
/* ===================================================================
ELEMENTOS GERAIS DA WIKI (Alerts, Badges, Tabelas)
=================================================================== */
/* MONOSPACE & CODE */
code {
font-family: var(--celta-font-mono) !important;
font-size: 0.9em;
background-color: var(--celta-bg-code);
padding: 2px 6px;
border-radius: 4px;
color: var(--celta-text-dark);
border: 1px solid var(--celta-border-code);
}
/* CAIXAS DE ALERTA */
.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: var(--celta-bg-info); border-color: var(--celta-blue); }
.celta-info .celta-box-title { color: var(--celta-blue); }
.celta-success { background: var(--celta-bg-success); border-color: var(--celta-green); }
.celta-success .celta-box-title { color: #155724; }
.celta-warning { background: var(--celta-bg-warning); border-color: var(--celta-yellow); }
.celta-warning .celta-box-title { color: #856404; }
.celta-danger { background: var(--celta-bg-danger); border-color: var(--celta-red); }
.celta-danger .celta-box-title { color: var(--celta-red); }
/* TABELAS */
.celta-table {
width: 100%; border-collapse: collapse; border-radius: 8px;
overflow: hidden; box-shadow: 0 0 0 1px #e0e0e0;
margin: 15px 0 25px 0;
}
.celta-table th { background-color: var(--celta-dark); color: white; padding: 12px 15px; text-align: left; font-weight: 600; }
.celta-table td { padding: 12px 15px; border-bottom: 1px solid #eee; vertical-align: top; }
.celta-col-key { background-color: var(--celta-bg-light); font-weight: 600; width: 30%; }
/* PRINTS DE TELA */
.celta-print-container { margin: 30px auto; text-align: center; max-width: 100%; }
.celta-print-img {
max-width: 100%; height: auto; border: 1px solid var(--celta-border-light);
border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
display: block; margin: 0 auto; max-height: 600px;
}
.celta-print-caption {
margin-top: 10px; font-size: 0.85em; color: var(--celta-text-muted);
font-style: italic; text-align: center; line-height: 1.4;
}
/* ===================================================================
RESPONSIVIDADE
=================================================================== */
/* Tablets e Telas Médias */
@media (max-width: 1200px) {
.sys-columns-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
.sys-columns-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Celulares */
@media (max-width: 768px) {
.erp-container { height: auto !important; min-height: 80vh; }
.erp-body { flex-direction: column !important; }
.erp-sidebar { width: 100% !important; height: auto !important; max-height: 250px; border-right: none !important; border-bottom: 1px solid #e0e0e0; }
.erp-bg-logo { display: none !important; }
.erp-content-stage { padding: 15px !important; }
.erp-user-actions { display: none !important; }
/* Submenu vira lista única no mobile */
.sys-columns-grid { grid-template-columns: 1fr; }
/* Ajuste de tabelas */
.celta-col-key, .celta-col-value { display: block; width: 100%; }
}