270 lines
5.7 KiB
SCSS
270 lines
5.7 KiB
SCSS
// 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;
|
|
}
|