From 031362a63348041dc5bf18c7ed83137bcf2010dd Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 15 May 2019 13:54:29 +0100 Subject: [PATCH] Move all colours to sass variables --- .../@node-red/editor-client/src/js/nodes.js | 4 +- .../editor-client/src/js/ui/clipboard.js | 4 +- .../editor-client/src/js/ui/deploy.js | 4 +- .../@node-red/editor-client/src/js/ui/diff.js | 18 +- .../editor-client/src/js/ui/editor.js | 2 +- .../editor-client/src/js/ui/editors/buffer.js | 2 +- .../src/js/ui/editors/expression.js | 6 +- .../editor-client/src/js/ui/notifications.js | 1 - .../editor-client/src/js/ui/palette-editor.js | 4 +- .../editor-client/src/js/ui/palette.js | 14 +- .../src/js/ui/projects/tab-versionControl.js | 2 +- .../editor-client/src/js/ui/tab-info.js | 4 +- .../editor-client/src/js/ui/utils.js | 2 +- .../@node-red/editor-client/src/js/ui/view.js | 399 ++++++++---------- .../@node-red/editor-client/src/sass/ace.scss | 87 ++-- .../editor-client/src/sass/base.scss | 325 +++++++------- .../editor-client/src/sass/colors.scss | 282 ++++++++++--- .../editor-client/src/sass/debug.scss | 86 ++-- .../editor-client/src/sass/diff.scss | 149 +++---- .../editor-client/src/sass/dragdrop.scss | 4 +- .../editor-client/src/sass/dropdownMenu.scss | 6 +- .../editor-client/src/sass/editor.scss | 71 ++-- .../editor-client/src/sass/flow.scss | 199 ++++----- .../editor-client/src/sass/forms.scss | 42 +- .../editor-client/src/sass/header.scss | 89 ++-- .../editor-client/src/sass/jquery.scss | 73 +++- .../editor-client/src/sass/keyboard.scss | 17 +- .../editor-client/src/sass/library.scss | 7 +- .../editor-client/src/sass/mixins.scss | 70 +-- .../editor-client/src/sass/notifications.scss | 14 +- .../src/sass/palette-editor.scss | 56 +-- .../editor-client/src/sass/palette.scss | 47 ++- .../editor-client/src/sass/popover.scss | 33 +- .../editor-client/src/sass/projects.scss | 272 ++++-------- .../editor-client/src/sass/search.scss | 28 +- .../editor-client/src/sass/sidebar.scss | 15 +- .../editor-client/src/sass/tab-config.scss | 27 +- .../editor-client/src/sass/tab-context.scss | 4 +- .../editor-client/src/sass/tab-info.scss | 65 +-- .../editor-client/src/sass/tabs.scss | 8 +- .../src/sass/ui/common/checkboxSet.scss | 4 +- .../src/sass/ui/common/editableList.scss | 6 +- .../src/sass/ui/common/nodeList.scss | 10 +- .../src/sass/ui/common/searchBox.scss | 6 +- .../src/sass/ui/common/stack.scss | 4 +- .../src/sass/ui/common/treeList.scss | 2 +- .../src/sass/ui/common/typedInput.scss | 24 +- .../editor-client/src/sass/userSettings.scss | 2 +- .../editor-client/src/sass/workspace.scss | 6 +- .../src/sass/workspaceToolbar.scss | 4 +- .../@node-red/nodes/core/io/10-mqtt.html | 4 +- 51 files changed, 1303 insertions(+), 1311 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/nodes.js b/packages/node_modules/@node-red/editor-client/src/js/nodes.js index 2bfdd74fa..4a1c6e9a0 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/nodes.js +++ b/packages/node_modules/@node-red/editor-client/src/js/nodes.js @@ -368,7 +368,7 @@ RED.nodes = (function() { outputs: sf.out.length, color: "#da9", label: function() { return this.name||RED.nodes.subflow(sf.id).name }, - labelStyle: function() { return this.name?"node_label_italic":""; }, + labelStyle: function() { return this.name?"red-ui-flow-node-label-italic":""; }, paletteLabel: function() { return RED.nodes.subflow(sf.id).name }, inputLabels: function(i) { return sf.inputLabels?sf.inputLabels[i]:null }, outputLabels: function(i) { return sf.outputLabels?sf.outputLabels[i]:null }, @@ -1072,7 +1072,7 @@ RED.nodes = (function() { color:"#fee", defaults: {}, label: "unknown: "+n.type, - labelStyle: "node_label_italic", + labelStyle: "red-ui-flow-node-label-italic", outputs: n.outputs||n.wires.length, set: registry.getNodeSet("node-red/unknown") } diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/clipboard.js b/packages/node_modules/@node-red/editor-client/src/js/ui/clipboard.js index d4115ac63..5052e47b5 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/clipboard.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/clipboard.js @@ -172,7 +172,7 @@ RED.clipboard = (function() { ''+ ''+ ''+ - '
'+ + '
'+ '
'+ '
    '+ '
    '+ @@ -200,7 +200,7 @@ RED.clipboard = (function() { importNodesDialog = - '
    '+ + '
    '+ '
    '+ '
      '+ '
      '+ diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/deploy.js b/packages/node_modules/@node-red/editor-client/src/js/ui/deploy.js index beff0c348..833e8f293 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/deploy.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/deploy.js @@ -180,10 +180,10 @@ RED.deploy = (function() { '
      '+ '
      ').appendTo(message); var conflictAutoMerge = $('
      '+ - '
      '+ + '
      '+ '
      ').hide().appendTo(message); var conflictManualMerge = $('
      '+ - '
      '+ + '
      '+ '
      ').hide().appendTo(message); message.i18n(); diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/diff.js b/packages/node_modules/@node-red/editor-client/src/js/ui/diff.js index fa77480eb..effb176e4 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/diff.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/diff.js @@ -787,7 +787,7 @@ RED.diff = (function() { $("",{class:"red-ui-diff-list-cell-label"}).text("position").appendTo(row); localCell = $("",{class:"red-ui-diff-list-cell red-ui-diff-list-node-local"}).appendTo(row); if (localNode) { - localCell.addClass("node-diff-node-"+(localChanged?"changed":"unchanged")); + localCell.addClass("red-ui-diff-status-"+(localChanged?"changed":"unchanged")); $(''+(localChanged?'':'')+'').appendTo(localCell); element = $('').appendTo(localCell); propertyElements['local.position'] = RED.utils.createObjectElement({x:localNode.x,y:localNode.y}, @@ -807,7 +807,7 @@ RED.diff = (function() { if (remoteNode !== undefined) { remoteCell = $("",{class:"red-ui-diff-list-cell red-ui-diff-list-node-remote"}).appendTo(row); - remoteCell.addClass("node-diff-node-"+(remoteChanged?"changed":"unchanged")); + remoteCell.addClass("red-ui-diff-status-"+(remoteChanged?"changed":"unchanged")); if (remoteNode) { $(''+(remoteChanged?'':'')+'').appendTo(remoteCell); element = $('').appendTo(remoteCell); @@ -856,7 +856,7 @@ RED.diff = (function() { localCell = $("",{class:"red-ui-diff-list-cell red-ui-diff-list-node-local"}).appendTo(row); if (localNode) { if (!conflict) { - localCell.addClass("node-diff-node-"+(localChanged?"changed":"unchanged")); + localCell.addClass("red-ui-diff-status-"+(localChanged?"changed":"unchanged")); $(''+(localChanged?'':'')+'').appendTo(localCell); } else { localCell.addClass("red-ui-diff-status-conflict"); @@ -871,7 +871,7 @@ RED.diff = (function() { remoteCell = $("",{class:"red-ui-diff-list-cell red-ui-diff-list-node-remote"}).appendTo(row); if (remoteNode) { if (!conflict) { - remoteCell.addClass("node-diff-node-"+(remoteChanged?"changed":"unchanged")); + remoteCell.addClass("red-ui-diff-status-"+(remoteChanged?"changed":"unchanged")); $(''+(remoteChanged?'':'')+'').appendTo(remoteCell); } else { remoteCell.addClass("red-ui-diff-status-conflict"); @@ -929,7 +929,7 @@ RED.diff = (function() { localCell = $("",{class:"red-ui-diff-list-cell red-ui-diff-list-node-local"}).appendTo(row); if (localNode) { if (!conflict) { - localCell.addClass("node-diff-node-"+(localChanged?"changed":"unchanged")); + localCell.addClass("red-ui-diff-status-"+(localChanged?"changed":"unchanged")); $(''+(localChanged?'':'')+'').appendTo(localCell); } else { localCell.addClass("red-ui-diff-status-conflict"); @@ -954,7 +954,7 @@ RED.diff = (function() { remoteCell = $("",{class:"red-ui-diff-list-cell red-ui-diff-list-node-remote"}).appendTo(row); if (remoteNode) { if (!conflict) { - remoteCell.addClass("node-diff-node-"+(remoteChanged?"changed":"unchanged")); + remoteCell.addClass("red-ui-diff-status-"+(remoteChanged?"changed":"unchanged")); $(''+(remoteChanged?'':'')+'').appendTo(remoteCell); } else { remoteCell.addClass("red-ui-diff-status-conflict"); @@ -1029,9 +1029,9 @@ RED.diff = (function() { } var localSelectDiv = $('