207 lines
4.3 KiB
CSS
207 lines
4.3 KiB
CSS
/* =========================
|
|
* EliTabela — Ações de linha, Menu e Seleção (Checkboxes)
|
|
* Extraído de EliTabela.css para manter cada arquivo CSS abaixo de 250 linhas.
|
|
* ========================= */
|
|
|
|
.eli-tabela__acoes-cabecalho {
|
|
display: inline-flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.eli-tabela__acoes-cabecalho-botao {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
height: var(--eli-tabela-cabecalho-controle-altura);
|
|
padding: 0 14px;
|
|
border-radius: var(--eli-tabela-cabecalho-controle-radius);
|
|
border: none;
|
|
background: var(--cor-eli-primaria-bg);
|
|
color: var(--cor-eli-primaria-escura);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
.eli-tabela__acoes-cabecalho-botao:hover,
|
|
.eli-tabela__acoes-cabecalho-botao:focus-visible {
|
|
background: var(--cor-eli-primaria-clara);
|
|
}
|
|
|
|
.eli-tabela__acoes-cabecalho-botao:focus-visible {
|
|
outline: 2px solid var(--cor-eli-primaria-clara);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.eli-tabela__acoes-cabecalho-icone {
|
|
display: inline-block;
|
|
}
|
|
|
|
.eli-tabela__acoes-cabecalho-rotulo {
|
|
line-height: 1;
|
|
}
|
|
|
|
.eli-tabela__acoes-toggle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 9999px;
|
|
border: none;
|
|
background: transparent;
|
|
color: rgba(15, 23, 42, 0.72);
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
.eli-tabela__acoes-toggle-icone {
|
|
display: block;
|
|
}
|
|
|
|
.eli-tabela__acoes-toggle:hover,
|
|
.eli-tabela__acoes-toggle:focus-visible {
|
|
background-color: rgba(15, 23, 42, 0.08);
|
|
color: rgba(15, 23, 42, 0.95);
|
|
}
|
|
|
|
.eli-tabela__acoes-toggle:focus-visible {
|
|
outline: 2px solid var(--cor-eli-primaria-clara);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.eli-tabela__acoes-toggle:disabled {
|
|
cursor: default;
|
|
color: rgba(148, 163, 184, 0.8);
|
|
background: transparent;
|
|
}
|
|
|
|
.eli-tabela__acoes-menu {
|
|
min-width: 180px;
|
|
padding: 6px 0;
|
|
margin: 0;
|
|
list-style: none;
|
|
background: var(--cor-eli-superficie);
|
|
border: 1px solid rgba(15, 23, 42, 0.08);
|
|
border-radius: 10px;
|
|
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.eli-tabela__acoes-item {
|
|
margin: 0;
|
|
}
|
|
|
|
.eli-tabela__acoes-item-botao {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
border: none;
|
|
background: transparent;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.eli-tabela__acoes-item-botao:hover,
|
|
.eli-tabela__acoes-item-botao:focus-visible {
|
|
background-color: rgba(15, 23, 42, 0.06);
|
|
}
|
|
|
|
.eli-tabela__acoes-item-botao:focus-visible {
|
|
outline: 2px solid currentColor;
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.eli-tabela__acoes-item-icone {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.eli-tabela__acoes-item-texto {
|
|
flex: 1;
|
|
text-align: left;
|
|
}
|
|
|
|
/* =========================
|
|
* Expander (colunas invisíveis)
|
|
* ========================= */
|
|
|
|
.eli-tabela__th--expander,
|
|
.eli-tabela__td--expander {
|
|
width: 42px;
|
|
padding: 6px 8px;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.eli-tabela__expander-botao {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 9999px;
|
|
border: none;
|
|
background: transparent;
|
|
color: rgba(15, 23, 42, 0.72);
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
.eli-tabela__expander-botao:hover,
|
|
.eli-tabela__expander-botao:focus-visible {
|
|
background-color: rgba(15, 23, 42, 0.08);
|
|
color: rgba(15, 23, 42, 0.95);
|
|
}
|
|
|
|
.eli-tabela__expander-botao:focus-visible {
|
|
outline: 2px solid var(--cor-eli-primaria-clara);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.eli-tabela__expander-botao--ativo {
|
|
background-color: rgba(15, 23, 42, 0.06);
|
|
color: rgba(15, 23, 42, 0.95);
|
|
}
|
|
|
|
.eli-tabela__td--detalhes {
|
|
padding: 12px;
|
|
}
|
|
|
|
.eli-tabela__tr--detalhes .eli-tabela__td {
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.eli-tabela__detalhes {
|
|
display: grid;
|
|
gap: 10px;
|
|
padding-left: 4px;
|
|
}
|
|
|
|
.eli-tabela__detalhe {
|
|
display: grid;
|
|
grid-template-columns: 180px 1fr;
|
|
gap: 10px;
|
|
align-items: start;
|
|
}
|
|
|
|
.eli-tabela__detalhe-rotulo {
|
|
font-weight: 600;
|
|
color: rgba(15, 23, 42, 0.85);
|
|
}
|
|
|
|
.eli-tabela__detalhe-valor {
|
|
min-width: 0;
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.eli-tabela__detalhe {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|