Portal/rsconcept/frontend/src/styling/reactflow.css

183 lines
3.2 KiB
CSS
Raw Normal View History

2025-04-17 14:37:47 +03:00
/**
* Module: react-flow base style overrides.
*/
@import 'reactflow/dist/style.css';
/* stylelint-disable selector-class-pattern */
.react-flow__handle {
2025-04-29 14:29:10 +03:00
pointer-events: auto;
2025-04-22 00:39:18 +03:00
z-index: var(--z-index-navigation);
2025-04-17 14:37:47 +03:00
cursor: default !important;
border-radius: 9999px;
border-color: var(--color-border);
background-color: var(--color-card);
.selected & {
border-color: var(--color-muted-foreground);
}
2025-04-29 14:29:10 +03:00
.space-mode & {
pointer-events: none !important;
}
2025-04-17 14:37:47 +03:00
}
2025-04-22 00:52:17 +03:00
.react-flow__resize-control.handle {
background-color: transparent;
border-color: transparent;
z-index: var(--z-index-navigation);
color: var(--color-muted-foreground);
width: 0;
height: 0;
&:hover {
color: var(--color-foreground);
}
2025-04-29 14:29:10 +03:00
.space-mode & {
pointer-events: none !important;
}
2025-04-22 00:52:17 +03:00
}
2025-04-17 14:37:47 +03:00
.react-flow__pane {
2025-04-29 14:29:10 +03:00
cursor: inherit;
.space-mode & {
cursor: grab;
&.dragging {
cursor: grabbing;
}
}
2025-04-17 14:37:47 +03:00
}
.react-flow__edge {
2025-04-29 14:29:10 +03:00
cursor: inherit;
2025-04-17 14:37:47 +03:00
}
.react-flow__attribution {
font-size: var(--font-size-sm);
font-family: var(--font-ui);
font-weight: 400;
margin: 1rem;
background-color: transparent;
color: var(--color-muted-foreground);
}
[class*='react-flow__node-'] {
2025-04-29 14:29:10 +03:00
.space-mode & {
box-shadow: none;
pointer-events: none !important;
}
2025-04-17 14:37:47 +03:00
&:hover:not(.selected) {
2025-04-29 14:29:10 +03:00
box-shadow: 0 0 0 2px var(--color-selected);
2025-04-17 14:37:47 +03:00
}
}
2025-04-22 00:52:17 +03:00
.react-flow__node-token {
font-size: 14px;
cursor: default;
border: 1px solid;
border-color: var(--color-border);
border-radius: 100%;
width: 40px;
height: 40px;
outline-offset: -2px;
outline-style: solid;
outline-color: transparent;
transition-property: outline-offset;
transition-timing-function: var(--transition-bezier);
transition-duration: var(--duration-select);
&.selected {
outline-offset: 4px;
outline-color: var(--color-graph-selected);
border-color: transparent;
}
}
.react-flow__node-step {
font-size: 14px;
cursor: default;
color: var(--color-foreground);
border: 1px solid;
border-color: var(--color-border);
border-radius: 100%;
width: 40px;
height: 40px;
outline-offset: -2px;
outline-style: solid;
outline-color: transparent;
transition-property: outline-offset;
transition-timing-function: var(--transition-bezier);
transition-duration: var(--duration-select);
&.selected {
outline-offset: 4px;
outline-color: var(--color-graph-selected);
border-color: transparent;
}
}
.react-flow__node-concept {
cursor: default;
font-size: 14px;
border: 1px solid;
border-color: var(--color-border);
border-radius: 100%;
width: 40px;
height: 40px;
outline-offset: -2px;
outline-style: solid;
outline-color: transparent;
transition-property: outline-offset;
transition-timing-function: var(--transition-bezier);
transition-duration: var(--duration-select);
&.selected {
outline-offset: 4px;
outline-color: var(--color-graph-selected);
border-color: transparent;
}
}
.react-flow__node-input,
.react-flow__node-synthesis {
border-radius: 5px;
border-width: 0;
padding: 0;
margin: 0;
background-color: transparent;
}
.react-flow__node-block {
border-radius: 5px;
border-width: 0;
padding: 0;
margin: 0;
background-color: transparent;
2025-04-24 13:15:57 +03:00
pointer-events: none !important;
2025-04-22 00:52:17 +03:00
}