Split toolbox text import and goal tree styles
All checks were successful
Deploy Sokko G / deploy (push) Successful in 16s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 16s
This commit is contained in:
parent
7348969ac4
commit
bd6dd78e34
13 changed files with 2298 additions and 2203 deletions
File diff suppressed because it is too large
Load diff
401
website/src/styles/toolboxes/goal-tree/_editor.scss
Normal file
401
website/src/styles/toolboxes/goal-tree/_editor.scss
Normal file
|
|
@ -0,0 +1,401 @@
|
|||
// Rôle : stylise les panneaux d'édition et contrôles de l'arbre d'objectifs.
|
||||
.goal-tree-module {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(320px, 40fr) minmax(0, 60fr);
|
||||
column-gap: var(--space-6);
|
||||
row-gap: var(--space-4);
|
||||
align-items: start;
|
||||
overflow: hidden;
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.module[data-module-type="goalTree"] {
|
||||
contain: paint;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.module[data-module-type="goalTree"] > .module-content {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.module[data-module-type="goalTree"] > .module-content.is-scrollable {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.goal-tree-editor {
|
||||
align-content: start;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.goal-tree-editor label,
|
||||
.goal-tree-selected-form label {
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
min-width: 0;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: 0.82rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.goal-tree-editor input,
|
||||
.goal-tree-editor select {
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.goal-tree-field-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.goal-tree-selected-form > button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.goal-tree-selected-form {
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
padding-top: var(--space-2);
|
||||
border-top: 1px solid rgba(150, 165, 205, 0.14);
|
||||
}
|
||||
|
||||
.goal-tree-form-tabs {
|
||||
width: 100%;
|
||||
grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
|
||||
}
|
||||
|
||||
.goal-tree-form-tabs button {
|
||||
min-height: 34px;
|
||||
gap: 6px;
|
||||
padding: 0 8px;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.goal-tree-form-tabs .module-icon-svg {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
flex: 0 0 15px;
|
||||
}
|
||||
|
||||
.goal-tree-form-tabs .module-icon-settings {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
flex-basis: 16px;
|
||||
transform: scale(1.12);
|
||||
}
|
||||
|
||||
.goal-tree-form-tabs button > span:not(.module-icon-svg) {
|
||||
overflow: hidden;
|
||||
min-width: 0;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.goal-tree-form-panel {
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.goal-tree-form-section-title,
|
||||
.goal-tree-color-field > span,
|
||||
.goal-tree-icon-field > span {
|
||||
color: var(--color-text-secondary);
|
||||
font-size: 0.78rem;
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.goal-tree-content-editor {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.goal-tree-content-editor-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 30px;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.goal-tree-content-editor-row.is-checklist {
|
||||
grid-template-columns: minmax(0, 1fr) 30px;
|
||||
grid-template-areas:
|
||||
"total delete"
|
||||
"label delete";
|
||||
}
|
||||
|
||||
.goal-tree-content-label-input {
|
||||
grid-area: label;
|
||||
}
|
||||
|
||||
.goal-tree-content-formula-input,
|
||||
.goal-tree-content-editor-row.is-checklist .mix-tags-input-wrap {
|
||||
grid-area: total;
|
||||
}
|
||||
|
||||
.goal-tree-content-editor-row.is-checklist button {
|
||||
grid-area: delete;
|
||||
align-self: stretch;
|
||||
}
|
||||
|
||||
.goal-tree-content-editor-row > input[type="checkbox"] {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.goal-tree-content-editor-row button {
|
||||
min-width: 30px;
|
||||
min-height: 30px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.goal-tree-content-qty-stepper {
|
||||
display: grid;
|
||||
grid-template-columns: 30px minmax(42px, auto) 30px;
|
||||
gap: 4px;
|
||||
align-items: center;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: 0.78rem;
|
||||
font-weight: 800;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.goal-tree-content-qty-stepper > span {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.goal-tree-content-hint {
|
||||
margin: 0;
|
||||
color: var(--color-text-muted);
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.goal-tree-content-add-button {
|
||||
display: inline-flex;
|
||||
justify-content: center;
|
||||
gap: 7px;
|
||||
border-style: dashed;
|
||||
}
|
||||
|
||||
.tool-split-scroll-toggle.goal-tree-progress-mode-toggle {
|
||||
grid-template-columns: 18px minmax(0, 1fr) 34px;
|
||||
width: 100%;
|
||||
justify-items: start;
|
||||
}
|
||||
|
||||
.tool-split-scroll-toggle.goal-tree-progress-mode-toggle span:not(.ui-icon) {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.goal-tree-progress-mode-hint {
|
||||
margin: -2px 0 0;
|
||||
color: var(--color-text-muted);
|
||||
font-size: 0.76rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.goal-tree-prerequisite-field,
|
||||
.goal-tree-prerequisite-list {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.goal-tree-prerequisite-list {
|
||||
max-height: 150px;
|
||||
overflow-y: auto;
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
.goal-tree-prerequisite-item {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
min-height: 32px;
|
||||
padding: 6px 8px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-sm);
|
||||
background: rgba(7, 10, 24, 0.28);
|
||||
}
|
||||
|
||||
.goal-tree-prerequisite-item input[type="checkbox"] {
|
||||
display: grid;
|
||||
width: 14px;
|
||||
min-width: 14px;
|
||||
height: 14px;
|
||||
min-height: 14px;
|
||||
margin: 0;
|
||||
place-items: center;
|
||||
appearance: none;
|
||||
border: 1px solid rgba(165, 180, 252, 0.28);
|
||||
border-radius: 3px;
|
||||
background: rgba(7, 10, 24, 0.56);
|
||||
accent-color: var(--color-accent-gold);
|
||||
}
|
||||
|
||||
.goal-tree-prerequisite-item input[type="checkbox"]:checked {
|
||||
border-color: rgba(246, 196, 83, 0.66);
|
||||
background: rgba(246, 196, 83, 0.22);
|
||||
}
|
||||
|
||||
.goal-tree-prerequisite-item input[type="checkbox"]:checked::before {
|
||||
color: var(--color-text-primary);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 900;
|
||||
line-height: 1;
|
||||
content: "✓";
|
||||
}
|
||||
|
||||
.goal-tree-prerequisite-item input[type="checkbox"]:disabled {
|
||||
opacity: 0.72;
|
||||
}
|
||||
|
||||
.goal-tree-prerequisite-item.is-primary {
|
||||
border-color: rgba(246, 196, 83, 0.22);
|
||||
background: rgba(246, 196, 83, 0.08);
|
||||
}
|
||||
|
||||
.goal-tree-prerequisite-item span {
|
||||
overflow: hidden;
|
||||
min-width: 0;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: 0.78rem;
|
||||
font-weight: 800;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.goal-tree-color-field,
|
||||
.goal-tree-icon-field {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.goal-tree-icon-picker {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.goal-tree-icon-picker-button {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
grid-template-columns: auto minmax(0, 1fr) auto;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
justify-content: start;
|
||||
min-height: 42px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.goal-tree-icon-picker-button > span:not(.goal-tree-icon-preview) {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.goal-tree-icon-preview {
|
||||
display: grid;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
place-items: center;
|
||||
border: 1px solid rgba(246, 196, 83, 0.24);
|
||||
border-radius: var(--radius-sm);
|
||||
background: rgba(246, 196, 83, 0.08);
|
||||
color: var(--color-accent-gold);
|
||||
}
|
||||
|
||||
.goal-tree-icon-picker-menu {
|
||||
position: absolute;
|
||||
z-index: 12;
|
||||
top: calc(100% + 6px);
|
||||
left: 0;
|
||||
display: grid;
|
||||
width: min(260px, 72vw);
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
gap: 6px;
|
||||
padding: 8px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.14);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(7, 10, 24, 0.98);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.goal-tree-icon-picker-menu button {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
min-height: 38px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.goal-tree-icon-picker-menu button.active {
|
||||
border-color: rgba(246, 196, 83, 0.62);
|
||||
background: rgba(246, 196, 83, 0.1);
|
||||
color: var(--color-accent-gold);
|
||||
}
|
||||
|
||||
.goal-tree-color-swatches {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.goal-tree-color-swatch {
|
||||
width: 28px;
|
||||
min-width: 28px;
|
||||
min-height: 28px;
|
||||
padding: 0;
|
||||
border-color: rgba(150, 165, 205, 0.18);
|
||||
border-radius: var(--radius-sm);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%),
|
||||
var(--goal-tree-swatch-color);
|
||||
}
|
||||
|
||||
.goal-tree-color-swatch.active {
|
||||
border-color: rgba(246, 196, 83, 0.76);
|
||||
box-shadow: 0 0 0 2px rgba(246, 196, 83, 0.15);
|
||||
}
|
||||
|
||||
.goal-tree-form-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
|
||||
.goal-tree-form-actions button {
|
||||
display: inline-flex;
|
||||
min-height: 36px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
padding: 0 12px;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 800;
|
||||
line-height: 1.2;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.goal-tree-form-actions button:not(.danger) {
|
||||
flex: 0 0 auto;
|
||||
border-color: rgba(165, 180, 252, 0.14);
|
||||
background: rgba(7, 10, 24, 0.28);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.goal-tree-form-actions button.danger {
|
||||
flex: 1 1 150px;
|
||||
}
|
||||
|
||||
.goal-tree-form-actions .ui-icon {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
523
website/src/styles/toolboxes/goal-tree/_nodes.scss
Normal file
523
website/src/styles/toolboxes/goal-tree/_nodes.scss
Normal file
|
|
@ -0,0 +1,523 @@
|
|||
// Rôle : stylise les cartes, contenus et états de drag de l'arbre d'objectifs.
|
||||
.goal-tree-node {
|
||||
position: relative;
|
||||
display: flex;
|
||||
--goal-tree-card-color: var(--color-accent-gold);
|
||||
min-width: 104px;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.goal-tree-canvas.is-horizontal .goal-tree-node {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.goal-tree-node.is-text {
|
||||
--goal-tree-card-color: var(--color-accent-cyan);
|
||||
}
|
||||
|
||||
.goal-tree-node.is-checklist {
|
||||
--goal-tree-card-color: #34d399;
|
||||
}
|
||||
|
||||
.goal-tree-node-card {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: grid;
|
||||
width: 104px;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
grid-template-rows: minmax(0, 1fr);
|
||||
grid-template-areas:
|
||||
"main";
|
||||
gap: 6px;
|
||||
align-items: stretch;
|
||||
align-content: stretch;
|
||||
min-width: 0;
|
||||
min-height: 104px;
|
||||
padding: 7px;
|
||||
border: 1px solid color-mix(in srgb, var(--goal-tree-card-color) 38%, rgba(150, 165, 205, 0.16));
|
||||
border-radius: var(--radius-lg);
|
||||
background:
|
||||
linear-gradient(135deg, color-mix(in srgb, var(--goal-tree-card-color) 10%, transparent), transparent 44%),
|
||||
linear-gradient(160deg, rgba(139, 92, 246, 0.12), rgba(16, 20, 38, 0.72));
|
||||
cursor: pointer;
|
||||
box-shadow:
|
||||
0 12px 22px rgba(0, 0, 0, 0.18),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
||||
transition:
|
||||
border-color var(--duration-fast) var(--ease-standard),
|
||||
background var(--duration-fast) var(--ease-standard),
|
||||
box-shadow var(--duration-fast) var(--ease-standard);
|
||||
}
|
||||
|
||||
.goal-tree-node-card.has-actions {
|
||||
grid-template-rows: minmax(0, 1fr) 22px;
|
||||
grid-template-areas:
|
||||
"main"
|
||||
"actions";
|
||||
}
|
||||
|
||||
.goal-tree-node-hover-actions {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
right: 6px;
|
||||
bottom: 7px;
|
||||
left: 6px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 4px;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity var(--duration-fast) var(--ease-standard);
|
||||
}
|
||||
|
||||
.goal-tree-node-card:hover .goal-tree-node-hover-actions,
|
||||
.goal-tree-node-card:focus-within .goal-tree-node-hover-actions {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.goal-tree-node-hover-actions button {
|
||||
width: 24px;
|
||||
min-width: 24px;
|
||||
min-height: 24px;
|
||||
padding: 0;
|
||||
border-color: rgba(165, 180, 252, 0.14);
|
||||
background: rgba(7, 10, 24, 0.78);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.goal-tree-node-card:hover .goal-tree-node-hover-actions button,
|
||||
.goal-tree-node-card:focus-within .goal-tree-node-hover-actions button {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.goal-tree-node-hover-actions .ui-icon {
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
}
|
||||
|
||||
.goal-tree-node.is-text,
|
||||
.goal-tree-node.is-checklist {
|
||||
min-width: 184px;
|
||||
}
|
||||
|
||||
.goal-tree-node.is-text > .goal-tree-node-card,
|
||||
.goal-tree-node.is-checklist > .goal-tree-node-card {
|
||||
width: 184px;
|
||||
}
|
||||
|
||||
.goal-tree-node-card.is-viewing {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.goal-tree-node.is-selected > .goal-tree-node-card {
|
||||
border-color: color-mix(in srgb, var(--goal-tree-card-color) 72%, rgba(246, 196, 83, 0.24));
|
||||
box-shadow:
|
||||
0 0 0 1px color-mix(in srgb, var(--goal-tree-card-color) 22%, transparent),
|
||||
0 12px 22px rgba(0, 0, 0, 0.18);
|
||||
}
|
||||
|
||||
.goal-tree-node.is-selected > .goal-tree-node-card.is-editing {
|
||||
border-color: color-mix(in srgb, var(--goal-tree-card-color) 86%, var(--color-accent-gold));
|
||||
background:
|
||||
linear-gradient(135deg, color-mix(in srgb, var(--goal-tree-card-color) 20%, transparent), transparent 48%),
|
||||
linear-gradient(160deg, rgba(139, 92, 246, 0.18), rgba(16, 20, 38, 0.82));
|
||||
box-shadow:
|
||||
0 0 0 2px color-mix(in srgb, var(--goal-tree-card-color) 36%, transparent),
|
||||
0 0 22px color-mix(in srgb, var(--goal-tree-card-color) 18%, transparent),
|
||||
0 16px 28px rgba(0, 0, 0, 0.22);
|
||||
}
|
||||
|
||||
.goal-tree-node.is-complete > .goal-tree-node-card {
|
||||
border-color: color-mix(in srgb, var(--goal-tree-card-color) 54%, rgba(34, 211, 238, 0.3));
|
||||
background:
|
||||
linear-gradient(135deg, color-mix(in srgb, var(--goal-tree-card-color) 12%, transparent), transparent 44%),
|
||||
linear-gradient(160deg, rgba(139, 92, 246, 0.1), rgba(16, 20, 38, 0.72));
|
||||
}
|
||||
|
||||
.goal-tree-node-card:hover,
|
||||
.goal-tree-node-card:focus-within {
|
||||
border-color: color-mix(in srgb, var(--goal-tree-card-color) 68%, rgba(246, 196, 83, 0.24));
|
||||
background:
|
||||
linear-gradient(135deg, color-mix(in srgb, var(--goal-tree-card-color) 16%, transparent), transparent 48%),
|
||||
linear-gradient(160deg, rgba(139, 92, 246, 0.14), rgba(16, 20, 38, 0.78));
|
||||
box-shadow:
|
||||
0 0 0 1px color-mix(in srgb, var(--goal-tree-card-color) 16%, transparent),
|
||||
0 14px 26px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.goal-tree-node-main {
|
||||
grid-area: main;
|
||||
display: grid;
|
||||
align-content: start;
|
||||
justify-items: stretch;
|
||||
gap: 5px;
|
||||
min-width: 0;
|
||||
min-height: 46px;
|
||||
padding: 5px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--color-text-primary);
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.goal-tree-node.is-step > .goal-tree-node-card > .goal-tree-node-main {
|
||||
justify-items: center;
|
||||
min-height: 58px;
|
||||
}
|
||||
|
||||
.goal-tree-node-main:hover,
|
||||
.goal-tree-node-main:focus {
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.goal-tree-node-heading {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.goal-tree-node-icon {
|
||||
display: grid;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
place-items: center;
|
||||
border: 1px solid color-mix(in srgb, var(--goal-tree-node-color, var(--color-accent-gold)) 45%, transparent);
|
||||
border-radius: var(--radius-sm);
|
||||
background: color-mix(in srgb, var(--goal-tree-node-color, var(--color-accent-gold)) 14%, transparent);
|
||||
color: var(--goal-tree-node-color, var(--color-accent-gold));
|
||||
}
|
||||
|
||||
.goal-tree-node-icon .ui-icon {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
|
||||
.goal-tree-node.is-step > .goal-tree-node-card > .goal-tree-node-main > .goal-tree-node-icon {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
}
|
||||
|
||||
.goal-tree-node.is-step > .goal-tree-node-card > .goal-tree-node-main > .goal-tree-node-icon .ui-icon {
|
||||
width: 27px;
|
||||
height: 27px;
|
||||
}
|
||||
|
||||
.goal-tree-node-title {
|
||||
overflow: hidden;
|
||||
min-width: 0;
|
||||
color: var(--color-text-primary);
|
||||
font-size: 0.78rem;
|
||||
font-weight: 900;
|
||||
text-align: left;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.goal-tree-node-content-preview {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
min-height: 0;
|
||||
gap: 3px;
|
||||
justify-items: stretch;
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.goal-tree-node-content-preview:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.goal-tree-node-content-row {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
gap: 4px;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 800;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.goal-tree-node.is-checklist .goal-tree-node-content-row {
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.goal-tree-node.is-text .goal-tree-node-content-row {
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.goal-tree-node.is-text .goal-tree-node-content-row::before {
|
||||
content: "";
|
||||
width: 3px;
|
||||
height: 3px;
|
||||
border-radius: 50%;
|
||||
background: currentColor;
|
||||
}
|
||||
|
||||
.goal-tree-node-content-row strong {
|
||||
color: var(--color-accent-gold);
|
||||
font-size: 0.72rem;
|
||||
}
|
||||
|
||||
.goal-tree-node-content-label {
|
||||
overflow: hidden;
|
||||
min-width: 0;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.goal-tree-node-content-add-button {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
min-height: 20px;
|
||||
padding: 0;
|
||||
place-items: center;
|
||||
border-style: dashed;
|
||||
border-color: color-mix(in srgb, var(--goal-tree-card-color, var(--color-accent-gold)) 56%, transparent);
|
||||
border-radius: var(--radius-sm);
|
||||
background: rgba(7, 10, 24, 0.2);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.goal-tree-node-content-add-button:hover,
|
||||
.goal-tree-node-content-add-button:focus-visible {
|
||||
border-color: color-mix(in srgb, var(--goal-tree-card-color, var(--color-accent-gold)) 78%, transparent);
|
||||
background: color-mix(in srgb, var(--goal-tree-card-color, var(--color-accent-gold)) 14%, transparent);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.goal-tree-node-content-add-button .ui-icon {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
.goal-tree-node.is-checklist .goal-tree-node-content-label {
|
||||
padding-left: 2px;
|
||||
}
|
||||
|
||||
.goal-tree-node-check {
|
||||
display: grid;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin: 0;
|
||||
accent-color: var(--color-accent-cyan);
|
||||
}
|
||||
|
||||
.goal-tree-step-check {
|
||||
justify-self: center;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin: 0;
|
||||
accent-color: var(--color-accent-gold);
|
||||
}
|
||||
|
||||
.goal-tree-step-qty-stepper {
|
||||
justify-self: center;
|
||||
grid-template-columns: 18px minmax(34px, auto) 18px;
|
||||
gap: 2px;
|
||||
font-size: 0.68rem;
|
||||
}
|
||||
|
||||
.goal-tree-step-qty-stepper button {
|
||||
display: grid;
|
||||
width: 18px;
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
min-height: 18px;
|
||||
padding: 0;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.goal-tree-step-qty-stepper .ui-icon {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.goal-tree-node-content-row .goal-tree-content-qty-stepper {
|
||||
justify-self: start;
|
||||
grid-template-columns: 16px minmax(30px, auto) 16px;
|
||||
gap: 2px;
|
||||
font-size: 0.64rem;
|
||||
}
|
||||
|
||||
.goal-tree-node-content-row .goal-tree-content-qty-stepper button {
|
||||
min-width: 16px;
|
||||
min-height: 16px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.goal-tree-node-content-row .goal-tree-content-qty-stepper .ui-icon {
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
}
|
||||
|
||||
.goal-tree-progress-track {
|
||||
grid-column: 1 / -1;
|
||||
justify-self: stretch;
|
||||
width: 100%;
|
||||
height: 5px;
|
||||
overflow: hidden;
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(150, 165, 205, 0.13);
|
||||
}
|
||||
|
||||
.goal-tree-progress-track span {
|
||||
display: block;
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
background: linear-gradient(90deg, var(--color-accent-gold), var(--color-accent-cyan));
|
||||
}
|
||||
|
||||
.goal-tree-node-actions {
|
||||
grid-area: actions;
|
||||
display: flex;
|
||||
min-height: 22px;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.goal-tree-node-actions button,
|
||||
.goal-tree-drag-handle {
|
||||
width: 22px;
|
||||
min-width: 22px;
|
||||
height: 22px;
|
||||
min-height: 22px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.goal-tree-node-actions .goal-tree-branch-toggle {
|
||||
width: 22px;
|
||||
min-width: 22px;
|
||||
height: 22px;
|
||||
min-height: 22px;
|
||||
}
|
||||
|
||||
.goal-tree-canvas.is-horizontal .goal-tree-branch-toggle .ui-icon-chevron-down,
|
||||
.goal-tree-canvas.is-horizontal .goal-tree-branch-toggle .ui-icon-chevron-up {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.goal-tree-drag-handle {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
top: 6px;
|
||||
left: 6px;
|
||||
border-color: rgba(165, 180, 252, 0.34);
|
||||
background: rgba(7, 10, 24, 0.82);
|
||||
color: var(--color-text-primary);
|
||||
cursor: grab;
|
||||
opacity: 1;
|
||||
box-shadow:
|
||||
0 0 0 1px rgba(7, 10, 24, 0.72),
|
||||
0 6px 12px rgba(0, 0, 0, 0.22);
|
||||
}
|
||||
|
||||
.goal-tree-drag-handle:hover {
|
||||
border-color: rgba(246, 196, 83, 0.42);
|
||||
background: rgba(7, 10, 24, 0.92);
|
||||
color: var(--color-text-primary);
|
||||
box-shadow:
|
||||
0 0 0 1px rgba(246, 196, 83, 0.12),
|
||||
0 8px 14px rgba(0, 0, 0, 0.26);
|
||||
}
|
||||
|
||||
.goal-tree-drag-handle .ui-icon {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
.goal-tree-node-tooltip {
|
||||
max-width: 220px;
|
||||
}
|
||||
|
||||
.goal-tree-node.is-dragging {
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.goal-tree-node.is-drop-target > .goal-tree-node-card {
|
||||
border-color: rgba(246, 196, 83, 0.48);
|
||||
}
|
||||
|
||||
.goal-tree-node.is-drop-target > .goal-tree-node-card::after {
|
||||
position: absolute;
|
||||
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;
|
||||
}
|
||||
|
||||
.goal-tree-node[data-reorder-orientation="horizontal"].is-drop-target > .goal-tree-node-card::after {
|
||||
top: 8px;
|
||||
bottom: 8px;
|
||||
left: -8px;
|
||||
width: 3px;
|
||||
}
|
||||
|
||||
.goal-tree-node[data-reorder-orientation="horizontal"].is-drop-target.drop-after > .goal-tree-node-card::after {
|
||||
right: -8px;
|
||||
left: auto;
|
||||
}
|
||||
|
||||
.goal-tree-node[data-reorder-orientation="vertical"].is-drop-target > .goal-tree-node-card::after {
|
||||
top: -8px;
|
||||
right: 8px;
|
||||
left: 8px;
|
||||
height: 3px;
|
||||
}
|
||||
|
||||
.goal-tree-node[data-reorder-orientation="vertical"].is-drop-target.drop-after > .goal-tree-node-card::after {
|
||||
top: auto;
|
||||
bottom: -8px;
|
||||
}
|
||||
|
||||
.goal-tree-empty {
|
||||
padding: var(--space-4);
|
||||
color: var(--color-text-secondary);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.goal-tree-module .text-import-actions {
|
||||
padding-top: var(--space-2);
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.goal-tree-module {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.goal-tree-view.tool-split-results {
|
||||
min-height: 220px;
|
||||
}
|
||||
|
||||
.goal-tree-list {
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.goal-tree-node {
|
||||
min-width: 96px;
|
||||
}
|
||||
|
||||
.goal-tree-node-card {
|
||||
width: 96px;
|
||||
}
|
||||
|
||||
.goal-tree-node.is-text,
|
||||
.goal-tree-node.is-checklist {
|
||||
min-width: 160px;
|
||||
}
|
||||
|
||||
.goal-tree-node.is-text > .goal-tree-node-card,
|
||||
.goal-tree-node.is-checklist > .goal-tree-node-card {
|
||||
width: 160px;
|
||||
}
|
||||
}
|
||||
270
website/src/styles/toolboxes/goal-tree/_view.scss
Normal file
270
website/src/styles/toolboxes/goal-tree/_view.scss
Normal file
|
|
@ -0,0 +1,270 @@
|
|||
// Rôle : stylise la zone de rendu, le canevas et les connecteurs de l'arbre d'objectifs.
|
||||
.goal-tree-view.tool-split-results {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
min-height: 260px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.goal-tree-scroll-area {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, max-content);
|
||||
grid-template-rows: auto minmax(0, max-content);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: inherit;
|
||||
align-content: start;
|
||||
justify-content: start;
|
||||
overflow-x: auto;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior-x: contain;
|
||||
overscroll-behavior-y: auto;
|
||||
padding: var(--space-4);
|
||||
background:
|
||||
linear-gradient(rgba(150, 165, 205, 0.035) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(150, 165, 205, 0.035) 1px, transparent 1px),
|
||||
radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.08), transparent 34%),
|
||||
rgba(7, 10, 24, 0.2);
|
||||
background-size:
|
||||
28px 28px,
|
||||
28px 28px,
|
||||
auto,
|
||||
auto;
|
||||
}
|
||||
|
||||
.goal-tree-view.is-horizontal.is-editing .goal-tree-scroll-area {
|
||||
grid-template-columns: 44px minmax(0, max-content);
|
||||
grid-template-rows: minmax(260px, max-content);
|
||||
column-gap: var(--space-3);
|
||||
}
|
||||
|
||||
.goal-tree-view.is-horizontal.is-editing .goal-tree-view-controls {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
.goal-tree-view.is-horizontal.is-editing .goal-tree-canvas-frame,
|
||||
.goal-tree-view.is-horizontal.is-editing .goal-tree-empty {
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
.goal-tree-view.is-vertical.is-editing .goal-tree-scroll-area {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.goal-tree-view.is-vertical.is-editing .goal-tree-view-controls {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
box-sizing: border-box;
|
||||
padding-right: 84px;
|
||||
}
|
||||
|
||||
.goal-tree-view.is-vertical.is-editing .goal-tree-canvas-frame,
|
||||
.goal-tree-view.is-vertical.is-editing .goal-tree-empty {
|
||||
grid-column: 1;
|
||||
grid-row: 2;
|
||||
}
|
||||
|
||||
.goal-tree-view:not(.is-editing) .goal-tree-canvas-frame {
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.goal-tree-view-controls {
|
||||
position: relative;
|
||||
z-index: 5;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-2);
|
||||
min-width: 0;
|
||||
margin-bottom: var(--space-2);
|
||||
}
|
||||
|
||||
.goal-tree-view:not(.is-editing) .goal-tree-view-controls {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.goal-tree-view.is-horizontal .goal-tree-view-controls {
|
||||
flex-direction: column;
|
||||
align-self: stretch;
|
||||
min-height: 100%;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.goal-tree-view.is-vertical .goal-tree-view-controls {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.goal-tree-orientation-switch {
|
||||
position: absolute;
|
||||
z-index: 7;
|
||||
top: var(--space-4);
|
||||
right: var(--space-4);
|
||||
display: inline-grid;
|
||||
grid-template-columns: 16px 30px;
|
||||
width: fit-content;
|
||||
min-width: 70px;
|
||||
min-height: 40px;
|
||||
align-items: center;
|
||||
flex: 0 0 auto;
|
||||
gap: 7px;
|
||||
padding: 0 7px 0 10px;
|
||||
border-radius: var(--radius-pill);
|
||||
box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
|
||||
}
|
||||
|
||||
.goal-tree-orientation-switch .ui-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.goal-tree-module.is-view-only {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.goal-tree-canvas-frame {
|
||||
position: relative;
|
||||
width: var(--goal-tree-canvas-width, 100%);
|
||||
min-width: min(100%, var(--goal-tree-canvas-width, 100%));
|
||||
height: var(--goal-tree-canvas-height, 1px);
|
||||
}
|
||||
|
||||
.goal-tree-canvas {
|
||||
position: relative;
|
||||
display: grid;
|
||||
width: max-content;
|
||||
min-width: 100%;
|
||||
max-width: none;
|
||||
align-items: start;
|
||||
justify-items: center;
|
||||
isolation: isolate;
|
||||
transform: scale(var(--goal-tree-view-scale, 1));
|
||||
transform-origin: top left;
|
||||
}
|
||||
|
||||
.goal-tree-canvas-frame > .goal-tree-canvas {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.goal-tree-canvas.is-horizontal {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-items: start;
|
||||
}
|
||||
|
||||
.diagram-connectors {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: visible;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.goal-tree-connectors {
|
||||
z-index: 1;
|
||||
color: rgba(246, 196, 83, 0.58);
|
||||
}
|
||||
|
||||
.goal-tree-connectors path {
|
||||
fill: none;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
stroke-width: 1.35;
|
||||
vector-effect: non-scaling-stroke;
|
||||
}
|
||||
|
||||
.goal-tree-list {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
min-width: max-content;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
gap: 24px;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.goal-tree-list.is-root-list {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.goal-tree-list.is-child-list {
|
||||
margin-top: 28px;
|
||||
padding-top: 28px;
|
||||
}
|
||||
|
||||
.goal-tree-canvas.is-horizontal .goal-tree-list {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.goal-tree-canvas.is-horizontal .goal-tree-list.is-root-list {
|
||||
padding: 8px 48px 8px 8px;
|
||||
}
|
||||
|
||||
.goal-tree-add-root-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 7px;
|
||||
padding: 0;
|
||||
border-style: dashed;
|
||||
background: rgba(7, 10, 24, 0.72);
|
||||
color: var(--color-text-secondary);
|
||||
font-size: 0.84rem;
|
||||
font-weight: 900;
|
||||
white-space: nowrap;
|
||||
box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
|
||||
}
|
||||
|
||||
.goal-tree-view.is-horizontal .goal-tree-add-root-button {
|
||||
width: 44px;
|
||||
min-width: 44px;
|
||||
min-height: 360px;
|
||||
flex: 1 1 360px;
|
||||
flex-direction: row-reverse;
|
||||
padding: 16px 0;
|
||||
text-align: center;
|
||||
writing-mode: vertical-rl;
|
||||
}
|
||||
|
||||
.goal-tree-view.is-horizontal .goal-tree-add-root-button span {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.goal-tree-view.is-horizontal .goal-tree-add-root-button .ui-icon {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.goal-tree-view.is-vertical .goal-tree-add-root-button {
|
||||
width: min(520px, 100%);
|
||||
max-width: 100%;
|
||||
min-width: min(390px, 100%);
|
||||
min-height: 40px;
|
||||
flex: 0 1 520px;
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
.goal-tree-add-root-button .ui-icon {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
|
||||
.goal-tree-canvas.is-horizontal .goal-tree-list.is-child-list {
|
||||
margin-top: 0;
|
||||
margin-left: 34px;
|
||||
padding-top: 0;
|
||||
padding-left: 34px;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue