Ir para o conteúdo

MediaWiki:Common.css: mudanças entre as edições

De Normas Regulamentadoras
Sem resumo de edição
Etiqueta: Revertido
Sem resumo de edição
Etiqueta: Revertido
Linha 133: Linha 133:




/* **********************************************************************************/
/* CONTAINER GERAL DO INFOGRÁFICO */
/* CONTAINER GERAL DO INFOGRÁFICO */
.info-historico {
.info-historico {
    display: flex;
    flex-direction: column-reverse; /* Mantém a menor vigência na base */
     width: 100%;
     width: 100%;
     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 */
    border-top: 3px solid #000000; /* Tampa superior do infográfico */
     counter-reset: v-seq 0; /* Inicializa o contador */
}
}


/* ESTRUTURA GRID ORIGINAL DE 90% */
/* LINHA BASE EM GRID DE DUAS COLUNAS FIXAS */
.info-bloco-grid {
.info-bloco-grid {
     display: grid;
     display: grid;
Linha 151: Linha 155:
}
}


/* Alinhamento estrito dos textos das colunas */
.info-bloco-esq {
.info-bloco-esq {
     display: flex;
     grid-column: 1; /* Força ficar na Esquerda */
    align-items: center;
     text-align: left;
     justify-content: flex-start;
    padding: 6px 12px;
     font-weight: bold;
     font-weight: bold;
     font-size: 1.1em;
     font-size: 1.1em;
    padding: 6px 12px;
}
}


.info-bloco-dir {
.info-bloco-dir {
     display: flex;
     grid-column: 2; /* Força ficar na Direita */
    align-items: center;
     text-align: right;
     justify-content: flex-end;
    padding: 6px 12px;
     font-size: 1.0em;
     font-size: 1.0em;
     font-weight: normal;
     font-weight: normal;
    padding: 6px 12px;
}
}


/* LÓGICA DE EXIBIÇÃO: Direita para A, Esquerda para R */
/* 1. SEPARAÇÃO REQUISITO: Esconde o texto do lado oposto sem sumir com a coluna */
.info-tipo-A .info-bloco-esq { display: none !important; }
.info-tipo-A .info-bloco-esq { visibility: hidden; }
.info-tipo-R .info-bloco-dir { display: none !important; }
.info-tipo-R .info-bloco-dir { visibility: hidden; }


/* REQUISITO: LIMPAR DIVISÕES INTERNAS DA CAIXA */
/* 2. REQUISITO: REMOÇÃO DE DIVISÕES INTERNAS INTERNAS */
.info-tipo-A {
.info-tipo-A {
     border-bottom: none; /* Remove divisórias horizontais internas enquanto for A */
     border-bottom: none; /* Sem linha horizontal interna enquanto for alteração */
}
}


/* O "R" funciona como o fechamento real do caixote, passando a régua preta de 3px na base */
/* O "R" passa a régua preta de 3px na base e fecha o caixote da versão */
.info-tipo-R {
.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) */
/* Cria a divisória vertical central de 3px APENAS na linha de fechamento (R) */
.info-tipo-R .info-bloco-esq {
.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 */
/* 3. CONTADOR SEQUENCIAL IMPECÁVEL (V1, V2, V3...) */
.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 {
.info-tipo-R .info-bloco-esq::before {
     counter-increment: v-seq 1;
     counter-increment: v-seq 1;
Linha 202: Linha 198:
}
}


/* REQUISITO DE CORES: ENGENHARIA DE CORES DINÂMICAS CONTÍNUAS */
/* 4. ENGENHARIA DE CORES CONTÍNUAS (Baseada na árvore de elementos reversa) */


/* REGRA 2: Toda a primeira caixa V1 (independentemente de iniciar com A ou R) fica unificada em VERDE VIGENTE */
/* Por padrão, define a cor verde vibrante para TODA a lista do topo */
.info-historico > div {
.info-bloco-grid {
     background-color: #2ecc71 !important;
     background-color: #2ecc71 !important;
     color: #ffffff !important;
     color: #ffffff !important;
}
}


/* REGRA 3: Quando o primeiro 'R' fecha a caixa V1, ele desativa o verde para as linhas seguintes */
/* Assim que o primeiro corte de versão (R) acontece de cima para baixo,  
.info-tipo-R:first-of-type ~ div {
  todas as linhas subsequentes perdem o verde e assumem a cor cinza de histórico */
     background-color: #e0e0e0 !important;
.info-tipo-R:last-of-type ~ .info-bloco-grid,
     color: #333333 !important;
.info-tipo-R:nth-last-of-type(1) ~ .info-bloco-grid {  
     background-color: #f5f5f5 !important;  
     color: #333333 !important;  
}
}


/* REGRA 4: Aplica o degradê de cinza progressivo para as próximas caixas históricas fechadas (V2 para baixo) */
/* Aplica o degradê progressivo de cinzas para as versões mais profundas e antigas */
.info-tipo-R:first-of-type ~ div:nth-of-type(odd) { background-color: #f5f5f5 !important; }
.info-tipo-R:nth-last-of-type(2) ~ .info-bloco-grid { background-color: #e0e0e0 !important; }
.info-tipo-R:first-of-type ~ div:nth-of-type(even) { background-color: #e0e0e0 !important; }
.info-tipo-R:nth-last-of-type(3) ~ .info-bloco-grid { background-color: #cccccc !important; }
.info-tipo-R:nth-of-type(3) ~ div { background-color: #cccccc !important; }
.info-tipo-R:nth-last-of-type(4) ~ .info-bloco-grid { background-color: #b3b3b3 !important; }
.info-tipo-R:nth-of-type(4) ~ div { background-color: #b3b3b3 !important; }

Edição das 14h52min 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 {
    display: flex;
    flex-direction: column-reverse; /* Mantém a menor vigência na base */
    width: 100%;
    margin-top: 15px;
    box-sizing: border-box;
    border-top: 3px solid #000000; /* Tampa superior do infográfico */
    counter-reset: v-seq 0; /* Inicializa o contador */
}

/* LINHA BASE EM GRID DE DUAS COLUNAS FIXAS */
.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 estrito dos textos das colunas */
.info-bloco-esq {
    grid-column: 1; /* Força ficar na Esquerda */
    text-align: left;
    font-weight: bold;
    font-size: 1.1em;
    padding: 6px 12px;
}

.info-bloco-dir {
    grid-column: 2; /* Força ficar na Direita */
    text-align: right;
    font-size: 1.0em;
    font-weight: normal;
    padding: 6px 12px;
}

/* 1. SEPARAÇÃO REQUISITO: Esconde o texto do lado oposto sem sumir com a coluna */
.info-tipo-A .info-bloco-esq { visibility: hidden; }
.info-tipo-R .info-bloco-dir { visibility: hidden; }

/* 2. REQUISITO: REMOÇÃO DE DIVISÕES INTERNAS INTERNAS */
.info-tipo-A {
    border-bottom: none; /* Sem linha horizontal interna enquanto for alteração */
}

/* O "R" passa a régua preta de 3px na base e fecha o caixote da versão */
.info-tipo-R {
    border-bottom: 3px solid #000000;
}

/* Cria a divisória vertical central de 3px APENAS na linha de fechamento (R) */
.info-tipo-R .info-bloco-esq {
    border-right: 3px solid #000000;
}

/* 3. CONTADOR SEQUENCIAL IMPECÁVEL (V1, V2, V3...) */
.info-tipo-R .info-bloco-esq::before {
    counter-increment: v-seq 1;
    content: "V" counter(v-seq) " - ";
    font-size: 0.9em;
}

/* 4. ENGENHARIA DE CORES CONTÍNUAS (Baseada na árvore de elementos reversa) */

/* Por padrão, define a cor verde vibrante para TODA a lista do topo */
.info-bloco-grid {
    background-color: #2ecc71 !important;
    color: #ffffff !important;
}

/* Assim que o primeiro corte de versão (R) acontece de cima para baixo, 
   todas as linhas subsequentes perdem o verde e assumem a cor cinza de histórico */
.info-tipo-R:last-of-type ~ .info-bloco-grid,
.info-tipo-R:nth-last-of-type(1) ~ .info-bloco-grid { 
    background-color: #f5f5f5 !important; 
    color: #333333 !important; 
}

/* Aplica o degradê progressivo de cinzas para as versões mais profundas e antigas */
.info-tipo-R:nth-last-of-type(2) ~ .info-bloco-grid { background-color: #e0e0e0 !important; }
.info-tipo-R:nth-last-of-type(3) ~ .info-bloco-grid { background-color: #cccccc !important; }
.info-tipo-R:nth-last-of-type(4) ~ .info-bloco-grid { background-color: #b3b3b3 !important; }