sokko-g/website/src/styles/toolboxes/_table.scss
Shinuwa 817e21567b
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s
Migrate site controls to Nebula design system
2026-08-29 09:16:58 +02:00

175 lines
3.4 KiB
SCSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Rôle : gère l’outil table, sa grille, ses cellules et états de sélection.
@use "../design-system/controls";
.table-module {
display: grid;
gap: var(--space-3);
min-width: 0;
padding: var(--space-4);
}
.table-toolbar {
justify-content: space-between;
}
.table-controls {
flex: 1 1 auto;
}
.table-size-indicator {
min-height: 34px;
display: inline-flex;
align-items: center;
padding: 0 8px;
color: var(--color-text-secondary);
font-size: var(--font-size-sm);
font-weight: 800;
}
.table-copy-group {
margin-left: auto;
}
.table-copy-group.notepad-toolbar-group {
padding-right: 0;
border-right: 0;
}
.table-copy-button.notepad-toolbar-button {
display: inline-flex;
width: auto;
min-width: 0;
align-items: center;
gap: 8px;
padding-inline: 10px;
}
.table-copy-button span {
white-space: nowrap;
}
.table-grid-wrap {
width: 100%;
min-width: 0;
overflow: auto;
border: 1px solid rgba(165, 180, 252, 0.12);
border-radius: var(--radius-md);
background:
linear-gradient(135deg, rgba(139, 92, 246, 0.045), transparent 62%),
rgba(7, 10, 24, 0.24);
}
.table-grid {
display: grid;
grid-template-columns: var(--table-columns);
width: 100%;
min-width: var(--table-min-width);
align-items: stretch;
justify-content: start;
}
.table-grid > * {
min-width: 0;
}
.table-corner,
.table-header-cell,
.table-row-header {
display: grid;
min-height: 34px;
place-items: center;
border-right: 1px solid rgba(165, 180, 252, 0.1);
border-bottom: 1px solid rgba(165, 180, 252, 0.1);
background: rgba(5, 7, 17, 0.54);
color: var(--color-text-secondary);
font-size: var(--font-size-xs);
font-weight: 900;
font-variant-numeric: tabular-nums;
}
.table-header-input {
@include controls.table-header-field;
}
.table-header-input::placeholder {
@include controls.field-placeholder;
}
.table-header-input:hover {
background: rgba(21, 26, 48, 0.68);
}
.table-header-input:focus {
@include controls.table-header-field-focus;
}
.table-header-cell {
position: sticky;
top: 0;
z-index: 2;
}
.table-row-header {
position: sticky;
left: 0;
z-index: 1;
}
.table-corner {
position: sticky;
top: 0;
left: 0;
z-index: 3;
}
.table-cell-input {
@include controls.table-cell-field;
}
.table-cell-input:hover {
background: rgba(32, 39, 69, 0.38);
}
.table-cell-input:focus {
@include controls.table-cell-field-focus;
}
.table-cell-input.is-editing:focus {
@include controls.table-cell-field-editing-focus;
}
.table-cell-input.is-formula {
color: var(--color-accent-cyan);
}
.table-cell-input.has-error {
color: #fecaca;
background: rgba(127, 29, 29, 0.24);
}
.table-cell-input.is-selected {
background:
linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(139, 92, 246, 0.08)),
rgba(21, 26, 48, 0.58);
box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.42);
}
.table-cell-input.is-move-target {
background:
linear-gradient(135deg, rgba(246, 196, 83, 0.14), rgba(34, 211, 238, 0.08)),
rgba(21, 26, 48, 0.64);
box-shadow: inset 0 0 0 1px rgba(246, 196, 83, 0.66);
cursor: move;
}
.table-cell-input.is-selected:focus {
box-shadow: inset 0 0 0 1px rgba(246, 196, 83, 0.6), 0 0 0 2px rgba(34, 211, 238, 0.2);
}
.table-cell-input.is-selected:focus:not(.is-editing) {
box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.68);
}
.table-cell-input.is-referenced {
box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.72);
}