MediaWiki:Common.css: mudanças entre as edições
Aparência
Sem resumo de edição |
Sem resumo de edição |
||
| Linha 64: | Linha 64: | ||
} | } | ||
/* | /* Remove estilos padrões da tabela do Cargo para virar o infográfico */ | ||
.info-historico-infografico { | .info-historico-infografico table, | ||
display: flex; | .info-historico-infografico tbody { | ||
flex-direction: column; | display: flex !important; | ||
width: 100%; | flex-direction: column !important; | ||
max-width: 200px; | width: 100% !important; | ||
margin: 15px auto; | max-width: 200px !important; | ||
gap: | margin: 15px auto !important; | ||
gap: 4px !important; | |||
border: none !important; | |||
background: none !important; | |||
} | } | ||
/* Base de cada | /* Base de cada linha (caixa do infográfico) */ | ||
. | .info-historico-infografico tr.infografico-linha { | ||
display: flex; | display: flex !important; | ||
align-items: center; | align-items: center !important; | ||
justify-content: center; | justify-content: center !important; | ||
width: 50% !important; /* Metade do tamanho para criar duas colunas */ | |||
border-radius: 4px !important; | |||
box-sizing: border-box !important; | |||
border-radius: 4px; | border: none !important; | ||
box-sizing: border-box; | |||
} | } | ||
/* --- POSICIONAMENTO LATERAL | /* Ajusta a célula interna do texto */ | ||
/* R (Principais) ficam | .info-historico-infografico tr.infografico-linha td { | ||
. | display: block !important; | ||
width: 100% !important; | |||
text-align: center !important; | |||
padding: 6px 12px !important; | |||
font-size: 13px !important; | |||
font-weight: bold !important; | |||
border: none !important; | |||
background: transparent !important; /* Herda a cor do TR */ | |||
} | |||
/* --- POSICIONAMENTO LATERAL (Esquerda vs Direita) --- */ | |||
/* R (Principais) ficam na Esquerda */ | |||
.info-historico-infografico tr.tipo-inline-R { | |||
align-self: flex-start !important; | align-self: flex-start !important; | ||
margin-right: auto !important; | margin-right: auto !important; | ||
| Linha 97: | Linha 108: | ||
} | } | ||
/* A (Secundários) ficam | /* A (Secundários) ficam na Direita */ | ||
. | .info-historico-infografico tr.tipo-inline-A { | ||
align-self: flex-end !important; | align-self: flex-end !important; | ||
margin-left: auto !important; | margin-left: auto !important; | ||
| Linha 104: | Linha 115: | ||
} | } | ||
/* --- CORES | /* --- LÓGICA DE DEGRADÊ DE CORES (De cima para baixo usando seletores CSS) --- */ | ||
/* Bloco 1: | |||
. | /* Bloco 1: As primeiras linhas da tabela (Verde Vigente) */ | ||
.info-historico-infografico tr.infografico-linha { | |||
background-color: #2ecc71 !important; | background-color: #2ecc71 !important; | ||
} | |||
.info-historico-infografico tr.infografico-linha td { | |||
color: #ffffff !important; | color: #ffffff !important; | ||
} | } | ||
/* Bloco 2: | /* Bloco 2: A partir da quinta linha (Primeira mudança para Cinza Claro) */ | ||
. | .info-historico-infografico tr.infografico-linha:nth-child(n+5) { | ||
background-color: #d1d5db !important; | background-color: #d1d5db !important; | ||
} | |||
.info-historico-infografico tr.infografico-linha:nth-child(n+5) td { | |||
color: #1f2937 !important; | color: #1f2937 !important; | ||
} | } | ||
/* Bloco 3: | /* Bloco 3: A partir da oitava linha (Cinza Médio) */ | ||
. | .info-historico-infografico tr.infografico-linha:nth-child(n+8) { | ||
background-color: #9ca3af !important; | background-color: #9ca3af !important; | ||
} | |||
.info-historico-infografico tr.infografico-linha:nth-child(n+8) td { | |||
color: #ffffff !important; | color: #ffffff !important; | ||
} | } | ||
/* Bloco 4: | /* Bloco 4: A partir da décima linha (Cinza Escuro) */ | ||
. | .info-historico-infografico tr.infografico-linha:nth-child(n+10) { | ||
background-color: # | background-color: #4b5563 !important; | ||
} | } | ||
.info-historico-infografico tr.infografico-linha:nth-child(n+10) td { | |||
. | |||
. | |||
color: #ffffff !important; | color: #ffffff !important; | ||
} | } | ||
Edição das 21h23min de 6 de julho de 2026
/* Container do Card com Sombra Sutil e Borda Escura */
.norma-container {
display: block;
clear: both;
width: 100%;
margin-bottom: 16px;
box-sizing: border-box;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
border: 1px solid #bbb !important;
border-radius: 6px;
overflow: hidden;
}
/* Cores Unificadas por Classe (Cabeçalho e Conteúdo) */
.norma-box-Geral th, .norma-box-Geral td {
background-color: #e3f2fd !important;
}
.norma-box-Especial th, .norma-box-Especial td {
background-color: #fff3e0 !important;
}
.norma-box-Setorial th, .norma-box-Setorial td {
background-color: #e8f5e9 !important;
}
.norma-box-Revogada th, .norma-box-Revogada td {
background-color: #ffebee !important;
}
/* Container Principal: Divide em duas colunas (70% para o texto, 30% para a barra lateral) */
.norma-page-layout {
display: flex;
gap: 20px;
width: 100%;
box-sizing: border-box;
}
/* Coluna da Esquerda (Texto Principal) */
.norma-main-column {
flex: 70%;
}
/* Coluna da Direita (Painéis Laterais) */
.norma-sidebar-column {
flex: 30%;
display: flex;
flex-direction: column;
gap: 15px; /* Espaço vertical entre as caixas da direita */
}
/* Estilo padrão de cada caixa/bloco desenhado */
.norma-block-box {
background: #ffffff;
border: 3px solid #000000; /* Borda grossa preta do desenho */
border-radius: 4px;
padding: 20px;
box-sizing: border-box;
}
/* Títulos internos de cada caixa */
.norma-block-box h4 {
margin-top: 0;
font-size: 1.3em;
font-weight: bold;
border-bottom: 2px solid #000000;
padding-bottom: 8px;
}
/* Remove estilos padrões da tabela do Cargo para virar o infográfico */
.info-historico-infografico table,
.info-historico-infografico tbody {
display: flex !important;
flex-direction: column !important;
width: 100% !important;
max-width: 200px !important;
margin: 15px auto !important;
gap: 4px !important;
border: none !important;
background: none !important;
}
/* Base de cada linha (caixa do infográfico) */
.info-historico-infografico tr.infografico-linha {
display: flex !important;
align-items: center !important;
justify-content: center !important;
width: 50% !important; /* Metade do tamanho para criar duas colunas */
border-radius: 4px !important;
box-sizing: border-box !important;
border: none !important;
}
/* Ajusta a célula interna do texto */
.info-historico-infografico tr.infografico-linha td {
display: block !important;
width: 100% !important;
text-align: center !important;
padding: 6px 12px !important;
font-size: 13px !important;
font-weight: bold !important;
border: none !important;
background: transparent !important; /* Herda a cor do TR */
}
/* --- POSICIONAMENTO LATERAL (Esquerda vs Direita) --- */
/* R (Principais) ficam na Esquerda */
.info-historico-infografico tr.tipo-inline-R {
align-self: flex-start !important;
margin-right: auto !important;
margin-left: 0 !important;
}
/* A (Secundários) ficam na Direita */
.info-historico-infografico tr.tipo-inline-A {
align-self: flex-end !important;
margin-left: auto !important;
margin-right: 0 !important;
}
/* --- LÓGICA DE DEGRADÊ DE CORES (De cima para baixo usando seletores CSS) --- */
/* Bloco 1: As primeiras linhas da tabela (Verde Vigente) */
.info-historico-infografico tr.infografico-linha {
background-color: #2ecc71 !important;
}
.info-historico-infografico tr.infografico-linha td {
color: #ffffff !important;
}
/* Bloco 2: A partir da quinta linha (Primeira mudança para Cinza Claro) */
.info-historico-infografico tr.infografico-linha:nth-child(n+5) {
background-color: #d1d5db !important;
}
.info-historico-infografico tr.infografico-linha:nth-child(n+5) td {
color: #1f2937 !important;
}
/* Bloco 3: A partir da oitava linha (Cinza Médio) */
.info-historico-infografico tr.infografico-linha:nth-child(n+8) {
background-color: #9ca3af !important;
}
.info-historico-infografico tr.infografico-linha:nth-child(n+8) td {
color: #ffffff !important;
}
/* Bloco 4: A partir da décima linha (Cinza Escuro) */
.info-historico-infografico tr.infografico-linha:nth-child(n+10) {
background-color: #4b5563 !important;
}
.info-historico-infografico tr.infografico-linha:nth-child(n+10) td {
color: #ffffff !important;
}