1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #3736 from bonanitech/disabled-config-node-background

Don't let themes change disabled config node background color
This commit is contained in:
Stephen McLaughlin 2022-07-06 10:34:20 +01:00 committed by GitHub
commit af08c077d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -217,6 +217,7 @@ $node-icon-border-color: #000;
$node-icon-border-color-opacity: 0.1; $node-icon-border-color-opacity: 0.1;
$node-config-background: #f3f3f3; $node-config-background: #f3f3f3;
$node-config-icon-container-disabled: #aaa;
$node-link-port-background: #eee; $node-link-port-background: #eee;

View File

@ -101,15 +101,15 @@ ul.red-ui-sidebar-node-config-list li.red-ui-palette-node-config-type {
} }
.red-ui-palette-node-config-unused,.red-ui-palette-node-config-disabled { .red-ui-palette-node-config-unused,.red-ui-palette-node-config-disabled {
border-color: var(--red-ui-primary-border-color); border-color: var(--red-ui-primary-border-color);
background: var(--red-ui-secondary-background-inactive); background: var(--red-ui-node-config-background);
border-style: dashed; border-style: dashed;
color: var(--red-ui-tertiary-text-color); color: var(--red-ui-node-config-icon-container-disabled);
} }
.red-ui-palette-node-config-disabled { .red-ui-palette-node-config-disabled {
opacity: 0.6; opacity: 0.6;
font-style: italic; font-style: italic;
i { i {
color: var(--red-ui-secondary-text-color); color: var(--red-ui-node-port-label-color);
margin-right: 5px; margin-right: 5px;
} }
} }

View File

@ -203,6 +203,7 @@
--red-ui-node-icon-border-color-opacity: #{$node-icon-border-color-opacity}; --red-ui-node-icon-border-color-opacity: #{$node-icon-border-color-opacity};
--red-ui-node-config-background: #{$node-config-background}; --red-ui-node-config-background: #{$node-config-background};
--red-ui-node-config-icon-container-disabled: #{$node-config-icon-container-disabled};
--red-ui-node-link-port-background: #{$node-link-port-background}; --red-ui-node-link-port-background: #{$node-link-port-background};