node-red/packages/node_modules/@node-red/editor-client/src/sass/palette.scss

325 lines
7.8 KiB
SCSS
Raw Normal View History

2015-04-09 15:46:29 +02: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;
2022-06-18 22:05:25 +02:00
background: var(--red-ui-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 {
padding-top: 80px;
2015-04-09 15:46:29 +02:00
}
2019-04-29 23:38:14 +02:00
.red-ui-palette-search {
position: relative;
2015-04-09 15:46:29 +02:00
overflow: hidden;
2022-06-18 22:05:25 +02:00
background: var(--red-ui-secondary-background);
2015-04-09 15:46:29 +02:00
text-align: center;
height: 35px;
padding: 3px;
2022-06-18 22:05:25 +02:00
border-bottom: 1px solid var(--red-ui-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 {
2022-06-18 22:05:25 +02:00
border-bottom: 1px solid var(--red-ui-secondary-border-color);
2015-04-09 15:46:29 +02:00
}
2019-04-29 23:38:14 +02:00
.red-ui-palette-content {
2022-06-18 22:05:25 +02:00
background: var(--red-ui-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 {
position: relative;
2022-06-18 22:05:25 +02:00
background: var(--red-ui-palette-header-background);
color: var(--red-ui-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;
padding-left: 30px;
overflow: hidden;
user-select: none;
2018-12-20 14:15:31 +01:00
&:hover {
2022-06-18 22:05:25 +02:00
background: var(--red-ui-palette-header-background) !important;
2018-12-20 14:15:31 +01:00
}
2015-04-09 15:46:29 +02:00
}
2019-04-29 23:38:14 +02:00
.red-ui-palette-header > i {
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 {
2022-06-18 22:05:25 +02:00
color: var(--red-ui-node-label-color);
2015-07-13 12:26:29 +02:00
font-size: 13px;
margin: 4px 0 4px 32px;
2015-04-09 15:46:29 +02:00
line-height: 20px;
overflow: hidden;
text-align: center;
@include disable-selection;
2015-04-09 15:46:29 +02:00
}
2019-04-29 23:38:14 +02:00
.red-ui-palette-label-right {
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 {
// display: inline-block;
2019-05-15 14:54:29 +02:00
cursor: move;
2022-06-18 22:05:25 +02:00
background: var(--red-ui-secondary-background);
margin: 10px auto;
2015-04-09 15:46:29 +02:00
height: 25px;
2015-07-12 00:43:45 +02:00
border-radius: 5px;
2022-06-18 22:05:25 +02:00
border: 1px solid var(--red-ui-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;
2022-06-08 07:50:14 +02:00
z-index: 4;
&:not(.red-ui-palette-node-config):not(.red-ui-palette-node-small):first-child {
margin-top: 15px;
2019-05-15 14:54:29 +02:00
}
2021-04-21 06:14:46 +02:00
&:not(.red-ui-palette-node-config):not(.red-ui-palette-node-small):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 {
border-color: transparent;
2022-06-18 22:05:25 +02:00
box-shadow: 0 0 0 2px var(--red-ui-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;
2022-06-18 22:05:25 +02:00
background: var(--red-ui-node-port-background);
2015-04-09 15:46:29 +02:00
border-radius: 3px;
width: 10px;
height: 10px;
2022-06-18 22:05:25 +02:00
border: 1px solid var(--red-ui-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 {
2022-06-18 22:05:25 +02:00
background-color: var(--red-ui-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;
2022-06-18 22:05:25 +02:00
border-right: 1px solid var(--red-ui-node-icon-background-color);
border-radius: 4px 0px 0px 4px;
2022-06-18 22:05:25 +02:00
background-color: var(--red-ui-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;
2022-06-18 22:05:25 +02:00
border-left: 1px solid var(--red-ui-node-icon-background-color);
border-radius: 0px 4px 4px 0px;
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;
}
.red-ui-search-result-node {
&.red-ui-palette-icon-flow,
&.red-ui-palette-icon-group,
2022-02-28 13:53:11 +01:00
&.red-ui-palette-icon-junction,
&.red-ui-palette-icon-selection {
background: none;
border-color: transparent;
.red-ui-palette-icon-container {
background: none;
}
.red-ui-palette-icon-fa {
2022-06-18 22:05:25 +02:00
color: var(--red-ui-secondary-text-color);
font-size: 18px;
}
}
}
2019-04-29 23:38:14 +02:00
.red-ui-palette-icon-fa {
color: white;
position: absolute;
top: calc(50% - 7px);
left: 3px;
}
2019-04-29 23:38:14 +02:00
.red-ui-palette-node-small {
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 {
width: 18px;
border-right: none;
}
2019-04-29 23:38:14 +02:00
.red-ui-palette-icon {
margin-left: -1px;
width: 15px;
}
2019-04-29 23:38:14 +02:00
.red-ui-palette-icon-fa {
top: 2px;
left: 1px;
}
}
////////////////
.red-ui-node-list-item {
display: inline-block;
padding: 0;
font-size: 13px;
border: none;
}
.red-ui-node-icon {
display: inline-block;
width: 24px;
height: 20px;
line-height: 20px;
margin-top: 1px;
// width: 30px;
// height: 25px;
border-radius: 3px;
2022-06-18 22:05:25 +02:00
border: 1px solid var(--red-ui-node-border);
background-position: 5% 50%;
background-repeat: no-repeat;
background-size: contain;
position: relative;
2022-06-18 22:05:25 +02:00
background-color: var(--red-ui-node-icon-background-color);
text-align: center;
.red-ui-palette-icon {
width: 20px;
}
.red-ui-palette-icon-fa {
font-size: 14px;
position: relative;
top: -1px;
left: 0px;
}
&.red-ui-palette-icon-flow,
&.red-ui-palette-icon-group,
2022-02-28 13:53:11 +01:00
&.red-ui-palette-icon-junction,
&.red-ui-palette-icon-selection {
background: none;
border-color: transparent;
.red-ui-palette-icon-container {
background: none;
}
.red-ui-palette-icon-fa {
2022-06-18 22:05:25 +02:00
color: var(--red-ui-secondary-text-color);
font-size: 16px;
}
}
}
.red-ui-node-icon-container {
display: inline-flex;
align-items: center;
}
.red-ui-node-icon-container.red-ui-node-icon-small {
.red-ui-node-icon {
width: 18px;
height: 15px;
line-height: 15px;
.red-ui-palette-icon {
width: 15px;
}
.red-ui-palette-icon-fa {
font-size: 11px;
}
.red-ui-icons-flow {
width: 14px;
}
&.red-ui-palette-icon-flow {
margin-top: -2px;
}
2022-02-28 13:53:11 +01:00
&.red-ui-palette-icon-junction .red-ui-palette-icon-fa,
&.red-ui-palette-icon-group .red-ui-palette-icon-fa {
font-size: 14px;
}
}
.red-ui-node-label {
}
}
.red-ui-node-label {
white-space: nowrap;
margin-left: 4px;
2022-06-18 22:05:25 +02:00
color: var(--red-ui-secondary-text-color);
}