MediaWiki:Common.css: mudanças entre as edições
Aparência
Sem resumo de edição Etiqueta: Revertido |
Sem resumo de edição Etiqueta: Revertido |
||
| Linha 138: | Linha 138: | ||
margin-top: 15px; | margin-top: 15px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
counter-reset: v-seq 0; /* Reinicia o contador para evitar números pares */ | |||
counter-reset: v-seq 0; | |||
} | } | ||
/* | /* ESTRUTURA GRID ORIGINAL DE 90% */ | ||
.info-bloco-grid { | .info-bloco-grid { | ||
display: grid; | display: grid; | ||
| Linha 152: | Linha 151: | ||
} | } | ||
.info-bloco-esq { | .info-bloco-esq { | ||
display: flex; | display: flex; | ||
| Linha 171: | Linha 169: | ||
} | } | ||
/* LÓGICA DE EXIBIÇÃO: | /* LÓGICA DE EXIBIÇÃO: Direita para A, Esquerda para R */ | ||
.info-tipo-A .info-bloco-esq { display: none !important; } | .info-tipo-A .info-bloco-esq { display: none !important; } | ||
.info-tipo-R .info-bloco-dir { display: none !important; } | .info-tipo-R .info-bloco-dir { display: none !important; } | ||
/* | /* REQUISITO: LIMPAR DIVISÕES INTERNAS DA CAIXA */ | ||
.info-tipo-A { | .info-tipo-A { | ||
border-bottom: none; | border-bottom: none; /* Remove divisórias horizontais internas enquanto for A */ | ||
} | } | ||
/* O | /* O "R" funciona como o fechamento real do caixote, passando a régua preta de 3px na base */ | ||
.info-tipo-R { | .info-tipo-R { | ||
border-bottom: 3px solid #000000; | border-bottom: 3px solid #000000; | ||
| Linha 196: | Linha 194: | ||
} | } | ||
/* | /* NUMERAÇÃO SEQUENCIAL CORRIGIDA (1, 2, 3...) */ | ||
/* O incremento acontece única e exclusivamente no bloco visível do tipo R */ | /* O incremento acontece única e exclusivamente no bloco visível do tipo R */ | ||
.info-tipo-R .info-bloco-esq::before { | .info-tipo-R .info-bloco-esq::before { | ||
| Linha 204: | Linha 202: | ||
} | } | ||
/* ENGENHARIA DE CORES CONTÍNUAS | /* REQUISITO DE CORES: ENGENHARIA DE CORES DINÂMICAS CONTÍNUAS */ | ||
/* | /* REGRA 2: Toda a primeira caixa V1 (independentemente de iniciar com A ou R) fica unificada em VERDE VIGENTE */ | ||
.info-historico > div { | .info-historico > div { | ||
background-color: #2ecc71 !important; | background-color: #2ecc71 !important; | ||
| Linha 221: | Linha 210: | ||
} | } | ||
/* | /* REGRA 3: Quando o primeiro 'R' fecha a caixa V1, ele desativa o verde para as linhas seguintes */ | ||
.info-tipo-R:first-of-type ~ div { | .info-tipo-R:first-of-type ~ div { | ||
background-color: #e0e0e0 !important; | background-color: #e0e0e0 !important; | ||
| Linha 227: | Linha 216: | ||
} | } | ||
/* | /* REGRA 4: Aplica o degradê de cinza progressivo para as próximas caixas históricas fechadas (V2 para baixo) */ | ||
.info-tipo-R:first-of-type ~ div:nth-of-type(odd) { background-color: #f5f5f5 !important; } | .info-tipo-R:first-of-type ~ div:nth-of-type(odd) { background-color: #f5f5f5 !important; } | ||
.info-tipo-R:first-of-type ~ div:nth-of-type(even) { background-color: #e0e0e0 !important; } | .info-tipo-R:first-of-type ~ div:nth-of-type(even) { background-color: #e0e0e0 !important; } | ||
.info-tipo-R:nth-of-type(3) ~ div { background-color: #cccccc !important; } | .info-tipo-R:nth-of-type(3) ~ div { background-color: #cccccc !important; } | ||
.info-tipo-R:nth-of-type(4) ~ div { background-color: #b3b3b3 !important; } | .info-tipo-R:nth-of-type(4) ~ div { background-color: #b3b3b3 !important; } | ||
Edição das 14h40min de 3 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;
}
/* Container que agrupa o infográfico */
.info-historico {
width: 100%;
margin-top: 15px;
box-sizing: border-box;
}
/* Linha Base: Grid com 2 Colunas Iguais e bordas pretas grossas de 3px */
.info-bloco-grid {
display: grid;
grid-template-columns: 1fr 1fr;
width: 100%;
border-left: 3px solid #000000;
border-right: 3px solid #000000;
box-sizing: border-box;
}
/* Coluna da Esquerda (Versões R) */
.info-bloco-esq {
display: flex;
align-items: center;
justify-content: flex-start;
padding: 8px 12px;
font-weight: bold;
font-size: 1.1em;
}
/* Coluna da Direita (Alterações A) */
.info-bloco-dir {
display: flex;
align-items: center;
justify-content: flex-end;
padding: 8px 12px;
font-size: 1.0em;
font-weight: normal;
}
/* REGRA DE RENDERAÇÃO JURÍDICA: */
/* Sempre que uma linha for do tipo R, ela 'passa a régua' e fecha o bloco com uma borda inferior grossa */
.info-tipo-R {
border-bottom: 3px solid #000000;
background-color: #ffeb3b; /* Fundo amarelo para destacar a cabeça da versão */
}
/* Cria uma divisória interna de 3px apenas entre o lado esquerdo e direito nas linhas do tipo R */
.info-tipo-R .info-bloco-esq {
border-right: 3px solid #000000;
margin-right: -3px;
}
/* Linhas do tipo A servem para empilhar conteúdo e não fecham a borda inferior, criando o efeito de 'bloco contínuo' */
.info-tipo-A {
border-bottom: none;
background-color: #ffffff;
}
/* Garante que a primeiríssima linha do topo (a mais recente do banco devido ao DESC) feche a borda superior do infográfico */
.info-historico > div:first-child {
border-top: 3px solid #000000;
}
/* Destaque visual: Pinta a versão mais recente e ativa do topo de Verde Vigente */
.info-historico > div.info-tipo-R:first-child,
.info-historico > div.info-tipo-A:first-child ~ div.info-tipo-R {
background-color: #2ecc71 !important;
color: #ffffff;
}
/* CONTAINER GERAL DO INFOGRÁFICO */
.info-historico {
width: 100%;
margin-top: 15px;
box-sizing: border-box;
counter-reset: v-seq 0; /* Reinicia o contador para evitar números pares */
}
/* ESTRUTURA GRID ORIGINAL DE 90% */
.info-bloco-grid {
display: grid;
grid-template-columns: 1fr 1fr;
width: 100%;
border-left: 3px solid #000000;
border-right: 3px solid #000000;
box-sizing: border-box;
}
.info-bloco-esq {
display: flex;
align-items: center;
justify-content: flex-start;
padding: 6px 12px;
font-weight: bold;
font-size: 1.1em;
}
.info-bloco-dir {
display: flex;
align-items: center;
justify-content: flex-end;
padding: 6px 12px;
font-size: 1.0em;
font-weight: normal;
}
/* LÓGICA DE EXIBIÇÃO: Direita para A, Esquerda para R */
.info-tipo-A .info-bloco-esq { display: none !important; }
.info-tipo-R .info-bloco-dir { display: none !important; }
/* REQUISITO: LIMPAR DIVISÕES INTERNAS DA CAIXA */
.info-tipo-A {
border-bottom: none; /* Remove divisórias horizontais internas enquanto for A */
}
/* O "R" funciona como o fechamento real do caixote, passando a régua preta de 3px na base */
.info-tipo-R {
border-bottom: 3px solid #000000;
}
/* Divisória interna vertical de 3px apenas nas linhas que fecham a versão (R) */
.info-tipo-R .info-bloco-esq {
border-right: 3px solid #000000;
margin-right: -3px;
}
/* Tampa superior preta do infográfico geral */
.info-historico > div:first-child {
border-top: 3px solid #000000;
}
/* NUMERAÇÃO SEQUENCIAL CORRIGIDA (1, 2, 3...) */
/* O incremento acontece única e exclusivamente no bloco visível do tipo R */
.info-tipo-R .info-bloco-esq::before {
counter-increment: v-seq 1;
content: "V" counter(v-seq) " - ";
font-size: 0.9em;
}
/* REQUISITO DE CORES: ENGENHARIA DE CORES DINÂMICAS CONTÍNUAS */
/* REGRA 2: Toda a primeira caixa V1 (independentemente de iniciar com A ou R) fica unificada em VERDE VIGENTE */
.info-historico > div {
background-color: #2ecc71 !important;
color: #ffffff !important;
}
/* REGRA 3: Quando o primeiro 'R' fecha a caixa V1, ele desativa o verde para as linhas seguintes */
.info-tipo-R:first-of-type ~ div {
background-color: #e0e0e0 !important;
color: #333333 !important;
}
/* REGRA 4: Aplica o degradê de cinza progressivo para as próximas caixas históricas fechadas (V2 para baixo) */
.info-tipo-R:first-of-type ~ div:nth-of-type(odd) { background-color: #f5f5f5 !important; }
.info-tipo-R:first-of-type ~ div:nth-of-type(even) { background-color: #e0e0e0 !important; }
.info-tipo-R:nth-of-type(3) ~ div { background-color: #cccccc !important; }
.info-tipo-R:nth-of-type(4) ~ div { background-color: #b3b3b3 !important; }