Split toolbox Sass partials
This commit is contained in:
parent
b221257616
commit
c312b9ed91
19 changed files with 6490 additions and 6419 deletions
|
|
@ -13,7 +13,18 @@ test("style entrypoint and theme layers are wired", async () => {
|
|||
const styleCards = await readFile("website/src/styles/_cards.scss", "utf8");
|
||||
const styleHome = await readFile("website/src/styles/_home.scss", "utf8");
|
||||
const styleToolboxesEntry = await readFile("website/src/styles/_toolboxes.scss", "utf8");
|
||||
const styleToolboxes = await readFile("website/src/styles/toolboxes/_core.scss", "utf8");
|
||||
const styleToolboxesCore = await readFile("website/src/styles/toolboxes/_core.scss", "utf8");
|
||||
const styleToolboxLayout = await readFile("website/src/styles/toolboxes/_layout.scss", "utf8");
|
||||
const styleToolboxShell = await readFile("website/src/styles/toolboxes/_module-shell.scss", "utf8");
|
||||
const styleToolboxTextExchange = await readFile("website/src/styles/toolboxes/_text-exchange.scss", "utf8");
|
||||
const styleToolboxNotepad = await readFile("website/src/styles/toolboxes/_notepad.scss", "utf8");
|
||||
const styleToolboxChecklist = await readFile("website/src/styles/toolboxes/_checklist.scss", "utf8");
|
||||
const styleToolboxCalculator = await readFile("website/src/styles/toolboxes/_calculator.scss", "utf8");
|
||||
const styleToolboxCalculatorResults = await readFile("website/src/styles/toolboxes/_calculator-results.scss", "utf8");
|
||||
const styleToolboxTable = await readFile("website/src/styles/toolboxes/_table.scss", "utf8");
|
||||
const styleToolboxCombos = await readFile("website/src/styles/toolboxes/_combos.scss", "utf8");
|
||||
const styleToolboxImages = await readFile("website/src/styles/toolboxes/_images.scss", "utf8");
|
||||
const styleToolboxSharedControls = await readFile("website/src/styles/toolboxes/_shared-controls.scss", "utf8");
|
||||
const styleOverlays = await readFile("website/src/styles/_overlays.scss", "utf8");
|
||||
const styleIcons = await readFile("website/src/styles/_icons.scss", "utf8");
|
||||
const styleGames = await readFile("website/src/styles/_games.scss", "utf8");
|
||||
|
|
@ -24,6 +35,11 @@ test("style entrypoint and theme layers are wired", async () => {
|
|||
assert.match(styles, /@use "nebula"/);
|
||||
assert.match(styles, /@use "toolboxes"/);
|
||||
assert.match(styleToolboxesEntry, /@use "toolboxes\/core"/);
|
||||
assert.match(styleToolboxesCore, /@use "layout"/);
|
||||
assert.match(styleToolboxesCore, /@use "module-shell"/);
|
||||
assert.match(styleToolboxesCore, /@use "task-planner"/);
|
||||
assert.match(styleToolboxesCore, /@use "equipment-planner"/);
|
||||
assert.match(styleToolboxesCore, /@use "shared-controls"/);
|
||||
assert.match(styles, /@use "mhwilds"/);
|
||||
assert.match(styles, /@use "diablo4"/);
|
||||
assert.match(styleTokens, /--gradient-brand/);
|
||||
|
|
@ -48,22 +64,22 @@ test("style entrypoint and theme layers are wired", async () => {
|
|||
assert.match(styleMixins, /@mixin gold-panel-frame/);
|
||||
assert.match(styleShell, /\.sidebar-about-link/);
|
||||
assert.match(styleShell, /\.sidebar-mascot/);
|
||||
assert.match(styleToolboxes, /\.module-icon-abacus/);
|
||||
assert.match(styleToolboxes, /\.module-icon-calculator/);
|
||||
assert.match(styleToolboxes, /\.module-icon-columns/);
|
||||
assert.match(styleToolboxes, /\.module-icon-table/);
|
||||
assert.match(styleToolboxes, /\.calculator-module/);
|
||||
assert.match(styleToolboxes, /\.table-module/);
|
||||
assert.match(styleToolboxes, /\.table-cell-input\.is-selected/);
|
||||
assert.match(styleToolboxes, /\.table-cell-input\.is-move-target/);
|
||||
assert.match(styleToolboxes, /\.notepad-toolbar-button\.danger/);
|
||||
assert.match(styleToolboxes, /\.toolbox-icon-picker/);
|
||||
assert.match(styleToolboxes, /\.toolbox-game-icon/);
|
||||
assert.match(styleToolboxes, /\.toolbox-hero-link/);
|
||||
assert.match(styleToolboxes, /\.toolbox-actions-row/);
|
||||
assert.match(styleToolboxes, /\.text-import-actions/);
|
||||
assert.match(styleToolboxes, /\.text-import-modal-dialog/);
|
||||
assert.doesNotMatch(styleToolboxes, /lecture seule/);
|
||||
assert.match(styleToolboxShell, /\.module-icon-abacus/);
|
||||
assert.match(styleToolboxShell, /\.module-icon-calculator/);
|
||||
assert.match(styleToolboxShell, /\.module-icon-columns/);
|
||||
assert.match(styleToolboxShell, /\.module-icon-table/);
|
||||
assert.match(styleToolboxCalculator, /\.calculator-module/);
|
||||
assert.match(styleToolboxTable, /\.table-module/);
|
||||
assert.match(styleToolboxTable, /\.table-cell-input\.is-selected/);
|
||||
assert.match(styleToolboxTable, /\.table-cell-input\.is-move-target/);
|
||||
assert.match(styleToolboxSharedControls, /\.notepad-toolbar-button\.danger/);
|
||||
assert.match(styleToolboxLayout, /\.toolbox-icon-picker/);
|
||||
assert.match(styleToolboxLayout, /\.toolbox-game-icon/);
|
||||
assert.match(styleToolboxLayout, /\.toolbox-hero-link/);
|
||||
assert.match(styleToolboxLayout, /\.toolbox-actions-row/);
|
||||
assert.match(styleToolboxTextExchange, /\.text-import-actions/);
|
||||
assert.match(styleToolboxTextExchange, /\.text-import-modal-dialog/);
|
||||
assert.doesNotMatch(styleToolboxNotepad, /lecture seule/);
|
||||
assert.match(styleIcons, /ui-icon-drag/);
|
||||
assert.match(styleIcons, /ui-icon-dropdown/);
|
||||
assert.match(styleIcons, /ui-icon-enter/);
|
||||
|
|
@ -85,12 +101,17 @@ test("style entrypoint and theme layers are wired", async () => {
|
|||
assert.match(styleIcons, /ui-icon-grab/);
|
||||
assert.match(styleIcons, /ui-icon-shield/);
|
||||
assert.match(styleIcons, /ui-icon-gun/);
|
||||
assert.match(styleToolboxes, /module-icon-chest-armor/);
|
||||
assert.match(styleToolboxes, /\.combo-hold-controls/);
|
||||
assert.match(styleToolboxes, /\.combo-input-direction/);
|
||||
assert.match(styleToolboxes, /\.combo-device-n64\.combo-value-stick-up/);
|
||||
assert.match(styleToolboxes, /\.combo-device-n64\.combo-value-up/);
|
||||
assert.match(styleToolboxes, /\.combo-value-grab \.ui-icon/);
|
||||
assert.match(styleToolboxShell, /module-icon-chest-armor/);
|
||||
assert.match(styleToolboxCombos, /\.combo-hold-controls/);
|
||||
assert.match(styleToolboxCombos, /\.combo-input-direction/);
|
||||
assert.match(styleToolboxCombos, /\.combo-device-n64\.combo-value-stick-up/);
|
||||
assert.match(styleToolboxCombos, /\.combo-device-n64\.combo-value-up/);
|
||||
assert.match(styleToolboxCombos, /\.combo-value-grab \.ui-icon/);
|
||||
assert.match(styleToolboxChecklist, /\.timer-alert-mode-button/);
|
||||
assert.match(styleToolboxSharedControls, /\.timer-alert-mode-switch\.is-blocked/);
|
||||
assert.match(styleToolboxCalculatorResults, /\.calculator-result/);
|
||||
assert.match(styleToolboxSharedControls, /\.tool-split-scroll-toggle/);
|
||||
assert.match(styleToolboxImages, /\.annotation-marker/);
|
||||
assert.match(styleGames, /\.game-home-card/);
|
||||
assert.match(styleGames, /\.game-layout/);
|
||||
assert.match(styleGames, /\.game-grid/);
|
||||
|
|
|
|||
139
website/src/styles/toolboxes/_calculator-results.scss
Normal file
139
website/src/styles/toolboxes/_calculator-results.scss
Normal file
|
|
@ -0,0 +1,139 @@
|
|||
// Rôle : gère les résultats et entrées sauvegardées du calculateur.
|
||||
@use "../mixins";
|
||||
|
||||
.calculator-card {
|
||||
gap: 10px;
|
||||
align-self: start;
|
||||
align-content: start;
|
||||
}
|
||||
|
||||
.calculator-form label,
|
||||
.calculator-result {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.calculator-card > *,
|
||||
.calculator-form input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.calculator-entry.has-drag-handle {
|
||||
grid-template-columns: 30px minmax(0, 1fr) 34px 34px;
|
||||
}
|
||||
|
||||
.tool-split-entry-list li.is-editing > .calculator-entry.has-drag-handle {
|
||||
grid-template-columns: 30px auto minmax(0, 1fr) 34px 34px;
|
||||
}
|
||||
|
||||
.calculator-drag-handle {
|
||||
width: 30px;
|
||||
min-width: 30px;
|
||||
min-height: 36px;
|
||||
padding: 0;
|
||||
color: var(--color-text-muted);
|
||||
cursor: grab;
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.calculator-entry .tool-split-entry-summary > span {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.calculator-entry .tool-split-entry-summary strong,
|
||||
.calculator-entry .tool-split-entry-value strong {
|
||||
min-width: 0;
|
||||
overflow: visible;
|
||||
font-variant-numeric: tabular-nums;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.calculator-entry .tool-split-entry-summary strong {
|
||||
flex: 0 0 auto;
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
.calculator-entry .tool-split-entry-summary strong.is-long,
|
||||
.calculator-entry .tool-split-entry-value strong.is-long {
|
||||
font-size: var(--font-size-xs);
|
||||
}
|
||||
|
||||
.calculator-entry .tool-split-entry-summary strong.is-compact,
|
||||
.calculator-entry .tool-split-entry-value strong.is-compact {
|
||||
font-size: 0.68rem;
|
||||
}
|
||||
|
||||
.calculator-entry .tool-split-entry-summary em {
|
||||
min-width: 0;
|
||||
flex: 1 1 auto;
|
||||
overflow: hidden;
|
||||
color: var(--color-text-secondary);
|
||||
font-style: normal;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.calculator-number-group {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.calculator-number-group.is-muted,
|
||||
.calculator-number-separator {
|
||||
color: rgba(215, 221, 237, 0.84);
|
||||
}
|
||||
|
||||
.calculator-number-separator {
|
||||
display: inline-block;
|
||||
min-width: 0.24em;
|
||||
}
|
||||
|
||||
.calculator-form label span,
|
||||
.calculator-result span,
|
||||
.tool-split-root-button {
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.calculator-result {
|
||||
min-height: 72px;
|
||||
justify-content: stretch;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background:
|
||||
radial-gradient(circle at 100% 0%, rgba(246, 196, 83, 0.08), transparent 36%),
|
||||
rgba(5, 7, 17, 0.56);
|
||||
}
|
||||
|
||||
.calculator-result strong {
|
||||
display: block;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
overflow: visible;
|
||||
color: var(--color-text-primary);
|
||||
font-size: clamp(1.55rem, 3vw, 2.15rem);
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-weight: 900;
|
||||
line-height: 0.95;
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.calculator-result.is-long strong {
|
||||
font-size: 1.18rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.calculator-result.is-compact strong {
|
||||
font-size: 0.92rem;
|
||||
line-height: 1.05;
|
||||
}
|
||||
53
website/src/styles/toolboxes/_calculator.scss
Normal file
53
website/src/styles/toolboxes/_calculator.scss
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
// Rôle : gère la structure commune du calculateur et ses panneaux de saisie.
|
||||
@use "../mixins";
|
||||
|
||||
.calculator-module,
|
||||
.timer-module {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
|
||||
column-gap: var(--space-6);
|
||||
row-gap: var(--space-4);
|
||||
align-items: start;
|
||||
overflow: hidden;
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.calculator-exchange-panel,
|
||||
.timer-exchange-panel,
|
||||
.table-exchange-panel {
|
||||
grid-column: 1 / -1;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.calculator-form {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
align-self: start;
|
||||
align-content: start;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.calculator-card,
|
||||
.tool-split-results,
|
||||
.timer-control-card,
|
||||
.timer-results-card {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
padding: 12px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(139, 92, 246, 0.08), transparent 62%),
|
||||
rgba(7, 10, 24, 0.3);
|
||||
}
|
||||
|
||||
.timer-control-card,
|
||||
.timer-results-card {
|
||||
align-self: start;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
417
website/src/styles/toolboxes/_checklist.scss
Normal file
417
website/src/styles/toolboxes/_checklist.scss
Normal file
|
|
@ -0,0 +1,417 @@
|
|||
// Rôle : gère les checklists et les espacements de listes adjacentes.
|
||||
@use "../mixins";
|
||||
|
||||
.checklist {
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
margin: var(--space-4) 0 0;
|
||||
padding: 0 var(--space-4) var(--space-4);
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.checklist-toolbar {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
padding: var(--space-4) var(--space-4) 0;
|
||||
}
|
||||
|
||||
.checklist-section {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.checklist-section.is-grouped {
|
||||
padding: 10px;
|
||||
border: 1px solid rgba(246, 196, 83, 0.16);
|
||||
border-radius: var(--radius-md);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.04), transparent 42%),
|
||||
rgba(7, 10, 24, 0.18);
|
||||
}
|
||||
|
||||
.checklist-section-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-3);
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
||||
.checklist-section-header > h3 {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.checklist-section-actions {
|
||||
display: inline-flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.checklist-section-header h3 {
|
||||
margin: 0;
|
||||
color: var(--color-accent-gold);
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
.checklist-section-title-input {
|
||||
width: 100%;
|
||||
min-height: 30px;
|
||||
padding: 5px 8px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-md);
|
||||
background: transparent;
|
||||
color: var(--color-accent-gold);
|
||||
font: inherit;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.checklist-section-title-input:hover,
|
||||
.checklist-section-title-input:focus {
|
||||
border-color: rgba(246, 196, 83, 0.34);
|
||||
background: rgba(21, 26, 48, 0.34);
|
||||
}
|
||||
|
||||
.checklist-section.is-complete .checklist-section-header h3 {
|
||||
color: var(--color-text-muted);
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.checklist-section.is-complete .checklist-section-title-input {
|
||||
color: var(--color-text-muted);
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.checklist-section-actions > span {
|
||||
flex: 0 0 auto;
|
||||
padding: 3px 9px;
|
||||
border: 1px solid rgba(246, 196, 83, 0.22);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(246, 196, 83, 0.08);
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.timer-alert-mode-switch {
|
||||
display: inline-flex;
|
||||
width: fit-content;
|
||||
align-items: center;
|
||||
opacity: 0.78;
|
||||
}
|
||||
|
||||
.checklist-complete-mode-button,
|
||||
.timer-alert-mode-button {
|
||||
display: inline-grid;
|
||||
width: 36px;
|
||||
min-width: 36px;
|
||||
min-height: 34px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: 0;
|
||||
background: rgba(5, 7, 17, 0.24);
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.checklist-complete-mode-button:first-child,
|
||||
.timer-alert-mode-button:first-child {
|
||||
border-radius: var(--radius-pill) 0 0 var(--radius-pill);
|
||||
}
|
||||
|
||||
.checklist-complete-mode-button:last-child,
|
||||
.timer-alert-mode-button:last-child {
|
||||
border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
|
||||
}
|
||||
|
||||
.checklist-complete-mode-button + .checklist-complete-mode-button,
|
||||
.timer-alert-mode-button + .timer-alert-mode-button {
|
||||
margin-left: -1px;
|
||||
}
|
||||
|
||||
.checklist-complete-mode-button .ui-icon,
|
||||
.timer-alert-mode-button .ui-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.timer-alert-mode-button {
|
||||
width: 24px;
|
||||
min-width: 24px;
|
||||
min-height: 26px;
|
||||
border-color: rgba(165, 180, 252, 0.08);
|
||||
background: rgba(5, 7, 17, 0.26);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.timer-alert-mode-button .ui-icon {
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
}
|
||||
|
||||
.checklist-section-collapse-button {
|
||||
display: inline-grid;
|
||||
width: 30px;
|
||||
min-width: 30px;
|
||||
min-height: 30px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 1px solid rgba(246, 196, 83, 0.28);
|
||||
border-radius: var(--radius-md);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.12), rgba(139, 92, 246, 0.08)) padding-box,
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.3), rgba(196, 181, 253, 0.18)) border-box;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.checklist-section-collapse-button .ui-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background-color: #fff;
|
||||
opacity: 1;
|
||||
filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.22));
|
||||
}
|
||||
|
||||
.checklist-section-items {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.checklist-category-boundary-drop-zone {
|
||||
min-height: 10px;
|
||||
border: 1px dashed rgba(165, 180, 252, 0.16);
|
||||
border-radius: var(--radius-sm);
|
||||
background: rgba(15, 23, 42, 0.12);
|
||||
}
|
||||
|
||||
.checklist-category-boundary-drop-zone.is-drop-target {
|
||||
border-color: rgba(246, 196, 83, 0.72);
|
||||
background: rgba(246, 196, 83, 0.08);
|
||||
box-shadow: inset 0 0 0 1px rgba(246, 196, 83, 0.24);
|
||||
}
|
||||
|
||||
.checklist-item {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 42px 42px;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.checklist-item-main {
|
||||
display: grid;
|
||||
grid-template-columns: 30px auto minmax(0, 1fr);
|
||||
min-height: 42px;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.44);
|
||||
}
|
||||
|
||||
.checklist-item-main:hover {
|
||||
border-color: rgba(196, 181, 253, 0.22);
|
||||
background: rgba(10, 13, 30, 0.54);
|
||||
}
|
||||
|
||||
.checklist-item-main.is-editing {
|
||||
grid-template-columns: 30px auto minmax(96px, 1fr) minmax(84px, 0.45fr);
|
||||
}
|
||||
|
||||
.checklist-drag-handle {
|
||||
display: inline-grid;
|
||||
width: 30px;
|
||||
min-width: 30px;
|
||||
min-height: 30px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 1px solid rgba(165, 180, 252, 0.1);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(21, 26, 48, 0.76);
|
||||
color: var(--color-text-secondary);
|
||||
cursor: grab;
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.checklist-drag-handle .ui-icon {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
|
||||
.checklist-drag-handle:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.checklist-section.is-drop-target {
|
||||
border-color: rgba(246, 196, 83, 0.72);
|
||||
}
|
||||
|
||||
.checklist-item.is-dragging .checklist-item-main {
|
||||
opacity: 0.58;
|
||||
}
|
||||
|
||||
.checklist-label-input,
|
||||
.checklist-category-input {
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
min-height: 30px;
|
||||
padding: 5px 8px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-md);
|
||||
background: transparent;
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.checklist-category-input {
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
}
|
||||
|
||||
.checklist-label-input:hover,
|
||||
.checklist-label-input:focus,
|
||||
.checklist-category-input:hover,
|
||||
.checklist-category-input:focus {
|
||||
border-color: rgba(246, 196, 83, 0.34);
|
||||
background: rgba(21, 26, 48, 0.42);
|
||||
}
|
||||
|
||||
.checklist-item-summary {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
justify-content: flex-start;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--color-text-primary);
|
||||
text-align: left;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.checklist-item-summary:hover {
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.checklist-item-summary span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
font-weight: 700;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.checklist-edit-button {
|
||||
display: inline-grid;
|
||||
width: 40px;
|
||||
min-width: 40px;
|
||||
min-height: 40px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 1px solid rgba(165, 180, 252, 0.1);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(21, 26, 48, 0.76);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.checklist-edit-button .ui-icon {
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
}
|
||||
|
||||
.checklist input[type="checkbox"] {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.checklist-item.is-complete .checklist-label-input {
|
||||
color: var(--color-text-muted);
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.checklist-item.is-complete .checklist-item-summary span {
|
||||
color: var(--color-text-muted);
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.checklist-qty-controls {
|
||||
display: inline-flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.checklist-qty-controls button {
|
||||
width: 28px;
|
||||
min-width: 28px;
|
||||
min-height: 28px;
|
||||
padding: 0;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(21, 26, 48, 0.88);
|
||||
color: var(--color-text-secondary);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.checklist-qty-current {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 3px;
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.checklist-qty-current input {
|
||||
width: max(18px, calc((var(--qty-current-digits, 1) * 0.72rem) + 8px));
|
||||
min-height: 28px;
|
||||
padding: 0 4px;
|
||||
border: 1px solid transparent;
|
||||
background: transparent;
|
||||
color: var(--color-text-primary);
|
||||
text-align: right;
|
||||
-moz-appearance: textfield;
|
||||
}
|
||||
|
||||
.checklist-qty-current input::-webkit-outer-spin-button,
|
||||
.checklist-qty-current input::-webkit-inner-spin-button {
|
||||
margin: 0;
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
.checklist-qty-current input:hover,
|
||||
.checklist-qty-current input:focus {
|
||||
border-color: rgba(246, 196, 83, 0.34);
|
||||
background: rgba(21, 26, 48, 0.42);
|
||||
}
|
||||
|
||||
.checklist-qty-current span {
|
||||
color: var(--color-text-secondary);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.links-add-form {
|
||||
grid-template-columns: minmax(120px, 0.7fr) minmax(180px, 1fr) auto;
|
||||
}
|
||||
|
||||
.links-list {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
margin: var(--space-4);
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.module-add-panel + .links-list,
|
||||
.module-add-panel + .checklist,
|
||||
.module-add-panel + .task-planner-list,
|
||||
.module-add-panel + .counters-grid {
|
||||
margin-top: 0;
|
||||
}
|
||||
859
website/src/styles/toolboxes/_combos.scss
Normal file
859
website/src/styles/toolboxes/_combos.scss
Normal file
|
|
@ -0,0 +1,859 @@
|
|||
// Rôle : gère l’outil combos, son éditeur, ses palettes et tokens d’inputs.
|
||||
@use "../mixins";
|
||||
|
||||
.combos-module {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.combos-editor {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.combos-device-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 10px;
|
||||
align-items: end;
|
||||
}
|
||||
|
||||
.combos-device-row label,
|
||||
.combos-form-grid label {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.combos-device-row select,
|
||||
.combos-form-grid select,
|
||||
.combos-form-grid input {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.combos-keyboard-layout-switch {
|
||||
display: inline-flex;
|
||||
width: fit-content;
|
||||
align-items: center;
|
||||
padding: 4px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.26);
|
||||
}
|
||||
|
||||
.combos-keyboard-layout-switch button {
|
||||
min-height: 34px;
|
||||
padding: 0 10px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-sm);
|
||||
background: transparent;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.combos-keyboard-layout-switch button.active {
|
||||
border-color: rgba(246, 196, 83, 0.26);
|
||||
background: rgba(246, 196, 83, 0.1);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.combos-add-form {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.combos-form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.combo-draft-panel {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding: 10px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.32);
|
||||
}
|
||||
|
||||
.combo-draft-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.combos-simultaneous-toggle {
|
||||
display: inline-flex;
|
||||
width: auto;
|
||||
min-width: 116px;
|
||||
min-height: 34px;
|
||||
padding: 3px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.26);
|
||||
color: var(--color-text-secondary);
|
||||
justify-content: stretch;
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
.combos-simultaneous-toggle span {
|
||||
display: inline-grid;
|
||||
min-width: 50px;
|
||||
min-height: 26px;
|
||||
place-items: center;
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.combos-simultaneous-toggle span.active {
|
||||
background: rgba(246, 196, 83, 0.12);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.combo-draft-actions .primary {
|
||||
min-width: 104px;
|
||||
}
|
||||
|
||||
.combos-palette {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.combos-palette-column {
|
||||
display: grid;
|
||||
align-content: start;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.combos-palette-group {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
padding: 9px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.24);
|
||||
}
|
||||
|
||||
.combos-palette-group > span {
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.combos-palette-group > div {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.combos-palette-group.is-direction-grid > div {
|
||||
display: grid;
|
||||
width: fit-content;
|
||||
grid-template-columns: repeat(3, max-content);
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.combo-palette-empty-cell {
|
||||
display: block;
|
||||
width: 34px;
|
||||
height: 38px;
|
||||
}
|
||||
|
||||
.combos-custom-key-form {
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
}
|
||||
|
||||
.combos-category-list {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.combos-category-title {
|
||||
display: inline-flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.combos-category-title h3 {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.combos-category-header .combos-category-title {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.combos-category-boundary-drop-zone {
|
||||
min-height: 10px;
|
||||
border: 1px dashed rgba(165, 180, 252, 0.16);
|
||||
border-radius: var(--radius-sm);
|
||||
background: rgba(15, 23, 42, 0.12);
|
||||
}
|
||||
|
||||
.combos-category-boundary-drop-zone.is-drop-target {
|
||||
border: 1px dashed rgba(246, 196, 83, 0.72);
|
||||
background: rgba(246, 196, 83, 0.08);
|
||||
box-shadow: inset 0 0 0 1px rgba(246, 196, 83, 0.24);
|
||||
}
|
||||
|
||||
.combos-list {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.combo-card {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: 30px minmax(0, 1fr) auto;
|
||||
gap: 8px;
|
||||
align-items: start;
|
||||
padding: 8px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.36);
|
||||
}
|
||||
|
||||
.combo-card.is-editing {
|
||||
grid-template-columns: 30px minmax(0, 1fr) auto;
|
||||
}
|
||||
|
||||
.combo-drag-handle {
|
||||
align-self: start;
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.combo-card-main {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.combo-title-input {
|
||||
color: var(--color-text-primary);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.combo-card-actions {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
align-self: start;
|
||||
}
|
||||
|
||||
.combo-save-actions {
|
||||
display: inline-flex;
|
||||
gap: 8px;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.combo-cancel-button {
|
||||
min-width: 104px;
|
||||
min-height: 34px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(21, 26, 48, 0.64);
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.combo-sequence {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
row-gap: 6px;
|
||||
column-gap: 5px;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.combo-step,
|
||||
.combo-step-inputs,
|
||||
.combo-step-input {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.combo-step {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.combo-step-input.is-selected .combo-input-token {
|
||||
box-shadow:
|
||||
var(--combo-token-shadow),
|
||||
0 0 0 2px rgba(246, 196, 83, 0.22);
|
||||
}
|
||||
|
||||
.combo-step-input.is-selected .combo-input-token.has-hold {
|
||||
box-shadow:
|
||||
var(--combo-token-shadow),
|
||||
0 0 0 2px rgba(246, 196, 83, 0.22),
|
||||
7px 0 0 -1px var(--combo-hold-shadow),
|
||||
9px 0 6px -3px var(--combo-hold-shadow);
|
||||
}
|
||||
|
||||
.combo-step-inputs {
|
||||
min-height: 42px;
|
||||
padding: 3px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-pill);
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
button.combo-step-inputs {
|
||||
min-width: 0;
|
||||
min-height: 42px;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.combo-step-inputs.is-single {
|
||||
min-height: 38px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.combo-step-inputs.is-simultaneous {
|
||||
padding: 5px;
|
||||
border-color: rgba(246, 196, 83, 0.34);
|
||||
border-radius: var(--radius-md);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.07), transparent 64%),
|
||||
rgba(5, 7, 17, 0.28);
|
||||
}
|
||||
|
||||
.combo-step-inputs.is-active {
|
||||
border-color: rgba(139, 92, 246, 0.72);
|
||||
background: rgba(139, 92, 246, 0.08);
|
||||
box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.12);
|
||||
}
|
||||
|
||||
.combo-step-inputs.is-single.is-active {
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.combo-step-inputs.is-single.is-active .combo-input-token {
|
||||
box-shadow:
|
||||
var(--combo-token-shadow),
|
||||
0 0 0 2px rgba(139, 92, 246, 0.18);
|
||||
}
|
||||
|
||||
.combo-step-inputs.is-single.is-active .combo-input-token.has-hold {
|
||||
box-shadow:
|
||||
var(--combo-token-shadow),
|
||||
0 0 0 2px rgba(139, 92, 246, 0.18),
|
||||
7px 0 0 -1px var(--combo-hold-shadow),
|
||||
9px 0 6px -3px var(--combo-hold-shadow);
|
||||
}
|
||||
|
||||
.combo-step-separator,
|
||||
.combo-plus {
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.combo-step-separator {
|
||||
margin-inline: 1px;
|
||||
}
|
||||
|
||||
.combo-empty-sequence {
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.combo-empty-step {
|
||||
padding: 0 8px;
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.combo-input-token {
|
||||
--combo-token-bg: rgba(21, 26, 48, 0.82);
|
||||
--combo-token-border: rgba(165, 180, 252, 0.22);
|
||||
--combo-token-color: var(--color-text-primary);
|
||||
--combo-token-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
|
||||
--combo-hold-shadow: rgba(125, 135, 159, 0.34);
|
||||
display: inline-flex;
|
||||
box-sizing: border-box;
|
||||
width: 34px;
|
||||
min-width: 34px;
|
||||
height: 34px;
|
||||
min-height: 34px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
border: 1px solid var(--combo-token-border);
|
||||
border-radius: 50%;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
|
||||
var(--combo-token-bg);
|
||||
color: var(--combo-token-color);
|
||||
font-size: 12px;
|
||||
font-weight: 950;
|
||||
line-height: 1;
|
||||
box-shadow: var(--combo-token-shadow);
|
||||
}
|
||||
|
||||
button.combo-input-token {
|
||||
min-width: 36px;
|
||||
min-height: 36px;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button.combo-input-token:hover {
|
||||
border-color: var(--color-primary-border);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent),
|
||||
rgba(32, 39, 69, 0.92);
|
||||
}
|
||||
|
||||
.combo-input-token span {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
max-width: 100%;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.combo-input-token .ui-icon {
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
}
|
||||
|
||||
.combo-input-token.has-hold {
|
||||
position: relative;
|
||||
box-shadow:
|
||||
var(--combo-token-shadow),
|
||||
7px 0 0 -1px var(--combo-hold-shadow),
|
||||
9px 0 6px -3px var(--combo-hold-shadow);
|
||||
}
|
||||
|
||||
.combo-input-hold {
|
||||
position: absolute;
|
||||
right: -7px;
|
||||
bottom: -6px;
|
||||
min-width: 20px;
|
||||
padding: 1px 4px;
|
||||
border: 1px solid rgba(246, 196, 83, 0.34);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(5, 7, 17, 0.92);
|
||||
color: var(--color-accent-gold);
|
||||
font-size: 9px;
|
||||
font-style: normal;
|
||||
font-weight: 950;
|
||||
line-height: 1.2;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.combo-input-key,
|
||||
.combo-input-mouse,
|
||||
.combo-value-options,
|
||||
.combo-value-share,
|
||||
.combo-value-start,
|
||||
.combo-value-menu,
|
||||
.combo-value-view,
|
||||
.combo-value-c-up,
|
||||
.combo-value-c-down,
|
||||
.combo-value-c-left,
|
||||
.combo-value-c-right {
|
||||
width: auto;
|
||||
min-width: 48px;
|
||||
padding: 0 10px;
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.combo-input-short {
|
||||
width: 36px;
|
||||
min-width: 36px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
button.combo-input-token.combo-input-short {
|
||||
width: 36px;
|
||||
min-width: 36px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
button.combo-input-token.combo-input-key,
|
||||
button.combo-input-token.combo-input-mouse,
|
||||
button.combo-input-token.combo-value-options,
|
||||
button.combo-input-token.combo-value-share,
|
||||
button.combo-input-token.combo-value-start,
|
||||
button.combo-input-token.combo-value-menu,
|
||||
button.combo-input-token.combo-value-view,
|
||||
button.combo-input-token.combo-value-c-up,
|
||||
button.combo-input-token.combo-value-c-down,
|
||||
button.combo-input-token.combo-value-c-left,
|
||||
button.combo-input-token.combo-value-c-right {
|
||||
width: auto;
|
||||
min-width: 48px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
button.combo-input-token.combo-input-short {
|
||||
width: 36px;
|
||||
min-width: 36px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.combo-input-key span,
|
||||
.combo-input-mouse span,
|
||||
.combo-value-options span,
|
||||
.combo-value-share span,
|
||||
.combo-value-start span,
|
||||
.combo-value-menu span,
|
||||
.combo-value-view span,
|
||||
.combo-value-c-up span,
|
||||
.combo-value-c-down span,
|
||||
.combo-value-c-left span,
|
||||
.combo-value-c-right span {
|
||||
text-overflow: clip;
|
||||
}
|
||||
|
||||
.combo-input-mouse,
|
||||
button.combo-input-token.combo-input-mouse {
|
||||
min-width: 62px;
|
||||
}
|
||||
|
||||
.combo-value-l1,
|
||||
.combo-value-r1,
|
||||
.combo-value-l2,
|
||||
.combo-value-r2,
|
||||
.combo-value-l3,
|
||||
.combo-value-r3,
|
||||
.combo-value-lb,
|
||||
.combo-value-rb,
|
||||
.combo-value-lt,
|
||||
.combo-value-rt,
|
||||
.combo-value-ls,
|
||||
.combo-value-rs,
|
||||
.combo-value-zl,
|
||||
.combo-value-zr {
|
||||
width: 38px;
|
||||
min-width: 38px;
|
||||
height: 38px;
|
||||
padding: 0;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.combo-input-key {
|
||||
height: 32px;
|
||||
border-radius: 7px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(245, 247, 255, 0.11), rgba(5, 7, 17, 0.18)),
|
||||
rgba(16, 20, 38, 0.94);
|
||||
box-shadow:
|
||||
inset 0 -3px 0 rgba(0, 0, 0, 0.28),
|
||||
0 1px 0 rgba(245, 247, 255, 0.08);
|
||||
}
|
||||
|
||||
.combo-value-ctrl,
|
||||
.combo-value-alt,
|
||||
.combo-value-shift,
|
||||
.combo-value-enter,
|
||||
.combo-value-tab {
|
||||
min-width: 58px;
|
||||
}
|
||||
|
||||
.combo-value-space {
|
||||
min-width: 92px;
|
||||
}
|
||||
|
||||
.combo-input-direction {
|
||||
--combo-token-bg:
|
||||
radial-gradient(circle at 50% 42%, rgba(34, 211, 238, 0.26), transparent 64%),
|
||||
rgba(34, 211, 238, 0.12);
|
||||
--combo-token-border: rgba(34, 211, 238, 0.52);
|
||||
--combo-token-color: #67e8f9;
|
||||
--combo-token-shadow:
|
||||
inset 0 -2px 0 rgba(0, 0, 0, 0.24),
|
||||
inset 0 0 0 1px rgba(34, 211, 238, 0.16);
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
button.combo-input-token.combo-input-direction:hover {
|
||||
border-color: rgba(34, 211, 238, 0.72);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent),
|
||||
radial-gradient(circle at 50% 42%, rgba(34, 211, 238, 0.34), transparent 64%),
|
||||
rgba(18, 52, 70, 0.76);
|
||||
}
|
||||
|
||||
.combo-device-n64.combo-value-stick-up-left,
|
||||
.combo-device-n64.combo-value-stick-up,
|
||||
.combo-device-n64.combo-value-stick-up-right,
|
||||
.combo-device-n64.combo-value-stick-left,
|
||||
.combo-device-n64.combo-value-stick-right,
|
||||
.combo-device-n64.combo-value-stick-down-left,
|
||||
.combo-device-n64.combo-value-stick-down,
|
||||
.combo-device-n64.combo-value-stick-down-right {
|
||||
--combo-token-bg:
|
||||
radial-gradient(circle at 38% 30%, rgba(245, 247, 255, 0.2), transparent 28%),
|
||||
radial-gradient(circle at 50% 54%, rgba(34, 211, 238, 0.3), transparent 66%),
|
||||
rgba(14, 75, 94, 0.68);
|
||||
--combo-token-border: rgba(34, 211, 238, 0.62);
|
||||
--combo-token-color: #a5f3fc;
|
||||
--combo-token-shadow:
|
||||
inset 0 -3px 0 rgba(0, 0, 0, 0.24),
|
||||
inset 0 0 0 1px rgba(34, 211, 238, 0.18);
|
||||
}
|
||||
|
||||
.combo-device-n64.combo-value-up-left,
|
||||
.combo-device-n64.combo-value-up,
|
||||
.combo-device-n64.combo-value-up-right,
|
||||
.combo-device-n64.combo-value-left,
|
||||
.combo-device-n64.combo-value-right,
|
||||
.combo-device-n64.combo-value-down-left,
|
||||
.combo-device-n64.combo-value-down,
|
||||
.combo-device-n64.combo-value-down-right {
|
||||
--combo-token-bg:
|
||||
linear-gradient(180deg, rgba(246, 196, 83, 0.12), transparent),
|
||||
rgba(31, 34, 54, 0.92);
|
||||
--combo-token-border: rgba(246, 196, 83, 0.48);
|
||||
--combo-token-color: #f8d982;
|
||||
--combo-token-shadow:
|
||||
inset 0 -3px 0 rgba(0, 0, 0, 0.28),
|
||||
inset 0 0 0 1px rgba(246, 196, 83, 0.14);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
button.combo-device-n64.combo-value-stick-up-left:hover,
|
||||
button.combo-device-n64.combo-value-stick-up:hover,
|
||||
button.combo-device-n64.combo-value-stick-up-right:hover,
|
||||
button.combo-device-n64.combo-value-stick-left:hover,
|
||||
button.combo-device-n64.combo-value-stick-right:hover,
|
||||
button.combo-device-n64.combo-value-stick-down-left:hover,
|
||||
button.combo-device-n64.combo-value-stick-down:hover,
|
||||
button.combo-device-n64.combo-value-stick-down-right:hover {
|
||||
border-color: rgba(34, 211, 238, 0.78);
|
||||
}
|
||||
|
||||
button.combo-device-n64.combo-value-up-left:hover,
|
||||
button.combo-device-n64.combo-value-up:hover,
|
||||
button.combo-device-n64.combo-value-up-right:hover,
|
||||
button.combo-device-n64.combo-value-left:hover,
|
||||
button.combo-device-n64.combo-value-right:hover,
|
||||
button.combo-device-n64.combo-value-down-left:hover,
|
||||
button.combo-device-n64.combo-value-down:hover,
|
||||
button.combo-device-n64.combo-value-down-right:hover {
|
||||
border-color: rgba(246, 196, 83, 0.7);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(246, 196, 83, 0.16), transparent),
|
||||
rgba(38, 40, 62, 0.96);
|
||||
}
|
||||
|
||||
.combo-device-playstation.combo-value-triangle {
|
||||
--combo-token-bg: rgba(55, 214, 122, 0.16);
|
||||
--combo-token-border: rgba(55, 214, 122, 0.4);
|
||||
--combo-token-color: #37d67a;
|
||||
}
|
||||
|
||||
.combo-device-playstation.combo-value-circle {
|
||||
--combo-token-bg: rgba(248, 113, 113, 0.16);
|
||||
--combo-token-border: rgba(248, 113, 113, 0.4);
|
||||
--combo-token-color: #f87171;
|
||||
}
|
||||
|
||||
.combo-device-playstation.combo-value-cross {
|
||||
--combo-token-bg: rgba(96, 165, 250, 0.16);
|
||||
--combo-token-border: rgba(96, 165, 250, 0.4);
|
||||
--combo-token-color: #60a5fa;
|
||||
}
|
||||
|
||||
.combo-device-playstation.combo-value-square {
|
||||
--combo-token-bg: rgba(244, 114, 182, 0.16);
|
||||
--combo-token-border: rgba(244, 114, 182, 0.4);
|
||||
--combo-token-color: #f472b6;
|
||||
}
|
||||
|
||||
.combo-device-xbox.combo-value-a {
|
||||
--combo-token-bg: rgba(101, 212, 110, 0.16);
|
||||
--combo-token-border: rgba(101, 212, 110, 0.4);
|
||||
--combo-token-color: #65d46e;
|
||||
}
|
||||
|
||||
.combo-device-xbox.combo-value-b {
|
||||
--combo-token-bg: rgba(239, 68, 68, 0.16);
|
||||
--combo-token-border: rgba(239, 68, 68, 0.4);
|
||||
--combo-token-color: #ef4444;
|
||||
}
|
||||
|
||||
.combo-device-xbox.combo-value-x {
|
||||
--combo-token-bg: rgba(59, 130, 246, 0.16);
|
||||
--combo-token-border: rgba(59, 130, 246, 0.4);
|
||||
--combo-token-color: #3b82f6;
|
||||
}
|
||||
|
||||
.combo-device-xbox.combo-value-y {
|
||||
--combo-token-bg: rgba(250, 204, 21, 0.16);
|
||||
--combo-token-border: rgba(250, 204, 21, 0.42);
|
||||
--combo-token-color: #facc15;
|
||||
}
|
||||
|
||||
.combo-device-switch.combo-value-a,
|
||||
.combo-device-switch.combo-value-x {
|
||||
--combo-token-bg: rgba(239, 68, 68, 0.14);
|
||||
--combo-token-border: rgba(239, 68, 68, 0.36);
|
||||
--combo-token-color: #fca5a5;
|
||||
}
|
||||
|
||||
.combo-device-switch.combo-value-b,
|
||||
.combo-device-switch.combo-value-y {
|
||||
--combo-token-bg: rgba(34, 211, 238, 0.14);
|
||||
--combo-token-border: rgba(34, 211, 238, 0.34);
|
||||
--combo-token-color: var(--color-accent-cyan);
|
||||
}
|
||||
|
||||
.combo-device-switch.combo-value-l,
|
||||
.combo-device-switch.combo-value-r,
|
||||
.combo-device-switch.combo-value-zl,
|
||||
.combo-device-switch.combo-value-zr {
|
||||
--combo-token-bg: rgba(245, 247, 255, 0.1);
|
||||
--combo-token-border: rgba(245, 247, 255, 0.28);
|
||||
}
|
||||
|
||||
.combo-device-n64.combo-value-a {
|
||||
--combo-token-bg: rgba(34, 197, 94, 0.18);
|
||||
--combo-token-color: #86efac;
|
||||
}
|
||||
|
||||
.combo-device-n64.combo-value-b {
|
||||
--combo-token-bg: rgba(59, 130, 246, 0.18);
|
||||
--combo-token-color: #93c5fd;
|
||||
}
|
||||
|
||||
.combo-device-n64.combo-value-c-up,
|
||||
.combo-device-n64.combo-value-c-down,
|
||||
.combo-device-n64.combo-value-c-left,
|
||||
.combo-device-n64.combo-value-c-right {
|
||||
--combo-token-bg: rgba(246, 196, 83, 0.2);
|
||||
--combo-token-border: rgba(246, 196, 83, 0.42);
|
||||
--combo-token-color: var(--color-accent-gold);
|
||||
}
|
||||
|
||||
.combo-device-n64.combo-value-start {
|
||||
--combo-token-bg: rgba(239, 68, 68, 0.16);
|
||||
--combo-token-color: #fca5a5;
|
||||
}
|
||||
|
||||
.combo-value-fist,
|
||||
.combo-value-foot,
|
||||
.combo-value-grab,
|
||||
.combo-value-protect,
|
||||
.combo-value-shoot {
|
||||
--combo-token-bg: rgba(217, 70, 239, 0.14);
|
||||
--combo-token-border: rgba(217, 70, 239, 0.34);
|
||||
--combo-token-color: var(--color-accent-pink);
|
||||
}
|
||||
|
||||
.combo-value-grab .ui-icon {
|
||||
width: 24px;
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
button.combo-input-token.combo-value-grab .ui-icon {
|
||||
width: 25px;
|
||||
height: 23px;
|
||||
}
|
||||
|
||||
.combo-hold-field {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.combo-hold-controls {
|
||||
display: inline-flex;
|
||||
width: 92px;
|
||||
min-width: 92px;
|
||||
min-height: 34px;
|
||||
align-items: center;
|
||||
justify-content: stretch;
|
||||
gap: 3px;
|
||||
padding: 3px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.26);
|
||||
}
|
||||
|
||||
.combo-hold-controls button {
|
||||
min-width: 50px;
|
||||
min-height: 26px;
|
||||
padding: 0;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-sm);
|
||||
background: transparent;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.combo-hold-controls button.active {
|
||||
border-color: rgba(246, 196, 83, 0.34);
|
||||
background: rgba(246, 196, 83, 0.12);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.combo-hold-controls button:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.48;
|
||||
}
|
||||
|
||||
.combo-hold-field input {
|
||||
box-sizing: border-box;
|
||||
width: 26px;
|
||||
min-width: 26px;
|
||||
height: 26px;
|
||||
min-height: 26px;
|
||||
margin: 0;
|
||||
padding: 0 3px;
|
||||
border: 1px solid transparent;
|
||||
border-color: transparent;
|
||||
border-radius: var(--radius-sm);
|
||||
background: transparent;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.combo-hold-field input:focus {
|
||||
border-color: rgba(246, 196, 83, 0.34);
|
||||
}
|
||||
|
||||
.combo-hold-field input {
|
||||
appearance: textfield;
|
||||
-moz-appearance: textfield;
|
||||
}
|
||||
|
||||
.combo-hold-field input::-webkit-outer-spin-button,
|
||||
.combo-hold-field input::-webkit-inner-spin-button {
|
||||
margin: 0;
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
File diff suppressed because it is too large
Load diff
81
website/src/styles/toolboxes/_counters.scss
Normal file
81
website/src/styles/toolboxes/_counters.scss
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
// Rôle : gère l’outil compteurs et ses actions compactes.
|
||||
@use "../mixins";
|
||||
|
||||
.counters-add-form {
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
}
|
||||
|
||||
.counters-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 220px));
|
||||
justify-content: start;
|
||||
gap: 10px;
|
||||
margin: var(--space-4);
|
||||
}
|
||||
|
||||
.counter-item {
|
||||
position: relative;
|
||||
display: grid;
|
||||
min-height: 106px;
|
||||
align-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 12px 52px 12px 12px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(139, 92, 246, 0.08), transparent 58%),
|
||||
rgba(7, 10, 24, 0.42);
|
||||
}
|
||||
|
||||
.counter-drag-handle {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
display: inline-grid;
|
||||
width: 34px;
|
||||
min-width: 34px;
|
||||
min-height: 34px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
color: var(--color-text-muted);
|
||||
cursor: grab;
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.counter-value {
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.counter-item strong {
|
||||
color: var(--color-text-primary);
|
||||
font-size: 34px;
|
||||
font-weight: 900;
|
||||
line-height: 0.95;
|
||||
}
|
||||
|
||||
.counter-item span {
|
||||
overflow: hidden;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 800;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.counter-actions {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 34px);
|
||||
justify-content: start;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.counter-actions button {
|
||||
width: 34px;
|
||||
min-width: 34px;
|
||||
min-height: 34px;
|
||||
padding: 0;
|
||||
font-weight: 900;
|
||||
}
|
||||
99
website/src/styles/toolboxes/_drawing.scss
Normal file
99
website/src/styles/toolboxes/_drawing.scss
Normal file
|
|
@ -0,0 +1,99 @@
|
|||
// Rôle : gère le calque de dessin, son panneau et ses contrôles superposés.
|
||||
@use "../mixins";
|
||||
|
||||
.drawing-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 2;
|
||||
pointer-events: none;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
.drawing-overlay.is-active {
|
||||
cursor: crosshair;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.drawing-overlay.is-erase {
|
||||
cursor: crosshair;
|
||||
}
|
||||
|
||||
.drawing-controls-panel {
|
||||
position: absolute;
|
||||
right: 50%;
|
||||
bottom: 10px;
|
||||
z-index: 6;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
width: max-content;
|
||||
max-width: calc(100% - 20px);
|
||||
padding: 8px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(10, 13, 28, 0.94);
|
||||
box-shadow: var(--shadow-md);
|
||||
transform: translateX(50%);
|
||||
}
|
||||
|
||||
.drawing-controls-panel:not(.is-open) {
|
||||
width: auto;
|
||||
padding: 6px;
|
||||
}
|
||||
|
||||
.drawing-controls-panel .drawing-storage-switch {
|
||||
display: inline-grid;
|
||||
grid-template-columns: 16px 30px;
|
||||
grid-template-rows: 1fr;
|
||||
width: fit-content;
|
||||
min-width: 64px;
|
||||
min-height: 34px;
|
||||
gap: 7px;
|
||||
justify-items: initial;
|
||||
padding: 0 7px 0 10px;
|
||||
}
|
||||
|
||||
.drawing-controls-panel .drawing-storage-switch .ui-icon {
|
||||
justify-self: initial;
|
||||
}
|
||||
|
||||
.drawing-controls-panel .drawing-storage-switch i {
|
||||
width: 30px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.drawing-controls-panel .notepad-color-menu {
|
||||
top: auto;
|
||||
bottom: calc(100% + 8px);
|
||||
right: auto;
|
||||
left: 50%;
|
||||
transform: translate(-50%, 4px);
|
||||
}
|
||||
|
||||
.drawing-controls-panel .notepad-color-dropdown:hover .notepad-color-menu,
|
||||
.drawing-controls-panel .notepad-color-dropdown:focus-within .notepad-color-menu,
|
||||
.drawing-controls-panel .notepad-color-dropdown.is-open .notepad-color-menu {
|
||||
transform: translate(-50%, 0);
|
||||
}
|
||||
|
||||
.drawing-controls-panel .notepad-color-menu::after {
|
||||
top: 100%;
|
||||
right: 0;
|
||||
bottom: auto;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.drawing-controls-panel .notepad-color-menu::before {
|
||||
top: 100%;
|
||||
right: auto;
|
||||
left: calc(50% - 7px);
|
||||
bottom: auto;
|
||||
border-top: 7px solid rgba(10, 13, 28, 0.99);
|
||||
border-right: 7px solid transparent;
|
||||
border-bottom: 0;
|
||||
border-left: 7px solid transparent;
|
||||
}
|
||||
1074
website/src/styles/toolboxes/_equipment-planner.scss
Normal file
1074
website/src/styles/toolboxes/_equipment-planner.scss
Normal file
File diff suppressed because it is too large
Load diff
328
website/src/styles/toolboxes/_images.scss
Normal file
328
website/src/styles/toolboxes/_images.scss
Normal file
|
|
@ -0,0 +1,328 @@
|
|||
// Rôle : gère les imports image, annotations, marqueurs et galeries.
|
||||
@use "../mixins";
|
||||
|
||||
.dropzone {
|
||||
display: grid;
|
||||
min-height: 74px;
|
||||
margin: var(--space-4);
|
||||
place-items: center;
|
||||
border: 1px dashed rgba(139, 92, 246, 0.52);
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--color-primary-soft);
|
||||
color: var(--color-text-secondary);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dropzone:hover {
|
||||
border-color: var(--color-accent-gold);
|
||||
background: rgba(246, 196, 83, 0.1);
|
||||
box-shadow: 0 0 30px rgba(246, 196, 83, 0.12);
|
||||
}
|
||||
|
||||
.dropzone.is-drag-over {
|
||||
border-color: var(--color-accent-gold);
|
||||
background: rgba(246, 196, 83, 0.14);
|
||||
box-shadow: 0 0 0 3px rgba(246, 196, 83, 0.12);
|
||||
}
|
||||
|
||||
.annotation-dropzone {
|
||||
min-height: 58px;
|
||||
}
|
||||
|
||||
.paste-target {
|
||||
min-height: 46px;
|
||||
margin: 0 var(--space-4) var(--space-4);
|
||||
padding: 12px 14px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.44);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.paste-target:focus {
|
||||
border-color: var(--color-primary);
|
||||
color: var(--color-text-secondary);
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
|
||||
}
|
||||
|
||||
.image-annotation-module {
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.annotation-workspace {
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.annotation-stage {
|
||||
position: relative;
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
place-items: center;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-lg);
|
||||
background:
|
||||
radial-gradient(circle at 100% 0%, rgba(246, 196, 83, 0.08), transparent 38%),
|
||||
rgba(5, 7, 17, 0.48);
|
||||
cursor: crosshair;
|
||||
}
|
||||
|
||||
.annotation-media {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: fit-content;
|
||||
max-width: 100%;
|
||||
justify-self: center;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
.annotation-stage-preview {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.annotation-preview-actions {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
z-index: 3;
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.annotation-preview-actions .tool-split-action-button {
|
||||
background: rgba(21, 26, 48, 0.94);
|
||||
box-shadow:
|
||||
0 6px 18px rgba(5, 7, 17, 0.28),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.annotation-stage-preview .annotation-marker:hover {
|
||||
z-index: 2;
|
||||
border-color: rgba(196, 181, 253, 0.9);
|
||||
box-shadow:
|
||||
0 0 0 2px rgba(5, 7, 17, 0.72),
|
||||
0 0 14px rgba(139, 92, 246, 0.34),
|
||||
0 0 24px rgba(196, 181, 253, 0.22);
|
||||
filter: brightness(1.12);
|
||||
}
|
||||
|
||||
.annotation-stage img,
|
||||
.annotation-media img {
|
||||
display: block;
|
||||
width: auto;
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
max-height: min(62vh, 620px);
|
||||
object-fit: contain;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.annotation-marker {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
display: inline-grid;
|
||||
left: clamp(0px, calc(var(--marker-x, 50%) - 15px), calc(100% - 30px));
|
||||
top: clamp(0px, calc(var(--marker-y, 50%) - 15px), calc(100% - 30px));
|
||||
width: 30px;
|
||||
min-width: 30px;
|
||||
height: 30px;
|
||||
min-height: 30px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 1px solid rgba(246, 196, 83, 0.72);
|
||||
border-color: rgba(246, 196, 83, 0.72);
|
||||
border-radius: var(--radius-pill);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(72, 43, 160, 0.96), rgba(45, 52, 146, 0.94)) padding-box,
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.9), rgba(196, 181, 253, 0.5)) border-box;
|
||||
color: #fff;
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
line-height: 1;
|
||||
box-shadow:
|
||||
0 0 0 2px rgba(5, 7, 17, 0.72),
|
||||
0 0 16px rgba(246, 196, 83, 0.22);
|
||||
cursor: grab;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
.annotation-marker:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.annotation-marker-list {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.annotation-marker-list li {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
grid-template-columns: 28px minmax(0, 1fr) auto;
|
||||
gap: var(--space-2);
|
||||
align-items: center;
|
||||
padding-block: 3px;
|
||||
}
|
||||
|
||||
.annotation-marker-list li > span {
|
||||
display: inline-grid;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
place-items: center;
|
||||
border: 1px solid rgba(246, 196, 83, 0.32);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(246, 196, 83, 0.1);
|
||||
color: var(--color-accent-gold);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.annotation-marker-list input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
min-height: 34px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.annotation-empty {
|
||||
margin: 0;
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.images {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.images figure {
|
||||
position: relative;
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
margin: 0;
|
||||
padding: 8px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-lg);
|
||||
background: rgba(5, 7, 17, 0.38);
|
||||
}
|
||||
|
||||
.images figure {
|
||||
--reorder-drop-shadow: 0 0 18px rgba(246, 196, 83, 0.12);
|
||||
}
|
||||
|
||||
.image-drag-handle {
|
||||
position: absolute;
|
||||
z-index: 4;
|
||||
top: 12px;
|
||||
left: 12px;
|
||||
display: grid;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 1px solid rgba(138, 150, 197, 0.22);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(9, 13, 29, 0.76);
|
||||
color: rgba(229, 235, 255, 0.78);
|
||||
cursor: grab;
|
||||
opacity: 0;
|
||||
transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast);
|
||||
}
|
||||
|
||||
.image-drag-handle .ui-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.images figure:hover .image-drag-handle,
|
||||
.images figure:focus-within .image-drag-handle {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.image-drag-handle:hover {
|
||||
border-color: rgba(246, 196, 83, 0.56);
|
||||
background: rgba(20, 28, 55, 0.86);
|
||||
color: var(--color-accent-gold);
|
||||
box-shadow: 0 0 14px rgba(246, 196, 83, 0.12);
|
||||
}
|
||||
|
||||
.image-drag-handle:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.image-preview {
|
||||
display: block;
|
||||
width: 100%;
|
||||
min-height: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: var(--radius-md);
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.image-preview:hover {
|
||||
transform: none;
|
||||
box-shadow: 0 0 0 2px rgba(246, 196, 83, 0.28);
|
||||
}
|
||||
|
||||
.image-label,
|
||||
.image-label-input {
|
||||
min-width: 0;
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
.image-label {
|
||||
overflow: hidden;
|
||||
color: var(--color-text-secondary);
|
||||
font-weight: 700;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.image-label-input {
|
||||
width: 100%;
|
||||
min-height: 36px;
|
||||
padding: 0 10px;
|
||||
border: 1px solid rgba(138, 150, 197, 0.2);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(8, 13, 30, 0.62);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.image-label-input::placeholder {
|
||||
color: rgba(185, 194, 215, 0.48);
|
||||
}
|
||||
|
||||
.image-label-input:focus {
|
||||
border-color: rgba(246, 196, 83, 0.72);
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 3px rgba(246, 196, 83, 0.14);
|
||||
}
|
||||
|
||||
.images img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
aspect-ratio: 16 / 9;
|
||||
object-fit: cover;
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--color-bg-deep);
|
||||
}
|
||||
|
||||
.image-actions {
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.image-actions .image-annotate-button,
|
||||
.image-actions .image-delete-button {
|
||||
margin-top: 0;
|
||||
}
|
||||
560
website/src/styles/toolboxes/_layout.scss
Normal file
560
website/src/styles/toolboxes/_layout.scss
Normal file
|
|
@ -0,0 +1,560 @@
|
|||
// Rôle : gère le layout des pages toolbox, headers, colonnes et zones de drop globales.
|
||||
@use "../mixins";
|
||||
|
||||
.toolbox-head {
|
||||
position: relative;
|
||||
z-index: 30;
|
||||
overflow: visible;
|
||||
padding: var(--space-6);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-xl);
|
||||
background: rgba(16, 20, 38, 0.76);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.toolbox-head.page-hero {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: end;
|
||||
overflow: visible;
|
||||
border-color: transparent;
|
||||
background:
|
||||
var(--gradient-nebula),
|
||||
radial-gradient(circle at 86% 18%, rgba(246, 196, 83, 0.1), transparent 28%),
|
||||
linear-gradient(135deg, rgba(16, 20, 38, 0.98), rgba(5, 7, 17, 0.96));
|
||||
box-shadow: var(--shadow-md);
|
||||
backdrop-filter: none;
|
||||
}
|
||||
|
||||
.toolbox-head.page-hero > * {
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
.toolbox-head-embedded.page-hero {
|
||||
min-height: 132px;
|
||||
padding: var(--space-5);
|
||||
background:
|
||||
var(--gradient-nebula),
|
||||
radial-gradient(circle at 86% 18%, rgba(246, 196, 83, 0.08), transparent 30%),
|
||||
linear-gradient(135deg, rgba(16, 20, 38, 0.94), rgba(5, 7, 17, 0.94));
|
||||
box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
|
||||
}
|
||||
|
||||
.toolbox-head-embedded.page-hero::before {
|
||||
background:
|
||||
radial-gradient(circle at 100% 0%, rgba(246, 196, 83, 0.38), transparent 24%),
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.28), rgba(139, 92, 246, 0.18) 52%, rgba(196, 181, 253, 0.24));
|
||||
}
|
||||
|
||||
.toolbox-head-embedded.page-hero::after {
|
||||
background:
|
||||
linear-gradient(135deg, rgba(5, 7, 17, 0.08), rgba(5, 7, 17, 0.42)),
|
||||
radial-gradient(circle at 82% 16%, rgba(246, 196, 83, 0.12), transparent 32%);
|
||||
}
|
||||
|
||||
.toolbox-head-embedded h1 {
|
||||
margin-bottom: 0;
|
||||
font-size: clamp(1.55rem, 3vw, 2.2rem);
|
||||
}
|
||||
|
||||
.toolbox-title {
|
||||
width: fit-content;
|
||||
max-width: 100%;
|
||||
padding: 3px 6px;
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
.toolbox-title-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.toolbox-hero-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
width: fit-content;
|
||||
margin-top: var(--space-3);
|
||||
}
|
||||
|
||||
.toolbox-hero-link .ui-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.toolbox-icon-picker {
|
||||
position: relative;
|
||||
z-index: 70;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.toolbox-icon-picker-button,
|
||||
.toolbox-game-icon {
|
||||
width: 100px;
|
||||
min-width: 100px;
|
||||
min-height: 100px;
|
||||
border-color: var(--color-primary-border);
|
||||
background:
|
||||
radial-gradient(circle at 50% 35%, rgba(246, 196, 83, 0.18), transparent 44%),
|
||||
rgba(21, 26, 48, 0.86);
|
||||
}
|
||||
|
||||
.toolbox-icon-picker-button {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.toolbox-game-icon {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--color-primary-border);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.toolbox-icon-picker-button img,
|
||||
.toolbox-game-icon img {
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.toolbox-game-icon img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.toolbox-icon-picker-menu {
|
||||
position: absolute;
|
||||
top: calc(100% + 8px);
|
||||
left: 0;
|
||||
z-index: 300;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, 42px);
|
||||
gap: 7px;
|
||||
width: max-content;
|
||||
max-width: min(260px, calc(100vw - 48px));
|
||||
padding: 9px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(10, 13, 28, 0.99);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
.toolbox-icon-picker-menu button {
|
||||
width: 42px;
|
||||
min-width: 42px;
|
||||
min-height: 42px;
|
||||
padding: 0;
|
||||
border-color: var(--color-border);
|
||||
background: rgba(21, 26, 48, 0.88);
|
||||
}
|
||||
|
||||
.toolbox-icon-picker-menu button:hover {
|
||||
border-color: rgba(196, 181, 253, 0.32);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(31, 37, 68, 0.94), rgba(18, 22, 44, 0.96)) padding-box,
|
||||
linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(196, 181, 253, 0.2)) border-box;
|
||||
box-shadow:
|
||||
0 0 12px rgba(139, 92, 246, 0.1),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.toolbox-icon-picker-menu button.active {
|
||||
@include mixins.temporary-toggle-active;
|
||||
}
|
||||
|
||||
.toolbox-icon-picker-menu img {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.toolbox-title:focus {
|
||||
background: rgba(7, 10, 24, 0.72);
|
||||
outline: 1px solid rgba(246, 196, 83, 0.72);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.tool-add-controls {
|
||||
position: relative;
|
||||
z-index: 280;
|
||||
display: inline-flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.tool-add-modal-button {
|
||||
min-height: 40px;
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
|
||||
.tool-add-quick-toggle {
|
||||
width: 42px;
|
||||
min-width: 42px;
|
||||
min-height: 40px;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
border-left: 1px solid rgba(255, 255, 255, 0.18);
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
.tool-add-quick-toggle .ui-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
transition: transform 140ms ease;
|
||||
}
|
||||
|
||||
.tool-add-quick-toggle.active .ui-icon {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.tool-quick-add {
|
||||
position: absolute;
|
||||
top: calc(100% + 8px);
|
||||
right: 0;
|
||||
z-index: 300;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, 40px);
|
||||
justify-content: flex-end;
|
||||
width: max-content;
|
||||
max-width: calc(100vw - 48px);
|
||||
gap: 6px;
|
||||
padding: 8px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(10, 13, 28, 0.99);
|
||||
box-shadow: var(--shadow-lg);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transform: translateY(-4px);
|
||||
transition:
|
||||
opacity 140ms ease,
|
||||
transform 140ms ease;
|
||||
}
|
||||
|
||||
.tool-quick-add.is-open {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.tool-quick-add::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: 18px;
|
||||
bottom: 100%;
|
||||
border-right: 7px solid transparent;
|
||||
border-bottom: 7px solid rgba(10, 13, 28, 0.99);
|
||||
border-left: 7px solid transparent;
|
||||
}
|
||||
|
||||
.tool-quick-add::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 100%;
|
||||
width: 100%;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
.tool-quick-add-button,
|
||||
.tool-add-card {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.tool-quick-add-button {
|
||||
background: rgba(21, 26, 48, 0.72);
|
||||
}
|
||||
|
||||
.modules-toolbar {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
margin-top: var(--space-4);
|
||||
}
|
||||
|
||||
.toolbox-actions-row {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.toolbox-actions-row > div {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.toolbox-actions-row > div:last-child {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.toolbox-preferences-row {
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
width: 100%;
|
||||
max-width: 520px;
|
||||
align-items: center;
|
||||
justify-self: end;
|
||||
gap: var(--space-4);
|
||||
margin-top: var(--space-4);
|
||||
padding: var(--space-4);
|
||||
overflow: hidden;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-lg);
|
||||
background:
|
||||
radial-gradient(circle at 100% 0%, rgba(246, 196, 83, 0.08), transparent 34%),
|
||||
linear-gradient(135deg, rgba(16, 20, 38, 0.84), rgba(5, 7, 17, 0.76));
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 800;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.toolbox-preferences-row::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: -1;
|
||||
padding: 1px;
|
||||
border-radius: inherit;
|
||||
background:
|
||||
radial-gradient(circle at 100% 0%, rgba(246, 196, 83, 0.38), transparent 30%),
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.26), rgba(139, 92, 246, 0.16), rgba(56, 189, 248, 0.18));
|
||||
@include mixins.border-mask;
|
||||
}
|
||||
|
||||
.toolbox-preferences-row .eyebrow {
|
||||
margin-bottom: 4px;
|
||||
font-size: 0.68rem;
|
||||
}
|
||||
|
||||
.toolbox-preferences-row strong {
|
||||
display: block;
|
||||
color: var(--color-text-primary);
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
.toolbox-preferences-row + .cards {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.toast-position-switch {
|
||||
position: relative;
|
||||
display: inline-grid;
|
||||
grid-template-columns: repeat(2, 32px);
|
||||
width: 74px;
|
||||
min-height: 38px;
|
||||
align-items: center;
|
||||
justify-items: center;
|
||||
gap: 0;
|
||||
padding: 3px 4px;
|
||||
border-color: rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(7, 10, 24, 0.32);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.toast-position-switch::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
bottom: 3px;
|
||||
left: 4px;
|
||||
width: 30px;
|
||||
border: 1px solid rgba(246, 196, 83, 0.3);
|
||||
border-radius: 50%;
|
||||
background:
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.1), rgba(139, 92, 246, 0.08)),
|
||||
rgba(21, 26, 48, 0.58);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
|
||||
transition: transform var(--duration-fast) var(--ease-standard);
|
||||
}
|
||||
|
||||
.toast-position-switch[data-position="right"]::before {
|
||||
transform: translateX(32px);
|
||||
}
|
||||
|
||||
.toast-position-switch span {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: inline-grid;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
place-items: center;
|
||||
justify-self: center;
|
||||
align-self: center;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.toast-position-switch .ui-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.toast-position-switch:hover {
|
||||
border-color: rgba(196, 181, 253, 0.24);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.modules {
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.modules[data-layout-cols="1"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.modules[data-layout-cols="2"] {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.module-column {
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
align-content: start;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.module-column.is-empty-warning {
|
||||
min-height: 132px;
|
||||
border: 1px dashed rgba(246, 196, 83, 0.26);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(246, 196, 83, 0.04);
|
||||
}
|
||||
|
||||
.module-column-boundary-drop-zone {
|
||||
position: relative;
|
||||
min-height: 10px;
|
||||
border-radius: var(--radius-pill);
|
||||
}
|
||||
|
||||
.module-column-boundary-drop-zone.is-drop-target::before {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 0;
|
||||
left: 0;
|
||||
height: 3px;
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(246, 196, 83, 0.9);
|
||||
box-shadow: 0 0 12px rgba(246, 196, 83, 0.24);
|
||||
content: "";
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.module {
|
||||
--reorder-drop-shadow: var(--shadow-sm);
|
||||
|
||||
position: relative;
|
||||
contain: paint;
|
||||
overflow: hidden;
|
||||
border-color: transparent;
|
||||
background: rgba(16, 20, 38, 0.42);
|
||||
box-shadow: var(--shadow-sm);
|
||||
|
||||
@include mixins.gold-panel-frame(true);
|
||||
}
|
||||
|
||||
.module > * {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.module:hover {
|
||||
transform: none;
|
||||
border-color: transparent;
|
||||
background: rgba(16, 20, 38, 0.42);
|
||||
box-shadow:
|
||||
var(--shadow-sm),
|
||||
0 0 14px rgba(139, 92, 246, 0.14),
|
||||
0 0 24px rgba(196, 181, 253, 0.08);
|
||||
}
|
||||
|
||||
.module:hover::before {
|
||||
background: linear-gradient(135deg, rgba(139, 92, 246, 0.42), rgba(196, 181, 253, 0.28));
|
||||
}
|
||||
|
||||
.module:hover::after {
|
||||
background:
|
||||
radial-gradient(circle at calc(100% - var(--radius-lg)) calc(100% - var(--radius-lg)), rgba(196, 181, 253, 0.5) 0 18px, transparent 27px),
|
||||
linear-gradient(90deg, transparent 0 30%, rgba(139, 92, 246, 0.08) 42%, rgba(139, 92, 246, 0.32) 72%, rgba(196, 181, 253, 0.5) 100%),
|
||||
linear-gradient(180deg, transparent 0 30%, rgba(139, 92, 246, 0.08) 42%, rgba(139, 92, 246, 0.32) 72%, rgba(196, 181, 253, 0.5) 100%);
|
||||
}
|
||||
|
||||
[data-reorder-target="item"].is-dragging,
|
||||
[data-reorder-target="group"].is-dragging {
|
||||
cursor: grabbing;
|
||||
opacity: 0.58;
|
||||
transform: scale(0.99);
|
||||
}
|
||||
|
||||
[data-reorder-target="item"][data-reorder-orientation="vertical"].is-drop-target,
|
||||
[data-reorder-target="group"][data-reorder-orientation="vertical"].is-drop-target {
|
||||
position: relative;
|
||||
border-color: rgba(246, 196, 83, 0.72);
|
||||
box-shadow: var(--reorder-drop-shadow, none);
|
||||
}
|
||||
|
||||
[data-reorder-target="item"][data-reorder-orientation="vertical"].is-drop-target::before,
|
||||
[data-reorder-target="group"][data-reorder-orientation="vertical"].is-drop-target::before {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
height: 3px;
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(246, 196, 83, 0.9);
|
||||
box-shadow: 0 0 12px rgba(246, 196, 83, 0.24);
|
||||
content: "";
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
[data-reorder-target="item"][data-reorder-orientation="vertical"].is-drop-target.drop-after,
|
||||
[data-reorder-target="group"][data-reorder-orientation="vertical"].is-drop-target.drop-after {
|
||||
box-shadow: var(--reorder-drop-shadow, none);
|
||||
}
|
||||
|
||||
[data-reorder-target="item"][data-reorder-orientation="vertical"].is-drop-target.drop-after::before,
|
||||
[data-reorder-target="group"][data-reorder-orientation="vertical"].is-drop-target.drop-after::before {
|
||||
top: auto;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
[data-reorder-target="item"][data-reorder-orientation="horizontal"].is-drop-target,
|
||||
[data-reorder-target="group"][data-reorder-orientation="horizontal"].is-drop-target {
|
||||
border-color: rgba(246, 196, 83, 0.72);
|
||||
box-shadow: var(--reorder-drop-shadow, none), inset 3px 0 0 rgba(246, 196, 83, 0.86);
|
||||
}
|
||||
|
||||
[data-reorder-target="item"][data-reorder-orientation="horizontal"].is-drop-target.drop-after,
|
||||
[data-reorder-target="group"][data-reorder-orientation="horizontal"].is-drop-target.drop-after {
|
||||
box-shadow: var(--reorder-drop-shadow, none), inset -3px 0 0 rgba(246, 196, 83, 0.86);
|
||||
}
|
||||
|
||||
.module[data-reorder-target="item"][data-reorder-orientation="vertical"].is-drop-target {
|
||||
border-color: transparent;
|
||||
box-shadow:
|
||||
var(--shadow-sm),
|
||||
inset 0 3px 0 rgba(246, 196, 83, 0.86),
|
||||
0 0 14px rgba(246, 196, 83, 0.12);
|
||||
}
|
||||
|
||||
.module[data-reorder-target="item"][data-reorder-orientation="vertical"].is-drop-target.drop-after {
|
||||
box-shadow:
|
||||
var(--shadow-sm),
|
||||
inset 0 -3px 0 rgba(246, 196, 83, 0.86),
|
||||
0 0 14px rgba(246, 196, 83, 0.12);
|
||||
}
|
||||
|
||||
.module[data-reorder-target="item"][data-reorder-orientation="vertical"].is-drop-target::before {
|
||||
display: none;
|
||||
}
|
||||
64
website/src/styles/toolboxes/_links.scss
Normal file
64
website/src/styles/toolboxes/_links.scss
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
// Rôle : gère l’outil liens et ses actions de liste.
|
||||
@use "../mixins";
|
||||
|
||||
.link-item {
|
||||
display: grid;
|
||||
grid-template-columns: 34px minmax(0, 1fr) auto;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
padding: 10px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(7, 10, 24, 0.42);
|
||||
}
|
||||
|
||||
.link-drag-handle {
|
||||
width: 34px;
|
||||
min-width: 34px;
|
||||
min-height: 34px;
|
||||
padding: 0;
|
||||
color: var(--color-text-muted);
|
||||
cursor: grab;
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.link-item a {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.link-item strong,
|
||||
.link-item span {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.link-item strong {
|
||||
color: var(--color-text-primary);
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
.link-item span {
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-xs);
|
||||
}
|
||||
|
||||
.link-item > div {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.link-item button {
|
||||
width: 40px;
|
||||
min-width: 40px;
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
.link-item .link-drag-handle {
|
||||
width: 34px;
|
||||
min-width: 34px;
|
||||
min-height: 34px;
|
||||
}
|
||||
323
website/src/styles/toolboxes/_module-shell.scss
Normal file
323
website/src/styles/toolboxes/_module-shell.scss
Normal file
|
|
@ -0,0 +1,323 @@
|
|||
// Rôle : gère le shell des modules toolbox, titres, icônes, onglets et boutons de module.
|
||||
@use "../mixins";
|
||||
|
||||
.module header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.module header > div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.module header h2 {
|
||||
margin: 0;
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
.module-content {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.module-content.is-scrollable {
|
||||
max-height: 450px;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
}
|
||||
|
||||
.layout-switch {
|
||||
display: inline-grid;
|
||||
grid-template-columns: repeat(2, 38px);
|
||||
gap: 4px;
|
||||
padding: 4px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.48);
|
||||
}
|
||||
|
||||
.layout-switch button {
|
||||
min-height: 34px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
color: var(--color-text-muted);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.layout-switch button:hover {
|
||||
border-color: rgba(196, 181, 253, 0.22);
|
||||
background: rgba(21, 26, 48, 0.5);
|
||||
color: var(--color-text-primary);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.layout-switch button.active {
|
||||
@include mixins.temporary-toggle-active;
|
||||
}
|
||||
|
||||
.module-drag-handle {
|
||||
display: inline-grid;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
flex: 0 0 34px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
color: var(--color-text-muted);
|
||||
cursor: grab;
|
||||
opacity: 0.62;
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.module-drag-handle .ui-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.module:hover .module-drag-handle,
|
||||
.module:focus-within .module-drag-handle {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.module-drag-handle:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.module-title {
|
||||
min-width: 80px;
|
||||
max-width: 100%;
|
||||
padding: 4px 6px;
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
.module-title:focus {
|
||||
background: rgba(7, 10, 24, 0.72);
|
||||
outline: 1px solid rgba(246, 196, 83, 0.72);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.module-edit-button,
|
||||
.module-delete-button {
|
||||
flex: 0 0 40px;
|
||||
}
|
||||
|
||||
.module-edit-button {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.module-scroll-button {
|
||||
display: inline-grid;
|
||||
grid-template-columns: 16px 30px;
|
||||
width: fit-content;
|
||||
min-height: 40px;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
padding: 0 7px 0 10px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(5, 7, 17, 0.24);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.module-scroll-button .ui-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.module-scroll-button i {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 30px;
|
||||
height: 16px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.18);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(7, 10, 24, 0.72);
|
||||
}
|
||||
|
||||
.module-scroll-button i::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 3px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-text-muted);
|
||||
transform: translateY(-50%);
|
||||
transition:
|
||||
left var(--duration-fast) var(--ease-standard),
|
||||
background-color var(--duration-fast) var(--ease-standard),
|
||||
box-shadow var(--duration-fast) var(--ease-standard);
|
||||
}
|
||||
|
||||
.module-edit-button.active {
|
||||
@include mixins.temporary-toggle-active;
|
||||
}
|
||||
|
||||
.module-icon {
|
||||
display: grid;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
place-items: center;
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--gradient-brand);
|
||||
box-shadow: var(--shadow-primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.module-icon-svg {
|
||||
display: block;
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: white;
|
||||
mask-position: center;
|
||||
mask-repeat: no-repeat;
|
||||
mask-size: contain;
|
||||
-webkit-mask-position: center;
|
||||
-webkit-mask-repeat: no-repeat;
|
||||
-webkit-mask-size: contain;
|
||||
}
|
||||
|
||||
.module-icon-notepad {
|
||||
mask-image: url("/static/icons/notepad.svg");
|
||||
-webkit-mask-image: url("/static/icons/notepad.svg");
|
||||
}
|
||||
|
||||
.module-icon-checklist {
|
||||
mask-image: url("/static/icons/checklist.svg");
|
||||
-webkit-mask-image: url("/static/icons/checklist.svg");
|
||||
}
|
||||
|
||||
.module-icon-tasklist {
|
||||
mask-image: url("/static/icons/tasklist.svg");
|
||||
-webkit-mask-image: url("/static/icons/tasklist.svg");
|
||||
}
|
||||
|
||||
.module-icon-picture {
|
||||
mask-image: url("/static/icons/picture.svg");
|
||||
-webkit-mask-image: url("/static/icons/picture.svg");
|
||||
}
|
||||
|
||||
.module-icon-link {
|
||||
mask-image: url("/static/icons/link.svg");
|
||||
-webkit-mask-image: url("/static/icons/link.svg");
|
||||
}
|
||||
|
||||
.module-icon-toolbox {
|
||||
mask-image: url("/static/icons/toolbox.svg");
|
||||
-webkit-mask-image: url("/static/icons/toolbox.svg");
|
||||
}
|
||||
|
||||
.module-icon-export {
|
||||
mask-image: url("/static/icons/export.svg");
|
||||
-webkit-mask-image: url("/static/icons/export.svg");
|
||||
}
|
||||
|
||||
.module-icon-abacus {
|
||||
mask-image: url("/static/icons/abacus.svg");
|
||||
-webkit-mask-image: url("/static/icons/abacus.svg");
|
||||
}
|
||||
|
||||
.module-icon-calculator {
|
||||
mask-image: url("/static/icons/calculator.svg");
|
||||
-webkit-mask-image: url("/static/icons/calculator.svg");
|
||||
}
|
||||
|
||||
.module-icon-clock {
|
||||
mask-image: url("/static/icons/clock.svg");
|
||||
-webkit-mask-image: url("/static/icons/clock.svg");
|
||||
}
|
||||
|
||||
.module-icon-stopwatch {
|
||||
mask-image: url("/static/icons/stopwatch.svg");
|
||||
-webkit-mask-image: url("/static/icons/stopwatch.svg");
|
||||
}
|
||||
|
||||
.module-icon-hourglass {
|
||||
mask-image: url("/static/icons/hourglass.svg");
|
||||
-webkit-mask-image: url("/static/icons/hourglass.svg");
|
||||
}
|
||||
|
||||
.module-icon-map {
|
||||
mask-image: url("/static/icons/map.svg");
|
||||
-webkit-mask-image: url("/static/icons/map.svg");
|
||||
}
|
||||
|
||||
.module-icon-shield {
|
||||
mask-image: url("/static/icons/shield.svg");
|
||||
-webkit-mask-image: url("/static/icons/shield.svg");
|
||||
}
|
||||
|
||||
.module-icon-chest-armor {
|
||||
mask-image: url("/static/icons/chest-armor.svg");
|
||||
-webkit-mask-image: url("/static/icons/chest-armor.svg");
|
||||
}
|
||||
|
||||
.module-icon-columns {
|
||||
mask-image: url("/static/icons/columns.svg");
|
||||
-webkit-mask-image: url("/static/icons/columns.svg");
|
||||
}
|
||||
|
||||
.module-icon-table {
|
||||
mask-image: url("/static/icons/table.svg");
|
||||
-webkit-mask-image: url("/static/icons/table.svg");
|
||||
}
|
||||
|
||||
.module-icon-controller {
|
||||
mask-image: url("/static/icons/controller.svg");
|
||||
-webkit-mask-image: url("/static/icons/controller.svg");
|
||||
}
|
||||
|
||||
.tabs {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
|
||||
gap: 6px;
|
||||
padding: 5px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.34);
|
||||
}
|
||||
|
||||
.tabs button {
|
||||
display: inline-flex;
|
||||
min-width: 0;
|
||||
min-height: 36px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
padding: 0 10px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: calc(var(--radius-md) - 2px);
|
||||
background: transparent;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.tabs button:hover {
|
||||
border-color: rgba(246, 196, 83, 0.28);
|
||||
background: rgba(246, 196, 83, 0.08);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.tabs button.active {
|
||||
@include mixins.temporary-toggle-active;
|
||||
}
|
||||
|
||||
.tabs .module-icon-svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background: currentColor;
|
||||
}
|
||||
402
website/src/styles/toolboxes/_notepad.scss
Normal file
402
website/src/styles/toolboxes/_notepad.scss
Normal file
|
|
@ -0,0 +1,402 @@
|
|||
// Rôle : gère la surface de bloc-notes riche et sa barre de formatage.
|
||||
@use "../mixins";
|
||||
|
||||
.notepad-module {
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.notepad-toolbar,
|
||||
.notepad-toolbar-group,
|
||||
.notepad-format-controls {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.notepad-toolbar {
|
||||
justify-content: flex-start;
|
||||
padding: 8px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.46);
|
||||
}
|
||||
|
||||
.notepad-format-controls {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.notepad-toolbar-group {
|
||||
padding-right: 8px;
|
||||
border-right: 1px solid rgba(150, 165, 205, 0.12);
|
||||
}
|
||||
|
||||
.notepad-toolbar-group:last-child {
|
||||
padding-right: 0;
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
.notepad-toolbar-button,
|
||||
.drawing-control-button,
|
||||
.notepad-swatch,
|
||||
.notepad-color-toggle,
|
||||
.drawing-width-toggle,
|
||||
.drawing-width-button {
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
width: 34px;
|
||||
min-width: 34px;
|
||||
min-height: 34px;
|
||||
padding: 0;
|
||||
border-color: rgba(150, 165, 205, 0.18);
|
||||
border-radius: var(--radius-sm);
|
||||
background: rgba(16, 20, 38, 0.74);
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 900;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.notepad-toolbar-button .ui-icon,
|
||||
.drawing-control-button .ui-icon {
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
}
|
||||
|
||||
.notepad-toolbar-button:hover,
|
||||
.drawing-control-button:hover,
|
||||
.notepad-swatch:hover,
|
||||
.notepad-color-toggle:hover,
|
||||
.drawing-width-toggle:hover,
|
||||
.drawing-width-button:hover,
|
||||
.notepad-toolbar-button.active,
|
||||
.drawing-control-button.active,
|
||||
.notepad-swatch.active,
|
||||
.drawing-width-button.active {
|
||||
border-color: rgba(246, 196, 83, 0.48);
|
||||
background: rgba(246, 196, 83, 0.1);
|
||||
color: var(--color-accent-gold);
|
||||
}
|
||||
|
||||
.notepad-color-dropdown {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.notepad-list-dropdown {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.notepad-list-icon,
|
||||
.notepad-list-icon::before,
|
||||
.notepad-list-icon::after {
|
||||
display: block;
|
||||
width: 17px;
|
||||
height: 2px;
|
||||
border-radius: var(--radius-pill);
|
||||
background: currentColor;
|
||||
}
|
||||
|
||||
.notepad-list-icon {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.notepad-list-icon::before,
|
||||
.notepad-list-icon::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.notepad-list-icon::before {
|
||||
top: -6px;
|
||||
}
|
||||
|
||||
.notepad-list-icon::after {
|
||||
top: 6px;
|
||||
}
|
||||
|
||||
.notepad-color-toggle::before,
|
||||
.notepad-swatch::before {
|
||||
content: "";
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border: 1px solid rgba(245, 247, 255, 0.22);
|
||||
border-radius: 50%;
|
||||
background: var(--swatch-color);
|
||||
box-shadow: inset 0 0 0 2px rgba(5, 7, 17, 0.36);
|
||||
}
|
||||
|
||||
.notepad-color-toggle.is-rainbow::before {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-color: rgba(245, 247, 255, 0.28);
|
||||
background: conic-gradient(
|
||||
from 20deg,
|
||||
#f6c453,
|
||||
#22d3ee,
|
||||
#8b5cf6,
|
||||
#d946ef,
|
||||
#f5f7ff,
|
||||
#f6c453
|
||||
);
|
||||
box-shadow:
|
||||
inset 0 0 0 3px rgba(5, 7, 17, 0.34),
|
||||
0 0 10px rgba(139, 92, 246, 0.16);
|
||||
}
|
||||
|
||||
.notepad-color-menu {
|
||||
position: absolute;
|
||||
top: calc(100% + 8px);
|
||||
left: 50%;
|
||||
z-index: 50;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 34px);
|
||||
gap: 6px;
|
||||
padding: 8px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(10, 13, 28, 0.99);
|
||||
box-shadow: var(--shadow-lg);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transform: translate(-50%, -4px);
|
||||
transition:
|
||||
opacity 140ms ease,
|
||||
transform 140ms ease;
|
||||
}
|
||||
|
||||
.notepad-list-menu {
|
||||
position: absolute;
|
||||
top: calc(100% + 8px);
|
||||
left: 50%;
|
||||
z-index: 50;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 34px);
|
||||
gap: 6px;
|
||||
padding: 8px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(10, 13, 28, 0.99);
|
||||
box-shadow: var(--shadow-lg);
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.notepad-list-menu::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 100%;
|
||||
left: calc(50% - 7px);
|
||||
border-right: 7px solid transparent;
|
||||
border-bottom: 7px solid rgba(10, 13, 28, 0.99);
|
||||
border-left: 7px solid transparent;
|
||||
}
|
||||
|
||||
.notepad-list-menu::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 100%;
|
||||
left: 0;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.notepad-list-option {
|
||||
justify-content: center;
|
||||
width: 34px;
|
||||
min-width: 34px;
|
||||
min-height: 34px;
|
||||
padding: 0;
|
||||
border-color: rgba(150, 165, 205, 0.18);
|
||||
background: rgba(16, 20, 38, 0.74);
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 800;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.notepad-list-option:hover,
|
||||
.notepad-list-option.active {
|
||||
border-color: rgba(246, 196, 83, 0.48);
|
||||
background: rgba(246, 196, 83, 0.1);
|
||||
color: var(--color-accent-gold);
|
||||
}
|
||||
|
||||
.notepad-color-menu.is-sectioned {
|
||||
grid-template-columns: 1fr;
|
||||
width: 168px;
|
||||
}
|
||||
|
||||
.notepad-color-section {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.notepad-color-section + .notepad-color-section {
|
||||
margin-top: 4px;
|
||||
padding-top: 8px;
|
||||
border-top: 1px solid rgba(150, 165, 205, 0.12);
|
||||
}
|
||||
|
||||
.notepad-color-section-label {
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.notepad-color-section-swatches {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 34px);
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.notepad-color-dropdown:hover .notepad-color-menu,
|
||||
.notepad-color-dropdown:focus-within .notepad-color-menu,
|
||||
.notepad-color-dropdown.is-open .notepad-color-menu {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
transform: translate(-50%, 0);
|
||||
}
|
||||
|
||||
.notepad-color-menu::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 100%;
|
||||
left: 0;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.notepad-color-menu::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 100%;
|
||||
left: calc(50% - 7px);
|
||||
border-right: 7px solid transparent;
|
||||
border-bottom: 7px solid rgba(10, 13, 28, 0.99);
|
||||
border-left: 7px solid transparent;
|
||||
}
|
||||
|
||||
.drawing-width-toggle span,
|
||||
.drawing-width-button span {
|
||||
width: 20px;
|
||||
height: var(--line-width);
|
||||
border-radius: var(--radius-pill);
|
||||
background: currentColor;
|
||||
}
|
||||
|
||||
.drawing-width-dropdown {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.drawing-width-menu {
|
||||
position: absolute;
|
||||
right: auto;
|
||||
bottom: calc(100% + 8px);
|
||||
left: 50%;
|
||||
z-index: 50;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 34px);
|
||||
gap: 6px;
|
||||
padding: 8px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(10, 13, 28, 0.99);
|
||||
box-shadow: var(--shadow-lg);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transform: translate(-50%, 4px);
|
||||
transition:
|
||||
opacity 140ms ease,
|
||||
transform 140ms ease;
|
||||
}
|
||||
|
||||
.drawing-width-dropdown:hover .drawing-width-menu,
|
||||
.drawing-width-dropdown:focus-within .drawing-width-menu,
|
||||
.drawing-width-dropdown.is-open .drawing-width-menu {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
transform: translate(-50%, 0);
|
||||
}
|
||||
|
||||
.drawing-width-menu::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
right: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.drawing-width-menu::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: calc(50% - 7px);
|
||||
border-top: 7px solid rgba(10, 13, 28, 0.99);
|
||||
border-right: 7px solid transparent;
|
||||
border-left: 7px solid transparent;
|
||||
}
|
||||
|
||||
.notepad-surface {
|
||||
position: relative;
|
||||
min-height: 260px;
|
||||
overflow: auto;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.56);
|
||||
}
|
||||
|
||||
.notepad-surface:focus-within {
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
|
||||
}
|
||||
|
||||
.notepad-surface.is-drawing {
|
||||
cursor: crosshair;
|
||||
}
|
||||
|
||||
.notepad-editor {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
min-height: 260px;
|
||||
padding: var(--space-4);
|
||||
color: var(--color-text-primary);
|
||||
line-height: 1.6;
|
||||
outline: none;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.notepad-editor[contenteditable="false"] {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.notepad-editor.is-empty::before {
|
||||
content: attr(data-placeholder);
|
||||
position: absolute;
|
||||
color: var(--color-text-muted);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.notepad-editor h3,
|
||||
.notepad-editor h4,
|
||||
.notepad-editor p,
|
||||
.notepad-editor ul,
|
||||
.notepad-editor ol {
|
||||
margin: 0 0 0.75em;
|
||||
}
|
||||
|
||||
.notepad-editor h3 {
|
||||
font-size: 1.08rem;
|
||||
}
|
||||
|
||||
.notepad-editor h4 {
|
||||
font-size: 0.98rem;
|
||||
}
|
||||
|
||||
.notepad-editor ul,
|
||||
.notepad-editor ol {
|
||||
padding-left: 1.35rem;
|
||||
}
|
||||
453
website/src/styles/toolboxes/_shared-controls.scss
Normal file
453
website/src/styles/toolboxes/_shared-controls.scss
Normal file
|
|
@ -0,0 +1,453 @@
|
|||
// Rôle : gère les contrôles partagés des outils en deux colonnes et leurs états.
|
||||
@use "../mixins";
|
||||
|
||||
.tool-split-results {
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
gap: var(--space-3);
|
||||
overflow: visible;
|
||||
background:
|
||||
linear-gradient(135deg, rgba(139, 92, 246, 0.045), transparent 62%),
|
||||
rgba(7, 10, 24, 0.22);
|
||||
}
|
||||
|
||||
.calculator-saved.is-scrollable {
|
||||
height: var(--calculator-scroll-height, auto);
|
||||
max-height: var(--calculator-scroll-height, none);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.tool-split-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2);
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.tool-split-root-button {
|
||||
width: fit-content;
|
||||
min-height: 34px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.24);
|
||||
}
|
||||
|
||||
.tool-split-action-button,
|
||||
.tool-split-entry > button:not(.tool-split-entry-summary, .tool-split-entry-value),
|
||||
.counter-actions button,
|
||||
.link-item button {
|
||||
display: inline-flex;
|
||||
width: 34px;
|
||||
min-width: 34px;
|
||||
min-height: 34px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(21, 26, 48, 0.88);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.tool-split-action-button:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.48;
|
||||
}
|
||||
|
||||
.tool-split-action-button .ui-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.tool-split-scroll-toggle {
|
||||
display: inline-grid;
|
||||
grid-template-columns: 18px 34px;
|
||||
width: fit-content;
|
||||
min-height: 34px;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 0 6px 0 10px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(5, 7, 17, 0.24);
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.tool-split-scroll-toggle .ui-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.tool-split-scroll-toggle i {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 34px;
|
||||
height: 18px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.18);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(7, 10, 24, 0.72);
|
||||
}
|
||||
|
||||
.tool-split-scroll-toggle i::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 3px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-text-muted);
|
||||
transform: translateY(-50%);
|
||||
transition:
|
||||
left var(--duration-fast) var(--ease-standard),
|
||||
background-color var(--duration-fast) var(--ease-standard),
|
||||
box-shadow var(--duration-fast) var(--ease-standard);
|
||||
}
|
||||
|
||||
.tool-split-root-button {
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.tool-split-root-button:hover,
|
||||
.tool-split-action-button:hover:not(:disabled),
|
||||
.checklist-qty-controls button:hover,
|
||||
.checklist-drag-handle:hover,
|
||||
.checklist-edit-button:hover,
|
||||
.tool-split-entry > button:not(.tool-split-entry-summary, .tool-split-entry-value, .danger):hover,
|
||||
.counter-actions button:not(.danger):hover,
|
||||
.link-item button:not(.danger):hover,
|
||||
.task-planner-drag-handle:hover:not(:disabled),
|
||||
.task-planner-category-drag-handle:hover,
|
||||
.task-planner-settings-toggle:hover,
|
||||
.task-planner-dropdown-button:hover,
|
||||
.task-planner-settings-button:hover,
|
||||
.task-planner-reset-control button:hover:not(:disabled),
|
||||
.task-planner-relation-chip button:hover,
|
||||
.module-scroll-button:hover,
|
||||
.tool-split-scroll-toggle:hover,
|
||||
.checklist-complete-mode-button:hover,
|
||||
.checklist-complete-mode-button.active:hover {
|
||||
border-color: rgba(196, 181, 253, 0.32);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(31, 37, 68, 0.94), rgba(18, 22, 44, 0.96)) padding-box,
|
||||
linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(196, 181, 253, 0.2)) border-box;
|
||||
color: var(--color-text-primary);
|
||||
box-shadow:
|
||||
0 0 12px rgba(139, 92, 246, 0.1),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.task-planner-settings-toggle.active,
|
||||
.task-planner-dropdown-button.active,
|
||||
.task-planner-settings-button.active {
|
||||
@include mixins.temporary-toggle-active;
|
||||
}
|
||||
|
||||
.timer-alert-mode-button:hover,
|
||||
.timer-alert-mode-button.active,
|
||||
.timer-inline-refresh-toggle:hover:not(:disabled) {
|
||||
border-color: rgba(196, 181, 253, 0.2);
|
||||
background: rgba(21, 26, 48, 0.42);
|
||||
color: var(--color-text-primary);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
|
||||
.timer-alert-mode-button.active,
|
||||
.timer-inline-refresh-toggle.active {
|
||||
border-color: rgba(246, 196, 83, 0.26);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.08), rgba(139, 92, 246, 0.08)),
|
||||
rgba(21, 26, 48, 0.36);
|
||||
color: var(--color-accent-gold);
|
||||
}
|
||||
|
||||
.timer-inline-refresh-toggle.active i {
|
||||
border-color: rgba(246, 196, 83, 0.36);
|
||||
background: rgba(246, 196, 83, 0.12);
|
||||
}
|
||||
|
||||
.timer-inline-refresh-toggle.active i::before {
|
||||
left: 7px;
|
||||
background: var(--color-accent-gold);
|
||||
box-shadow: 0 0 10px rgba(246, 196, 83, 0.28);
|
||||
}
|
||||
|
||||
.timer-alert-mode-button:disabled,
|
||||
.timer-alert-mode-button:disabled:hover,
|
||||
.timer-alert-mode-button.active:disabled,
|
||||
.timer-inline-refresh-toggle:disabled,
|
||||
.timer-inline-refresh-toggle:disabled:hover,
|
||||
.timer-inline-refresh-toggle.active:disabled {
|
||||
cursor: not-allowed;
|
||||
border-color: rgba(165, 180, 252, 0.025);
|
||||
background: rgba(5, 7, 17, 0.08);
|
||||
color: rgba(148, 163, 184, 0.22);
|
||||
opacity: 1;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.timer-alert-mode-button:disabled .ui-icon,
|
||||
.timer-inline-refresh-toggle:disabled .ui-icon {
|
||||
opacity: 0.34;
|
||||
}
|
||||
|
||||
.timer-alert-mode-switch.is-blocked {
|
||||
opacity: 1;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.timer-alert-mode-switch.is-blocked .timer-alert-mode-button,
|
||||
.timer-alert-mode-switch.is-blocked .timer-alert-mode-button:hover,
|
||||
.timer-alert-mode-switch.is-blocked .timer-alert-mode-button.active,
|
||||
.timer-alert-mode-switch.is-blocked .timer-alert-mode-button:disabled,
|
||||
.timer-alert-mode-switch.is-blocked .timer-alert-mode-button:disabled:hover,
|
||||
.timer-alert-mode-switch.is-blocked .timer-alert-mode-button.active:disabled {
|
||||
cursor: not-allowed;
|
||||
border-color: rgba(165, 180, 252, 0.035);
|
||||
background: rgba(5, 7, 17, 0.1);
|
||||
color: rgba(148, 163, 184, 0.32);
|
||||
box-shadow: none;
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
.timer-alert-mode-switch.is-blocked .timer-alert-mode-button .ui-icon,
|
||||
.timer-alert-mode-switch.is-blocked .timer-alert-mode-button:disabled .ui-icon {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.checklist-section-collapse-button:hover {
|
||||
border-color: rgba(246, 196, 83, 0.58);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.18), rgba(139, 92, 246, 0.12)) padding-box,
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.62), rgba(196, 181, 253, 0.32)) border-box;
|
||||
color: #fff;
|
||||
box-shadow:
|
||||
0 0 10px rgba(246, 196, 83, 0.14),
|
||||
0 0 16px rgba(139, 92, 246, 0.08);
|
||||
}
|
||||
|
||||
.tool-split-action-button.danger,
|
||||
.tool-split-entry > button.danger,
|
||||
.notepad-toolbar-button.danger,
|
||||
.counter-actions button.danger,
|
||||
.link-item button.danger,
|
||||
.task-planner-clear-completed-button.danger,
|
||||
.task-planner-delete-button.danger {
|
||||
border-color: rgba(251, 113, 133, 0.2);
|
||||
background: rgba(21, 26, 48, 0.88);
|
||||
color: var(--color-danger);
|
||||
}
|
||||
|
||||
.tool-split-action-button.danger:hover:not(:disabled),
|
||||
.tool-split-entry > button.danger:hover,
|
||||
.notepad-toolbar-button.danger:hover:not(:disabled),
|
||||
.counter-actions button.danger:hover,
|
||||
.link-item button.danger:hover,
|
||||
.task-planner-clear-completed-button.danger:hover:not(:disabled),
|
||||
.task-planner-delete-button.danger:hover {
|
||||
border-color: rgba(251, 113, 133, 0.56);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(80, 25, 42, 0.72), rgba(48, 18, 34, 0.82)) padding-box,
|
||||
linear-gradient(135deg, rgba(251, 113, 133, 0.56), rgba(196, 181, 253, 0.16)) border-box;
|
||||
color: #fff;
|
||||
box-shadow:
|
||||
0 0 14px rgba(251, 113, 133, 0.14),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
.tool-split-action-button.danger:hover .ui-icon,
|
||||
.tool-split-entry > button.danger:hover .ui-icon,
|
||||
.notepad-toolbar-button.danger:hover .ui-icon,
|
||||
.counter-actions button.danger:hover .ui-icon,
|
||||
.link-item button.danger:hover .ui-icon,
|
||||
.task-planner-clear-completed-button.danger:hover .ui-icon,
|
||||
.task-planner-delete-button.danger:hover .ui-icon {
|
||||
background-color: #fff;
|
||||
filter: drop-shadow(0 0 6px rgba(251, 113, 133, 0.26));
|
||||
}
|
||||
|
||||
.module-scroll-button.active,
|
||||
.tool-split-scroll-toggle.active,
|
||||
.checklist-complete-mode-button.active {
|
||||
@include mixins.temporary-toggle-active;
|
||||
}
|
||||
|
||||
.module-scroll-button.active i,
|
||||
.tool-split-scroll-toggle.active i {
|
||||
border-color: rgba(246, 196, 83, 0.36);
|
||||
background: rgba(246, 196, 83, 0.12);
|
||||
}
|
||||
|
||||
.module-scroll-button.active i::before,
|
||||
.tool-split-scroll-toggle.active i::before {
|
||||
left: 17px;
|
||||
background: var(--color-accent-gold);
|
||||
box-shadow: 0 0 10px rgba(246, 196, 83, 0.28);
|
||||
}
|
||||
|
||||
.module-scroll-button.active i::before {
|
||||
left: 15px;
|
||||
}
|
||||
|
||||
.tool-split-tree {
|
||||
display: grid;
|
||||
align-content: start;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.tool-split-tree.is-scrollable {
|
||||
overflow-y: auto;
|
||||
padding-right: 8px;
|
||||
}
|
||||
|
||||
.tool-split-entry-list {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.tool-split-entry-list .tool-split-entry-list {
|
||||
position: relative;
|
||||
margin-top: 6px;
|
||||
padding-left: 22px;
|
||||
}
|
||||
|
||||
.tool-split-entry-list .tool-split-entry-list::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -3px;
|
||||
bottom: 14px;
|
||||
left: 7px;
|
||||
width: 1px;
|
||||
background: linear-gradient(180deg, rgba(246, 196, 83, 0.52), rgba(139, 92, 246, 0.2));
|
||||
}
|
||||
|
||||
.tool-split-entry-list .tool-split-entry-list > li {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.tool-split-entry-list .tool-split-entry-list > li::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 18px;
|
||||
left: -15px;
|
||||
width: 11px;
|
||||
height: 1px;
|
||||
background: rgba(246, 196, 83, 0.52);
|
||||
}
|
||||
|
||||
.tool-split-entry {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 34px 34px;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.tool-split-entry-list li.is-editing > .tool-split-entry {
|
||||
grid-template-columns: auto minmax(0, 1fr) 34px 34px;
|
||||
}
|
||||
|
||||
.tool-split-entry > button {
|
||||
min-width: 0;
|
||||
min-height: 36px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.tool-split-entry-summary,
|
||||
.tool-split-entry-value {
|
||||
display: inline-flex;
|
||||
box-sizing: border-box;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
border: 1px solid rgba(165, 180, 252, 0.09);
|
||||
border-radius: var(--radius-md);
|
||||
border-color: rgba(165, 180, 252, 0.09);
|
||||
background: rgba(21, 26, 48, 0.58);
|
||||
color: var(--color-text-secondary);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.tool-split-entry-summary {
|
||||
width: 100%;
|
||||
min-height: 36px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.tool-split-entry-value {
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.tool-split-entry-value.is-readonly {
|
||||
min-height: 36px;
|
||||
padding: 0 10px;
|
||||
background: rgba(21, 26, 48, 0.38);
|
||||
cursor: default;
|
||||
opacity: 0.72;
|
||||
}
|
||||
|
||||
.tool-split-entry-summary:hover,
|
||||
.tool-split-entry-value:not(.is-readonly):hover {
|
||||
border-color: rgba(196, 181, 253, 0.2);
|
||||
background: rgba(21, 26, 48, 0.72);
|
||||
}
|
||||
|
||||
.tool-split-entry-summary > span {
|
||||
overflow: hidden;
|
||||
color: var(--color-text-secondary);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tool-split-entry-summary strong,
|
||||
.tool-split-entry-value strong {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.tool-split-entry-label {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
min-height: 36px;
|
||||
padding: 0 10px;
|
||||
overflow: hidden;
|
||||
border-color: rgba(165, 180, 252, 0.09);
|
||||
background: rgba(21, 26, 48, 0.38);
|
||||
color: var(--color-text-secondary);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tool-split-entry-label:hover,
|
||||
.tool-split-entry-label:focus {
|
||||
border-color: rgba(196, 181, 253, 0.22);
|
||||
background: rgba(21, 26, 48, 0.58);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.tool-split-entry .ui-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
opacity: 0.72;
|
||||
}
|
||||
|
||||
.tool-split-entry > button:not(.tool-split-entry-summary, .tool-split-entry-value) {
|
||||
min-height: 36px;
|
||||
}
|
||||
|
||||
.tool-split-entry-list li.active > .tool-split-entry > .tool-split-entry-summary,
|
||||
.tool-split-entry-list li.active > .tool-split-entry > .tool-split-entry-value,
|
||||
.tool-split-entry-list li.active > .tool-split-entry > .tool-split-entry-label {
|
||||
border-color: var(--color-accent-gold);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.09), rgba(139, 92, 246, 0.1)),
|
||||
rgba(7, 10, 24, 0.48);
|
||||
color: var(--color-text-primary);
|
||||
box-shadow: 0 0 0 1px rgba(246, 196, 83, 0.06);
|
||||
}
|
||||
208
website/src/styles/toolboxes/_table.scss
Normal file
208
website/src/styles/toolboxes/_table.scss
Normal file
|
|
@ -0,0 +1,208 @@
|
|||
// Rôle : gère l’outil table, sa grille, ses cellules et états de sélection.
|
||||
@use "../mixins";
|
||||
|
||||
.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 {
|
||||
width: 100%;
|
||||
padding: 0 8px;
|
||||
border-top: 0;
|
||||
border-left: 0;
|
||||
border-radius: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.table-header-input::placeholder {
|
||||
color: var(--color-text-muted);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.table-header-input:hover {
|
||||
background: rgba(21, 26, 48, 0.68);
|
||||
}
|
||||
|
||||
.table-header-input:focus {
|
||||
z-index: 5;
|
||||
border-color: rgba(246, 196, 83, 0.38);
|
||||
background: rgba(21, 26, 48, 0.8);
|
||||
color: var(--color-text-primary);
|
||||
box-shadow: inset 0 0 0 1px rgba(246, 196, 83, 0.55), 0 0 0 2px rgba(139, 92, 246, 0.18);
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.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 {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
min-height: 34px;
|
||||
padding: 6px 8px;
|
||||
border: 0;
|
||||
border-right: 1px solid rgba(165, 180, 252, 0.08);
|
||||
border-bottom: 1px solid rgba(165, 180, 252, 0.08);
|
||||
border-radius: 0;
|
||||
background: rgba(16, 20, 38, 0.34);
|
||||
color: var(--color-text-primary);
|
||||
caret-color: transparent;
|
||||
font-size: var(--font-size-sm);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.table-cell-input:hover {
|
||||
background: rgba(32, 39, 69, 0.38);
|
||||
}
|
||||
|
||||
.table-cell-input:focus {
|
||||
position: relative;
|
||||
z-index: 4;
|
||||
border-color: rgba(34, 211, 238, 0.42);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.06)),
|
||||
rgba(21, 26, 48, 0.58);
|
||||
box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.58);
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.table-cell-input.is-editing:focus {
|
||||
border-color: rgba(246, 196, 83, 0.38);
|
||||
background: rgba(21, 26, 48, 0.72);
|
||||
caret-color: auto;
|
||||
box-shadow: inset 0 0 0 1px rgba(246, 196, 83, 0.55), 0 0 0 2px rgba(139, 92, 246, 0.18);
|
||||
}
|
||||
|
||||
.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);
|
||||
}
|
||||
712
website/src/styles/toolboxes/_task-planner.scss
Normal file
712
website/src/styles/toolboxes/_task-planner.scss
Normal file
|
|
@ -0,0 +1,712 @@
|
|||
// Rôle : gère l’outil task planner, ses catégories, relations et réglages.
|
||||
@use "../mixins";
|
||||
|
||||
.task-planner-module {
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.task-planner-topbar {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.task-planner-topbar .inline-form {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.task-planner-add-stack {
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.task-planner-add-stack .text-import-actions {
|
||||
padding-top: var(--space-2);
|
||||
}
|
||||
|
||||
.task-planner-global-controls {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.task-planner-settings-toggle,
|
||||
.task-planner-dropdown-button,
|
||||
.task-planner-settings-button {
|
||||
display: inline-grid;
|
||||
width: 34px;
|
||||
min-width: 34px;
|
||||
min-height: 34px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 1px solid rgba(165, 180, 252, 0.1);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(21, 26, 48, 0.76);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.task-planner-settings-toggle {
|
||||
grid-template-columns: 16px minmax(0, auto);
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
padding: 0 12px;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.task-planner-settings-toggle span {
|
||||
overflow: hidden;
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.task-planner-settings-toggle .ui-icon,
|
||||
.task-planner-dropdown-button .ui-icon,
|
||||
.task-planner-settings-button .ui-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.task-planner-clear-completed-button {
|
||||
display: inline-flex;
|
||||
min-height: 38px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
padding: 0 12px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.task-planner-clear-completed-button .ui-icon {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
|
||||
.task-planner-settings {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(130px, 1fr) minmax(110px, 0.72fr);
|
||||
gap: 10px;
|
||||
align-items: end;
|
||||
padding: 12px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(139, 92, 246, 0.06), transparent 58%),
|
||||
rgba(7, 10, 24, 0.34);
|
||||
}
|
||||
|
||||
.task-planner-settings-actions {
|
||||
display: flex;
|
||||
grid-column: 1 / -1;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.task-planner-settings label,
|
||||
.task-planner-reset-override {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.task-planner-settings span,
|
||||
.task-planner-reset-override > span,
|
||||
.task-planner-relations > span {
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.task-planner-settings select,
|
||||
.task-planner-settings input,
|
||||
.task-planner-add-form select,
|
||||
.task-planner-type-select,
|
||||
.task-planner-reset-override select,
|
||||
.task-planner-reset-override input,
|
||||
.task-planner-relations select {
|
||||
width: 100%;
|
||||
min-height: 36px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background-color: rgba(15, 23, 42, 0.64);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.task-planner-settings select option,
|
||||
.task-planner-add-form select option,
|
||||
.task-planner-type-select option,
|
||||
.task-planner-reset-override select option,
|
||||
.task-planner-relations select option {
|
||||
background: #11182f;
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.task-planner-add-form {
|
||||
grid-template-columns: minmax(0, 1fr) minmax(120px, 0.36fr) auto;
|
||||
}
|
||||
|
||||
.task-planner-list {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.task-planner-child-list {
|
||||
position: relative;
|
||||
gap: 8px;
|
||||
margin-top: 8px;
|
||||
padding-left: 22px;
|
||||
}
|
||||
|
||||
.task-planner-child-list::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -4px;
|
||||
bottom: 15px;
|
||||
left: 7px;
|
||||
width: 1px;
|
||||
background: linear-gradient(180deg, rgba(246, 196, 83, 0.46), rgba(139, 92, 246, 0.18));
|
||||
}
|
||||
|
||||
.task-planner-child-list > .task-planner-item {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.task-planner-hidden-parent {
|
||||
position: relative;
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
padding: 10px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.1);
|
||||
border-radius: var(--radius-md);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(148, 163, 184, 0.035), transparent 56%),
|
||||
rgba(5, 7, 17, 0.28);
|
||||
}
|
||||
|
||||
.task-planner-hidden-parent > .task-planner-child-list {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.task-planner-child-list > .task-planner-item::before,
|
||||
.task-planner-child-list > .task-planner-hidden-parent::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 25px;
|
||||
left: -15px;
|
||||
width: 11px;
|
||||
height: 1px;
|
||||
background: rgba(246, 196, 83, 0.46);
|
||||
}
|
||||
|
||||
.task-planner-hidden-parent-line {
|
||||
display: grid;
|
||||
grid-template-columns: 24px minmax(0, 1fr) auto;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
min-height: 34px;
|
||||
padding: 6px 10px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.08);
|
||||
border-radius: var(--radius-md);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(148, 163, 184, 0.04), transparent 58%),
|
||||
rgba(5, 7, 17, 0.24);
|
||||
opacity: 0.76;
|
||||
}
|
||||
|
||||
.task-planner-hidden-parent-line > input[type="checkbox"] {
|
||||
justify-self: center;
|
||||
}
|
||||
|
||||
.task-planner-hidden-parent-line > span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 800;
|
||||
text-decoration: line-through;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.task-planner-hidden-parent-line > small {
|
||||
color: rgba(180, 189, 211, 0.62);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.task-planner-empty {
|
||||
padding: var(--space-4);
|
||||
border: 1px dashed rgba(165, 180, 252, 0.18);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--color-text-muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.task-planner-category-boundary-drop-zone {
|
||||
min-height: 10px;
|
||||
border: 1px dashed rgba(165, 180, 252, 0.16);
|
||||
border-radius: var(--radius-sm);
|
||||
background: rgba(15, 23, 42, 0.12);
|
||||
}
|
||||
|
||||
.task-planner-category-boundary-drop-zone.is-drop-target {
|
||||
border-color: rgba(246, 196, 83, 0.72);
|
||||
background: rgba(246, 196, 83, 0.08);
|
||||
box-shadow: inset 0 0 0 1px rgba(246, 196, 83, 0.24);
|
||||
}
|
||||
|
||||
.task-planner-category-section {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
padding: 10px;
|
||||
border: 1px solid rgba(246, 196, 83, 0.16);
|
||||
border-radius: var(--radius-md);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.04), transparent 42%),
|
||||
rgba(7, 10, 24, 0.18);
|
||||
}
|
||||
|
||||
.task-planner-category-header {
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
||||
.task-planner-category-title {
|
||||
display: inline-flex;
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.task-planner-category-actions {
|
||||
display: inline-flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.task-planner-category-header h3 {
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
color: var(--color-accent-gold);
|
||||
font-size: var(--font-size-sm);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.task-planner-category-actions > span {
|
||||
flex: 0 0 auto;
|
||||
padding: 3px 9px;
|
||||
border: 1px solid rgba(246, 196, 83, 0.22);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(246, 196, 83, 0.08);
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.task-planner-category-section.is-complete .task-planner-category-header h3 {
|
||||
color: var(--color-text-muted);
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.task-planner-category-section.is-dragging {
|
||||
cursor: grabbing;
|
||||
opacity: 0.58;
|
||||
transform: scale(0.99);
|
||||
}
|
||||
|
||||
.task-planner-category-section.is-drop-target {
|
||||
border-color: rgba(246, 196, 83, 0.72);
|
||||
}
|
||||
|
||||
.task-planner-category-section.is-drop-target.drop-after {
|
||||
border-color: rgba(246, 196, 83, 0.72);
|
||||
}
|
||||
|
||||
.task-planner-item {
|
||||
position: relative;
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding: 10px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.36);
|
||||
}
|
||||
|
||||
.task-planner-item.is-complete > .task-planner-line {
|
||||
opacity: 0.78;
|
||||
}
|
||||
|
||||
.task-planner-item.has-missing-prerequisite {
|
||||
border-color: rgba(246, 196, 83, 0.34);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.06), transparent 44%),
|
||||
rgba(5, 7, 17, 0.36);
|
||||
}
|
||||
|
||||
.task-planner-line {
|
||||
display: grid;
|
||||
grid-template-columns: 30px 24px minmax(0, 1fr) 134px auto auto;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.task-planner-line > input[type="checkbox"] {
|
||||
justify-self: center;
|
||||
}
|
||||
|
||||
.task-planner-drag-handle,
|
||||
.task-planner-category-drag-handle,
|
||||
.task-planner-delete-button {
|
||||
display: inline-grid;
|
||||
width: 30px;
|
||||
min-width: 30px;
|
||||
min-height: 30px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 1px solid rgba(165, 180, 252, 0.1);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(21, 26, 48, 0.76);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.task-planner-drag-handle:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.task-planner-drag-handle .ui-icon,
|
||||
.task-planner-category-drag-handle .ui-icon,
|
||||
.task-planner-delete-button .ui-icon {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
|
||||
.task-planner-actions {
|
||||
display: inline-flex;
|
||||
justify-content: flex-end;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.task-planner-title-input {
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.task-planner-item.is-complete > .task-planner-line .task-planner-title-input {
|
||||
color: var(--color-text-muted);
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.task-planner-type-select {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
width: 100%;
|
||||
min-height: 36px;
|
||||
overflow: hidden;
|
||||
padding: 0 30px 0 10px;
|
||||
border-color: rgba(165, 180, 252, 0.09);
|
||||
text-overflow: ellipsis;
|
||||
background-image:
|
||||
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23c4b5fd' viewBox='-6.5 0 32 32'%3E%3Cpath d='M18.813 11.406l-7.906 9.906c-.75.906-1.906.906-2.625 0L.376 11.406c-.75-.938-.375-1.656.781-1.656h16.875c1.188 0 1.531.719.781 1.656z'/%3E%3C/svg%3E"),
|
||||
linear-gradient(135deg, rgba(139, 92, 246, 0.04), rgba(31, 41, 78, 0.08)),
|
||||
linear-gradient(rgba(21, 26, 48, 0.38), rgba(21, 26, 48, 0.38));
|
||||
background-position:
|
||||
calc(100% - 10px) 50%,
|
||||
0 0,
|
||||
0 0;
|
||||
background-size:
|
||||
11px 11px,
|
||||
auto,
|
||||
auto;
|
||||
background-repeat: no-repeat;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.task-planner-type-select:hover,
|
||||
.task-planner-type-select:focus {
|
||||
border-color: rgba(196, 181, 253, 0.22);
|
||||
background-image:
|
||||
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23f6c453' viewBox='-6.5 0 32 32'%3E%3Cpath d='M18.813 11.406l-7.906 9.906c-.75.906-1.906.906-2.625 0L.376 11.406c-.75-.938-.375-1.656.781-1.656h16.875c1.188 0 1.531.719.781 1.656z'/%3E%3C/svg%3E"),
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.06), rgba(139, 92, 246, 0.08)),
|
||||
linear-gradient(rgba(21, 26, 48, 0.58), rgba(21, 26, 48, 0.58));
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.task-planner-warning {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 4px 8px;
|
||||
border: 1px solid rgba(246, 196, 83, 0.28);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(246, 196, 83, 0.08);
|
||||
color: var(--color-accent-gold);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.task-planner-prerequisite-tooltip {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
min-width: 180px;
|
||||
}
|
||||
|
||||
.task-planner-prerequisite-tooltip strong {
|
||||
color: var(--color-text-primary);
|
||||
font-size: var(--font-size-xs);
|
||||
}
|
||||
|
||||
.task-planner-prerequisite-tooltip > span {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.task-planner-prerequisite-tooltip > span > span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: var(--color-text-secondary);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.inline-notice {
|
||||
display: inline-flex;
|
||||
width: fit-content;
|
||||
max-width: 100%;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
padding: 5px 9px;
|
||||
border: 1px solid rgba(246, 196, 83, 0.28);
|
||||
border-radius: var(--radius-md);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.1), rgba(139, 92, 246, 0.08)),
|
||||
rgba(9, 12, 28, 0.9);
|
||||
box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
|
||||
color: var(--color-accent-gold);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
line-height: 1.2;
|
||||
animation: inline-notice-in 160ms ease;
|
||||
}
|
||||
|
||||
.inline-notice .ui-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.task-planner-notice {
|
||||
position: absolute;
|
||||
top: 48px;
|
||||
left: 72px;
|
||||
z-index: 2;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@keyframes inline-notice-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.task-planner-description-panel,
|
||||
.task-planner-task-settings {
|
||||
margin-left: 62px;
|
||||
}
|
||||
|
||||
.task-planner-description-panel {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.task-planner-category-field,
|
||||
.task-planner-description-field {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.task-planner-category-field span,
|
||||
.task-planner-description-field span {
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.task-planner-category-field input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.task-planner-category-field.is-disabled span {
|
||||
color: rgba(148, 163, 184, 0.72);
|
||||
}
|
||||
|
||||
.task-planner-category-field.is-disabled input,
|
||||
.task-planner-category-field input:disabled {
|
||||
border-color: rgba(165, 180, 252, 0.08);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(148, 163, 184, 0.05), transparent 62%),
|
||||
rgba(15, 23, 42, 0.42);
|
||||
box-shadow: none;
|
||||
color: rgba(203, 213, 225, 0.66);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.task-planner-description {
|
||||
min-height: 72px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.task-planner-task-settings {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
|
||||
gap: 12px;
|
||||
align-items: start;
|
||||
padding: 10px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.1);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(7, 10, 24, 0.24);
|
||||
}
|
||||
|
||||
.task-planner-reset-control {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 34px;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.task-planner-reset-control button {
|
||||
display: inline-grid;
|
||||
width: 34px;
|
||||
min-width: 34px;
|
||||
min-height: 36px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(21, 26, 48, 0.58);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.task-planner-reset-control button:disabled {
|
||||
opacity: 0.42;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.task-planner-reset-control button .ui-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.task-planner-reset-override.is-empty p {
|
||||
display: grid;
|
||||
min-height: 36px;
|
||||
align-items: center;
|
||||
margin: 0;
|
||||
padding: 0 12px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.08);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(15, 23, 42, 0.34);
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.task-planner-relations {
|
||||
display: grid;
|
||||
grid-column: span 1;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.task-planner-relations > div {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
min-height: 36px;
|
||||
}
|
||||
|
||||
.task-planner-relations em {
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-xs);
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.task-planner-relation-chip {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto 28px;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
padding: 4px 5px 4px 9px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(21, 26, 48, 0.46);
|
||||
}
|
||||
|
||||
.task-planner-relation-chip > span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 800;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.task-planner-relation-chip label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.task-planner-relation-chip label input {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.task-planner-relation-chip button {
|
||||
display: inline-flex;
|
||||
width: 26px;
|
||||
min-width: 26px;
|
||||
min-height: 26px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 5px;
|
||||
padding: 0;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(21, 26, 48, 0.58);
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.task-planner-relation-chip button .ui-icon {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
.task-planner-relations select {
|
||||
min-height: 36px;
|
||||
padding-inline: 10px;
|
||||
}
|
||||
152
website/src/styles/toolboxes/_text-exchange.scss
Normal file
152
website/src/styles/toolboxes/_text-exchange.scss
Normal file
|
|
@ -0,0 +1,152 @@
|
|||
// Rôle : gère les formulaires communs et les panneaux d’import/export texte.
|
||||
@use "../mixins";
|
||||
|
||||
.notepad-footer {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-2);
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-xs);
|
||||
}
|
||||
|
||||
.inline-form,
|
||||
.field {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.inline-form {
|
||||
grid-template-columns: 1fr auto;
|
||||
}
|
||||
|
||||
.checklist-add-form {
|
||||
grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr) 76px auto;
|
||||
}
|
||||
|
||||
.module-add-panel {
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.module-add-panel .inline-form {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.text-import-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.text-import-actions button {
|
||||
display: inline-flex;
|
||||
min-height: 42px;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.text-import-actions .ui-icon {
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
}
|
||||
|
||||
.text-import-modal-dialog {
|
||||
width: min(640px, calc(100vw - 32px));
|
||||
}
|
||||
|
||||
.text-import-modal-root {
|
||||
z-index: 330;
|
||||
}
|
||||
|
||||
.text-import-modal-dialog header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-4);
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
.text-import-modal-dialog h2 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.text-import-modal-form {
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.text-import-modal-form textarea.has-error {
|
||||
border-color: rgba(248, 113, 113, 0.75);
|
||||
box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.24), var(--shadow-sm);
|
||||
}
|
||||
|
||||
.text-import-error {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin: 0;
|
||||
color: #fecaca;
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.text-import-info {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin: 0;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.text-import-info .ui-icon,
|
||||
.text-import-error .ui-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.text-import-modal-form textarea {
|
||||
min-height: 260px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.text-import-modal-form footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.checklist-qty-input {
|
||||
padding-inline: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
min-height: 44px;
|
||||
padding: 0 14px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
textarea {
|
||||
padding-block: 14px;
|
||||
}
|
||||
|
||||
input::placeholder,
|
||||
textarea::placeholder {
|
||||
color: var(--color-text-muted);
|
||||
opacity: 0.58;
|
||||
}
|
||||
|
||||
input:focus,
|
||||
select:focus,
|
||||
textarea:focus {
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
|
||||
}
|
||||
504
website/src/styles/toolboxes/_timer.scss
Normal file
504
website/src/styles/toolboxes/_timer.scss
Normal file
|
|
@ -0,0 +1,504 @@
|
|||
// Rôle : gère l’outil timer, ses formulaires, listes et états d’alerte.
|
||||
@use "../mixins";
|
||||
|
||||
.timer-tabs {
|
||||
width: fit-content;
|
||||
grid-template-columns: repeat(2, 40px);
|
||||
}
|
||||
|
||||
.timer-tabs button {
|
||||
width: 40px;
|
||||
min-width: 40px;
|
||||
min-height: 36px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.timer-control-panel {
|
||||
display: grid;
|
||||
min-height: 170px;
|
||||
align-content: center;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-4);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background:
|
||||
radial-gradient(circle at 100% 0%, rgba(246, 196, 83, 0.08), transparent 36%),
|
||||
rgba(5, 7, 17, 0.5);
|
||||
}
|
||||
|
||||
.timer-countdown-form {
|
||||
align-content: start;
|
||||
}
|
||||
|
||||
.timer-countdown-form label,
|
||||
.timer-control-panel > label {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.timer-field-spacer {
|
||||
display: block;
|
||||
min-height: 17px;
|
||||
}
|
||||
|
||||
.timer-countdown-form input,
|
||||
.timer-countdown-form select,
|
||||
.timer-control-panel input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.timer-countdown-form select {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
overflow: hidden;
|
||||
padding-right: 34px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--color-text-primary);
|
||||
text-overflow: ellipsis;
|
||||
background-image:
|
||||
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='-6.5 0 32 32'%3E%3Cpath d='M18.813 11.406l-7.906 9.906c-.75.906-1.906.906-2.625 0L.376 11.406c-.75-.938-.375-1.656.781-1.656h16.875c1.188 0 1.531.719.781 1.656z'/%3E%3C/svg%3E"),
|
||||
linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(31, 41, 78, 0.12)),
|
||||
linear-gradient(rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.72));
|
||||
background-position:
|
||||
calc(100% - 14px) 50%,
|
||||
0 0,
|
||||
0 0;
|
||||
background-size:
|
||||
12px 12px,
|
||||
auto,
|
||||
auto;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.timer-countdown-form select option {
|
||||
background: #11182f;
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.timer-countdown-form select,
|
||||
.task-planner-settings select,
|
||||
.task-planner-add-form select,
|
||||
.task-planner-type-select,
|
||||
.task-planner-reset-override select,
|
||||
.task-planner-relations select {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
overflow: hidden;
|
||||
padding-right: 34px;
|
||||
text-overflow: ellipsis;
|
||||
background-image:
|
||||
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23c4b5fd' viewBox='-6.5 0 32 32'%3E%3Cpath d='M18.813 11.406l-7.906 9.906c-.75.906-1.906.906-2.625 0L.376 11.406c-.75-.938-.375-1.656.781-1.656h16.875c1.188 0 1.531.719.781 1.656z'/%3E%3C/svg%3E"),
|
||||
linear-gradient(135deg, rgba(139, 92, 246, 0.04), rgba(31, 41, 78, 0.08)),
|
||||
linear-gradient(rgba(21, 26, 48, 0.38), rgba(21, 26, 48, 0.38));
|
||||
background-position:
|
||||
calc(100% - 10px) 50%,
|
||||
0 0,
|
||||
0 0;
|
||||
background-size:
|
||||
11px 11px,
|
||||
auto,
|
||||
auto;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.timer-countdown-form select:hover,
|
||||
.timer-countdown-form select:focus,
|
||||
.task-planner-settings select:hover,
|
||||
.task-planner-settings select:focus,
|
||||
.task-planner-add-form select:hover,
|
||||
.task-planner-add-form select:focus,
|
||||
.task-planner-type-select:hover,
|
||||
.task-planner-type-select:focus,
|
||||
.task-planner-reset-override select:hover,
|
||||
.task-planner-reset-override select:focus,
|
||||
.task-planner-relations select:hover,
|
||||
.task-planner-relations select:focus {
|
||||
border-color: rgba(196, 181, 253, 0.22);
|
||||
background-image:
|
||||
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23f6c453' viewBox='-6.5 0 32 32'%3E%3Cpath d='M18.813 11.406l-7.906 9.906c-.75.906-1.906.906-2.625 0L.376 11.406c-.75-.938-.375-1.656.781-1.656h16.875c1.188 0 1.531.719.781 1.656z'/%3E%3C/svg%3E"),
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.06), rgba(139, 92, 246, 0.08)),
|
||||
linear-gradient(rgba(21, 26, 48, 0.58), rgba(21, 26, 48, 0.58));
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.time-parts-input {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(34px, 1fr) 4px minmax(34px, 1fr) 4px minmax(34px, 1fr);
|
||||
align-items: center;
|
||||
min-height: 44px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(15, 23, 42, 0.64);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.time-parts-input:focus-within {
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
|
||||
}
|
||||
|
||||
.time-parts-input input {
|
||||
width: auto;
|
||||
min-width: 0;
|
||||
min-height: 42px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
text-align: center;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.time-parts-input input:focus {
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.time-parts-input input:focus-visible {
|
||||
outline: 0;
|
||||
outline-offset: 0;
|
||||
}
|
||||
|
||||
.time-parts-input span {
|
||||
color: var(--color-text-muted);
|
||||
font-weight: 900;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.timer-interval-fields {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: var(--space-2);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.timer-interval-fields label {
|
||||
min-width: 0;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.timer-interval-fields .time-parts-input {
|
||||
grid-template-columns: minmax(22px, 1fr) 4px minmax(22px, 1fr) 4px minmax(22px, 1fr);
|
||||
min-height: 38px;
|
||||
}
|
||||
|
||||
.timer-interval-fields .time-parts-input input {
|
||||
min-height: 36px;
|
||||
font-size: var(--font-size-xs);
|
||||
}
|
||||
|
||||
.timer-interval-fields .time-parts-input span {
|
||||
font-size: var(--font-size-xs);
|
||||
}
|
||||
|
||||
.timer-form-error {
|
||||
display: inline-flex;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
padding: 7px 9px;
|
||||
border: 1px solid rgba(251, 113, 133, 0.26);
|
||||
border-radius: var(--radius-sm);
|
||||
background: rgba(80, 25, 42, 0.28);
|
||||
color: var(--color-danger);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.timer-form-error .ui-icon {
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.timer-form-error span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.timer-control-panel > span,
|
||||
.timer-control-panel label span {
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.timer-control-panel strong {
|
||||
color: var(--color-text-primary);
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
font-weight: 950;
|
||||
line-height: 0.95;
|
||||
}
|
||||
|
||||
.timer-value {
|
||||
display: inline-flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
gap: 0.16em;
|
||||
font-variant-numeric: tabular-nums;
|
||||
letter-spacing: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.timer-value > span {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.timer-control-panel .timer-value.is-compact {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.timer-value small {
|
||||
color: var(--color-text-secondary);
|
||||
font-size: inherit;
|
||||
font-weight: 900;
|
||||
line-height: 1;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.timer-value.is-compact small {
|
||||
display: inline-block;
|
||||
font-size: 0.5em;
|
||||
transform: translateY(-0.08em);
|
||||
}
|
||||
|
||||
.timer-value.is-compact {
|
||||
font-size: clamp(1.45rem, 2.25vw, 2rem);
|
||||
}
|
||||
|
||||
.timer-control-panel p,
|
||||
.timer-results-card p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.timer-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.timer-action-button,
|
||||
.timer-actions .danger {
|
||||
display: inline-flex;
|
||||
width: 40px;
|
||||
min-width: 40px;
|
||||
min-height: 40px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.timer-list-item.is-expired {
|
||||
opacity: 0.78;
|
||||
}
|
||||
|
||||
.timer-entry-meta {
|
||||
display: flex;
|
||||
grid-column: 1 / -2;
|
||||
flex-wrap: nowrap;
|
||||
min-width: 0;
|
||||
gap: 4px 8px;
|
||||
margin: 0;
|
||||
padding: 1px 10px 0;
|
||||
opacity: 0.68;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.timer-entry-summary .timer-value,
|
||||
.timer-entry-value .timer-value {
|
||||
color: var(--color-text-primary);
|
||||
font-size: var(--font-size-md);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.timer-entry-summary {
|
||||
min-width: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.timer-entry-line {
|
||||
display: grid;
|
||||
grid-template-columns: max-content minmax(0, 1fr);
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
gap: var(--space-2);
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.timer-entry.has-inline-reset .timer-entry-line {
|
||||
grid-template-columns: max-content minmax(0, 1fr) auto;
|
||||
}
|
||||
|
||||
.timer-entry.has-inline-controls .timer-entry-line {
|
||||
grid-template-columns: max-content minmax(0, 1fr) auto;
|
||||
}
|
||||
|
||||
.timer-entry.has-single-action {
|
||||
grid-template-columns: minmax(0, 1fr) 34px;
|
||||
}
|
||||
|
||||
.timer-entry.has-drag-handle {
|
||||
grid-template-columns: 30px minmax(0, 1fr) 34px;
|
||||
}
|
||||
|
||||
.tool-split-entry-list li.is-editing > .timer-entry.has-single-action {
|
||||
grid-template-columns: auto minmax(0, 1fr) 34px;
|
||||
}
|
||||
|
||||
.tool-split-entry-list li.is-editing > .timer-entry.has-drag-handle {
|
||||
grid-template-columns: 30px auto minmax(0, 1fr) 34px;
|
||||
}
|
||||
|
||||
.timer-drag-handle {
|
||||
width: 30px;
|
||||
min-width: 30px;
|
||||
min-height: 36px;
|
||||
padding: 0;
|
||||
color: var(--color-text-muted);
|
||||
cursor: grab;
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.timer-inline-reset {
|
||||
width: 26px;
|
||||
min-width: 26px;
|
||||
min-height: 26px;
|
||||
padding: 0;
|
||||
border-color: rgba(165, 180, 252, 0.08);
|
||||
border-radius: var(--radius-sm);
|
||||
background: rgba(5, 7, 17, 0.26);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.timer-inline-refresh-toggle {
|
||||
display: inline-grid;
|
||||
grid-template-columns: 13px 18px;
|
||||
width: 42px;
|
||||
min-width: 42px;
|
||||
min-height: 26px;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
padding: 0 4px;
|
||||
border-color: rgba(165, 180, 252, 0.08);
|
||||
border-radius: var(--radius-sm);
|
||||
background: rgba(5, 7, 17, 0.26);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.timer-inline-refresh-toggle i {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 18px;
|
||||
height: 12px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.18);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(7, 10, 24, 0.72);
|
||||
}
|
||||
|
||||
.timer-inline-refresh-toggle i::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 2px;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-text-muted);
|
||||
transform: translateY(-50%);
|
||||
transition:
|
||||
left var(--duration-fast) var(--ease-standard),
|
||||
background-color var(--duration-fast) var(--ease-standard),
|
||||
box-shadow var(--duration-fast) var(--ease-standard);
|
||||
}
|
||||
|
||||
.timer-inline-reset .ui-icon,
|
||||
.timer-inline-refresh-toggle .ui-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.timer-inline-controls {
|
||||
display: inline-flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.timer-entry-line > span:nth-child(2) {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: var(--color-text-secondary);
|
||||
font-weight: 600;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.timer-lap-label {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.timer-lap-label::placeholder {
|
||||
color: rgba(229, 235, 255, 0.72);
|
||||
}
|
||||
|
||||
.timer-entry-meta span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 700;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.timer-list-item em {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
flex: 0 0 auto;
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-xs);
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.timer-entry-meta b {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
font: inherit;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.timer-entry-meta b + b::before,
|
||||
.timer-entry-meta em::before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 1px;
|
||||
height: 10px;
|
||||
margin-right: 7px;
|
||||
background: rgba(165, 180, 252, 0.22);
|
||||
vertical-align: -1px;
|
||||
}
|
||||
|
||||
.timer-results-card {
|
||||
min-height: 260px;
|
||||
}
|
||||
|
||||
.timer-results-card.is-scrollable {
|
||||
max-height: 450px;
|
||||
overflow: hidden;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue