1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
node-red/packages/node_modules/@node-red/editor-client/src/sass/palette.scss

232 lines
5.4 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;
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 {
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;
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 {
position: relative;
2015-07-14 00:21:03 +02:00
background: $palette-header-background;
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;
padding-left: 30px;
overflow: hidden;
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 {
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;
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;
background: $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;
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;
&:not(.red-ui-palette-node-config):first-child {
margin-top: 15px;
2019-05-15 14:54:29 +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 {
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;
}
.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 {
color: white;
position: absolute;
top: 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;
}
}