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/search.scss

221 lines
5.4 KiB
SCSS
Raw Normal View History

2016-09-30 00:46:29 +02:00
/**
* Copyright JS Foundation and other contributors, http://js.foundation
2016-09-30 00: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.
**/
.red-ui-search {
z-index:1000;
display: none;
position: absolute;
width: 500px;
left: 50%;
margin-left: -250px;
top: 0px;
border: 1px solid $primary-border-color;
2019-05-15 14:54:29 +02:00
box-shadow: 0 0 10px $shadow;
background: $secondary-background;
.red-ui-searchBox-container {
display: inline-block;
margin-right: 6px;
2020-06-15 23:31:35 +02:00
width: 100%;
}
&:not(.red-ui-type-search) .red-ui-searchBox-container {
width: calc(100% - 30px);
}
}
2019-05-08 14:26:48 +02:00
.red-ui-type-search {
box-shadow: 0 1px 6px -3px black;
background: none;
width: 300px;
margin-left: 0px;
//height: 75px;
border: none;
.red-ui-search-container {
border-top-left-radius: 5px;
border-top-right-radius: 5px;
2019-05-08 14:26:48 +02:00
border: 1px dashed $primary-border-color;
border-bottom: none;
padding: 0;
width: 100%;
}
.red-ui-search-results-container {
display: none;
height: 150px;
2016-11-08 22:18:34 +01:00
.red-ui-editableList-container {
2019-05-08 14:26:48 +02:00
border: 1px dashed $primary-border-color;
border-top: 1px solid $secondary-border-color;
2016-11-08 22:18:34 +01:00
}
}
.red-ui-search-result {
2016-11-08 22:18:34 +01:00
padding: 2px 2px 2px 5px;
font-size: 13px;
border-left-width: 3px;
border-right-width: 3px;
2019-04-29 23:38:14 +02:00
.red-ui-palette-icon-fa {
position: relative;
top: -2.5px;
left: 0px;
}
}
.red-ui-search-result-separator {
2019-05-08 14:26:48 +02:00
border-bottom: 3px solid $secondary-border-color;
}
.red-ui-search-result-node {
position: relative;
width: 18px;
height: 15px;
margin-top: 1px;
}
.red-ui-search-result-node-port {
position: absolute;
border-radius: 2px;
2019-05-15 14:54:29 +02:00
border: 1px solid $node-border;;
width: 6px;
height: 7px;
top:4px;
left:-4px;
2019-05-15 14:54:29 +02:00
background: $node-port-background;
box-sizing: border-box;
}
.red-ui-search-result-node-output{
left: 16px;
}
2019-04-29 23:38:14 +02:00
.red-ui-palette-icon-container {
width: 18px;
}
2019-04-29 23:38:14 +02:00
.red-ui-palette-icon {
width: 15px;
position:relative;
left: -1px;
}
.red-ui-search-result-description {
margin-left:28px;
}
.red-ui-search-result-node-label {
2019-05-15 14:54:29 +02:00
color: $secondary-text-color;
}
}
2016-09-30 00:46:29 +02:00
.red-ui-search-container {
padding: 3px;
2019-05-08 14:26:48 +02:00
background: $form-input-background;
2016-09-30 00:46:29 +02:00
border-bottom: 1px solid $secondary-border-color;
}
.red-ui-search-results-container {
position:relative;
height: 300px;
padding: 5px;
background: $primary-background;
2019-05-08 14:26:48 +02:00
.red-ui-search-results-list {
2016-11-08 22:18:34 +01:00
2019-05-08 14:26:48 +02:00
}
2016-09-30 00:46:29 +02:00
.red-ui-editableList-container {
padding: 0;
background: $primary-background;
2016-09-30 00:46:29 +02:00
li {
padding: 0;
}
}
}
.red-ui-search-result {
padding: 8px 2px 8px 5px;
display: block;
cursor: pointer;
2019-05-08 14:26:48 +02:00
color: $list-item-color;
background: $list-item-background;
border-left: 3px solid $list-item-background;
border-right: 3px solid $list-item-background;
2019-05-15 14:54:29 +02:00
li.selected & {
background: $list-item-background-selected;
border-left-color: $list-item-border-selected;
border-right-color: $list-item-border-selected;
}
2016-09-30 00:46:29 +02:00
&:hover {
text-decoration: none;
color: $form-text-color;
2019-05-08 14:26:48 +02:00
background: $list-item-background-hover;
border-left-color:$list-item-background-hover;
border-right-color:$list-item-background-hover;
2016-09-30 00:46:29 +02:00
}
&:after {
content: "";
display: table;
clear: both;
}
2019-04-29 23:38:14 +02:00
.red-ui-palette-icon-fa {
top: 6px;
left: 3px;
}
2016-09-30 00:46:29 +02:00
}
.red-ui-search-result-node {
display: inline-block;
width: 30px;
float:left;
height: 25px;
border-radius: 3px;
2019-05-15 14:54:29 +02:00
border: 1px solid $node-border;
2016-09-30 00:46:29 +02:00
background-position: 5% 50%;
background-repeat: no-repeat;
background-size: contain;
position: relative;
2019-04-29 23:38:14 +02:00
.red-ui-palette-icon-container {
border-right: none;
}
2016-09-30 00:46:29 +02:00
}
2019-06-07 12:29:18 +02:00
.red-ui-search-result-node-description {
2016-09-30 00:46:29 +02:00
margin-left: 40px;
margin-right: 5px;
}
.red-ui-search-result-node-label {
2019-05-15 14:54:29 +02:00
color: $primary-text-color;
2016-09-30 00:46:29 +02:00
}
.red-ui-search-result-node-type {
font-style: italic;
font-size: 0.9em;
2019-05-15 14:54:29 +02:00
color: $tertiary-text-color;
2016-09-30 00:46:29 +02:00
}
.red-ui-search-result-node-flow {
float:right;
font-size: 0.8em;
2019-05-15 14:54:29 +02:00
color: $tertiary-text-color;
2016-09-30 00:46:29 +02:00
}
.red-ui-search-result-node-id {
display:none;
font-size: 0.8em;
2019-05-15 14:54:29 +02:00
color: $tertiary-text-color;
2016-09-30 00:46:29 +02:00
}
.red-ui-search-empty {
padding: 10px;
text-align: center;
font-style: italic;
color: $form-placeholder-color;
}
2019-06-07 12:29:18 +02:00
.red-ui-search-result-action {
color: $primary-text-color;
}
.red-ui-search-result-action-key {
2019-06-11 23:43:01 +02:00
position: absolute;
top: 9px;
right: 0;
2019-06-07 12:29:18 +02:00
margin-right: 10px;
color: $tertiary-text-color;
}