2015-04-09 15:46:29 +02:00
|
|
|
/**
|
2017-01-11 16:24:33 +01:00
|
|
|
* Copyright JS Foundation and other contributors, http://js.foundation
|
2015-04-09 15:46:29 +02:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
**/
|
|
|
|
|
2019-05-08 14:26:48 +02:00
|
|
|
.nr-ui-view-lasso {
|
2015-09-23 23:49:48 +02:00
|
|
|
stroke-width: 1px;
|
2019-05-08 14:26:48 +02:00
|
|
|
stroke: $view-lasso-stroke;
|
|
|
|
fill: $view-lasso-fill;
|
2015-04-09 15:46:29 +02:00
|
|
|
stroke-dasharray: 10 5;
|
|
|
|
}
|
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
.node_label_italic, // deprecated: use red-ui-flow-node-label-italic
|
|
|
|
.red-ui-flow-node-label-italic {
|
2015-04-09 15:46:29 +02:00
|
|
|
font-style: italic;
|
|
|
|
}
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-node-label-white {
|
|
|
|
fill: $view-background !important;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-node-label {
|
2015-04-09 15:46:29 +02:00
|
|
|
stroke-width: 0;
|
2019-05-15 14:54:29 +02:00
|
|
|
fill: $node-label-color;
|
2015-04-09 15:46:29 +02:00
|
|
|
font-size: 14px;
|
|
|
|
pointer-events: none;
|
|
|
|
-webkit-touch-callout: none;
|
|
|
|
@include disable-selection;
|
2020-06-14 00:02:10 +02:00
|
|
|
|
|
|
|
.red-ui-flow-node-label-text {
|
2020-06-18 11:11:22 +02:00
|
|
|
dominant-baseline: middle;
|
2020-06-14 00:02:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.red-ui-flow-node-label-right .red-ui-flow-node-label-text {
|
|
|
|
text-anchor: end;
|
|
|
|
}
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-port-label {
|
2015-04-09 15:46:29 +02:00
|
|
|
stroke-width: 0;
|
2019-05-15 14:54:29 +02:00
|
|
|
fill: $secondary-text-color;
|
2015-04-09 15:46:29 +02:00
|
|
|
font-size: 16px;
|
2020-06-18 11:11:22 +02:00
|
|
|
dominant-baseline: middle;
|
2015-04-09 15:46:29 +02:00
|
|
|
text-anchor: middle;
|
|
|
|
pointer-events: none;
|
|
|
|
-webkit-touch-callout: none;
|
|
|
|
@include disable-selection;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-node {
|
|
|
|
stroke: $node-border;
|
2015-04-09 15:46:29 +02:00
|
|
|
cursor: move;
|
2015-07-12 00:43:45 +02:00
|
|
|
stroke-width: 1;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-05-23 17:39:06 +02:00
|
|
|
.red-ui-workspace-select-mode {
|
|
|
|
g.red-ui-flow-node.red-ui-flow-node-hovered * {
|
|
|
|
cursor: pointer !important
|
|
|
|
}
|
|
|
|
g.red-ui-flow-node, g.red-ui-flow-link {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
g.red-ui-flow-node.red-ui-flow-node-hovered:not(.red-ui-flow-node-selected) {
|
|
|
|
opacity: 0.9;
|
|
|
|
.red-ui-flow-node {
|
|
|
|
stroke-width: 2;
|
|
|
|
stroke: $node-selected-color !important;
|
|
|
|
stroke-dasharray: 10, 4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-23 15:51:18 +01:00
|
|
|
.red-ui-flow-group {
|
|
|
|
&.red-ui-flow-group-hovered {
|
|
|
|
.red-ui-flow-group-outline-select {
|
|
|
|
stroke-opacity: 0.8 !important;
|
|
|
|
stroke-dasharray: 10 4 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.red-ui-flow-group-active-hovered:not(.red-ui-flow-group-hovered) {
|
|
|
|
.red-ui-flow-group-outline-select {
|
|
|
|
stroke: $link-link-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-03-26 16:25:08 +01:00
|
|
|
|
2020-03-23 15:51:18 +01:00
|
|
|
.red-ui-flow-group-outline {
|
|
|
|
fill: none;
|
|
|
|
stroke: $node-selected-color;
|
|
|
|
stroke-opacity: 0;
|
|
|
|
stroke-width: 12;
|
|
|
|
pointer-events: stroke;
|
|
|
|
}
|
|
|
|
.red-ui-flow-group-outline-select {
|
|
|
|
fill: none;
|
|
|
|
stroke: $node-selected-color;
|
|
|
|
pointer-events: stroke;
|
|
|
|
stroke-opacity: 0;
|
|
|
|
stroke-width: 3;
|
2020-07-07 12:01:05 +02:00
|
|
|
|
|
|
|
&.red-ui-flow-group-outline-select-background {
|
|
|
|
stroke: $view-background;
|
|
|
|
stroke-width: 6;
|
|
|
|
}
|
2020-03-23 15:51:18 +01:00
|
|
|
}
|
|
|
|
.red-ui-flow-group-body {
|
|
|
|
pointer-events: none;
|
2020-03-26 16:25:08 +01:00
|
|
|
fill: $group-default-fill;
|
|
|
|
fill-opacity: $group-default-fill-opacity;
|
2020-03-23 15:51:18 +01:00
|
|
|
stroke-width: 2;
|
2020-03-26 16:25:08 +01:00
|
|
|
stroke: $group-default-stroke;
|
|
|
|
stroke-opacity: $group-default-stroke-opacity;
|
2020-03-23 15:51:18 +01:00
|
|
|
}
|
2020-03-23 22:30:09 +01:00
|
|
|
.red-ui-flow-group-label {
|
|
|
|
@include disable-selection;
|
2020-07-07 12:01:05 +02:00
|
|
|
fill: $group-default-label-color;
|
2020-03-23 22:30:09 +01:00
|
|
|
}
|
2020-03-23 15:51:18 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-node-unknown {
|
2015-04-09 15:46:29 +02:00
|
|
|
stroke-dasharray:10,4;
|
2019-05-15 14:54:29 +02:00
|
|
|
stroke: $node-border-unknown;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-node-placeholder {
|
2019-01-23 17:27:13 +01:00
|
|
|
stroke-dasharray:10,4;
|
2019-05-15 14:54:29 +02:00
|
|
|
stroke: $node-border-placeholder;
|
|
|
|
fill: $node-background-placeholder;
|
2019-01-23 17:27:13 +01:00
|
|
|
opacity: 0.5;
|
|
|
|
stroke-width: 2;
|
|
|
|
}
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-node-icon-group {
|
|
|
|
.fa-lg {
|
|
|
|
stroke: none;
|
|
|
|
fill: $node-icon-color;
|
|
|
|
text-anchor: middle;
|
|
|
|
font-family: FontAwesome;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.red-ui-flow-node-icon-shade {
|
|
|
|
stroke: none;
|
|
|
|
fill: $node-icon-background-color-fill;
|
|
|
|
fill-opacity: $node-icon-background-color-opacity;
|
|
|
|
}
|
|
|
|
.red-ui-flow-node-icon-shade-border {
|
|
|
|
stroke-opacity: $node-icon-border-color-opacity;
|
|
|
|
stroke: $node-icon-border-color;
|
|
|
|
stroke-width: 1;
|
|
|
|
}
|
2019-01-23 17:27:13 +01:00
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-node-button {
|
2015-04-09 15:46:29 +02:00
|
|
|
fill: inherit;
|
2020-06-22 15:37:52 +02:00
|
|
|
&.red-ui-flow-node-button-disabled {
|
|
|
|
opacity: 0.4;
|
|
|
|
.red-ui-flow-node-button-button {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.red-ui-flow-node-button-button {
|
|
|
|
cursor: pointer;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-node-button-background {
|
|
|
|
fill: $node-background-placeholder;
|
|
|
|
}
|
2019-05-08 14:26:48 +02:00
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-port {
|
|
|
|
stroke: $node-border;
|
2015-07-12 00:43:45 +02:00
|
|
|
stroke-width: 1;
|
2019-05-15 14:54:29 +02:00
|
|
|
fill: $node-port-background;
|
2015-04-09 15:46:29 +02:00
|
|
|
cursor: crosshair;
|
|
|
|
}
|
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-node-error {
|
|
|
|
fill: $node-status-error-background;
|
|
|
|
stroke: $node-status-error-border;
|
2019-05-08 20:05:30 +02:00
|
|
|
stroke-width:1px;
|
|
|
|
cursor: default;
|
|
|
|
stroke-linejoin: round;
|
|
|
|
stroke-linecap: round;
|
|
|
|
}
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-node-changed {
|
|
|
|
fill: $node-status-changed-background;
|
|
|
|
stroke: $node-status-changed-border;
|
2019-05-08 20:05:30 +02:00
|
|
|
cursor: default;
|
|
|
|
stroke-width:1px;
|
|
|
|
stroke-linejoin: round;
|
|
|
|
stroke-linecap: round;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
|
|
|
|
2019-05-23 17:39:06 +02:00
|
|
|
g.red-ui-flow-node-selected {
|
|
|
|
.red-ui-workspace-select-mode & {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
.red-ui-flow-node,.red-ui-flow-subflow-port {
|
|
|
|
stroke-width: 2;
|
|
|
|
stroke: $node-selected-color !important;
|
|
|
|
}
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-node-highlighted {
|
|
|
|
border-color: $node-selected-color !important;
|
2016-09-30 00:46:29 +02:00
|
|
|
border-style: dashed !important;
|
2019-05-15 14:54:29 +02:00
|
|
|
stroke: $node-selected-color;
|
2019-12-26 17:53:13 +01:00
|
|
|
stroke-width: 3;
|
|
|
|
stroke-dasharray: 8, 4;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-subflow .red-ui-flow-node {
|
2016-03-22 14:58:24 +01:00
|
|
|
}
|
2019-06-17 23:46:34 +02:00
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-workspace-disabled {
|
2019-06-17 23:46:34 +02:00
|
|
|
.red-ui-flow-node {
|
|
|
|
stroke-dasharray: 8, 3;
|
|
|
|
fill-opacity: 0.5;
|
|
|
|
}
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-link-line {
|
2019-06-17 23:46:34 +02:00
|
|
|
stroke-dasharray: 10,8 !important;
|
2018-11-08 18:04:36 +01:00
|
|
|
stroke-width: 2 !important;
|
2019-06-17 23:46:34 +02:00
|
|
|
stroke: $link-disabled-color;
|
2018-11-08 18:04:36 +01:00
|
|
|
}
|
2019-06-17 23:46:34 +02:00
|
|
|
.red-ui-flow-port {
|
|
|
|
fill-opacity: 1;
|
|
|
|
stroke-dasharray: none;
|
2019-06-14 23:12:47 +02:00
|
|
|
}
|
2020-05-12 14:53:20 +02:00
|
|
|
.red-ui-flow-group, .red-ui-flow-group-body {
|
|
|
|
stroke-dasharray: 8, 3;
|
|
|
|
}
|
2019-06-14 23:12:47 +02:00
|
|
|
}
|
|
|
|
.red-ui-flow-node-disabled {
|
|
|
|
&.red-ui-flow-node, .red-ui-flow-node {
|
|
|
|
stroke-dasharray: 8, 3;
|
2019-06-17 23:46:34 +02:00
|
|
|
fill-opacity: 0.5;
|
2019-06-14 23:12:47 +02:00
|
|
|
}
|
|
|
|
&.red-ui-flow-link-line {
|
2019-06-17 23:46:34 +02:00
|
|
|
stroke-dasharray: 10,8 !important;
|
2019-06-14 23:12:47 +02:00
|
|
|
stroke-width: 2 !important;
|
2019-06-17 23:46:34 +02:00
|
|
|
stroke: $link-disabled-color;
|
|
|
|
}
|
|
|
|
.red-ui-flow-port {
|
|
|
|
fill-opacity: 1;
|
|
|
|
stroke-dasharray: none;
|
2018-11-08 18:04:36 +01:00
|
|
|
}
|
|
|
|
}
|
2019-05-15 14:54:29 +02:00
|
|
|
@each $current-color in red green yellow blue grey {
|
|
|
|
.red-ui-flow-node-status-dot-#{$current-color} {
|
|
|
|
fill: map-get($node-status-colors,$current-color);
|
|
|
|
stroke: map-get($node-status-colors,$current-color);
|
|
|
|
}
|
|
|
|
.red-ui-flow-node-status-ring-#{$current-color} {
|
|
|
|
fill: $view-background;
|
|
|
|
stroke: map-get($node-status-colors,$current-color);
|
|
|
|
}
|
2016-11-07 22:25:09 +01:00
|
|
|
}
|
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-node-status-label {
|
2015-09-23 23:49:48 +02:00
|
|
|
@include disable-selection;
|
|
|
|
stroke-width: 0;
|
2019-05-15 14:54:29 +02:00
|
|
|
fill: $secondary-text-color;
|
2015-09-23 23:49:48 +02:00
|
|
|
font-size:9pt;
|
|
|
|
text-anchor:start;
|
|
|
|
}
|
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-port-hovered {
|
2016-11-07 22:25:09 +01:00
|
|
|
stroke: $port-selected-color;
|
|
|
|
fill: $port-selected-color;
|
|
|
|
}
|
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-subflow-port {
|
|
|
|
fill: $node-background-placeholder;
|
|
|
|
stroke: $node-border;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-drag-line {
|
2018-12-18 11:57:53 +01:00
|
|
|
stroke: $node-selected-color !important;
|
2016-01-09 14:47:05 +01:00
|
|
|
stroke-width: 3;
|
2015-04-09 15:46:29 +02:00
|
|
|
fill: none;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-link-line {
|
2015-07-14 00:21:03 +02:00
|
|
|
stroke: $link-color;
|
2015-07-12 00:43:45 +02:00
|
|
|
stroke-width: 3;
|
2015-04-09 15:46:29 +02:00
|
|
|
fill: none;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-link-link {
|
2016-05-17 10:16:58 +02:00
|
|
|
stroke-width: 2;
|
|
|
|
stroke: $link-link-color;
|
|
|
|
fill: none;
|
2019-06-17 23:46:34 +02:00
|
|
|
stroke-dasharray: 25,4;
|
|
|
|
}
|
|
|
|
.red-ui-flow-link-off-flow {
|
|
|
|
stroke-width: 2;
|
2016-05-17 10:16:58 +02:00
|
|
|
}
|
2019-06-17 23:46:34 +02:00
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-link-port {
|
|
|
|
fill: $node-link-port-background;
|
2016-05-17 10:16:58 +02:00
|
|
|
stroke: $link-link-color;
|
|
|
|
stroke-width: 1;
|
|
|
|
}
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-link-group-active .red-ui-flow-link-port {
|
2016-05-17 10:16:58 +02:00
|
|
|
stroke: $link-link-active-color;
|
|
|
|
}
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-link-group:hover {
|
2016-05-17 10:16:58 +02:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
2015-04-09 15:46:29 +02:00
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-link-outline {
|
|
|
|
stroke: $view-background;
|
2020-03-09 16:10:54 +01:00
|
|
|
stroke-opacity: 0.4;
|
2018-06-25 14:18:00 +02:00
|
|
|
stroke-width: 5;
|
2015-04-09 15:46:29 +02:00
|
|
|
cursor: crosshair;
|
|
|
|
fill: none;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-link-background {
|
|
|
|
stroke: $view-background;
|
2015-04-09 15:46:29 +02:00
|
|
|
opacity: 0;
|
2015-07-12 00:43:45 +02:00
|
|
|
stroke-width: 20;
|
2015-04-09 15:46:29 +02:00
|
|
|
cursor: crosshair;
|
|
|
|
fill: none;
|
|
|
|
}
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-link-splice > .red-ui-flow-link-line {
|
2016-01-08 23:34:10 +01:00
|
|
|
stroke-dasharray: 15,8;
|
|
|
|
}
|
2015-04-09 15:46:29 +02:00
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
g.red-ui-flow-link-selected path.red-ui-flow-link-line {
|
2015-07-13 12:26:29 +02:00
|
|
|
stroke: $node-selected-color;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-05-15 14:54:29 +02:00
|
|
|
g.red-ui-flow-link-unknown path.red-ui-flow-link-line {
|
2015-07-14 00:21:03 +02:00
|
|
|
stroke: $link-unknown-color;
|
2015-04-09 15:46:29 +02:00
|
|
|
stroke-width: 2;
|
|
|
|
stroke-dasharray: 10, 4;
|
|
|
|
}
|
2017-01-26 16:38:25 +01:00
|
|
|
|
2020-07-07 12:38:07 +02:00
|
|
|
// @keyframes *must* be on multiple lines so build-custom-theme can filter them out
|
|
|
|
@keyframes red-ui-flow-port-tooltip-fadeIn {
|
|
|
|
from { opacity:0; } to { opacity:1; }
|
|
|
|
}
|
2017-01-26 16:38:25 +01:00
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-port-tooltip {
|
2017-01-26 16:38:25 +01:00
|
|
|
opacity:0;
|
2019-05-15 14:54:29 +02:00
|
|
|
animation: 0.1s ease-in 0s 1 normal forwards red-ui-flow-port-tooltip-fadeIn;
|
2017-01-26 16:38:25 +01:00
|
|
|
pointer-events: none;
|
2017-01-27 17:33:11 +01:00
|
|
|
|
2019-05-15 15:17:44 +02:00
|
|
|
path:first-child {
|
2018-10-03 16:40:05 +02:00
|
|
|
fill: $popover-background;
|
|
|
|
stroke: $popover-background;
|
2017-01-27 17:33:11 +01:00
|
|
|
stroke-width: 1;
|
|
|
|
}
|
|
|
|
}
|
2019-05-15 14:54:29 +02:00
|
|
|
.red-ui-flow-port-tooltip-label {
|
2017-01-27 17:33:11 +01:00
|
|
|
stroke-width: 0;
|
2018-10-03 16:40:05 +02:00
|
|
|
fill: $popover-color;
|
2019-05-09 20:22:40 +02:00
|
|
|
font-family: $primary-font;
|
2017-01-27 17:33:11 +01:00
|
|
|
font-size: 12px;
|
|
|
|
pointer-events: none;
|
|
|
|
-webkit-touch-callout: none;
|
2019-05-16 15:42:21 +02:00
|
|
|
white-space: pre;
|
2017-01-27 17:33:11 +01:00
|
|
|
@include disable-selection;
|
2017-01-26 16:38:25 +01:00
|
|
|
}
|