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 131: | Linha 131: | ||
color: #ffffff; | color: #ffffff; | ||
} | } | ||
/* CONTAINER DO INFOGRÁFICO */ | |||
/* CONTAINER GERAL DO INFOGRÁFICO */ | |||
.info-historico { | .info-historico { | ||
width: 100%; | width: 100%; | ||
margin-top: 15px; | margin-top: 15px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
/* Inicializa o contador de versões de forma limpa e isolada */ | |||
counter-reset: v-seq 0; | |||
} | } | ||
/* | /* BLOCK BASE: Grid de duas colunas que se une verticalmente */ | ||
.info- | .info-bloco-grid { | ||
display: grid; | |||
grid-template-columns: 1fr 1fr; | |||
width: 100%; | width: 100%; | ||
border- | border-left: 3px solid #000000; | ||
border-right: 3px solid #000000; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
. | /* Alinhamento dos Textos */ | ||
.info-bloco-esq { | |||
display: flex; | |||
align-items: center; | |||
justify-content: flex-start; | |||
padding: 6px 12px; | |||
font-weight: bold; | font-weight: bold; | ||
font-size: 1.1em; | font-size: 1.1em; | ||
} | } | ||
. | .info-bloco-dir { | ||
display: flex; | |||
align-items: center; | |||
justify-content: flex-end; | |||
padding: 6px 12px; | |||
font-size: 1.0em; | font-size: 1.0em; | ||
font-weight: normal; | font-weight: normal; | ||
} | } | ||
/* LÓGICA DE EXIBIÇÃO: Oculta o | /* LÓGICA DE EXIBIÇÃO: Oculta o lado correto sem gerar texto cru */ | ||
. | .info-tipo-A .info-bloco-esq { display: none !important; } | ||
. | .info-tipo-R .info-bloco-dir { display: none !important; } | ||
/* REMOÇÃO DE DIVISÕES INTERNAS ( | /* REMOÇÃO DE DIVISÕES INTERNAS (Caixas totalmente lisas por dentro) */ | ||
.info- | .info-tipo-A { | ||
border-bottom: none; | border-bottom: none; | ||
} | } | ||
/* O elemento R | /* O elemento R passa a régua preta de 3px e encerra o caixote daquela versão */ | ||
. | .info-tipo-R { | ||
border-bottom: 3px solid #000000 | 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; | 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; | |||
} | } | ||
/* CONTADOR SEQUENCIAL PERFEITO (V1, V2, V3...) */ | /* CONTADOR SEQUENCIAL PERFEITO (V1, V2, V3...) */ | ||
/* O incremento | /* 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; | counter-increment: v-seq 1; | ||
content: "V" counter(v-seq) " - "; | content: "V" counter(v-seq) " - "; | ||
| Linha 194: | Linha 204: | ||
} | } | ||
/* ENGENHARIA DE CORES | /* ENGENHARIA DE CORES CONTÍNUAS (Degradê do topo para a base) */ | ||
/* Por padrão, | /* Por padrão, aplica as cores de histórico (degradê de cinzas) para toda a lista */ | ||
.info- | .info-historico > div { background-color: #e0e0e0; color: #333333; } | ||
.info- | .info-historico > div.info-tipo-R:nth-of-type(2n), | ||
.info- | .info-historico > div.info-tipo-R:nth-of-type(2n) ~ div { background-color: #f5f5f5; } | ||
.info- | .info-historico > div.info-tipo-R:nth-of-type(3n), | ||
.info- | .info-historico > div.info-tipo-R:nth-of-type(3n) ~ div { background-color: #e0e0e0; } | ||
.info-historico > div.info-tipo-R:nth-of-type(4n), | |||
.info-historico > div.info-tipo-R:nth-of-type(4n) ~ div { background-color: #cccccc; } | |||
/* A REGRA | /* A REGRA SUPREMA: Pinta absolutamente tudo do primeiro bloco até o primeiro "R" de VERDE VIGENTE */ | ||
.info- | .info-historico > div { | ||
background-color: #2ecc71 !important; | background-color: #2ecc71 !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
} | } | ||
/* | /* Assim que o primeiro fechamento 'R' acontece no código, ele cancela o verde para as linhas seguintes */ | ||
. | .info-tipo-R:first-of-type ~ div { | ||
background-color: #e0e0e0 !important; | background-color: #e0e0e0 !important; | ||
color: #333333 !important; | color: #333333 !important; | ||
} | } | ||
/* | /* Reaplica o degradê suave de cinzas restrito apenas da 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; } | ||
Edição das 14h24min 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;
/* Inicializa o contador de versões de forma limpa e isolada */
counter-reset: v-seq 0;
}
/* BLOCK BASE: Grid de duas colunas que se une verticalmente */
.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;
}
/* Alinhamento dos Textos */
.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: Oculta o lado correto sem gerar texto cru */
.info-tipo-A .info-bloco-esq { display: none !important; }
.info-tipo-R .info-bloco-dir { display: none !important; }
/* REMOÇÃO DE DIVISÕES INTERNAS (Caixas totalmente lisas por dentro) */
.info-tipo-A {
border-bottom: none;
}
/* O elemento R passa a régua preta de 3px e encerra o caixote daquela versão */
.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;
}
/* CONTADOR SEQUENCIAL PERFEITO (V1, V2, V3...) */
/* 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;
}
/* ENGENHARIA DE CORES CONTÍNUAS (Degradê do topo para a base) */
/* Por padrão, aplica as cores de histórico (degradê de cinzas) para toda a lista */
.info-historico > div { background-color: #e0e0e0; color: #333333; }
.info-historico > div.info-tipo-R:nth-of-type(2n),
.info-historico > div.info-tipo-R:nth-of-type(2n) ~ div { background-color: #f5f5f5; }
.info-historico > div.info-tipo-R:nth-of-type(3n),
.info-historico > div.info-tipo-R:nth-of-type(3n) ~ div { background-color: #e0e0e0; }
.info-historico > div.info-tipo-R:nth-of-type(4n),
.info-historico > div.info-tipo-R:nth-of-type(4n) ~ div { background-color: #cccccc; }
/* A REGRA SUPREMA: Pinta absolutamente tudo do primeiro bloco até o primeiro "R" de VERDE VIGENTE */
.info-historico > div {
background-color: #2ecc71 !important;
color: #ffffff !important;
}
/* Assim que o primeiro fechamento 'R' acontece no código, ele cancela o verde para as linhas seguintes */
.info-tipo-R:first-of-type ~ div {
background-color: #e0e0e0 !important;
color: #333333 !important;
}
/* Reaplica o degradê suave de cinzas restrito apenas da 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; }