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-04-29 23:38:14 +02:00
|
|
|
#red-ui-palette{
|
2015-04-09 15:46:29 +02:00
|
|
|
position: absolute;
|
2015-07-12 00:43:45 +02:00
|
|
|
top: 0px;
|
2015-07-14 16:59:56 +02:00
|
|
|
bottom: 0px;
|
2015-07-12 00:43:45 +02:00
|
|
|
left:0px;
|
2019-05-15 14:54:29 +02:00
|
|
|
background: $primary-background;
|
2015-07-12 00:43:45 +02:00
|
|
|
width: 180px;
|
2015-04-09 15:46:29 +02:00
|
|
|
text-align: center;
|
|
|
|
@include disable-selection;
|
|
|
|
@include component-border;
|
2016-08-04 17:49:36 +02:00
|
|
|
transition: width 0.2s ease-in-out;
|
|
|
|
}
|
2015-07-12 00:43:45 +02:00
|
|
|
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-closed {
|
|
|
|
#red-ui-palette {
|
|
|
|
width: 8px;
|
|
|
|
.red-ui-component-footer {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-08-04 17:49:36 +02:00
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
#red-ui-palette-search { display: none; }
|
|
|
|
#red-ui-palette-container { display: none; }
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2016-08-04 17:49:36 +02:00
|
|
|
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-scroll {
|
2015-04-09 15:46:29 +02:00
|
|
|
position: absolute;
|
2015-07-12 00:43:45 +02:00
|
|
|
top: 35px;
|
2015-04-09 15:46:29 +02:00
|
|
|
right: 0;
|
2015-07-14 16:59:56 +02:00
|
|
|
bottom: 25px;
|
2015-04-13 01:11:32 +02:00
|
|
|
left:0;
|
2015-07-12 00:43:45 +02:00
|
|
|
padding: 0;
|
2015-04-09 15:46:29 +02:00
|
|
|
overflow-y: auto;
|
|
|
|
box-sizing:border-box;
|
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
#red-ui-palette> .red-ui-palette-spinner {
|
2016-08-13 00:00:28 +02:00
|
|
|
padding-top: 80px;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-search {
|
2016-08-13 00:00:28 +02:00
|
|
|
position: relative;
|
2015-04-09 15:46:29 +02:00
|
|
|
overflow: hidden;
|
2019-05-15 14:54:29 +02:00
|
|
|
background: $secondary-background;
|
2015-04-09 15:46:29 +02:00
|
|
|
text-align: center;
|
|
|
|
height: 35px;
|
|
|
|
padding: 3px;
|
2015-07-13 12:26:29 +02:00
|
|
|
border-bottom: 1px solid $primary-border-color;
|
2015-04-09 15:46:29 +02:00
|
|
|
box-sizing:border-box;
|
|
|
|
}
|
|
|
|
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-category {
|
2019-05-15 14:54:29 +02:00
|
|
|
border-bottom: 1px solid $secondary-border-color;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-content {
|
2019-05-15 14:54:29 +02:00
|
|
|
background: $palette-content-background;
|
2015-07-12 00:43:45 +02:00
|
|
|
padding: 3px;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
|
|
|
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-header {
|
2016-01-13 11:30:24 +01:00
|
|
|
position: relative;
|
2015-07-14 00:21:03 +02:00
|
|
|
background: $palette-header-background;
|
2019-05-08 20:06:08 +02:00
|
|
|
color: $palette-header-color;
|
2015-04-09 15:46:29 +02:00
|
|
|
cursor: pointer;
|
|
|
|
text-align: left;
|
2015-07-12 00:43:45 +02:00
|
|
|
padding: 9px;
|
|
|
|
font-weight: bold;
|
2018-06-05 13:18:40 +02:00
|
|
|
padding-left: 30px;
|
2018-06-25 14:54:34 +02:00
|
|
|
overflow: hidden;
|
2018-06-27 11:00:23 +02:00
|
|
|
user-select: none;
|
2018-12-20 14:15:31 +01:00
|
|
|
&:hover {
|
|
|
|
background: $palette-header-background !important;
|
|
|
|
}
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-header > i {
|
2018-06-05 13:18:40 +02:00
|
|
|
position: absolute;
|
|
|
|
left: 11px;
|
|
|
|
top: 12px;
|
2015-04-09 15:46:29 +02:00
|
|
|
-webkit-transition: all 0.2s ease-in-out;
|
|
|
|
-moz-transition: all 0.2s ease-in-out;
|
|
|
|
-o-transition: all 0.2s ease-in-out;
|
|
|
|
-webkit-transform: rotate(-90deg);
|
|
|
|
-moz-transform: rotate(-90deg);
|
|
|
|
-o-transform: rotate(-90deg);
|
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-header i.expanded {
|
2015-04-09 15:46:29 +02:00
|
|
|
-webkit-transform: rotate(0deg);
|
|
|
|
-moz-transform: rotate(0deg);
|
|
|
|
-o-transform: rotate(0deg);
|
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-header span {
|
2015-04-09 15:46:29 +02:00
|
|
|
clear: both;
|
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-label {
|
2019-05-15 14:54:29 +02:00
|
|
|
color: $node-label-color;
|
2015-07-13 12:26:29 +02:00
|
|
|
font-size: 13px;
|
2017-04-10 12:29:52 +02:00
|
|
|
margin: 4px 0 4px 32px;
|
2015-04-09 15:46:29 +02:00
|
|
|
line-height: 20px;
|
|
|
|
overflow: hidden;
|
|
|
|
text-align: center;
|
2017-04-10 12:29:52 +02:00
|
|
|
@include disable-selection;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-label-right {
|
2017-04-10 12:29:52 +02:00
|
|
|
margin: 4px 32px 4px 0;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
|
|
|
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-node {
|
2019-09-10 12:39:07 +02:00
|
|
|
// display: inline-block;
|
2019-05-15 14:54:29 +02:00
|
|
|
cursor: move;
|
|
|
|
background: $secondary-background;
|
2019-09-10 12:39:07 +02:00
|
|
|
margin: 10px auto;
|
2015-04-09 15:46:29 +02:00
|
|
|
height: 25px;
|
2015-07-12 00:43:45 +02:00
|
|
|
border-radius: 5px;
|
2019-05-15 14:54:29 +02:00
|
|
|
border: 1px solid $node-border;
|
2015-04-09 15:46:29 +02:00
|
|
|
background-position: 5% 50%;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
width: 120px;
|
|
|
|
background-size: contain;
|
|
|
|
position: relative;
|
2019-09-10 12:39:07 +02:00
|
|
|
&:not(.red-ui-palette-node-config):first-child {
|
|
|
|
margin-top: 15px;
|
2019-05-15 14:54:29 +02:00
|
|
|
}
|
2019-09-10 12:39:07 +02:00
|
|
|
&:not(.red-ui-palette-node-config):last-child {
|
|
|
|
margin-bottom: 15px;
|
2019-05-15 14:54:29 +02:00
|
|
|
}
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-node:hover {
|
2019-09-10 12:39:07 +02:00
|
|
|
border-color: transparent;
|
|
|
|
box-shadow: 0 0 0 2px $node-selected-color;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-port {
|
2015-04-09 15:46:29 +02:00
|
|
|
position: absolute;
|
|
|
|
top:8px;
|
|
|
|
left: -5px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
-moz-box-sizing: border-box;
|
2019-05-15 14:54:29 +02:00
|
|
|
background: $node-port-background;
|
2015-04-09 15:46:29 +02:00
|
|
|
border-radius: 3px;
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
2019-05-15 14:54:29 +02:00
|
|
|
border: 1px solid $node-border;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-port-output {
|
2015-04-09 15:46:29 +02:00
|
|
|
left:auto;
|
|
|
|
right: -6px;
|
|
|
|
}
|
|
|
|
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-node:hover .red-ui-palette-port {
|
2019-05-15 14:54:29 +02:00
|
|
|
background-color: $node-port-background-hover;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-icon-container {
|
2015-04-09 15:46:29 +02:00
|
|
|
position: absolute;
|
|
|
|
text-align: center;
|
|
|
|
top:0;
|
|
|
|
bottom:0;
|
|
|
|
left:0;
|
|
|
|
width: 30px;
|
2019-05-15 14:54:29 +02:00
|
|
|
border-right: 1px solid $node-icon-background-color;
|
|
|
|
background-color: $node-icon-background-color;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-icon-container-right {
|
2015-04-09 15:46:29 +02:00
|
|
|
left: auto;
|
|
|
|
right: 0;
|
|
|
|
border-right: none;
|
2019-05-15 14:54:29 +02:00
|
|
|
border-left: 1px solid $node-icon-background-color;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-icon {
|
2015-04-09 15:46:29 +02:00
|
|
|
display: inline-block;
|
|
|
|
width: 20px;
|
|
|
|
height: 100%;
|
|
|
|
background-position: 50% 50%;
|
|
|
|
background-size: contain;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
2020-05-01 18:39:54 +02:00
|
|
|
.red-ui-search-result-node {
|
|
|
|
&.red-ui-palette-icon-flow,
|
|
|
|
&.red-ui-palette-icon-group,
|
|
|
|
&.red-ui-palette-icon-selection {
|
|
|
|
background: none;
|
|
|
|
border-color: transparent;
|
|
|
|
.red-ui-palette-icon-container {
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
.red-ui-palette-icon-fa {
|
|
|
|
color: $secondary-text-color;
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-icon-fa {
|
2018-09-26 02:16:15 +02:00
|
|
|
color: white;
|
|
|
|
position: absolute;
|
2020-08-05 14:53:49 +02:00
|
|
|
top: calc(50% - 7px);
|
2018-09-26 02:16:15 +02:00
|
|
|
left: 3px;
|
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-node-small {
|
2017-04-10 15:33:21 +02:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
width: 18px;
|
|
|
|
height: 15px;
|
|
|
|
margin: 3px 0px;
|
|
|
|
vertical-align: middle;
|
|
|
|
cursor: default;
|
|
|
|
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-icon-container {
|
2017-04-10 15:33:21 +02:00
|
|
|
width: 18px;
|
|
|
|
border-right: none;
|
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-icon {
|
2017-04-10 15:33:21 +02:00
|
|
|
margin-left: -1px;
|
|
|
|
width: 15px;
|
|
|
|
}
|
2019-04-29 23:38:14 +02:00
|
|
|
.red-ui-palette-icon-fa {
|
2018-09-26 02:16:15 +02:00
|
|
|
top: 2px;
|
|
|
|
left: 1px;
|
|
|
|
}
|
2017-04-10 15:33:21 +02:00
|
|
|
}
|