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

559 lines
13 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.
**/
.red-ui-sidebar-info {
height: 100%;
overflow: hidden;
}
.red-ui-sidebar-info hr {
2015-07-14 00:21:03 +02:00
margin: 10px 0;
}
.red-ui-info-header {
padding-left: 9px;
line-height: 21px;
cursor: default;
> * {
vertical-align: middle
}
> span {
display: inline-block;
margin-left: 5px;
}
border-bottom: 1px solid $secondary-border-color;
}
table.red-ui-info-table {
2015-04-09 15:46:29 +02:00
font-size: 14px;
2017-04-07 00:17:06 +02:00
margin: 0 0 10px;
width: 100%;
2015-04-09 15:46:29 +02:00
}
table.red-ui-info-table tr:not(.blank) {
2020-05-06 17:15:12 +02:00
border-top: 1px solid $secondary-border-color;
2019-05-15 14:54:29 +02:00
border-bottom: 1px solid $secondary-border-color;
2017-04-07 00:17:06 +02:00
}
.red-ui-help-property-expand {
2017-04-07 00:17:06 +02:00
font-size: 0.8em;
text-align: right;
line-height: 0.9em;
a {
padding-bottom: 5px;
}
2015-04-09 15:46:29 +02:00
}
table.red-ui-info-table tr.blank {
2015-04-09 15:46:29 +02:00
border: none;
2017-04-05 17:19:23 +02:00
th {
text-align: left;
2017-04-07 00:17:06 +02:00
font-weight: 500;
2019-05-15 14:54:29 +02:00
color: $primary-text-color;
2017-04-07 00:17:06 +02:00
padding: 6px 3px 3px;
2017-04-05 17:19:23 +02:00
}
>* {
padding-top: 8px;
border: none;
padding-left: 0px;
}
2017-04-07 00:17:06 +02:00
2017-04-05 17:19:23 +02:00
a {
display: block;
2019-05-15 14:54:29 +02:00
color: $primary-text-color;
2017-04-05 17:19:23 +02:00
&:hover,&:focus {
2019-05-15 14:54:29 +02:00
color: $primary-text-color;
2017-04-05 17:19:23 +02:00
text-decoration: none;
}
2017-04-07 00:17:06 +02:00
&:not(.expanded) {
.red-ui-help-property-more {
2017-04-07 00:17:06 +02:00
display: inline;
}
.red-ui-help-property-less {
2017-04-07 00:17:06 +02:00
display: none;
}
}
2017-04-05 17:19:23 +02:00
i {
width: 10px;
text-align: center;
transition: transform 0.2s ease-in-out;
}
2017-04-07 00:17:06 +02:00
&.expanded {
.red-ui-help-property-more {
2017-04-07 00:17:06 +02:00
display: none;
}
.red-ui-help-property-less {
2017-04-07 00:17:06 +02:00
display: inline;
}
i {
transform: rotate(180deg);
}
2017-04-05 17:19:23 +02:00
}
}
2015-04-09 15:46:29 +02:00
}
.red-ui-help-info-none {
2017-09-20 11:30:07 +02:00
font-style: italic;
2019-05-15 14:54:29 +02:00
color: $tertiary-text-color;
2017-09-20 11:30:07 +02:00
}
table.red-ui-info-table tr:not(.blank) td:first-child{
2019-05-15 14:54:29 +02:00
color: $header-text-color;
2015-04-09 15:46:29 +02:00
vertical-align: top;
width: 90px;
2017-04-07 00:17:06 +02:00
padding: 3px 3px 3px 6px;
2019-05-15 14:54:29 +02:00
background:$tertiary-background;
border-right: 1px solid $secondary-border-color;
2015-04-09 15:46:29 +02:00
}
table.red-ui-info-table tr:not(.blank) td:last-child{
2017-04-07 00:17:06 +02:00
padding: 3px 3px 3px 6px;
2019-05-15 14:54:29 +02:00
color: $primary-text-color;
overflow-y: hidden;
2015-04-09 15:46:29 +02:00
}
div.red-ui-info-table {
2015-04-09 15:46:29 +02:00
margin: 5px;
}
.red-ui-help {
2019-05-15 14:54:29 +02:00
font-size: $primary-font-size;
2015-07-13 12:26:29 +02:00
line-height: 1.5em;
2019-05-15 14:54:29 +02:00
a {
color: $text-color-link;
2019-05-15 14:54:29 +02:00
text-decoration: none;
}
a:hover,
a:focus {
color: $text-color-link;
2019-05-15 14:54:29 +02:00
text-decoration: underline;
}
2015-04-09 15:46:29 +02:00
h1 {
2017-04-05 17:19:23 +02:00
font-weight: 500;
2017-04-07 00:17:06 +02:00
font-size: 1.296em;
2017-04-05 17:19:23 +02:00
line-height: 1.3em;
2015-04-09 15:46:29 +02:00
margin: 8px auto;
2020-05-06 17:15:12 +02:00
&.red-ui-help-title {
border-bottom: 1px solid $tertiary-border-color;
}
2015-04-09 15:46:29 +02:00
}
h2 {
2017-04-05 17:19:23 +02:00
font-weight: 500;
2017-04-07 00:17:06 +02:00
font-size: 1.215em;
2015-07-14 00:21:03 +02:00
margin: 8px auto;
2017-04-05 17:19:23 +02:00
line-height: 1.3em;
2015-07-14 00:21:03 +02:00
}
h3 {
2017-04-05 17:19:23 +02:00
font-weight: 500;
2017-04-07 00:17:06 +02:00
font-size: 1.138em;
2017-04-05 17:19:23 +02:00
margin: 7px auto 5px;
line-height: 1.3em;
2015-04-09 15:46:29 +02:00
}
h4,
h5 {
2017-04-05 17:19:23 +02:00
font-weight: 500;
2017-04-07 00:17:06 +02:00
font-size: 1.067em;
2017-04-05 17:19:23 +02:00
line-height: 1.3em;
margin: 8px auto 5px;
}
& > span > p:first-child {
2015-04-09 15:46:29 +02:00
}
2017-04-05 17:19:23 +02:00
dl.message-properties {
2019-05-15 14:54:29 +02:00
border: 1px solid $secondary-border-color;
2017-04-05 17:19:23 +02:00
border-radius: 2px;
margin: 5px auto 10px;
&>dt {
padding: 0px 3px 2px 3px;
font-family: $monospace-font;
2017-04-05 17:19:23 +02:00
font-weight: normal;
margin: 5px 3px 1px;
color: $text-color-code;
2017-04-05 17:19:23 +02:00
white-space: nowrap;
&.optional {
font-style: italic;
}
.property-type {
font-family: $primary-font;
2019-05-15 14:54:29 +02:00
color: $primary-text-color;
2017-04-05 17:19:23 +02:00
font-style: italic;
font-size: 11px;
float: right;
}
&:after {
content: "";
display: table;
clear: both;
}
}
&>dd {
2017-04-07 00:17:06 +02:00
margin: 0px 8px 2px 13px;
vertical-align: top;
2017-04-05 17:19:23 +02:00
}
}
ol.node-ports {
margin: 0;
li {
2019-05-15 14:54:29 +02:00
border: 1px solid $secondary-border-color;
2017-04-05 17:19:23 +02:00
border-radius: 2px;
list-style-position: inside;
padding: 3px;
margin-bottom: 5px;
2017-04-07 00:17:06 +02:00
dl.message-properties {
border: none;
}
2017-04-05 17:19:23 +02:00
}
p {
display: inline;
}
2017-04-05 17:19:23 +02:00
}
.red-ui-help-info-header {
i {
width: 10px;
text-align: center;
transition: transform 0.2s ease-in-out;
margin-right: 4px;
}
2019-05-15 14:54:29 +02:00
color: $header-text-color;
&:hover, &:focus {
text-decoration: none;
}
&.expanded {
i {
transform: rotate(90deg);
}
}
}
2021-10-05 00:02:23 +02:00
table {
border-collapse: collapse;
2021-10-05 12:25:35 +02:00
border: 1px solid var(--red-ui-secondary-border-color);
2021-10-05 00:02:23 +02:00
margin : 8px 0 8px 0;
min-width : 300px;
overflow : hidden;
}
table thead tr {
2021-10-05 12:25:35 +02:00
background-color: var(--red-ui-primary-background); //$primary-text-color;
border-bottom: 1px solid var(--red-ui-secondary-border-color);
color: var(--red-ui-header-text-color);
2021-10-05 00:02:23 +02:00
text-align: left;
}
table th,
table td {
padding: 6px 8px;
}
table tbody tr:nth-of-type(even) {
2021-10-05 12:25:35 +02:00
background-color: var(--red-ui-tertiary-background); //$primary-background;
2021-10-05 00:02:23 +02:00
}
2015-04-09 15:46:29 +02:00
}
.red-ui-sidebar-info-stack {
height: 100%;
// position: absolute;
// top: 0;
// bottom: 0;
// left: 0;
// right: 0;
// overflow-y: scroll;
2017-04-07 12:21:30 +02:00
}
2019-05-15 14:54:29 +02:00
.red-ui-help-tips {
2017-04-07 12:21:30 +02:00
display: none;
2017-01-06 00:33:19 +01:00
position: absolute;
left:0;
right:0;
2017-04-07 12:21:30 +02:00
bottom: 0;
2020-05-07 11:32:25 +02:00
height: 0;
transition: height 0.2s, padding 0.2s;
2017-04-07 12:21:30 +02:00
box-sizing: border-box;
border-top: 1px solid $secondary-border-color;
2019-05-15 14:54:29 +02:00
background-color: $secondary-background;
2020-05-07 11:32:25 +02:00
padding: 0;
2019-05-15 14:54:29 +02:00
box-shadow: 0 5px 20px 0px $shadow;
overflow-y: auto;
2017-04-07 12:21:30 +02:00
}
.red-ui-sidebar-info.show-tips {
.red-ui-sidebar-info-stack {
2020-05-07 11:32:25 +02:00
height: calc(100% - 150px);
2017-04-07 12:21:30 +02:00
}
2019-05-15 14:54:29 +02:00
.red-ui-help-tips {
2017-04-07 12:21:30 +02:00
display: block;
2020-05-07 11:32:25 +02:00
height: 150px;
padding: 20px;
2017-04-07 12:21:30 +02:00
}
}
2019-05-15 14:54:29 +02:00
.red-ui-help-tips:before {
2017-04-07 12:21:30 +02:00
content: '';
display: inline-block;
height: 100%;
vertical-align: middle;
margin-right: -0.25em; /* Adjusts for spacing */
}
.red-ui-help-tip {
2017-04-07 12:21:30 +02:00
display: inline-block;
vertical-align: middle;
width: 100%;
2017-01-06 00:33:19 +01:00
font-size: 16px;
text-align: center;
2017-01-06 00:33:19 +01:00
line-height: 1.9em;
2019-05-15 14:54:29 +02:00
color : $tertiary-text-color;
2017-01-06 00:33:19 +01:00
@include disable-selection;
cursor: default;
}
2019-05-15 14:54:29 +02:00
.red-ui-help-tips-buttons {
position: absolute;
top: 4px;
right: 6px;
a {
2019-05-15 14:54:29 +02:00
color: $secondary-text-color;
border-color: $secondary-border-color !important;
margin-left: 4px;
}
}
.node-info-property-config-node {
2019-05-15 14:54:29 +02:00
border: 1px solid $secondary-border-color;
border-radius: 4px;
padding: 2px 4px 2px;
}
2020-05-06 17:15:12 +02:00
.red-ui-info-outline,.red-ui-sidebar-help-toc {
display: flex;
flex-direction: column;
.red-ui-treeList {
flex-grow: 1;
position: relative;
}
.red-ui-treeList-container {
position: absolute;
top: 0;
bottom: 0;
}
.red-ui-treeList-container,.red-ui-editableList-border {
border: none;
border-radius: 0;
}
.red-ui-info-outline-project {
border-bottom: 1px solid $secondary-border-color;
}
}
.red-ui-info-outline,
// TODO: remove these classes for 2.0. Keeping in 1.x for backwards compatibility
// of theme generators.
.red-ui-sidebar-help-toc, #red-ui-clipboard-dialog-import-conflicts-list, #red-ui-clipboard-dialog-export-tab-clipboard-preview
{
.red-ui-info-outline-item {
display: inline-flex;
padding: 0;
font-size: 13px;
border: none;
&:not(.red-ui-node-list-item) .red-ui-palette-icon-fa {
position: relative;
top: 1px;
left: 0px;
}
&:hover {
background: inherit
}
&.red-ui-info-outline-item-flow {
.red-ui-search-result-description {
margin-left: 4px;
}
}
&.red-ui-info-outline-item-group .red-ui-search-result-node {
background: none;
border-color: transparent;
.red-ui-palette-icon-container {
background: none;
}
.red-ui-palette-icon-fa {
color: $secondary-text-color;
font-size: 18px;
}
}
&.red-ui-info-outline-item-empty {
font-style: italic;
color: $form-placeholder-color;
}
}
.red-ui-treeList-label {
font-size: 13px;
padding: 2px 0;
overflow: hidden;
}
.red-ui-search-result-node {
width: 24px;
height: 20px;
margin-top: 1px;
}
.red-ui-palette-icon-container {
width: 24px;
}
.red-ui-palette-icon {
width: 20px;
}
.red-ui-search-result-description {
margin-left: 32px;
line-height: 22px;
white-space: nowrap;
}
.red-ui-search-result-node-label {
color: $secondary-text-color;
}
}
.red-ui-info-outline-item-control-spacer {
display: inline-block;
width: 23px;
}
.red-ui-info-outline-gutter {
display:none;
button {
position: relative;
left: 2px;
}
.red-ui-treeList-label:hover & {
display: inline;
}
}
.red-ui-info-outline-item-controls {
position: absolute;
top:1px;
bottom: 1px;
right: 1px;
padding: 1px 2px 0 1px;
text-align: right;
background: $list-item-background;
.red-ui-treeList-label:hover & {
background: $list-item-background-hover;
}
.red-ui-treeList-label.focus & {
background: $list-item-background-hover;
}
.red-ui-treeList-label.selected & {
background: $list-item-background-selected;
}
&.red-ui-info-outline-item-hover-controls button {
min-width: 23px;
}
.red-ui-treeList-label:not(:hover) &.red-ui-info-outline-item-hover-controls {
button {
border: none;
background: none;
}
2021-08-24 18:33:04 +02:00
.fa-circle-thin {
display: none;
}
.fa-eye {
display: none;
}
}
.red-ui-info-outline-item-control-reveal,
.red-ui-info-outline-item-control-action {
display: none;
}
.red-ui-treeList-label:hover & {
.red-ui-info-outline-item-control-reveal,
.red-ui-info-outline-item-control-action {
display: inline-block;
}
}
2021-08-24 18:33:04 +02:00
.fa-eye-slash {
display: none;
}
.red-ui-info-outline-item.red-ui-info-outline-item-hidden & {
.fa-eye-slash {
display: inline-block;
}
.fa-eye {
display: none;
}
}
.fa-ban {
display: none;
}
.red-ui-info-outline-item.red-ui-info-outline-item-disabled & {
.fa-ban {
display: inline-block;
}
.fa-circle-thin {
display: none;
}
}
button {
margin-right: 3px
}
}
.red-ui-info-outline-item-disabled {
.red-ui-search-result-node {
opacity: 0.4;
}
.red-ui-info-outline-item-label {
font-style: italic;
color: $secondary-text-color-disabled;
}
.red-ui-icons-flow {
opacity: 0.4;
}
}
.red-ui-icons {
display: inline-block;
width: 18px;
&:before {
white-space: pre;
content: ' '
}
}
.red-ui-icons-flow {
background-image: url('images/subflow_tab.svg');
background-repeat: no-repeat;
background-size: contain;
filter: brightness(2.5);
}
2020-05-06 17:15:12 +02:00
.red-ui-info-toolbar {
min-height: 39px;
2020-05-06 17:15:12 +02:00
height: 39px;
box-sizing: border-box;
2020-05-06 17:15:12 +02:00
text-align: left;
// padding-left: 9px;
// box-sizing: border-box;
// background: $palette-header-background;
// border-bottom: 1px solid $secondary-border-color;
.red-ui-searchBox-container {
position: absolute;
top: 6px;
right: 8px;
width: calc(100% - 130px);
max-width: 250px;
background: $palette-header-background;
}
}